/* =========================================================
   Carnaval de Bordeaux 2027 — landing
   Mobile first. Positions des calques en % du key visual
   (1792 × 2400) pour rester calés à toutes les tailles.
   ========================================================= */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Rounded";
  src: url("../fonts/gotham-rounded-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Milky Mono";
  src: url("../fonts/milky-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #000c4d;
  --night-2: #02157c;
  --indigo: #100c58;
  --indigo-2: #1b1478;
  --violet: #6b3cf0;
  --violet-shadow: #4b25b8;
  --pink: #ff4fd2;
  --pink-2: #ff8cf4;
  --yellow: #ffd76b;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --radius-lg: 28px;
  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-mono: "Milky Mono", "Fredoka", ui-monospace, monospace;
  --font-body: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --kv-ratio: 1792 / 2400;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Pas de zoom au double tap sur mobile (ex. deux appuis rapides sur « + » dans la billetterie).
   Le zoom à deux doigts reste possible. */
* { touch-action: manipulation; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--indigo);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--indigo);
  padding: 10px 16px; border-radius: 999px; font-weight: 600;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(22px, env(safe-area-inset-top)) 16px 0;
  pointer-events: none;
}
/* Voile dégradé en haut : apparaît dès qu'on scrolle, pour garder le logo
   et le bouton lisibles par-dessus le contenu */
.topbar::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; z-index: -1;
  height: calc(110px + env(safe-area-inset-top));
  background: linear-gradient(180deg,
    rgba(8, 6, 48, .82) 0%,
    rgba(8, 6, 48, .6) 38%,
    rgba(8, 6, 48, .25) 70%,
    rgba(8, 6, 48, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  /* Rien du tout en haut de page : pas de flou tant qu'on n'a pas scrollé
     (Safari applique le flou même à opacité 0, d'où visibility + flou ajouté après) */
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.topbar.is-scrolled::before {
  opacity: 1;
  visibility: visible;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: opacity .35s ease, visibility 0s;
}
@media (min-width: 900px) { .topbar::before { height: 130px; } }
.topbar__brand {
  width: auto; height: 26px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 12, .45));
  -webkit-user-drag: none; user-select: none;
}
@media (min-width: 900px) { .topbar__brand { height: 34px; } }
/* Desktop : logo et bouton Billetterie décollés des bords de l'écran */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .topbar { padding-left: max(clamp(32px, 3.5vw, 64px), env(safe-area-inset-left)); padding-right: max(clamp(32px, 3.5vw, 64px), env(safe-area-inset-right)); }
}

/* Bouton Billetterie : petit nuage, même famille que « Je prends mes places » */
.cta-cloud {
  pointer-events: auto;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px;
  padding: 4px 20px 0;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--indigo); text-decoration: none;
  background: var(--white);
  box-shadow: 0 4px 0 var(--violet-shadow), 0 12px 28px rgba(0, 0, 0, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-cloud::before,
.cta-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--white);
}
.cta-cloud::before { width: 22px; height: 22px; left: 18%; top: -9px; }
.cta-cloud::after  { width: 30px; height: 30px; left: 46%; top: -13px; }
.cta-cloud span { position: relative; z-index: 1; }
.cta-cloud:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--violet-shadow), 0 16px 32px rgba(0, 0, 0, .4); }
.cta-cloud:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--violet-shadow), 0 6px 16px rgba(0, 0, 0, .3); }
/* Package (séjour avec hébergement, site booking) : même nuage, en violet, à côté de Billetterie */
.topbar__nav { display: flex; align-items: center; gap: 14px; }
.cta-cloud--alt { color: var(--white); background: var(--violet); }
.cta-cloud--alt::before, .cta-cloud--alt::after { background: var(--violet); }
.cta-cloud:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

/* Mobile et écrans en portrait : barre compacte posée au-dessus de l'affiche,
   pour ne cacher ni la lune ni les dates */
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .topbar { padding: max(12px, env(safe-area-inset-top)) 14px 0; }
  .topbar__brand { height: 20px; }
  .cta-cloud { min-height: 34px; padding: 3px 16px 0; font-size: 14px; }
  .cta-cloud::before { width: 18px; height: 18px; top: -7px; }
  .cta-cloud::after  { width: 24px; height: 24px; top: -10px; }
  .topbar__nav { gap: 10px; }
  .cta-cloud { padding-inline: 13px; }
  .hero { padding-top: calc(max(12px, env(safe-area-inset-top)) + 46px); }
  /* Le ciel de l'affiche se prolonge sous la barre : reflet du haut de l'image
     (raccord parfait, mêmes étoiles). Le reflet de la lune est repeint avec
     son halo seul, pour qu'il n'y ait qu'une lune. */
  .hero::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; z-index: 0;
    height: calc(max(12px, env(safe-area-inset-top)) + 46px);
    background:
      radial-gradient(circle 14.5vw at 83% 13.56vw,
        rgb(10, 102, 226) 0 38%, rgb(0, 56, 173) 50%, rgb(0, 39, 145) 62%,
        rgba(7, 34, 140, .6) 77%, rgba(4, 24, 122, 0) 100%),
      url("../img/kv-1200.webp") center top / 100% auto no-repeat;
    transform: scaleY(-1);
    pointer-events: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 40%, #0a2bb0 60%, var(--indigo) 100%);
}

.hero__ambient,
.hero__wide { display: none; }
.hero > .sky-stars { display: none; }

/* Jonction avec la section suivante : le premier plan flou de l'affiche
   (nuages / fleurs) se fond dans l'indigo au lieu d'être coupé net */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  z-index: 6;
  height: clamp(70px, 16%, 220px);
  background: linear-gradient(180deg,
    rgba(16, 12, 88, 0) 0%,
    rgba(16, 12, 88, .18) 30%,
    rgba(16, 12, 88, .55) 60%,
    rgba(16, 12, 88, .88) 84%,
    var(--indigo) 100%);
  pointer-events: none;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--kv-ratio);
  margin: 0 auto;
  isolation: isolate;
}
.stage__kv {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Calques typographiques (positions issues de l'affiche) */
.layer { position: absolute; height: auto; z-index: 4; overflow: visible; }
.layer--dates   { left: 40.52%; top: 7.6%;  width: 18.89%; }
.layer--logo    { left: 10.2%;  top: 16.9%;  width: 79.6%;
                  aspect-ratio: 846 / 296;
                  background: url("../img/logo.svg") center / contain no-repeat; }

/* Logo affiché en fond CSS : pas de « Enregistrer l'image », ni glisser-déposer,
   ni appui long sur mobile. Dissuasif seulement : une capture d'écran reste possible. */
.protected,
.stage img {
  -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.protected { pointer-events: none; }
.layer--tagline { left: 19.5%;  top: 37.6%;  width: 58%; }
/* extrusion violette du lettrage de l'affiche */
.layer--dates, .layer--logo, .layer--tagline {
  filter: drop-shadow(1px 2px 0 var(--violet-shadow));
}


/* ---------- Étoiles ---------- */
.stage__stars,
.sky-stars {
  position: absolute; inset: 0;
  pointer-events: none;
}
.stage__stars { z-index: 1; bottom: 55%; }

.star {
  position: absolute;
  width: var(--s, 2px); height: var(--s, 2px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 calc(var(--s, 2px) * 2.5) rgba(210, 225, 255, 0.9);
  opacity: 0.2;
  animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite;
  will-change: opacity, transform;
}
.star--sparkle::before,
.star--sparkle::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--s) * 5); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  transform: translate(-50%, -50%);
}
.star--sparkle::after { transform: translate(-50%, -50%) rotate(90deg); }

/* ---------- Lune ---------- */
.moon-glow {
  position: absolute; z-index: 1;
  left: 75.6%; top: 3.83%;
  width: 16.74%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 232, 255, .55) 0%, rgba(160, 200, 255, .22) 32%, rgba(120, 160, 255, 0) 66%);
  mix-blend-mode: screen;
  animation: breathe 7s ease-in-out infinite;
}

