/* Le charme du kebab : bandeaux de plats, braises, badge tournant, titres animés et avis en tickets.
   Effets inspirés de React Bits (Scroll Velocity, Particles, Circular Text, Split Text, Stack),
   recodés en CSS et JS simples car le site n'a pas d'étape de build. */
:root { --ember: 255, 154, 77; --ticket: #f2eadb; --ink: #13201a; --stamp: #245f57; }
/* Les blocs qui arrivent de la droite (--reveal-x) dépassaient de la page et créaient une barre horizontale.
   clip coupe le dépassement sans casser la section broche fixée au défilement (sticky). */
html, body { overflow-x: clip; }

/* 1. Bandeaux de plats qui défilent et accélèrent avec le défilement de la page */
.menu-marquee { position: relative; z-index: 2; overflow: hidden; padding: 26px 0; background: #050807; border-block: 1px solid #1d332b; }
.marquee-track { display: flex; width: max-content; animation: marquee-auto 38s linear infinite; }
.menu-marquee.is-reverse .marquee-track { animation-direction: reverse; }
.menu-marquee.is-driven .marquee-track { animation: none; transform: translate3d(var(--mx, 0px), 0, 0); }
.marquee-run { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); padding-right: clamp(22px, 3vw, 46px); }
.marquee-run span { color: #eef5ef; font: 900 clamp(44px, 6.6vw, 112px)/1 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.marquee-run i { color: var(--mint); font: 400 clamp(26px, 3.4vw, 52px)/1 var(--display); font-style: normal; display: inline-block; transform: rotate(var(--star-rot, 0deg)); }
.menu-marquee.is-outline .marquee-run span { color: transparent; -webkit-text-stroke: 1.5px #8fbfa9; }
@keyframes marquee-auto { to { transform: translate3d(-50%, 0, 0); } }

/* 2. Braises qui montent dans le hero et la section broche */
.embers { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }

/* 3. Badge rond qui tourne, collé comme un sticker sur le visuel du menu */
.spin-badge { position: absolute; z-index: 4; top: 22px; right: 22px; display: grid; place-items: center; width: clamp(104px, 9vw, 136px); aspect-ratio: 1; border-radius: 50%; background: rgba(8, 20, 15, .78); backdrop-filter: blur(10px); box-shadow: 0 12px 30px #0007; pointer-events: none; }
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 16s linear infinite; }
.spin-badge text { fill: #eaf3ec; font: 800 15.5px 'Onest', sans-serif; letter-spacing: 2.6px; }
.spin-badge img { width: 46%; height: 46%; border-radius: 50%; object-fit: cover; border: 2px solid #ffffff55; }
@keyframes badge-spin { to { transform: rotate(360deg); } }

/* 4. Titres qui montent mot par mot quand leur bloc apparaît */
/* Marges internes pour que le masque ne coupe pas les accents (À, Ç, Û). */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em 0 .14em; margin: -.2em 0 -.14em; }
/* Une fois les mots arrivés, on retire le masque : plus de coutures entre les mots ni d'accents coupés. */
.split-done .split-w { overflow: visible; }
.split-w > span { display: inline-block; transform: translateY(108%) rotate(5deg); transform-origin: left bottom; transition: transform .95s cubic-bezier(.16, 1, .3, 1) calc(.12s + var(--i, 0) * 60ms); }
.is-visible .split-w > span { transform: none; }

/* 5. Avis en pile de tickets de commande : on glisse celui du dessus pour voir le suivant */
.reviews-window .reviews-track { touch-action: pan-y; }
.reviews-window .review { inset: auto; top: 47%; left: 50%; display: block; width: min(470px, 84%); padding: 30px 32px 34px; border-radius: 6px; background: var(--ticket); color: var(--ink); opacity: 1; pointer-events: none; cursor: grab; user-select: none;
  z-index: calc(10 - var(--pos, 0));
  transform: translate(-50%, -50%) translate(calc(var(--pos, 0) * 20px + var(--drag, 0) * 1px), calc(var(--pos, 0) * -16px)) rotate(calc(var(--pos, 0) * 3.5deg - 1.5deg + var(--drag, 0) * .04deg)) scale(calc(1 - var(--pos, 0) * .06));
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .45s ease, filter .45s ease;
  filter: brightness(calc(1 - var(--pos, 0) * .14));
  box-shadow: 0 30px 60px #0009, 0 2px 0 #fff8 inset;
  -webkit-mask: radial-gradient(circle at 9px 0, #0000 6px, #000 6.5px) top / 18px 51% repeat-x, radial-gradient(circle at 9px 100%, #0000 6px, #000 6.5px) bottom / 18px 51% repeat-x;
  mask: radial-gradient(circle at 9px 0, #0000 6px, #000 6.5px) top / 18px 51% repeat-x, radial-gradient(circle at 9px 100%, #0000 6px, #000 6.5px) bottom / 18px 51% repeat-x; }
.reviews-window .review { display: flex; flex-direction: column; }
.reviews-window .review blockquote { flex: 1; }
.reviews-window .review.is-active { pointer-events: auto; }
.reviews-window .review.is-dragging { transition: none; cursor: grabbing; }
.reviews-window .review.is-thrown { z-index: 20; opacity: 0; transform: translate(-50%, -50%) translate(var(--throw-x, -140%), 60px) rotate(var(--throw-rot, -20deg)); transition: transform .5s cubic-bezier(.5, 0, .75, 0), opacity .5s ease; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 2px dashed #13201a40; color: #4a5a52; font: 800 10px 'Onest', sans-serif; letter-spacing: .16em; }
.reviews-window .review blockquote { max-width: none; color: var(--ink); font: 800 clamp(30px, 2.9vw, 46px)/1.04 var(--display); letter-spacing: -.035em; }
.reviews-window .review figcaption { margin-top: 24px; padding-top: 14px; border-top: 2px dashed #13201a40; color: #3d4b44; }
.reviews-window .review figcaption strong { color: var(--ink); }
.ticket-stamp { position: absolute; right: 20px; bottom: 16px; display: grid; place-items: center; width: 78px; aspect-ratio: 1; border: 3px solid var(--stamp); border-radius: 50%; color: var(--stamp); font: 900 12px/1.05 'Onest', sans-serif; letter-spacing: .08em; text-align: center; opacity: 0; transform: rotate(-16deg) scale(1.6); mix-blend-mode: multiply; }
.review.is-active .ticket-stamp { opacity: .88; transform: rotate(-16deg) scale(1); transition: opacity .25s ease .45s, transform .35s cubic-bezier(.3, 1.6, .5, 1) .45s; }
.reviews-hint { position: absolute; z-index: 5; top: 44px; left: 0; right: 0; margin: 0; color: #a7cdb2; font: 700 10px 'Onest', sans-serif; letter-spacing: .2em; text-align: center; text-transform: uppercase; }

@media (max-width: 760px) {
  .menu-marquee { padding: 18px 0; }
  .reviews-window .review { width: 86%; padding: 24px 22px 28px; }
  .reviews-window .review blockquote { font-size: clamp(26px, 7.4vw, 34px); }
  .ticket-stamp { width: 64px; right: 12px; bottom: 12px; font-size: 9px; }
  .reviews-hint { top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .menu-marquee.is-driven .marquee-track { animation: none; transform: none; }
  .spin-badge svg { animation: none; }
  .split-w > span { transform: none; transition: none; }
  .embers { display: none; }
  .reviews-window .review, .reviews-window .review.is-thrown { transition: none; }
  .review.is-active .ticket-stamp { transition: none; }
}

/* 6. Touches de blanc reprises du logo : pastille verte cerclée de blanc, lettres blanches. */
.section-index { display: inline-flex; align-items: center; gap: 9px; width: fit-content; justify-self: start; align-self: start; padding: 8px 15px 8px 11px; border: 2px solid #fff; border-radius: 999px; background: var(--stamp); color: #fff; }
.section-index::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; }
.menu-intro .section-index { min-width: 0; }
.hero-portal .cinema-copy a { border: 2px solid #fff; background: var(--stamp); }
.hero-portal .cinema-copy a:hover { background: #2f7a6b; }
.menu-note .btn { border: 2px solid #fff; }
.menu-selector button.is-active { box-shadow: inset 4px 0 #fff; }
.menu-selector button.is-active small { color: #fff; }
.marquee-run i { color: #fff; }
.menu-marquee.is-outline .marquee-run span { -webkit-text-stroke-color: #fff; }
.portal-frame { outline-color: rgba(255, 255, 255, .6); }
.spin-badge { background: var(--stamp); border: 2px solid #fff; }
.spin-badge text { fill: #fff; }
.spin-badge img { border: 3px solid #fff; }
.origin-heading h2, .menu-intro h2 { color: #fff; }
.origin-step.is-current h3 { color: #fff; }

/* 7. « Nous trouver » : carte compacte qui se déplie sur le plan (inspirée de Expand Map, 21st.dev). */
.visit-portal, .has-js .visit-portal { background: radial-gradient(circle at 70% 40%, #1c4a3f, #0b1d17 70%); }
.visit-portal::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#ffffff26 1.2px, transparent 1.4px); background-size: 26px 26px; pointer-events: none; }
.visit-card { top: 50%; bottom: auto; left: 45px; width: min(370px, calc(100% - 60px)); --reveal-y: 0px; margin-top: -170px; border: 2px solid #fff; background: var(--stamp); backdrop-filter: none; }
.visit-card > img { border: 3px solid #fff; }
.visit-card > div:first-of-type p { color: #fff; }
.visit-card-links a { background: #fff; color: var(--ink); }
.visit-card-links a:hover { background: #e3efe6; }
.visit-hours { color: #fff; }

.expand-map { --x: calc(50% + 205px); --y: 50%; --w: calc(100% - 500px); --h: calc(100% - 96px);
  position: absolute; z-index: 3; left: var(--x); top: var(--y); width: var(--w); height: var(--h); margin: 0; transform: translate(-50%, -50%);
  border: 3px solid #fff; border-radius: 30px; overflow: hidden; background: #f3f1ea; color: var(--ink); box-shadow: 0 30px 70px #0009;
  transition: width .85s cubic-bezier(.16, 1, .3, 1), height .85s cubic-bezier(.16, 1, .3, 1), border-radius .6s ease; }
.expand-map:not(.is-open) { --w: 340px; --h: 176px; border-radius: 24px; }
.expand-map-plan { position: absolute; inset: 0; opacity: 1; transform: scale(1); transition: opacity .6s ease .1s, transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.expand-map:not(.is-open) .expand-map-plan { opacity: 0; transform: scale(1.18); }
.expand-map-plan img, .expand-map-plan svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.expand-map-toggle { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start; width: 100%; padding: 20px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.expand-map-toggle:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
.em-panel { display: grid; gap: 4px; width: min(300px, 100%); padding: 0; border-radius: 18px; transition: background .4s ease, padding .4s ease, box-shadow .4s ease; }
.expand-map.is-open .em-panel { padding: 16px 18px; background: #fff; box-shadow: 0 14px 34px #13201a33; }
.em-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.em-icon { width: 22px; height: 22px; fill: none; stroke: var(--stamp); stroke-width: 1.8; stroke-linejoin: round; }
.em-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: #e3efe8; color: var(--stamp); font: 800 9px 'Onest', sans-serif; letter-spacing: .14em; }
.em-live i { width: 7px; height: 7px; border-radius: 50%; background: #2f9a6f; box-shadow: 0 0 0 0 #2f9a6f88; animation: em-live 1.8s ease-out infinite; }
@keyframes em-live { to { box-shadow: 0 0 0 9px #2f9a6f00; } }
.expand-map-toggle strong { font: 800 19px/1.1 var(--display); letter-spacing: -.02em; }
.expand-map-toggle small { color: #55665e; font: 600 11px 'Onest', ui-monospace, monospace; letter-spacing: .04em; }
.em-hint { margin-top: 10px; color: var(--stamp); font: 800 10px 'Onest', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.em-hint-close, .expand-map.is-open .em-hint-open { display: none; }
.expand-map.is-open .em-hint-close { display: inline; }
.expand-map figcaption { position: absolute; z-index: 2; right: 12px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: #ffffffe6; color: #55665e; font: 600 9px 'Onest', sans-serif; opacity: 0; transition: opacity .4s ease .5s; }
.expand-map.is-open figcaption { opacity: 1; }
.expand-map:not(.is-open):hover { transform: translate(-50%, -50%) rotateX(6deg) rotateY(-8deg) scale(1.03); }
.expand-map:not(.is-open) { transition-property: width, height, border-radius, transform; }

/* Plan en ligne (SVG injecté) : les rues se dessinent, le repère pulse. */
.plan-street path, .plan-service path, .plan-main path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.3, .6, .2, 1) .25s; }
.expand-map:not(.is-open) .plan-street path, .expand-map:not(.is-open) .plan-service path, .expand-map:not(.is-open) .plan-main path { stroke-dashoffset: 1; transition-duration: .2s; transition-delay: 0s; }
.plan-labels, .plan-pin { transition: opacity .5s ease 1.2s; }
.expand-map:not(.is-open) .plan-labels, .expand-map:not(.is-open) .plan-pin { opacity: 0; transition-delay: 0s; }
.pin-pulse { transform-box: fill-box; transform-origin: center; animation: pin-pulse 2s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(.6); opacity: .45; } to { transform: scale(2.4); opacity: 0; } }

@media (max-width: 760px) {
  .visit-card { top: auto; bottom: 12px; left: 12px; margin-top: 0; width: calc(100% - 24px); }
  .expand-map { --x: 50%; --y: 205px; --w: calc(100% - 24px); --h: 330px; border-width: 2px; border-radius: 22px; }
  .expand-map:not(.is-open) { --w: 270px; --h: 160px; }
  .em-panel { width: min(250px, 100%); }
  .expand-map.is-open .em-panel { padding: 12px 14px; }
  .expand-map-toggle { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .expand-map, .expand-map-plan, .em-panel, .plan-street path, .plan-service path, .plan-main path, .plan-labels, .plan-pin { transition: none; }
  .em-live i, .pin-pulse { animation: none; }
  .expand-map:not(.is-open):hover { transform: translate(-50%, -50%); }
}

/* 8. Le titre des avis était si serré que les lettres se chevauchaient (bandes claires entre B et L)
      et que la cédille du Ç tombait sur le R. On desserre juste assez. */
.reviews-heading h2 { letter-spacing: -.035em; line-height: 1; }

/* 9. Lisibilité : en minuscules, la police Anybody dessine un « r » qui se lit « n »
      (« Kadin », « foun », « Unfa »). Les titres en minuscules passent sur Onest ;
      Anybody reste pour les titres en MAJUSCULES, où elle est nette. */
.origin-step h3, .menu-visual-info h3, .menu-selector button strong,
.reviews-window .review blockquote, .expand-map-toggle strong {
  font-family: 'Onest', sans-serif; font-weight: 800; letter-spacing: -.035em;
}
/* L'apostrophe de « C'EST ICI » disparaissait entre les lettres serrées. */
.footer-call { letter-spacing: -.025em; }
