/* =========================================================
   CARRÉMENT SAINT-CHAMOND — FICHE COMMERÇANT
   ========================================================= */

.csc-establishment-page{overflow:hidden}
.csc-establishment-page svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* HERO */
.csc-establishment-hero{position:relative;padding:34px 0 74px;background:linear-gradient(180deg,#f8fcff 0%,#fff 93%);overflow:hidden}
.csc-establishment-hero::before{content:"";position:absolute;left:-120px;top:130px;width:280px;height:280px;border-radius:64px;border:2px solid rgba(74,147,200,.07);transform:rotate(15deg)}
.csc-establishment-back{display:inline-flex;margin-bottom:34px;color:var(--csc-text-light);text-decoration:none;font-size:12px;font-weight:800}
.csc-establishment-back:hover{color:var(--csc-primary)}
.csc-establishment-hero__grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(460px,1.08fr);align-items:center;gap:64px}
.csc-establishment-brandline{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.csc-establishment-logo{width:66px;height:66px;border-radius:20px;display:grid;place-items:center;overflow:hidden;background:#fff;box-shadow:0 12px 28px rgba(35,77,103,.10);flex:0 0 auto}
.csc-establishment-logo img{width:100%;height:100%;object-fit:contain;padding:7px}
.csc-establishment-logo span{font-size:26px;font-weight:900;color:var(--csc-primary)}
.csc-establishment-brandline>div:last-child{display:grid;gap:7px}
.csc-establishment-district{display:inline-flex;align-items:center;gap:6px;color:var(--csc-text-light);font-size:11px;font-weight:700}
.csc-establishment-district svg{width:14px;height:14px;color:var(--csc-primary)}
.csc-establishment-hero h1{margin:0;font-size:clamp(48px,5.4vw,80px);line-height:.98;letter-spacing:-.055em;color:var(--csc-text)}
.csc-establishment-slogan{margin:22px 0 0;max-width:680px;color:var(--csc-text-light);font-size:18px;line-height:1.7}
.csc-establishment-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:22px}
.csc-establishment-status,.csc-establishment-badge{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;border-radius:999px;background:#fff;border:1px solid var(--csc-border);color:var(--csc-text);font-size:10px;font-weight:900}
.csc-establishment-status i{width:7px;height:7px;border-radius:50%;background:#95a2aa}
.csc-establishment-status.is-open i{background:#31a86a;box-shadow:0 0 0 4px rgba(49,168,106,.12)}
.csc-establishment-badge svg{width:15px;height:15px;color:#c68447}
.csc-establishment-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:28px}
.csc-establishment-actions .csc-btn{display:inline-flex;align-items:center;gap:8px}
.csc-establishment-actions .csc-btn svg{width:17px;height:17px}

.csc-establishment-hero__visual{position:relative;min-width:0;aspect-ratio:1.25/1;border-radius:28px;isolation:isolate}
.csc-establishment-offset::before{content:"";position:absolute;inset:16px -16px -16px 16px;border:2px solid rgba(74,147,200,.30);border-radius:28px;z-index:-1}
.csc-establishment-hero__visual>img{width:100%;height:100%;display:block;object-fit:cover;border-radius:28px;box-shadow:0 18px 50px rgba(31,70,94,.12)}
.csc-establishment-hero__fallback{width:100%;height:100%;display:grid;place-items:center;border-radius:28px;background:linear-gradient(135deg,#edf8fd,#fff);color:var(--csc-primary);box-shadow:0 18px 50px rgba(31,70,94,.09)}
.csc-establishment-hero__fallback svg{width:92%;height:auto}
.csc-establishment-cloud{fill:#fff;stroke:none;filter:drop-shadow(0 10px 18px rgba(74,147,200,.12))}
.csc-establishment-tree circle{fill:#eaf5fb}
.csc-establishment-heart{fill:#e9b98d;stroke:none;transform-box:fill-box;transform-origin:center;animation:cscEstHeart 2.6s ease-in-out infinite}
.csc-establishment-cloud--one{animation:cscEstCloud 10s ease-in-out infinite alternate}
.csc-establishment-cloud--two{animation:cscEstCloud 13s ease-in-out infinite alternate-reverse}
.csc-establishment-tree{transform-box:fill-box;transform-origin:center bottom;animation:cscEstTree 5.5s ease-in-out infinite alternate}
.csc-establishment-ground{stroke:#c6ddea;stroke-width:3}

@keyframes cscEstCloud{from{transform:translateX(-5px)}to{transform:translateX(13px)}}
@keyframes cscEstTree{from{transform:rotate(-1.1deg)}to{transform:rotate(1.3deg)}}
@keyframes cscEstHeart{0%,100%{transform:scale(1)}12%{transform:scale(1.09)}25%{transform:scale(1)}38%{transform:scale(1.05)}}

/* CONTENT */
.csc-establishment-content{padding:28px 0 96px;background:#fff}
.csc-establishment-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);gap:72px;align-items:start}
.csc-establishment-main{min-width:0}
.csc-establishment-section{padding:52px 0;border-bottom:1px solid var(--csc-border)}
.csc-establishment-section:first-child{padding-top:14px}
.csc-establishment-section:last-child{border-bottom:0}
.csc-establishment-section h2{margin:7px 0 20px;font-size:clamp(30px,3.2vw,46px);line-height:1.05;letter-spacing:-.04em;color:var(--csc-text)}
.csc-establishment-prose{max-width:820px;color:var(--csc-text-light);font-size:15px;line-height:1.85}
.csc-establishment-prose p:first-child{margin-top:0}
.csc-establishment-prose p:last-child{margin-bottom:0}
.csc-establishment-section__head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}
.csc-establishment-section__head h2{margin-bottom:0}
.csc-establishment-section__count{color:var(--csc-text-light);font-size:11px;font-weight:800}

/* GALLERY */
.csc-establishment-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.csc-establishment-gallery__item{position:relative;aspect-ratio:1/1;border:0;padding:0;border-radius:20px;background:#f3f8fb;overflow:hidden;cursor:pointer}
.csc-establishment-gallery__item:first-child{grid-column:span 2;grid-row:span 2}
.csc-establishment-gallery__item img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.csc-establishment-gallery__item:hover img{transform:scale(1.035)}
.csc-establishment-gallery__item>span{position:absolute;right:12px;bottom:12px;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.92);color:var(--csc-primary);box-shadow:0 8px 18px rgba(20,45,62,.10)}
.csc-establishment-gallery__item svg{width:18px;height:18px}

/* NEWS */
.csc-establishment-news{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.csc-establishment-news__card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:17px;align-items:center}
.csc-establishment-news__image{aspect-ratio:1/1;border-radius:18px;overflow:hidden;background:var(--csc-primary-soft);color:var(--csc-primary)}
.csc-establishment-news__image img{width:100%;height:100%;display:block;object-fit:cover}
.csc-establishment-news__fallback{width:100%;height:100%;display:grid;place-items:center}
.csc-establishment-news__fallback svg{width:34px;height:34px}
.csc-establishment-news__card>div>span{display:block;margin-bottom:6px;color:var(--csc-text-light);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.csc-establishment-news h3{margin:0 0 8px;font-size:17px;line-height:1.3}
.csc-establishment-news h3 a{color:var(--csc-text);text-decoration:none}
.csc-establishment-news h3 a:hover{color:var(--csc-primary)}

/* ASIDE */
.csc-establishment-aside__sticky{position:sticky;top:110px;display:grid;gap:0}
.csc-establishment-info{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--csc-border);color:var(--csc-text);text-decoration:none}
.csc-establishment-info__icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:var(--csc-primary-soft);color:var(--csc-primary)}
.csc-establishment-info__icon svg{width:18px;height:18px}
.csc-establishment-info>div{display:grid;gap:3px;min-width:0}
.csc-establishment-info small,.csc-establishment-hours small,.csc-establishment-closures small{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.09em;color:var(--csc-text-light)}
.csc-establishment-info strong{font-size:12px;line-height:1.45;color:var(--csc-text)}
a.csc-establishment-info:hover strong{color:var(--csc-primary)}

.csc-establishment-hours{padding:22px 0;border-bottom:1px solid var(--csc-border)}
.csc-establishment-hours__head{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:16px}
.csc-establishment-hours__head>div{display:grid;gap:3px}
.csc-establishment-hours__head strong{font-size:12px}
.csc-establishment-hours__list{display:grid;gap:8px}
.csc-establishment-hours__list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;font-size:11px}
.csc-establishment-hours__list span{color:var(--csc-text-light)}
.csc-establishment-hours__list strong{text-align:right;color:var(--csc-text);font-weight:800}

.csc-establishment-closures{display:grid;gap:7px;padding:20px 0;border-bottom:1px solid var(--csc-border)}
.csc-establishment-closures span{font-size:11px;color:#a65f28;font-weight:800}

.csc-establishment-socials{display:flex;gap:8px;padding-top:20px}
.csc-establishment-socials a{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#f5f9fb;color:var(--csc-primary)}
.csc-establishment-socials a:hover{background:var(--csc-primary);color:#fff}
.csc-establishment-socials svg{width:18px;height:18px}

/* SIGNATURE */
.csc-establishment-signature{padding:32px 0 88px;background:linear-gradient(180deg,#fff,#f3f9fd)}
.csc-establishment-signature__inner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:34px}
.csc-establishment-signature h2{margin:7px 0 12px;font-size:clamp(32px,3.5vw,50px);line-height:1.05;letter-spacing:-.045em;max-width:780px}
.csc-establishment-signature p{margin:0;max-width:720px;color:var(--csc-text-light);line-height:1.7}

/* MOBILE ACTIONS */
.csc-establishment-mobile-actions{display:none}

/* LIGHTBOX */
.csc-establishment-lightbox{position:fixed;z-index:100010;inset:0}
.csc-establishment-lightbox[hidden]{display:none}
.csc-establishment-lightbox__backdrop{position:absolute;inset:0;border:0;background:rgba(14,29,39,.84);backdrop-filter:blur(7px)}
.csc-establishment-lightbox__dialog{position:absolute;inset:5vh 5vw;display:grid;place-items:center}
.csc-establishment-lightbox__dialog>img{max-width:min(1180px,85vw);max-height:84vh;display:block;object-fit:contain;border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.28)}
.csc-establishment-lightbox__close,.csc-establishment-lightbox__nav{position:absolute;z-index:2;border:0;background:rgba(255,255,255,.94);color:var(--csc-text);display:grid;place-items:center;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,.15)}
.csc-establishment-lightbox__close{right:0;top:0;width:46px;height:46px;border-radius:50%;font-size:26px}
.csc-establishment-lightbox__nav{top:50%;width:46px;height:46px;border-radius:50%;font-size:19px;transform:translateY(-50%)}
.csc-establishment-lightbox__nav.is-prev{left:0}
.csc-establishment-lightbox__nav.is-next{right:0}
.csc-establishment-lightbox__counter{position:absolute;left:50%;bottom:0;transform:translateX(-50%);padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--csc-text);font-size:11px;font-weight:900}

/* Reveal */
[data-csc-reveal]{opacity:0;transform:translateY(18px);transition:opacity .58s ease,transform .58s ease}
[data-csc-reveal].is-visible{opacity:1;transform:none}

@media(max-width:1080px){
  .csc-establishment-hero__grid{grid-template-columns:1fr;gap:38px}
  .csc-establishment-hero__visual{max-width:850px;width:100%}
  .csc-establishment-layout{grid-template-columns:1fr;gap:10px}
  .csc-establishment-aside{order:-1}
  .csc-establishment-aside__sticky{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
  .csc-establishment-hours,.csc-establishment-closures,.csc-establishment-socials{grid-column:1/-1}
}

@media(max-width:760px){
  .csc-establishment-hero{padding:24px 0 42px}
  .csc-establishment-back{margin-bottom:24px}
  .csc-establishment-hero h1{font-size:clamp(42px,13vw,58px)}
  .csc-establishment-slogan{font-size:15px}
  .csc-establishment-logo{width:58px;height:58px;border-radius:18px}
  .csc-establishment-actions{display:grid;grid-template-columns:1fr 1fr}
  .csc-establishment-actions .csc-btn{justify-content:center}
  .csc-establishment-actions .csc-btn--ghost{grid-column:1/-1}
  .csc-establishment-offset::before{inset:9px -9px -9px 9px}
  .csc-establishment-hero__visual{border-radius:22px}
  .csc-establishment-hero__visual>img,.csc-establishment-hero__fallback{border-radius:22px}

  .csc-establishment-content{padding-top:10px;padding-bottom:76px}
  .csc-establishment-aside__sticky{grid-template-columns:1fr}
  .csc-establishment-hours,.csc-establishment-closures,.csc-establishment-socials{grid-column:auto}
  .csc-establishment-section{padding:40px 0}
  .csc-establishment-section h2{font-size:31px}
  .csc-establishment-section__head{align-items:flex-start;flex-direction:column}

  .csc-establishment-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
  .csc-establishment-gallery__item:first-child{grid-column:span 2;grid-row:auto;aspect-ratio:1.35/1}

  .csc-establishment-news{display:grid;grid-auto-flow:column;grid-auto-columns:84%;grid-template-columns:none;gap:16px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:none;margin-right:calc(var(--csc-gutter,18px) * -1);padding:0 18px 12px 0}
  .csc-establishment-news::-webkit-scrollbar{display:none}
  .csc-establishment-news__card{grid-template-columns:1fr;scroll-snap-align:start}
  .csc-establishment-news__image{aspect-ratio:1.25/1}

  .csc-establishment-signature{padding-bottom:100px}
  .csc-establishment-signature__inner{grid-template-columns:1fr}
  .csc-establishment-signature .csc-btn{justify-content:center}

  .csc-establishment-mobile-actions{position:fixed;z-index:99990;left:14px;right:14px;bottom:max(14px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:7px;border-radius:20px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);box-shadow:0 16px 36px rgba(20,45,62,.18);border:1px solid rgba(228,233,235,.9)}
  .csc-establishment-mobile-actions a{height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--csc-primary);color:#fff;text-decoration:none;font-size:12px;font-weight:900}
  .csc-establishment-mobile-actions a+ a{background:var(--csc-primary-soft);color:var(--csc-primary)}
  .csc-establishment-mobile-actions svg{width:17px;height:17px}

  .csc-establishment-lightbox__dialog{inset:4vh 12px 8vh}
  .csc-establishment-lightbox__dialog>img{max-width:calc(100vw - 24px);max-height:78vh}
  .csc-establishment-lightbox__nav{top:auto;bottom:0;transform:none}
  .csc-establishment-lightbox__nav.is-prev{left:calc(50% - 54px)}
  .csc-establishment-lightbox__nav.is-next{right:calc(50% - 54px)}
  .csc-establishment-lightbox__counter{bottom:4px}
}

@media(prefers-reduced-motion:reduce){
  [data-csc-reveal]{opacity:1;transform:none;transition:none}
  .csc-establishment-heart,.csc-establishment-cloud--one,.csc-establishment-cloud--two,.csc-establishment-tree{animation:none!important}
  .csc-establishment-gallery__item img{transition:none!important}
}


/* Correctif fiche établissement */
.csc-establishment-hours__list strong.is-closed{
  color:var(--csc-text-light);
  font-weight:700;
}

.csc-establishment-actions button.csc-btn{
  appearance:none;
  border:0;
  cursor:pointer;
  font:inherit;
}

.csc-establishment-actions .csc-btn--ghost{
  border:1px solid var(--csc-border);
  background:#fff;
  color:var(--csc-text);
}

.csc-establishment-actions .csc-btn--ghost:hover{
  border-color:#bfddea;
  color:var(--csc-primary);
}


/* =========================================================
   V2 — FICHE ÉTABLISSEMENT : CONTACTS, VIDÉOS, STICKY
   ========================================================= */

@media(min-width:981px){
  .csc-establishment-layout{
    align-items:start;
  }

  .csc-establishment-aside{
    align-self:start;
    min-width:0;
  }

  .csc-establishment-aside__sticky{
    position:sticky!important;
    top:110px!important;
    max-height:calc(100vh - 132px);
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:6px;
    scrollbar-width:thin;
    overscroll-behavior:contain;
  }
}

.csc-establishment-info--button{
  width:100%;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.csc-establishment-info--button:hover{
  background:#f8fbfd;
}

.csc-establishment-info--button.is-loading{
  opacity:.62;
  cursor:wait;
}

.csc-establishment-info--button.is-revealed strong,
.csc-establishment-actions [data-csc-reveal-contact].is-revealed{
  color:var(--csc-primary);
}

.csc-establishment-actions [data-csc-reveal-contact].is-loading{
  opacity:.62;
  cursor:wait;
}

/* Videos */
.csc-establishment-videos{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.csc-establishment-video{
  min-width:0;
}

.csc-establishment-video__embed{
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:20px;
  background:#eef5f8;
  box-shadow:0 10px 26px rgba(31,70,94,.06);
}

.csc-establishment-video__embed iframe,
.csc-establishment-video__embed video{
  position:absolute;
  inset:0;
  width:100%!important;
  height:100%!important;
  border:0;
}

.csc-establishment-video h3{
  margin:10px 2px 0;
  color:var(--csc-text);
  font-size:14px;
  line-height:1.45;
}

.csc-establishment-video__fallback{
  min-height:190px;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:8px;
  padding:24px;
  border-radius:20px;
  background:linear-gradient(135deg,var(--csc-primary-soft),#fff);
  color:var(--csc-text);
  text-decoration:none;
  text-align:center;
}

.csc-establishment-video__fallback>span{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:#fff;
  color:var(--csc-primary);
  box-shadow:0 9px 22px rgba(31,70,94,.08);
}

.csc-establishment-video__fallback svg{
  width:23px;
  height:23px;
}

.csc-establishment-video__fallback strong{
  font-size:14px;
}

.csc-establishment-video__fallback small{
  color:var(--csc-primary);
  font-size:10px;
  font-weight:900;
}

@media(max-width:760px){
  .csc-establishment-videos{
    display:flex;
    overflow-x:auto;
    gap:12px;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }

  .csc-establishment-videos::-webkit-scrollbar{display:none}

  .csc-establishment-video{
    flex:0 0 86%;
    scroll-snap-align:start;
  }
}


/* =========================================================
   V3 — ACTIONS PLUS FLUIDES + CARROUSEL VIDÉO
   ========================================================= */

/* Desktop : une seule ligne compacte tant que l'espace le permet. */
@media(min-width:761px){
  .csc-establishment-actions{
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:nowrap;
    max-width:100%;
    overflow-x:auto;
    padding-bottom:3px;
    scrollbar-width:none;
  }

  .csc-establishment-actions::-webkit-scrollbar{display:none}

  .csc-establishment-actions .csc-btn{
    flex:0 0 auto;
    min-height:42px;
    padding:0 13px;
    border-radius:12px;
    gap:6px;
    font-size:11px;
    white-space:nowrap;
  }

  .csc-establishment-actions .csc-btn svg{
    width:15px;
    height:15px;
  }
}

/* Vidéos : vrai rail horizontal / carousel sans dépendance JS. */
.csc-establishment-videos{
  display:flex!important;
  gap:16px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding:2px 2px 12px;
}

.csc-establishment-videos::-webkit-scrollbar{
  display:none;
}

.csc-establishment-video{
  flex:0 0 min(680px,88%);
  scroll-snap-align:start;
}

.csc-establishment-video:only-child{
  flex-basis:min(760px,100%);
}

.csc-establishment-video__embed{
  aspect-ratio:16/9;
  border-radius:20px;
  overflow:hidden;
  background:#eef5f8;
}

.csc-establishment-video__embed iframe{
  display:block;
  width:100%!important;
  height:100%!important;
  border:0;
}

/* La barre droite reste lisible sans scrollbar visuelle disgracieuse. */
@media(min-width:1081px){
  .csc-establishment-aside__sticky{
    scrollbar-width:none;
  }

  .csc-establishment-aside__sticky::-webkit-scrollbar{
    display:none;
  }
}

/* Mobile : vraie barre d'actions unique, courte et stable. */
@media(max-width:760px){
  .csc-establishment-actions{
    display:flex!important;
    gap:7px;
    overflow-x:auto;
    flex-wrap:nowrap!important;
    margin-right:-14px;
    padding:0 14px 4px 0;
    scrollbar-width:none;
  }

  .csc-establishment-actions::-webkit-scrollbar{display:none}

  .csc-establishment-actions .csc-btn,
  .csc-establishment-actions .csc-btn--ghost{
    flex:0 0 auto;
    min-height:42px;
    width:auto;
    grid-column:auto!important;
    padding:0 12px;
    border-radius:12px;
    font-size:11px;
    white-space:nowrap;
  }

  .csc-establishment-video{
    flex-basis:92%;
  }

  .csc-establishment-mobile-actions{
    left:10px;
    right:10px;
    bottom:max(10px,env(safe-area-inset-bottom));
    display:flex!important;
    align-items:stretch;
    gap:4px;
    padding:5px;
    border-radius:18px;
  }

  .csc-establishment-mobile-actions a,
  .csc-establishment-mobile-actions button{
    flex:1 1 0;
    min-width:0;
    height:48px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    padding:0 4px;
    border:0;
    border-radius:13px;
    background:transparent!important;
    color:var(--csc-text)!important;
    text-decoration:none;
    font:inherit;
    font-size:9px;
    font-weight:900;
    cursor:pointer;
  }

  .csc-establishment-mobile-actions a:hover,
  .csc-establishment-mobile-actions button:hover{
    background:var(--csc-primary-soft)!important;
    color:var(--csc-primary)!important;
  }

  .csc-establishment-mobile-actions svg{
    width:18px;
    height:18px;
    color:var(--csc-primary);
  }

  .csc-establishment-mobile-actions [data-csc-reveal-contact].is-loading{
    opacity:.55;
  }

  .csc-establishment-mobile-actions [data-csc-reveal-contact].is-revealed span{
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}


/* =========================================================
   V4 — FLÈCHES DE DÉFILEMENT GALERIE / VIDÉOS
   ========================================================= */

.csc-establishment-scroll-shell{
  position:relative;
}

.csc-establishment-scroll-arrow{
  position:absolute;
  z-index:8;
  top:50%;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(25,43,56,.08);
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:var(--csc-text);
  box-shadow:0 10px 28px rgba(31,70,94,.12);
  transform:translateY(-50%);
  cursor:pointer;
  transition:transform .18s ease,opacity .18s ease,background .18s ease,color .18s ease;
  backdrop-filter:blur(8px);
}

.csc-establishment-scroll-arrow:hover{
  background:var(--csc-primary);
  color:#fff;
  transform:translateY(-50%) scale(1.05);
}

.csc-establishment-scroll-arrow svg{
  width:18px;
  height:18px;
}

.csc-establishment-scroll-arrow--prev{
  left:-18px;
}

.csc-establishment-scroll-arrow--next{
  right:-18px;
}

.csc-establishment-scroll-arrow.is-disabled{
  opacity:.2;
  pointer-events:none;
}

@media(max-width:760px){
  .csc-establishment-scroll-arrow{
    width:38px;
    height:38px;
    top:46%;
  }

  .csc-establishment-scroll-arrow--prev{
    left:4px;
  }

  .csc-establishment-scroll-arrow--next{
    right:4px;
  }
}

/* CSC — Sticky desktop : identité + coordonnées sans toucher au moteur. */
.csc-establishment-aside__identity{display:none}
@media (min-width:981px){
  /* overflow:hidden crée un ancêtre de défilement et neutralise sticky. */
  .csc-establishment-page{overflow:clip}
  .csc-establishment-layout{align-items:stretch}
  .csc-establishment-aside{
    position:sticky;
    top:calc(var(--csc-sticky-offset, 90px) + 16px);
    align-self:start;
    min-width:0;
    max-height:calc(100dvh - var(--csc-sticky-offset, 90px) - 32px);
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
  .csc-establishment-aside__sticky{
    position:static!important;
    top:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding-right:6px;
  }
  .csc-establishment-aside__identity{
    display:grid;
    gap:5px;
    padding:18px 18px 16px;
    border-bottom:1px solid rgba(40,170,226,.14);
  }
  .csc-establishment-aside__identity span{
    font-size:11px;
    font-weight:700;
    letter-spacing:.07em;
    text-transform:uppercase;
    color:var(--csc-text-light,#637580);
  }
  .csc-establishment-aside__identity strong{
    color:var(--csc-text,#182b39);
    font:inherit;
    font-size:clamp(17px,1.65vw,23px);
    font-weight:800;
    line-height:1.3;
    overflow-wrap:anywhere;
  }
}

/* CSC — finition coordonnées, horaires compacts, scrollbar accentuée. */
.csc-establishment-aside .csc-establishment-info--button{
  width:100%;display:flex;align-items:center;gap:14px;padding:15px 16px;
  margin:8px 0;border:1px solid rgba(40,170,226,.24);border-radius:14px;
  background:rgba(40,170,226,.055);text-align:left;cursor:pointer;
  transition:background .2s,border-color .2s,transform .2s;
}
.csc-establishment-aside .csc-establishment-info--button:hover{
  background:rgba(40,170,226,.12);border-color:#28AAE2;transform:translateY(-1px);
}
.csc-establishment-aside .csc-establishment-info--button:focus-visible,
.csc-establishment-hours__details summary:focus-visible{outline:3px solid #28AAE2;outline-offset:3px}
.csc-establishment-aside .csc-establishment-info--button strong{
  font-size:clamp(13px,1.1vw,15px);line-height:1.45;overflow-wrap:anywhere;
}
.csc-establishment-aside .csc-establishment-info--button .csc-establishment-info__icon{
  flex:0 0 44px;width:44px;height:44px;border-radius:12px;
  background:rgba(40,170,226,.13);color:#28AAE2;
}
.csc-establishment-hours__today{
  display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  padding:13px 14px;border-radius:12px;background:rgba(40,170,226,.075);
  font-size:12px;
}
.csc-establishment-hours__today>span{display:grid;gap:4px;color:var(--csc-text,#172b3a);font-weight:800}
.csc-establishment-hours__today em{font-size:10px;font-style:normal;font-weight:700;color:#1688bb}
.csc-establishment-hours__today strong{text-align:right;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.csc-establishment-hours__today .is-closed{opacity:.65}
.csc-establishment-hours__details{margin-top:10px}
.csc-establishment-hours__details summary{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  padding:11px 13px;border:1px solid var(--csc-border,rgba(0,0,0,.12));
  border-radius:10px;cursor:pointer;list-style:none;font-size:12px;font-weight:800;
  color:var(--csc-text,#172b3a);
}
.csc-establishment-hours__details summary::-webkit-details-marker{display:none}
.csc-establishment-hours__details[open] summary span{transform:rotate(180deg)}
.csc-establishment-hours__details summary span{transition:transform .2s;font-size:18px}
.csc-establishment-hours__details .csc-establishment-hours__list{padding:14px 2px 3px}
.csc-establishment-hours__list .is-today{font-weight:800;color:#1688bb}
@media(min-width:981px){
  .csc-establishment-aside{scrollbar-width:thin;scrollbar-color:#28AAE2 transparent}
  .csc-establishment-aside::-webkit-scrollbar{width:7px}
  .csc-establishment-aside::-webkit-scrollbar-track{background:rgba(40,170,226,.06);border-radius:12px}
  .csc-establishment-aside::-webkit-scrollbar-thumb{background:#28AAE2;border-radius:12px}
  .csc-establishment-aside::-webkit-scrollbar-thumb:hover{background:#1687ba}
}
@media(max-width:600px){
  .csc-establishment-hours__today{flex-direction:column;gap:7px}
  .csc-establishment-hours__today strong{text-align:left}
}

/* CSC — fiche premium : actions, barre flottante et dialogues */
.csc-establishment-actions{padding:7px!important;gap:7px!important;background:rgba(233,245,251,.65);border:1px solid rgba(74,147,200,.15);border-radius:20px;overflow:visible!important;flex-wrap:wrap!important;scrollbar-width:auto}
.csc-establishment-actions .csc-btn{font-size:12px!important;font-weight:800!important;min-height:44px!important;border-radius:13px!important;box-shadow:none!important;white-space:nowrap}
.csc-contact-dock{position:fixed;left:50%;bottom:20px;z-index:99950;width:min(1050px,calc(100vw - 30px));padding:10px 14px;display:flex;gap:14px;align-items:center;border:1px solid rgba(74,147,200,.20);border-radius:23px;background:rgba(255,255,255,.96);box-shadow:0 22px 66px rgba(24,52,75,.20);backdrop-filter:blur(18px);transform:translate(-50%,160%);opacity:0;pointer-events:none;transition:transform .3s ease,opacity .3s ease}
.csc-contact-dock.is-visible{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.csc-contact-dock__name{flex:0 0 auto;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--csc-text);font-weight:900;font-size:13px;padding:0 12px}
.csc-contact-dock__items{flex:1;min-width:0;display:flex;justify-content:space-evenly;gap:6px;overflow-x:auto;scrollbar-width:none}
.csc-contact-dock__items::-webkit-scrollbar{display:none}
.csc-contact-dock__items a,.csc-contact-dock__items button{flex:0 0 auto;position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:0 12px;background:transparent;border:0;border-radius:14px;color:var(--csc-text);font-size:12px;font-weight:800;text-decoration:none;cursor:pointer}
.csc-contact-dock__items a:hover,.csc-contact-dock__items button:hover,.csc-contact-dock__items :focus-visible{background:var(--csc-primary-soft);color:var(--csc-primary);outline-offset:2px}
.csc-contact-dock__items svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.csc-contact-dock__dot{width:6px;height:6px;border-radius:50%;background:#d37b65;position:absolute;top:6px;right:6px}.csc-contact-dock__dot.is-open{background:#26a26a;box-shadow:0 0 0 4px rgba(38,162,106,.12)}
.csc-contact-modal[hidden]{display:none!important}.csc-contact-modal{position:fixed;inset:0;z-index:100150;display:grid;place-items:center;padding:16px}
.csc-contact-modal__scrim{position:absolute;inset:0;background:rgba(16,34,47,.6);border:0;backdrop-filter:blur(5px);cursor:pointer}
.csc-contact-modal__panel{position:relative;z-index:1;width:min(480px,100%);max-height:min(82dvh,740px);overflow:auto;padding:28px;border-radius:27px;background:#fff;box-shadow:0 30px 100px rgba(10,40,65,.30);outline:none}
.csc-contact-modal__head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:20px}
.csc-contact-modal__head small{display:block;color:var(--csc-primary);font-weight:800;font-size:11px}
.csc-contact-modal__head h2{margin:4px 0 0;font-size:24px;color:var(--csc-text);letter-spacing:-.035em}
.csc-contact-modal__head button{height:40px;width:40px;flex:0 0 auto;border-radius:50%;border:1px solid var(--csc-border);background:#fff;font-size:25px;cursor:pointer}
.csc-contact-modal__detail{text-align:center;padding:18px 4px 12px}
.csc-contact-modal__detail a{display:block;padding:18px 10px;border-radius:15px;background:var(--csc-primary-soft);color:var(--csc-primary);font-size:clamp(18px,5vw,25px);font-weight:900;text-decoration:none;overflow-wrap:anywhere}
.csc-contact-modal__detail p{color:var(--csc-text-light);font-size:13px}
.csc-contact-modal__links{display:grid;gap:10px}.csc-contact-modal__links a{display:flex;gap:15px;align-items:center;border:1px solid var(--csc-border);border-radius:14px;padding:15px;color:var(--csc-text);font-weight:800;text-decoration:none}
.csc-contact-modal__links a span:last-child{margin-left:auto}.csc-contact-modal__links svg{height:22px;width:22px;fill:none;stroke:var(--csc-primary);stroke-width:1.8}
.csc-contact-dialog-open{overflow:hidden}
.csc-aside-gallery{margin-bottom:18px;border-bottom:1px solid var(--csc-border);padding-bottom:18px}
.csc-aside-gallery__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:var(--csc-text);font-size:12px}.csc-aside-gallery__head span{font-size:10px;color:var(--csc-text-light)}
.csc-aside-gallery__rail{display:flex;overflow-x:auto;gap:9px;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:5px}.csc-aside-gallery__rail button{flex:0 0 110px;height:92px;border:0;padding:0;border-radius:13px;overflow:hidden;cursor:pointer;scroll-snap-align:start}.csc-aside-gallery__rail img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:760px){.csc-contact-dock{bottom:max(12px,env(safe-area-inset-bottom));padding:8px;width:calc(100vw - 22px);border-radius:19px}.csc-contact-dock__name{display:none}.csc-contact-dock__items{justify-content:flex-start;scroll-snap-type:x proximity}.csc-contact-dock__items a,.csc-contact-dock__items button{scroll-snap-align:start;min-width:74px;min-height:58px;flex-direction:column;gap:4px;padding:5px 9px;font-size:10px}.csc-contact-modal{align-items:end;padding:0}.csc-contact-modal__panel{width:100%;max-height:82dvh;border-radius:26px 26px 0 0;padding:24px 20px max(26px,env(safe-area-inset-bottom))}.csc-establishment-actions{display:none!important}.csc-aside-gallery{display:none}}
@media(prefers-reduced-motion:reduce){.csc-contact-dock{transition:none}}

/* CSC 2026 — média sticky et contacts en panneaux */
.csc-establishment-media-side{min-width:0;position:relative;align-self:stretch}
.csc-establishment-media-sticky{position:sticky;top:110px;display:grid;gap:12px;padding:12px;border:1px solid var(--csc-border);border-radius:25px;background:#fff;box-shadow:0 18px 55px rgba(25,56,75,.10)}
.csc-establishment-media-cover{position:relative;border-radius:17px;overflow:hidden;aspect-ratio:1.18/1;background:var(--csc-primary-soft)}
.csc-establishment-media-cover img{display:block;width:100%;height:100%;object-fit:cover}
.csc-establishment-media-cover__caption{position:absolute;bottom:0;left:0;right:0;padding:30px 16px 14px;background:linear-gradient(transparent,rgba(10,26,38,.72));color:#fff;font-weight:900;font-size:14px}
.csc-establishment-media-cover__caption span{font-weight:400}
.csc-establishment-media-carousel{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:5px;align-items:center}
.csc-establishment-media-carousel__rail{display:flex;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:8px;padding:3px 0}
.csc-establishment-media-carousel__rail::-webkit-scrollbar{display:none}
.csc-establishment-media-thumb{width:92px;height:72px;flex:0 0 92px;padding:0;overflow:hidden;background:#fff;border:2px solid transparent;border-radius:11px;cursor:pointer;scroll-snap-align:start}
.csc-establishment-media-thumb:hover,.csc-establishment-media-thumb:focus-visible{border-color:var(--csc-primary)}
.csc-establishment-media-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.csc-establishment-media-arrow{border:0;background:var(--csc-primary-soft);border-radius:10px;height:34px;cursor:pointer;color:var(--csc-primary);font-size:25px}
.csc-establishment-media-hint{text-align:center;font-size:11px;color:var(--csc-text-light);margin:0 0 3px}
.csc-contact-modal__info{display:grid;gap:15px}
.csc-contact-modal__info p{line-height:1.65;color:var(--csc-text);font-weight:700;margin:0;overflow-wrap:anywhere}
.csc-contact-modal__action{display:block;padding:17px;border-radius:13px;background:var(--csc-primary);color:#fff!important;text-align:center;text-decoration:none;font-weight:900}
.csc-contact-modal__info small{text-align:center;color:var(--csc-text-light);overflow-wrap:anywhere}
.csc-contact-dock__next{flex:0 0 30px;height:46px;display:none;align-items:center;justify-content:center;border:0;border-radius:11px;background:var(--csc-primary-soft);color:var(--csc-primary);font-size:25px;cursor:pointer}
.csc-contact-dock__next[hidden]{display:none!important}
.csc-contact-dock__next.is-back{transform:rotate(180deg)}
@media (max-width:960px){.csc-establishment-media-sticky{position:static}}
@media (max-width:760px){.csc-contact-dock__next{display:flex}.csc-establishment-media-side{margin-top:15px}.csc-establishment-media-cover{aspect-ratio:1.4/1}.csc-establishment-media-sticky{padding:9px;border-radius:18px}}
/* Sticky uniquement tant que le contenu et les médias sont en colonnes. */
@media (min-width:1081px){.csc-establishment-media-sticky{position:sticky;top:110px}}
@media (max-width:1080px){.csc-establishment-media-sticky{position:static}}

/* CSC — horaires de la fiche dans la popup et identité mobile */
.csc-contact-hours__status{display:flex;align-items:center;gap:9px;margin:0 0 16px;padding:11px 13px;border-radius:13px;background:#f5f7f9;color:var(--csc-text);font-weight:800;font-size:13px}
.csc-contact-hours__status span{width:9px;height:9px;flex:none;border-radius:50%;background:#d17b69}
.csc-contact-hours__status.is-open span{background:#26a26a;box-shadow:0 0 0 4px rgba(38,162,106,.12)}
.csc-contact-hours__list{display:grid;gap:0;border:1px solid var(--csc-border);border-radius:15px;overflow:hidden}
.csc-contact-hours__day{display:flex;justify-content:space-between;align-items:baseline;gap:15px;padding:11px 13px;color:var(--csc-text);font-size:13px}
.csc-contact-hours__day+.csc-contact-hours__day{border-top:1px solid var(--csc-border)}
.csc-contact-hours__day strong{text-align:right;font-size:12px;font-weight:800;overflow-wrap:anywhere}
@media(max-width:760px){
  .csc-contact-dock{display:flex;flex-wrap:wrap;column-gap:6px;row-gap:4px;padding:9px 9px 7px}
  .csc-contact-dock__name{display:block;flex:0 0 100%;max-width:none;min-width:0;padding:1px 8px 6px;border-bottom:1px solid var(--csc-border);font-size:12px;font-weight:900;line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
  .csc-contact-dock__items{flex:1 1 0;min-width:0}
  .csc-contact-dock__next{flex:0 0 30px}
  .csc-contact-hours__day{padding:11px 10px;gap:8px}
}