/* ---------- Grande roue ---------- */
.wheel {
  position: absolute; z-index: 2;
  left: 79.13%; top: 47.04%;
  width: 16.74%; aspect-ratio: 1;
  /* on ne montre que la partie haute : le bas est masqué par le personnage */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 53%, transparent 61%);
          mask-image: linear-gradient(180deg, #000 0%, #000 53%, transparent 61%);
}
.wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wheel__rotor {
  animation: spin 48s linear infinite;
  transform-origin: 50% 50%;
  will-change: transform;
}
.wheel__bulbs circle { animation: bulb 3s ease-in-out infinite; }

/* Personnage de droite : vidéo posée exactement sur son cadrage dans l'affiche
   (1340, 1380, 360×360 sur 1792×2400), bords fondus pour se raccorder au décor */
.kv-dragon {
  position: absolute; z-index: 1;
  left: 74.777%; top: 57.5%; width: 20.089%; height: 15%;
  object-fit: cover;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) { .kv-dragon { display: none; } }

/* ---------- Affiche vivante : clignements + flashs de selfie (boucle de 12 s) ----------
   Les paupières sont fermées « à plat » (scaleY 0) et descendent un instant depuis le
   haut de l'œil. Tous les effets partagent la même durée : la boucle est parfaite. */
.kv-anim {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.blink__lid {
  transform-box: fill-box; transform-origin: 50% 0;
  transform: scaleY(0);
  animation: 12s linear infinite;
}
.blink--left .blink__lid { animation-name: blink-left; }
.blink--girl .blink__lid { animation-name: blink-girl; }
.selfie { mix-blend-mode: screen; opacity: 0; animation: selfie 12s linear infinite; }

/* gauche : un clignement à 2 s, un double clignement à 8,4 s */
@keyframes blink-left {
  0%, 16.6%, 17.9%, 69.9%, 71.2%, 72.4%, 73.7%, 100% { transform: scaleY(0); }
  17.2%, 70.5%, 73% { transform: scaleY(1); }
}
/* fille : clignements à 5,1 s et 10,6 s (jamais en même temps que le personnage de gauche) */
@keyframes blink-girl {
  0%, 42.4%, 43.8%, 88.2%, 89.6%, 100% { transform: scaleY(0); }
  43.1%, 88.9% { transform: scaleY(1); }
}
/* selfie : double flash à 3,6 s, flash simple à 9,6 s */
@keyframes selfie {
  0%, 29.9%, 31.4%, 32.3%, 33.9%, 79.9%, 81.6%, 100% { opacity: 0; }
  30.2%, 32.6% { opacity: 1; }
  80.2% { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .blink__lid, .selfie { animation: none !important; }
}

/* ---------- Animations d'entrée ---------- */
.layer--dates, .layer--logo, .layer--tagline {
  opacity: 0;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards;
}
.layer--dates   { animation-delay: .15s; }
.layer--logo    { animation: rise .9s cubic-bezier(.2,.8,.2,1) .3s forwards, float 7s ease-in-out 1.4s infinite; }
.layer--tagline { animation-delay: .55s; }

/* ---------- Sections ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.display-title {
  margin: 0 auto 28px;
  max-width: 18ch;
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(26px, 7vw, 52px);
  line-height: 1.15;
  text-shadow: 0 3px 0 var(--violet-shadow);
  text-wrap: balance;
}

/* Accents dessinés (Milky Mono n'a pas de glyphes accentués) */
.acc { position: relative; display: inline-block; }
.acc::before,
.acc::after {
  position: absolute; left: 50%; top: -.02em;
  width: .085em; height: .3em;
  border-radius: .05em;
  background: currentColor;
  box-shadow: 0 .06em 0 var(--violet-shadow);
}
.acc--aigu::after  { content: ""; transform: translateX(-30%) rotate(48deg); }
.acc--grave::after { content: ""; transform: translateX(-70%) rotate(-48deg); }
.acc--circ::before { content: ""; height: .24em; transform: translateX(-115%) rotate(42deg); }
.acc--circ::after  { content: ""; height: .24em; transform: translateX(15%) rotate(-42deg); }

/* ---------- Compte à rebours ---------- */
.countdown-section {
  position: relative;
  padding: 58px 0 36px;   /* haut : place pour le bas du nuage « Je réserve » */
  text-align: center;
  background: var(--indigo);
  overflow: hidden;
}
.countdown-section .container { position: relative; z-index: 1; }
/* Titre du compte à rebours : plus discret que les grands titres */
.countdown-section .display-title { font-size: clamp(19px, 5.2vw, 40px); max-width: none; margin-bottom: 8px; }

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 2.4vw, 28px);
  margin: 0 auto 44px;
}
.countdown__unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: 1.3em;
  font-size: clamp(46px, 13vw, 132px);
}
.countdown__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1em;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  /* même relief que le logo, en plusieurs couches */
  text-shadow:
    0 .02em 0 #7a55f0,
    0 .04em 0 #6640e0,
    0 .06em 0 var(--violet-shadow),
    0 .14em .2em rgba(0, 0, 0, .35);
}
.countdown__num.is-tick { animation: tick .45s cubic-bezier(.3, 1.6, .5, 1); }
.countdown__label {
  margin-top: .45em;
  font-family: var(--font-mono);
  font-size: clamp(12px, 3.2vw, 18px);
  color: #cdbcff;
}
.countdown__bulb {
  flex: none;
  width: clamp(7px, 1.8vw, 14px); aspect-ratio: 1;
  margin-top: clamp(20px, 5.6vw, 58px);
  border-radius: 50%;
  background: #fff3c4;
  box-shadow: 0 0 0 3px rgba(255, 215, 107, .35), 0 0 18px 4px rgba(255, 196, 77, .75);
  animation: bulb-beat 1s ease-in-out infinite;
}
.countdown-live {
  margin: 0 auto 40px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 6vw, 40px);
  text-shadow: 0 4px 0 var(--violet-shadow);
}

/* Bouton nuage : le blanc gonflé du logo, posé sur son relief violet */
.btn-cloud {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px;
  padding: 6px 38px 0;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--indigo); text-decoration: none;
  background: var(--white);
  box-shadow: 0 6px 0 var(--violet-shadow), 0 22px 44px rgba(75, 37, 184, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-cloud::before,
.btn-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--white);
}
.btn-cloud::before { width: 38px; height: 38px; left: 20%; top: -15px; }
.btn-cloud::after  { width: 52px; height: 52px; left: 50%; top: -22px; }
.btn-cloud span { position: relative; z-index: 1; }
.btn-cloud:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--violet-shadow), 0 28px 52px rgba(75, 37, 184, .65); }
.btn-cloud:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--violet-shadow), 0 10px 22px rgba(75, 37, 184, .5); }

/* Bouton « Je réserve » : nuage dessiné en SVG (bosses irrégulières + mini-nuages
   détachés, comme autour du logo), à cheval sur le bas de l'affiche */
.hero-cta {
  position: relative; z-index: 10;
  display: flex; justify-content: center; align-items: flex-start;
  height: 0;
}
/* --y : à cheval sur le bas de l'affiche (le nuage fait 72 px de haut) ; si l'affiche
   dépasse l'écran en portrait (tablette), le nuage remonte pour rester dans le premier
   écran. À l'horizontale sur téléphone, il reste en bas pour ne pas masquer le logo.
   Affiche = 100vw × 2400/1792 + bande du haut (58 px). */
.hero-cta { --y: -42px; }
@media (max-aspect-ratio: 1/1) {
  .hero-cta { --y: min(-42px, calc(100svh - 133.93vw - 154px)); }
}
.cloud-cta {
  display: block;
  line-height: 0;
  border-radius: 40px;
  transform: translateY(var(--y));
  filter: drop-shadow(0 14px 22px rgba(16, 12, 88, .55));
  transition: transform .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cloud-cta svg { display: block; overflow: visible; }
.cloud-cta__body { fill: var(--white); }
.cloud-cta__depth { fill: var(--violet-shadow); transform: translateY(5px); transition: transform .15s ease; }
.cloud-cta text { font: 700 18px var(--font-display); fill: var(--indigo); }
.cloud-cta:hover { transform: translateY(calc(var(--y) - 3px)); filter: drop-shadow(0 18px 26px rgba(16, 12, 88, .65)); }
.cloud-cta:hover .cloud-cta__depth { transform: translateY(7px); }
.cloud-cta:active { transform: translateY(calc(var(--y) + 4px)); }
.cloud-cta:active .cloud-cta__depth { transform: translateY(1px); }
.cloud-cta:focus-visible { outline: 3px solid var(--pink); outline-offset: 6px; }

/* ---------- Billetterie ---------- */
.tickets {
  position: relative;
  padding: 56px 0 72px;
  text-align: center;
  background:
    radial-gradient(70% 45% at 50% 35%, rgba(107, 60, 240, .3) 0%, rgba(107, 60, 240, 0) 100%),
    linear-gradient(180deg, var(--indigo) 0%, var(--indigo-2) 100%);
}
.tickets__intro { margin: -12px auto 32px; max-width: 46ch; color: var(--text-soft); }
/* Paiement en plusieurs fois, mis en avant sous le titre */
.pay4x {
  display: inline-flex; align-items: center; gap: 12px;
  margin: -6px auto 36px;
  padding: 10px 22px 10px 16px;
  border-radius: 999px;
  font: 600 clamp(17px, 4.6vw, 21px)/1.1 var(--font-display);
  color: var(--indigo);
  background: var(--yellow);
  box-shadow: 0 4px 0 #c9922e, 0 0 28px 4px rgba(255, 215, 107, .35);
  transform: rotate(-2deg);
}
.pay4x strong { font-weight: 700; }
.pay4x__dots { display: inline-flex; gap: 4px; }
.pay4x__dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 2px 0 var(--violet-shadow);
}

/* ---------- Étape « Choix » : chaque pass est un ticket de fête foraine ---------- */
.choix {
  --stub: 84px;          /* hauteur du talon (mobile) */
  --notch: 13px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  scroll-margin-top: 80px;
}
.choix__group + .choix__group { margin-top: 40px; }
.choix__group-title {
  margin: 0 0 16px 4px;
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(17px, 4.4vw, 22px);
  line-height: 1.3;
  color: var(--yellow);
  text-shadow: 0 2px 0 var(--violet-shadow);
}

.ticket {
  position: relative;
  display: grid;
  grid-template-rows: 1fr var(--stub);
  margin-bottom: 18px;
  color: var(--indigo);
  filter: drop-shadow(0 6px 0 var(--violet-shadow));
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
/* Encoches de part et d'autre de la ligne de découpe */
.ticket__main,
.ticket__stub {
  -webkit-mask: var(--m); mask: var(--m);
}
.ticket__main {
  --m:
    radial-gradient(circle var(--notch) at 0 100%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 100%, #0000 97%, #000) right / 51% 100% no-repeat;
  padding: 22px 22px 20px;
  border-radius: 22px 22px 0 0;
  background:
    repeating-linear-gradient(135deg, rgba(107, 60, 240, .045) 0 2px, transparent 2px 9px),
    var(--white);
}
.ticket__stub {
  --m:
    radial-gradient(circle var(--notch) at 0 0, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 0, #0000 97%, #000) right / 51% 100% no-repeat;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 0 22px;
  border-radius: 0 0 22px 22px;
  background: var(--violet);
  color: var(--white);
}
/* Pointillés de découpe */
.ticket__stub::before {
  content: "";
  position: absolute; left: calc(var(--notch) + 6px); right: calc(var(--notch) + 6px); top: 0;
  border-top: 3px dotted rgba(255, 255, 255, .55);
}

.ticket__name {
  margin: 0 0 6px;
  font-family: "Gotham Rounded", "Nunito", var(--font-display); font-weight: 700;
  text-wrap: balance;
  font-size: clamp(20px, 5.4vw, 26px);
  line-height: 1.15;
}
.ticket__desc { margin: 0 0 16px; max-width: 46ch; font-size: 15px; line-height: 1.45; color: #4a4580; }
.ticket__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.ticket__amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 9vw, 42px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--violet);
  text-shadow: 0 2px 0 #d9ccff;
}
.ticket__fee { font-size: 13px; color: #6d68a0; }

/* Quantité : deux ampoules de manège */
.stepper { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.stepper__btn {
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  font: 700 26px/1 var(--font-display);
  color: var(--indigo);
  background: radial-gradient(circle at 35% 30%, #fffbe8 0 18%, #ffe9a8 45%, var(--yellow) 100%);
  box-shadow: 0 4px 0 #c9922e, 0 0 18px 2px rgba(255, 215, 107, .45);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .2s ease;
}
.stepper__btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 #c9922e, 0 0 26px 6px rgba(255, 215, 107, .6); }
.stepper__btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #c9922e, 0 0 12px 2px rgba(255, 215, 107, .4); }
.stepper__btn:disabled { opacity: .35; cursor: default; box-shadow: 0 4px 0 #c9922e; }
.stepper__btn:focus-visible, .choix__go:focus-visible, .choix__note a:focus-visible {
  outline: 3px solid var(--pink); outline-offset: 3px;
}
.stepper__qty {
  min-width: 1.4em;
  font: 700 34px/1 var(--font-display);
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 0 var(--violet-shadow);
}
.stepper__qty.is-tick { animation: tick .45s cubic-bezier(.3, 1.6, .5, 1); }

.ticket.is-picked { transform: rotate(-.6deg) translateY(-2px); }
.ticket.is-picked .ticket__stub { background: var(--pink); }
.ticket.is-picked .stepper__qty { text-shadow: 0 3px 0 #b02a90; }

.ticket__soon {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 0 auto;
  font: 600 17px/1 var(--font-display);
}
.ticket__bulb {
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff3c4;
  box-shadow: 0 0 0 3px rgba(255, 215, 107, .35), 0 0 14px 3px rgba(255, 196, 77, .75);
  animation: bulb-beat 1.4s ease-in-out infinite;
}
.ticket--sold_out .ticket__stub, .ticket--closed .ticket__stub { background: #4a4580; }
.ticket--sold_out .ticket__bulb, .ticket--closed .ticket__bulb { animation: none; background: #8d88bd; box-shadow: none; }

/* Chargement : silhouette d'un groupe (même forme que les vrais pass), barre du total cachée */
.bzskel .bzgroup__head { cursor: default; grid-template-columns: 1fr; }
.bzskel .bzskel__row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; min-height: 76px; }
.bzskel .skel { flex: none; margin: 0; }
.skel {
  display: block; height: 18px; border-radius: 999px;
  background: linear-gradient(90deg, #e6e0ff 0%, #f6f3ff 45%, #e6e0ff 90%) 0 0 / 200% 100%;
  animation: skel-shine 1.3s linear infinite;
}
.bzskel .bzgroup__head .skel { background-image: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.34) 45%, rgba(255,255,255,.18) 90%); }
.skel--title { width: min(62%, 300px); height: 22px; }
.skel--pill { width: 140px; height: 26px; }
.skel--line { width: min(58%, 280px); }
.skel--short { width: min(44%, 210px); }
.skel--btn { width: 112px; height: 44px; }
@keyframes skel-shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
.choix__list[aria-busy="true"] ~ .choix__bar { visibility: hidden; }

/* Récapitulatif : reste à portée de pouce pendant le choix */
.choix__bar {
  position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 28px;
  padding: 12px 12px 12px 22px;
  border-radius: 999px;
  background: rgba(16, 12, 88, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .4);
}
.choix__total { display: flex; flex-direction: column; margin: 0; line-height: 1.2; }
.choix__total span { font-size: 14px; color: var(--text-soft); }
.choix__total span.is-countdown { font-variant-numeric: tabular-nums; color: var(--yellow); font-weight: 600; }
.choix__total strong { font: 700 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.choix__go { min-height: 52px; padding: 4px 22px 0; font-size: 16px; box-shadow: 0 5px 0 var(--violet-shadow), 0 14px 30px rgba(75, 37, 184, .5); }
.choix__go::before { width: 28px; height: 28px; top: -10px; }
.choix__go::after { width: 38px; height: 38px; top: -15px; }
.choix__go:disabled { cursor: default; opacity: .55; transform: none; box-shadow: 0 5px 0 var(--violet-shadow); }
.has-pick .choix__go { background: var(--yellow); }
.has-pick .choix__go::before, .has-pick .choix__go::after { background: var(--yellow); }
.choix__go.is-leaving { opacity: .7; pointer-events: none; }

.choix__note { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--text-soft); }
.choix__note a { color: var(--white); text-underline-offset: 3px; }
.choix__error { padding: 28px; border-radius: 22px; background: rgba(255, 255, 255, .08); text-align: center; }

/* ---------- Frise des étapes (comme le widget Bizouk : 4 points sur une ligne) ---------- */
.frise {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 0 34px; padding: 0;
  list-style: none;
}
.frise__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
/* Le fil entre deux étapes */
.frise__step + .frise__step::before {
  content: "";
  position: absolute; z-index: 0;
  top: 13px; right: 50%; width: 100%;
  height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .16);
}
.frise__dot {
  position: relative; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%;
  background: #2c2591;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .14);
}
.frise__label { font: 600 13px/1.2 var(--font-display); color: rgba(255, 255, 255, .55); }
.frise__step.is-current .frise__label { color: var(--white); }

/* Guirlande (version tickets et proposition B) : des ampoules sur un fil */
.choix--tickets .frise__step + .frise__step::before,
.choix--b .frise__step + .frise__step::before {
  height: 14px; top: 2px;
  background: none;
  border-bottom: 2px solid rgba(255, 255, 255, .35);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.choix--tickets .frise__dot,
.choix--b .frise__dot {
  width: 18px; height: 22px; margin-top: 4px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: #3b33a8;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.choix--tickets .frise__dot::before,
.choix--b .frise__dot::before {   /* culot de l'ampoule */
  content: ""; position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  width: 8px; height: 7px; border-radius: 2px; background: #8d88bd;
}
.choix--tickets .is-current .frise__dot,
.choix--b .is-current .frise__dot {
  background: radial-gradient(circle at 40% 35%, #fffbe8 0 20%, #ffe9a8 50%, var(--yellow) 100%);
  box-shadow: 0 0 0 4px rgba(255, 215, 107, .25), 0 0 22px 6px rgba(255, 196, 77, .7);
  animation: bulb-beat 1.6s ease-in-out infinite;
}
.choix--tickets .frise__label,
.choix--b .frise__label { font: 400 clamp(11px, 3vw, 15px)/1.2 var(--font-mono); }
.choix--tickets .is-current .frise__label,
.choix--b .is-current .frise__label { color: var(--yellow); text-shadow: 0 2px 0 var(--violet-shadow); }

/* Proposition A : la ligne Bizouk, en couleurs Carnaval */
.choix--a .frise__step.is-current .frise__dot {
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(255, 79, 210, .25), 0 0 18px rgba(255, 79, 210, .6);
}
.choix--a .frise__step.is-current .frise__dot::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--white);
}

/* ---------- Propositions A et B : groupe de pass comme chez Bizouk ---------- */
.bzgroup {
  margin-bottom: 24px;
  border-radius: 24px;
  background: #f4f1ff;
  box-shadow: 0 6px 0 var(--violet-shadow), 0 24px 50px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.bzgroup__head {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px;
  width: 100%;
  padding: 20px 22px;
  border: 0; text-align: left; cursor: pointer;
  color: var(--white);
  background: linear-gradient(135deg, var(--violet) 0%, #5a2fd8 100%);
}
.bzgroup__name { font: 700 clamp(18px, 4.8vw, 22px)/1.2 var(--font-display); }
.bzgroup__from {
  grid-row: 2; justify-self: start;
  padding: 5px 12px; border-radius: 999px;
  font: 600 15px/1.2 var(--font-display);
  background: rgba(255, 255, 255, .16);
}
.bzgroup__caret {
  grid-row: 1 / 3; grid-column: 2;
  width: 14px; height: 14px;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translateY(-4px);
  transition: transform .2s ease;
}
.bzgroup__head[aria-expanded="false"] .bzgroup__caret { transform: rotate(-45deg); }
.bzgroup__head:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.bzgroup__body { padding: 14px; }
.bzgroup__body[hidden] { display: none; }

/* A : ligne produit */
.bzrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--white);
  color: var(--indigo);
  box-shadow: 0 2px 0 #ddd3ff;
  transition: box-shadow .2s ease;
}
.bzrow + .bzrow { margin-top: 12px; }
.bzrow.is-picked { box-shadow: 0 0 0 3px var(--pink), 0 2px 0 #ddd3ff; }
.bzrow__info { flex: 1 1 240px; min-width: 0; }
.bzrow__name { display: inline; margin: 0 6px 0 0; font: 700 17px/1.3 "Gotham Rounded", "Nunito", var(--font-display); }
.bzrow__more {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 13px var(--font-body); color: var(--violet); text-decoration: underline; text-underline-offset: 3px;
}
.bzrow__desc { margin: 6px 0 0; padding-left: 10px; border-left: 3px solid #ddd3ff; font-size: 14px; color: #4a4580; }
.bzrow__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 10px 0 0; }
.bzrow__price strong { font: 700 24px/1 var(--font-display); color: var(--violet); }
.bzrow__price span { font-size: 13px; color: #6d68a0; }
.bzrow__qty { margin-left: auto; }
.choix--a .stepper { gap: 0; padding: 4px; border-radius: 999px; background: #efeaff; }
.choix--a .stepper__btn {
  width: 40px; height: 40px; font-size: 22px;
  color: var(--white); background: var(--violet); box-shadow: none;
}
.choix--a .stepper__btn:hover:not(:disabled) { transform: none; box-shadow: none; background: var(--violet-shadow); }
.choix--a .stepper__btn:disabled { opacity: .3; box-shadow: none; }
.choix--a .stepper__qty { min-width: 2.2em; font-size: 20px; color: var(--indigo); text-shadow: none; }
.choix--a .ticket__soon { color: var(--violet); font-size: 15px; }

/* ---------- Tarif épuisé (proposition A) : 3 styles, data-soldout="1|2|3" ---------- */
.bzrow__was { font: 700 20px/1 var(--font-display); color: #8d88bd; text-decoration-thickness: 3px; }
.bzsold { margin: 0; }
.bzrow--sold_out .bzrow__name { color: #6d68a0; }

/* 1. Tampon : le prix rayé au feutre rose, un tampon « Épuisé » posé de travers */
[data-soldout="1"] .bzrow__was { text-decoration-color: var(--pink); }
[data-soldout="1"] .bzsold span {
  display: inline-block; padding: 5px 14px 4px;
  border: 3px solid var(--pink); border-radius: 12px;
  font: 700 19px/1 var(--font-display); letter-spacing: .03em; color: var(--pink);
  transform: rotate(-9deg);
  box-shadow: inset 0 0 0 2px rgba(255, 79, 210, .18);
}

/* 2. Bandeau : un ruban rose en travers du coin, la carte passe au second plan */
[data-soldout="2"] .bzrow--sold_out {
  position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, #fbfaff 0 10px, #f4f1ff 10px 20px);
}
[data-soldout="2"] .bzrow--sold_out::after {
  content: "Épuisé";
  position: absolute; top: 18px; right: -42px; width: 160px;
  padding: 6px 0 5px; text-align: center;
  font: 700 15px/1 var(--font-display); color: var(--white);
  background: var(--pink); box-shadow: 0 3px 0 #b02a90;
  transform: rotate(35deg);
}
[data-soldout="2"] .bzrow__was { text-decoration-color: var(--indigo); }
[data-soldout="2"] .bzsold { display: none; }

/* 3. Pastille : sobre, carte grisée et une pastille pleine à la place des boutons */
[data-soldout="3"] .bzrow--sold_out .bzrow__info { opacity: .7; filter: saturate(.5); }
[data-soldout="3"] .bzsold span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font: 700 16px/1 var(--font-display); color: var(--white);
  background: var(--pink); box-shadow: 0 3px 0 #b02a90;
}
[data-soldout="3"] .bzsold span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }

/* B : les tickets dans le groupe Bizouk */
.choix--b .bzgroup { background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.choix--b .bzgroup__head {
  background:
    radial-gradient(circle, #ffe9a8 0 2.5px, transparent 3px) 0 6px / 18px 10px repeat-x,
    linear-gradient(135deg, var(--violet) 0%, #5a2fd8 100%);
  padding-top: 26px;
}
.choix--b .bzgroup__body { padding: 18px 14px 6px; }

/* A et B : récapitulatif à la Bizouk (montant total + gros bouton) */
.choix--a .choix__bar,
.choix--b .choix__bar {
  position: static;
  flex-direction: column; align-items: stretch; gap: 18px;
  padding: 22px;
  border-radius: 24px;
}
.choix--a .choix__total,
.choix--b .choix__total { flex-direction: row; justify-content: space-between; align-items: baseline; }
.choix--a .choix__total span,
.choix--b .choix__total span { font-size: 16px; }
.choix--a .choix__go,
.choix--b .choix__go { width: 100%; min-height: 58px; font-size: 18px; }
.choix--a .choix__go::before, .choix--a .choix__go::after { display: none; }
.choix--a .choix__go { border-radius: 16px; }
.choix__orders { margin: 8px 0 0; text-align: center; font-size: 14px; }
.choix__orders a { color: var(--text-soft); text-underline-offset: 3px; }

/* ---------- Étapes 2 et 3 (Coordonnées, Paiement) : style de la proposition A ---------- */
.choix [hidden] { display: none !important; }
.frise__step.is-done .frise__dot { background: var(--violet); box-shadow: none; }
.frise__step.is-done .frise__dot::after {          /* coche */
  content: ""; position: absolute; left: 10px; top: 6px;
  width: 7px; height: 13px;
  border-right: 3px solid var(--white); border-bottom: 3px solid var(--white);
  transform: rotate(45deg);
}
.frise__step.is-done .frise__label { color: rgba(255, 255, 255, .8); }
.frise__step.is-done + .frise__step::before,
.frise__step.is-current:not(:first-child)::before { background: var(--violet); }

.choix__stage[hidden] { display: none; }
.coord__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 6px 2px;
  border: 0; background: none; cursor: pointer;
  font: 600 15px var(--font-display); color: var(--text-soft);
  text-decoration: underline; text-underline-offset: 4px;
}
.coord__back--top::before { content: "‹"; font-size: 22px; line-height: 0; text-decoration: none; }
.coord__back:hover { color: var(--white); }
.coord__back:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.bzgroup__head--static { cursor: default; grid-template-columns: 1fr; }
.coord__same {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 4px 14px;
  font: 600 15px/1.3 var(--font-display); color: var(--indigo);
  cursor: pointer;
}
.coord__same input, .coord__check input { width: 20px; height: 20px; accent-color: var(--violet); flex: none; }

.coord__att { display: block; }
.coord__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 6px; }
.coord__num {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  font: 700 16px/1 var(--font-display); color: var(--white);
  background: var(--pink);
  box-shadow: 0 3px 0 #b02a90;
}
.coord__head .bzrow__name { display: block; margin: 4px 0 6px; }
.coord__sessions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.coord__sessions span {
  padding: 4px 10px; border-radius: 999px;
  font: 500 12px/1.2 var(--font-body); color: var(--violet-shadow);
  background: #efeaff;
}

.coord__fields {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin: 16px 0 0; padding: 16px 0 0;
  border: 0; border-top: 2px dashed #e4dcff;
  min-width: 0;
}
.coord__fields[hidden] { display: none; }
.coord__fields legend {
  /* float : le titre devient un élément de la grille ; il prend toute la ligne */
  float: left; grid-column: 1 / -1; width: 100%; margin-bottom: 2px; padding: 0;
  font: 700 14px/1.2 var(--font-display); color: var(--violet);
}
.coord__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.coord__label { font: 600 14px/1.2 var(--font-display); color: var(--indigo); }
.coord__label em { font-style: normal; font-weight: 400; color: #6d68a0; }
.coord__req { color: #c4148f; }
.coord__field input,
.coord__field select,
.coord__field textarea {
  width: 100%; min-height: 50px;
  padding: 12px 16px;
  border: 2px solid #ddd3ff; border-radius: 14px;
  font: 500 16px/1.3 var(--font-body); color: var(--indigo);
  background: #fbfaff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.coord__field input:focus,
.coord__field select:focus,
.coord__field textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(107, 60, 240, .18);
  background: var(--white);
}
.coord__field input:user-invalid,
.coord__field select:user-invalid { border-color: var(--pink); }
.coord__check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--indigo); }

/* Liste d'attente (avant l'ouverture de la billetterie) */
.waitlist { margin-bottom: 24px; }
/* Encart rose : se distingue des cartes de tarifs (violettes) */
.waitlist .bzgroup { box-shadow: 0 6px 0 #b02a90, 0 24px 50px rgba(0, 0, 0, .35); }
.waitlist .bzgroup__head { background: linear-gradient(135deg, #f04bcb 0%, #c42fa0 100%); }
.waitlist .bzgroup__from { background: rgba(255, 255, 255, .2); }
.waitlist .bzgroup { background: #fff4fc; }  /* fond sur la carte (arrondie), pas sur l'intérieur (carré) */
.waitlist .coord__att { box-shadow: 0 2px 0 #f6cfe9; }
.waitlist .coord__field input, .waitlist .coord__phone select, .waitlist .coord__phone input, .waitlist .ss__trigger {
  border-color: #f3c6e6; background: #fffafd;
}
.waitlist .ss__trigger:hover { border-color: #e9a3d5; }
.waitlist[hidden] { display: none; }
.waitlist .coord__att { padding: 20px; }
.waitlist__intro { margin: 0 0 16px; font: 600 16px/1.4 var(--font-display); color: var(--indigo); text-wrap: pretty; }
.waitlist__error {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; color: #b02a90; background: rgba(255, 79, 210, .1);
}
.waitlist__error[hidden], .waitlist__done[hidden] { display: none; }
.choix .waitlist .choix__bar { position: static; flex-direction: column; align-items: stretch; margin-top: 18px; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.waitlist .choix__go {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px;
  font-size: 17px; color: var(--white); background: #c42fa0;
  box-shadow: 0 5px 0 #8f1f74, 0 14px 30px rgba(196, 47, 160, .35);
}
.waitlist .choix__go:hover { background: #d238ad; }
.waitlist .choix__go:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.waitlist .coord__field input:focus,
.waitlist .coord__phone select:focus, .waitlist .coord__phone input:focus,
.waitlist .ss__trigger:focus-visible, .waitlist .ss__trigger[aria-expanded="true"] {
  border-color: #c42fa0; box-shadow: 0 0 0 4px rgba(196, 47, 160, .18);
}
.waitlist .ss__chev { stroke: #c42fa0; }
.waitlist .choix__go:disabled { opacity: .7; cursor: default; }
.waitlist .choix__go::before, .waitlist .choix__go::after { display: none; }
.waitlist .choix__note { color: #6d68a0; }
.waitlist__done { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; text-align: center; color: var(--indigo); }
.waitlist__done strong { font: 700 20px/1.2 var(--font-display); }
.waitlist__done span:last-child { max-width: 36ch; font-size: 15px; line-height: 1.45; color: #4a4580; }
.waitlist__check { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #c42fa0; box-shadow: 0 4px 0 #8f1f74; }
.waitlist__check::after { content: ""; position: absolute; left: 18px; top: 11px; width: 10px; height: 20px; border-right: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(45deg); }

/* Questions de l'organisateur : liste façon shadcn/ui (Select), mêmes champs que le calendrier */
.ss { position: relative; }
.coord__field .ss__native {
  position: absolute; left: 16px; bottom: 0; z-index: -1;
  width: 1px; min-height: 0; height: 1px; padding: 0; border: 0;
  opacity: 0; pointer-events: none;
}
.ss__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 50px; padding: 12px 14px 12px 16px;
  border: 2px solid #ddd3ff; border-radius: 14px;
  font: 500 16px/1.3 var(--font-body); color: var(--indigo); text-align: left;
  background: #fbfaff; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ss__trigger:hover { border-color: #c9bcff; }
.ss__trigger:focus-visible,
.ss__trigger[aria-expanded="true"] {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(107, 60, 240, .18); background: var(--white);
}
.ss.is-invalid .ss__trigger { border-color: var(--pink); }
.ss__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss__value[data-empty] { color: #8d88b8; }
.ss__chev {
  flex: none; width: 18px; height: 18px;
  fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .15s ease;
}
.ss__trigger[aria-expanded="true"] .ss__chev { transform: rotate(180deg); }
.ss__list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 264px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  border-radius: 16px;
  background: var(--white); color: var(--indigo);
  box-shadow: 0 0 0 1px #e4dcff, 0 6px 0 #ddd3ff, 0 22px 44px rgba(16, 12, 88, .28);
  animation: ss-in .12s ease-out;
}
.ss__list[hidden] { display: none; }
.ss__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 10px 12px;
  border-radius: 10px;
  font: 500 15px/1.3 var(--font-body);
  cursor: pointer;
}
.ss__item.is-active { background: #f4f1ff; }
.ss__item[aria-selected="true"] { font-weight: 700; color: var(--violet); }
.ss__check { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.ss__item[aria-selected="true"] .ss__check { visibility: visible; }
@keyframes ss-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .ss__list { animation: none; } }

/* Date de naissance : sélecteur façon shadcn/ui (bouton + calendrier en fenêtre) */
.dp { position: relative; }
/* La carte ne doit pas rogner le calendrier ni la liste des réponses */
.bzgroup:has(.dp, .ss) { overflow: visible; }
/* coins de l'en-tête = coins de la carte (24 px, 20 px sur mobile) */
.bzgroup:has(.dp, .ss) > .bzgroup__head { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.dp__trigger {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 2px solid #ddd3ff; border-radius: 14px;
  font: 500 16px/1.3 var(--font-body); color: var(--indigo); text-align: left;
  background: #fbfaff; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dp__trigger:hover { border-color: #c9bcff; }
.dp__trigger:focus-visible,
.dp__trigger[aria-expanded="true"] {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(107, 60, 240, .18); background: var(--white);
}
.dp__icon { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; }
.dp__value[data-empty] { color: #8d88b8; }
.dp__pop {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0;
  width: 300px; max-width: calc(100vw - 32px);
  padding: 12px;
  border-radius: 18px;
  background: var(--white); color: var(--indigo);
  box-shadow: 0 0 0 1px #e4dcff, 0 6px 0 #ddd3ff, 0 22px 44px rgba(16, 12, 88, .28);
}
.dp__pop.is-right { left: auto; right: 0; }
.dp__pop[hidden] { display: none; }
.dp__head { display: grid; grid-template-columns: 34px 1fr auto 34px; gap: 6px; align-items: center; margin-bottom: 8px; }
.coord__field .dp__head select {
  min-height: 36px; width: 100%; padding: 4px 8px;
  border: 0; border-radius: 10px;
  font: 600 15px/1.2 var(--font-display); color: var(--indigo); text-transform: capitalize;
  background: #f4f1ff; cursor: pointer;
}
.coord__field .dp__head select:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; box-shadow: none; }
.dp__nav {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 10px; background: none; color: var(--violet); cursor: pointer;
}
.dp__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dp__nav:hover { background: #f4f1ff; }
.dp__nav:disabled { opacity: .3; cursor: default; background: none; }
.dp__nav:focus-visible, .dp__day:focus-visible, .dp__clear:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; }
.dp__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dp__grid th { padding: 4px 0 6px; font: 500 12px var(--font-body); color: #8d88b8; }
.dp__grid td { padding: 1px; text-align: center; }
.dp__day {
  width: 100%; aspect-ratio: 1; max-height: 38px;
  border: 0; border-radius: 10px;
  font: 500 14px var(--font-body); color: var(--indigo); background: none; cursor: pointer;
}
.dp__day:hover { background: #f4f1ff; }
.dp__day.is-outside { color: #b9b4dc; }
.dp__day.is-today { background: #efeaff; font-weight: 700; }
.dp__day.is-selected { color: var(--white); background: var(--violet); box-shadow: 0 2px 0 var(--violet-shadow); font-weight: 700; }
.dp__day:disabled { color: #d6d2ee; cursor: default; background: none; }
.dp__foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.dp__clear {
  padding: 6px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: 600 13px var(--font-display); color: var(--violet);
}
.dp__clear:hover { background: #f4f1ff; }
.coord__bar { margin-top: 8px; }

/* Coordonnées : bloc acheteur, téléphone avec indicatif, CGV */
.coord .bzgroup + .bzgroup { margin-top: 16px; }
.coord__fields--first { margin-top: 0; padding-top: 0; border-top: 0; }
.coord__phone { display: grid; grid-template-columns: minmax(0, 8.5em) 1fr; gap: 8px; }
.coord__phone select,
.coord__phone input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid #ddd3ff; border-radius: 14px;
  font: 500 16px/1.3 var(--font-body); color: var(--indigo); background: #fbfaff;
}
.coord__phone select { padding-right: 8px; text-overflow: ellipsis; }
.coord__phone select:focus,
.coord__phone input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(107, 60, 240, .18); background: var(--white); }
.coord__check { line-height: 1.35; cursor: pointer; }
.coord__check input { width: 20px; height: 20px; accent-color: var(--violet); flex: none; }
.coord__mine { margin: 14px 0 0; padding-top: 14px; border-top: 2px dashed #e4dcff; font: 600 15px var(--font-display); }
.coord__mine + .coord__fields { margin-top: 12px; padding-top: 0; border-top: 0; }
.coord__terms .bzgroup__body { padding: 18px; }
.coord__cgv { align-items: flex-start; font: 600 15px/1.4 var(--font-display); }
.coord__cgv input { margin-top: 1px; }
.coord__cgv a { color: var(--violet); text-underline-offset: 3px; }
.coord__keypoints { margin: 10px 0 0 30px; padding: 0; font-size: 13px; line-height: 1.45; color: #4a4580; }
.coord__keypoints li + li { margin-top: 4px; }
.coord__full { margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; color: #4a4580; background: #f4f1ff; }

/* Paiement : la page Bizouk dans un cadre aux couleurs du site */
.pay { text-align: center; }
.pay__note {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 34ch; text-wrap: balance; line-height: 1.35;
  margin: 0 0 16px;
  font: 600 15px var(--font-display); color: var(--text-soft);
}
.pay__lock {
  position: relative; flex: none; width: 12px; height: 10px; margin-top: 6px;
  border-radius: 2px; background: currentColor;
}
.pay__lock::before {
  content: ""; position: absolute; left: 2px; top: -7px;
  width: 8px; height: 8px;
  border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0;
  box-sizing: border-box;
}
.pay__frame {
  margin: 0 0 18px; padding: 8px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 6px 0 var(--violet-shadow), 0 24px 50px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.pay__frame iframe { display: block; width: 100%; min-height: 640px; border: 0; border-radius: 18px; background: var(--white); }
.pay__frame { position: relative; }
.pay__wait {
  display: none; position: absolute; inset: 8px; z-index: 1;
  place-items: center; margin: 0; border-radius: 18px;
  font: 600 16px var(--font-display); color: var(--violet); background: var(--white);
}
.pay.is-loading .pay__wait { display: grid; }
/* Mobile : le paiement Bizouk se casse sous 330 px de large ; le cadre déborde
   un peu sur les marges pour lui laisser toute la largeur de l'écran */
@media (max-width: 560px) {
  .pay__frame { margin-inline: -12px; padding: 0; }
  .pay__frame iframe { border-radius: 24px; }
  .pay__wait { inset: 0; border-radius: 24px; }
}
.pay .coord__back[hidden] { display: none; }

/* Choix du mode de paiement : comptant ou en plusieurs fois */
.paychoice { text-align: left; }
.paychoice .bzgroup__body { min-width: 0; margin: 0; border: 0; }
.paychoice__opt {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 12px 14px;
  cursor: pointer;
}
.paychoice__opt > input {
  grid-column: 1; grid-row: 1; align-self: center; width: 22px; height: 22px; margin: 0;
  accent-color: var(--pink); cursor: pointer;
}
.paychoice__opt > :not(input) { grid-column: 2; }
.paychoice__opt > .paychoice__plan, .paychoice__opt > .paychoice__note { grid-column: 1 / -1; }
.paychoice__opt:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.paychoice__head { grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.paychoice__head .bzrow__name { margin: 0; }
.paychoice__sum { font-size: 14px; color: #6d68a0; }
.paychoice__sum strong { font: 700 22px/1 var(--font-display); color: var(--violet); }
/* Échéancier : les pastilles du badge « 3 fois », reliées comme la frise */
.paychoice__plan {
  display: grid; grid-auto-columns: 1fr; grid-auto-flow: column;
  margin: 4px 0 0; padding: 14px 0 12px; list-style: none;
  border-radius: 14px; background: #f4f1ff;
}
.paychoice__plan li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.paychoice__plan li + li::before {
  content: ""; position: absolute; top: 6px; right: 50%; width: 100%;
  border-top: 2px dashed #c9bcff;
}
.paychoice__plan i {
  position: relative; z-index: 1; width: 14px; height: 14px; margin-bottom: 5px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 2px 0 var(--violet-shadow);
}
.paychoice__plan li:first-child i { background: var(--pink); box-shadow: 0 2px 0 #c42fa0; }
.paychoice__plan strong { font: 700 17px/1.1 var(--font-display); color: var(--indigo); }
.paychoice__plan span { font-size: 13px; color: #6d68a0; }
.paychoice__note { padding-left: 10px; border-left: 3px solid #ddd3ff; font-size: 13px; line-height: 1.45; color: #4a4580; }
.paychoice__bar { margin-top: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (min-width: 640px) {
  .coord__fields { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .coord__field--wide { grid-column: 1 / -1; }
  .coord__att { padding: 22px 24px; }
}

/* Proposition A sur mobile : carte du tarif compacte */
@media (max-width: 639px) {
  .coord__att { padding: 16px 14px; }
  .bzgroup { border-radius: 20px; }
  .bzgroup__head { padding: 13px 16px; gap: 6px 12px; }
  .bzgroup__name { font-size: 16px; }
  .bzgroup__from { padding: 3px 9px; font-size: 13px; }
  .bzgroup__caret { width: 11px; height: 11px; }
  .bzgroup__body { padding: 8px; }
  /* uniquement la ligne de tarif de l'étape Choix, pas les cartes Coordonnées */
  .choix--a .bzrow:not(.coord__att):not(.paychoice__opt):not(.bzskel__row) {
    display: grid; grid-template-columns: 1fr auto; align-items: end;
    gap: 8px 10px; padding: 12px 12px 12px 14px;
  }
  .choix--a .bzrow__name { font-size: 15px; }
  .choix--a .bzrow__price { margin-top: 6px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .choix--a .bzrow__price strong { font-size: 21px; }
  .choix--a .bzrow__price span { font-size: 12px; }
  .choix--a .bzrow__qty { margin: 0; }
  .choix--a .stepper { padding: 3px; }
  .choix--a .stepper__btn { width: 34px; height: 34px; font-size: 20px; }
  .choix--a .stepper__qty { min-width: 1.8em; font-size: 18px; }
  .choix--a .choix__bar,
  .choix--b .choix__bar { margin-top: 16px; padding: 14px 16px; gap: 12px; border-radius: 20px; }
  .choix--a .choix__go,
  .choix--b .choix__go { min-height: 50px; font-size: 17px; }
}

/* Talon à droite dès qu'il y a la place */
@media (min-width: 640px) {
  .choix { --stub: 220px; }
  .ticket { grid-template-rows: none; grid-template-columns: 1fr var(--stub); }
  .ticket__main {
    --m:
      radial-gradient(circle var(--notch) at 100% 0, #0000 97%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at 100% 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
    padding: 28px 30px;
    border-radius: 24px 0 0 24px;
  }
  .ticket__stub {
    --m:
      radial-gradient(circle var(--notch) at 0 0, #0000 97%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle var(--notch) at 0 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
    flex-direction: column;
    border-radius: 0 24px 24px 0;
  }
  .ticket__stub::before {
    left: 0; right: auto; top: calc(var(--notch) + 6px); bottom: calc(var(--notch) + 6px);
    border-top: 0; border-left: 3px dotted rgba(255, 255, 255, .55);
  }
    .stepper, .ticket__soon { margin: 0; }
  .ticket__soon { flex-direction: column; text-align: center; gap: 12px; }
  .choix__bar { padding-left: 30px; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 16px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
  background: var(--indigo-2);
}
.footer__logo { width: 110px; margin: 0 auto 12px; opacity: .9; }
.footer p { margin: 0; }
@media (max-width: 639px) { .footer__line { display: block; } }  /* mobile : 2e phrase à la ligne */

/* ---------- Tablette / desktop ---------- */
@media (min-width: 600px) {
}

/* Écran large et paysage : le key visual est centré, plein écran en hauteur,
   et se fond dans un ciel étoilé étendu sur les côtés. */
@media (min-width: 900px) {
  .layer--dates, .layer--logo, .layer--tagline { filter: drop-shadow(2px 4px 0 var(--violet-shadow)); }
}

@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero {
    height: 100svh;
    min-height: 640px;
    background: var(--night);
  }
  /* Fond de secours (écrans plus larges que le 16/9) : le visuel large étiré et flouté */
  .hero__ambient {
    position: absolute; inset: 0 -60px;
    background: url("../img/kv-wide-1920.webp") center / 100% 100% no-repeat;
    filter: blur(40px) saturate(1.05) brightness(.75);
  }
  .hero > .sky-stars { display: block; bottom: 45%; }

  /* Visuel 16/9 : hauteur = héro, centré. L'original occupe exactement la zone
     centrale (1792/4276 de la largeur), alignée sur .stage et ses calques. */
  .hero__wide {
    display: block;
    position: absolute; top: 0; bottom: 0; left: 50%;
    height: 100%;
    aspect-ratio: 4276 / 2400;
    transform: translateX(-50%);
    z-index: 0;
  }
  .hero__wide img { width: 100%; height: 100%; object-fit: cover; }

  .stage {
    height: 100%;
    width: auto;
  }
  .stage__kv { visibility: hidden; }
  .countdown-section { padding-top: 48px; }
  /* Écran large : l'affiche fait la hauteur de l'écran, le bouton se pose dedans, en bas */
  .hero-cta { --y: calc(-100% - 36px); }
}
@media (min-width: 900px) and (min-aspect-ratio: 4276/2400) {
  .hero__ambient { display: block; }
  /* bords adoucis seulement quand l'écran est plus large que le visuel : sinon
     le fondu laisse voir le fond flouté (bandes sombres sur les côtés) */
  .hero__wide {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
}

/* ---------- Keyframes ---------- */
@keyframes twinkle {
  0%, 100% { opacity: .15; transform: scale(.7); }
  50%      { opacity: 1;   transform: scale(1); }
}
@keyframes breathe {
  0%, 100% { opacity: .65; transform: scale(.96); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bulb {
  0%, 100% { opacity: 1; }
  50%      { opacity: .7; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.2%); }
}
@keyframes tick {
  0%   { transform: translateY(-.08em); }
  100% { transform: none; }
}
@keyframes bulb-beat {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 79, 210, .7); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 79, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 210, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .layer { opacity: 1 !important; }
  .star { opacity: .7; }
}

/* ---------- Bandeau cookies (pixel Meta) ---------- */
.consent {
  position: fixed; z-index: 60;
  left: 0; right: 0; bottom: 0;
  padding: 0 12px max(12px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.consent[hidden] { display: none; }
.consent__card {
  pointer-events: auto;
  max-width: 560px; margin: 0 auto;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: var(--indigo);
  border: 1.5px solid rgba(255, 140, 244, .35);
  box-shadow: 0 18px 48px rgba(0, 6, 40, .55);
  color: var(--white);
  font-family: var(--font-body);
  animation: consent-in .35s cubic-bezier(.2, .8, .3, 1);
}
.consent__title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.consent__text { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--text-soft); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent__btn {
  min-height: 46px; padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: transparent; color: var(--white);
  font: 600 15.5px/1 var(--font-display);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.consent__btn:hover { background: rgba(255, 255, 255, .1); }
.consent__btn--yes { border-color: var(--violet); background: var(--violet); box-shadow: 0 4px 0 var(--violet-shadow); }
.consent__btn--yes:hover { background: #7a50f5; }
.consent__btn:active { transform: translateY(2px); }
.consent__btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
body.has-consent .footer { padding-bottom: calc(200px + env(safe-area-inset-bottom)); }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .consent__card { animation: none; } }
@media (min-width: 900px) {
  .consent { left: auto; padding: 0 24px 24px; }
  .consent__card { width: 420px; }
}

.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px;
  margin-top: 10px !important;
  font-size: 12px;
}
.footer__legal a,
.footer__cookies {
  padding: 6px 2px;
  border: 0; background: none;
  color: var(--text-soft); font: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35);
  cursor: pointer;
}
.footer__legal a:hover,
.footer__cookies:hover { color: var(--white); text-decoration-color: currentColor; }
.consent__text a { color: var(--white); text-underline-offset: 3px; }

/* ---------- Page « Mentions légales et confidentialité » ---------- */
.legal {
  max-width: 680px; margin: 0 auto;
  padding: calc(110px + env(safe-area-inset-top)) 16px 64px;
  font-size: 16px; line-height: 1.65;
  color: var(--text-soft);
}
.legal h1 {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 7vw, 44px); line-height: 1.1;
  color: var(--white);
}
.legal__lead { margin: 0 0 6px; font-size: 18px; color: var(--white); }
.legal__date { margin: 0 0 8px; font-size: 13px; }
.legal h2 {
  margin: 40px 0 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25;
  color: var(--pink-2);
}
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--white); font-weight: 600; }
.legal a { color: var(--white); text-underline-offset: 3px; }
.legal code { font-size: .9em; color: var(--yellow); }
.legal mark.todo { background: rgba(255, 215, 107, .2); color: var(--yellow); padding: 0 4px; border-radius: 4px; }
.legal__ids { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; margin: 0 0 14px; }
.legal__ids dt { color: var(--white); font-weight: 600; margin-top: 8px; }
.legal__ids dd { margin: 0; }
@media (min-width: 600px) {
  .legal__ids { grid-template-columns: 200px minmax(0, 1fr); }
  .legal__ids dt { margin-top: 0; }
}
.legal__table { width: 100%; margin: 6px 0 14px; border-collapse: collapse; font-size: 14.5px; }
.legal__table caption { text-align: left; margin-bottom: 8px; color: var(--white); font-weight: 600; }
.legal__table th, .legal__table td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.legal__table th { color: var(--white); font-weight: 600; }
.legal__table td:last-child { white-space: nowrap; }
.legal__btn {
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .55);
  background: transparent; color: var(--white);
  font: 600 15px/1 var(--font-display); cursor: pointer;
}
.legal__btn:hover { background: rgba(255, 255, 255, .1); }
.legal__back { margin-top: 40px !important; }
.legal-page .footer { border-top: 1px solid rgba(255, 255, 255, .08); }
