/* ════════════════════════════════════════════════════════════════════
   SNOWPONTERS — feuille de style
   Couleurs : uniquement celles du blason (et leurs nuances).
   ════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Unbounded"; src: url("../assets/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../assets/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Knewave"; src: url("../assets/fonts/knewave.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --violet: #8669B9;
  --prune: #8A45A8;
  --prune-fonce: #5E2C78;
  --lavande: #A996CC;
  --pale: #D9D2F6;
  --glace: #E3F7F8;
  --argent: #C9C9D2;
  --neige: #F7F4FF;
  --blanc: #fff;
  --nuit: #130A2A;
  --nuit-2: #1D1140;
  --nuit-3: #2A1A57;
  --encre: #0B0619;

  --titre: "Unbounded", "Arial Black", system-ui, sans-serif;
  --texte: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pinceau: "Knewave", "Unbounded", cursive;

  --gout: clamp(20px, 5vw, 72px);
  --glisse: cubic-bezier(.16, 1, .3, 1);        /* arrivée amortie, comme sur la neige */
  --elan: cubic-bezier(.7, 0, .2, 1);
  --rebond: cubic-bezier(.34, 1.56, .64, 1);
  --haut-barre: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--nuit); color: var(--neige);
  font: 400 clamp(1rem, .95rem + .25vw, 1.15rem)/1.55 var(--texte);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; overscroll-behavior-y: none;
}
body.charge, body.fige { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h3 { text-wrap: balance; }      /* titres sur plusieurs lignes : lignes de longueur égale */
p { text-wrap: pretty; }        /* paragraphes : pas de mot orphelin en fin de bloc (ignoré par les vieux navigateurs) */
:focus-visible { outline: 3px solid var(--glace); outline-offset: 3px; border-radius: 6px; }
.clair :focus-visible, .givre :focus-visible { outline-color: var(--prune); }
::selection { background: var(--prune); color: #fff; }

/* ── Décor fixe ─────────────────────────────────────────────────────── */
#fonds { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(#A996CC, #F7F4FF 60%); }
.fond { position: absolute; inset: -2%; background: 50% 50% / cover no-repeat; visibility: hidden; will-change: transform; translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -9px); transition: translate .6s cubic-bezier(.16, 1, .3, 1); }
.fond-sommet { background-image: url("../assets/img/sommet-l.webp"); transform-origin: 48% 55%; }
.plus .fond-station { background-image: url("../assets/img/station-l.webp"); background-position: 50% 100%; }
@media (max-aspect-ratio: 4/5) {
  .fond-sommet { background-image: url("../assets/img/sommet-p.webp"); transform-origin: 50% 57%; }
  .plus .fond-station { background-image: url("../assets/img/station-p.webp"); }
}
#montagne { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; }
.repli-montagne { display: none; }
.sans-webgl #montagne { display: none; }

#grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

main { position: relative; z-index: 1; overflow-x: clip; }
[hidden] { display: none !important; }

/* ── Écran d'entrée ─────────────────────────────────────────────────── */
#entree { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; align-content: center; gap: 28px;
  background: radial-gradient(90% 70% at 50% 42%, var(--nuit-3), var(--nuit) 62%, var(--encre)); }
.entree-blason { position: relative; width: min(62vw, 300px); aspect-ratio: 1; }
.quartier { position: absolute; inset: 0; background: url("../assets/img/blason-360.webp") center/contain no-repeat; opacity: 0; will-change: transform, opacity; }
.quartier:nth-child(1) { clip-path: polygon(50% 46.4%, 0% -40.2%, 100% -40.2%); }
.quartier:nth-child(2) { clip-path: polygon(50% 46.4%, 100% -40.2%, 150% 46.4%); }
.quartier:nth-child(3) { clip-path: polygon(50% 46.4%, 150% 46.4%, 100% 133%); }
.quartier:nth-child(4) { clip-path: polygon(50% 46.4%, 100% 133%, 0% 133%); }
.quartier:nth-child(5) { clip-path: polygon(50% 46.4%, 0% 133%, -50% 46.4%); }
.quartier:nth-child(6) { clip-path: polygon(50% 46.4%, -50% 46.4%, 0% -40.2%); }
.entree-eclat { position: absolute; left: 50%; top: 46.4%; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%; border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(217,210,246,.6) 40%, transparent 70%); opacity: 0; transform: scale(.2); }
.entree-texte { display: flex; gap: 14px; align-items: baseline; font: 500 .8rem/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--pale); }
.entree-pct { color: #fff; font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.entree-pct b { font-weight: 800; }

/* ── Barre du haut ──────────────────────────────────────────────────── */
#barre { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: var(--haut-barre);
  padding: env(safe-area-inset-top, 0) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  display: flex; align-items: center; gap: 10px; pointer-events: none; }
#barre > * { pointer-events: auto; }
.barre-logo img { width: 100%; height: 100%; }
.barre-logo { width: 52px; height: 52px; flex: none; transition: transform .5s var(--rebond); filter: drop-shadow(0 4px 10px rgba(19,10,42,.35)); }
.barre-logo:active { transform: scale(.88) rotate(-12deg); }
.barre-rapide { display: flex; gap: 6px; margin-left: auto; }
.puce { font: 700 .72rem/1 var(--titre); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 11px 13px; border-radius: 99px; color: var(--nuit); background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(19,10,42,.18);
  transition: transform .35s var(--rebond), background .25s; }
.puce:active { transform: scale(.93); }
.bouton-plan { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 16px; border-radius: 99px;
  background: var(--nuit); color: #fff; font: 700 .72rem/1 var(--titre); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(19,10,42,.3), inset 0 0 0 1px rgba(217,210,246,.25); transition: transform .35s var(--rebond); }
.bouton-plan:active { transform: scale(.94); }
.bp-icone { width: 30px; height: 30px; border-radius: 50%; background: var(--violet); display: grid; place-content: center; gap: 4px; transition: background .3s, transform .5s var(--glisse); }
.bp-icone i { display: block; width: 14px; height: 2px; border-radius: 2px; background: #fff; transition: transform .45s var(--glisse), opacity .2s; }
.bp-icone i:nth-child(2) { width: 9px; }
.plan-ouvert .bp-icone { transform: rotate(180deg); background: var(--prune); }
.plan-ouvert .bp-icone i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.plan-ouvert .bp-icone i:nth-child(2) { opacity: 0; }
.plan-ouvert .bp-icone i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 520px) { .bp-texte { display: none; } .bouton-plan { padding: 0 7px; } }

/* ── Altimètre ──────────────────────────────────────────────────────── */
#altimetre { position: fixed; z-index: 50; right: max(8px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; color: #fff; mix-blend-mode: normal;
  opacity: 0; transition: opacity .6s; }
.pret #altimetre { opacity: 1; }
.alti-rail { position: relative; width: 2px; height: min(38vh, 300px); border-radius: 2px; background: rgba(134,105,185,.35); }
.alti-rail::before { content: ""; position: absolute; left: -4px; right: -4px; top: 0; bottom: 0;
  background: repeating-linear-gradient(180deg, rgba(134,105,185,.8) 0 1px, transparent 1px 12.5%); }
.alti-fait { position: absolute; inset: 0; background: var(--prune); transform-origin: top; transform: scaleY(var(--a, 0)); }
.alti-skieur { position: absolute; left: 50%; top: calc(var(--a, 0) * 100%); margin: -11px 0 0 -11px; width: 22px; height: 22px;
  filter: drop-shadow(0 2px 6px rgba(19,10,42,.5)); }
.alti-skieur img { width: 26px; height: 26px; margin: -2px; max-width: none; transform: rotate(calc(var(--a, 0) * 720deg)); }
.alti-lecture { font: 800 .62rem/1 var(--titre); letter-spacing: .04em; writing-mode: vertical-rl; display: flex; gap: 4px; align-items: center;
  padding: 8px 4px; border-radius: 99px; background: var(--nuit); box-shadow: inset 0 0 0 1px rgba(217,210,246,.25); font-variant-numeric: tabular-nums; }
.alti-lecture span { color: var(--lavande); }
@media (min-width: 900px) {
  #altimetre { right: 22px; }
  .alti-skieur { width: 28px; height: 28px; margin: -14px 0 0 -14px; } .alti-skieur img { width: 36px; height: 36px; margin: -4px; }
  .alti-lecture { font-size: .7rem; padding: 10px 5px; }
}

/* ── Menu : plan des pistes ─────────────────────────────────────────── */
#plan { position: fixed; inset: 0; z-index: 55; visibility: hidden; pointer-events: none; overflow: hidden; }
.plan-ouvert #plan { visibility: visible; pointer-events: auto; }
.plan-fond { position: absolute; inset: 0; background:
    repeating-radial-gradient(circle at 78% 18%, transparent 0 34px, rgba(169,150,204,.07) 34px 35px),
    repeating-radial-gradient(circle at 12% 82%, transparent 0 46px, rgba(169,150,204,.06) 46px 47px),
    linear-gradient(160deg, var(--nuit-2), var(--nuit) 55%, var(--encre));
  clip-path: circle(0% at calc(100% - 44px) 32px); }
.plan-carte { position: absolute; inset: 0; overflow: hidden; padding: calc(var(--haut-barre) + 14px) var(--gout) max(22px, env(safe-area-inset-bottom)); display: grid;
  grid-template-columns: clamp(56px, 16vw, 220px) 1fr; grid-template-rows: auto 1fr; column-gap: clamp(10px, 3vw, 40px); max-width: 980px; margin: 0 auto; }
.plan-titre { grid-column: 1 / -1; font: 900 clamp(1.5rem, 6vw, 3rem)/1 var(--titre); font-style: italic; text-transform: uppercase; padding-bottom: clamp(10px, 2.4vh, 26px); }
.plan-titre span { display: block; font: 500 .78rem/1.4 var(--texte); font-style: normal; letter-spacing: .12em; color: var(--lavande); margin-top: 8px; }
.plan-blason { float: right; width: clamp(56px, 15vw, 96px); height: auto; margin: -6px 0 0 12px; filter: drop-shadow(0 8px 16px rgba(11,6,25,.5)); }
.plan-trace { width: 100%; height: 100%; overflow: visible; }
.plan-trace path { stroke: var(--pale); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; vector-effect: non-scaling-stroke; }
.plan-liste { display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.plan-liste a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: clamp(3px, .9vh, 9px) 0; position: relative; }
.plan-liste .balise { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff;
  font: 800 .7rem/1 var(--titre); box-shadow: 0 0 0 4px rgba(134,105,185,.25); transition: transform .4s var(--rebond), background .3s; }
.plan-liste li:nth-child(3n+2) .balise { border-radius: 9px; background: var(--prune); }
.plan-liste li:nth-child(3n) .balise { border-radius: 4px; transform: rotate(45deg); background: var(--glace); color: var(--nuit); }
.plan-liste li:nth-child(3n) .balise b { transform: rotate(-45deg); }
.plan-liste .nom { font: 800 clamp(1rem, 4.4vw, 1.75rem)/1.05 var(--titre); text-transform: uppercase; font-style: italic; transition: transform .45s var(--glisse), color .3s; }
.plan-liste .alt { margin-left: auto; font: 600 .78rem/1 var(--texte); letter-spacing: .08em; color: var(--lavande); white-space: nowrap; padding-right: 34px; }
.plan-liste a:hover .nom, .plan-liste a:focus-visible .nom { transform: translateX(10px); color: var(--glace); }
.plan-liste a:hover .balise { transform: scale(1.18); }
.plan-liste li:nth-child(3n) a:hover .balise { transform: rotate(45deg) scale(1.18); }
.plan-liste a:active .nom { transform: translateX(4px) scale(.98); }

/* ── Éléments communs ───────────────────────────────────────────────── */
.cadre { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gout); position: relative; z-index: 2; }
.bloc { position: relative; padding: clamp(84px, 14vh, 170px) 0 clamp(90px, 15vh, 180px); }
.clair { background: var(--neige); color: var(--nuit); }
.nuit { background: var(--nuit); color: var(--neige); }
.givre { background: linear-gradient(180deg, var(--neige), var(--glace) 45%, var(--pale)); color: var(--nuit); }
.nuit::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(70% 40% at 85% 0%, rgba(138,69,168,.28), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(134,105,185,.2), transparent 70%); }

.crete { position: absolute; left: 0; right: 0; height: clamp(36px, 7vw, 110px); background: var(--nuit); pointer-events: none; z-index: 1; transform-origin: bottom; }
.crete-haut { bottom: calc(100% - 1px);
  clip-path: polygon(0 100%, 0 62%, 6% 40%, 11% 58%, 17% 22%, 22% 46%, 27% 30%, 34% 64%, 40% 36%, 45% 52%, 52% 8%, 58% 44%, 63% 28%, 69% 60%, 75% 34%, 81% 50%, 87% 16%, 92% 48%, 96% 36%, 100% 58%, 100% 100%); }

.repere { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--texte); letter-spacing: .14em; text-transform: uppercase; margin-bottom: clamp(16px, 3vh, 28px); }
.repere b { font: 800 .7rem/1 var(--titre); letter-spacing: .02em; padding: 8px 11px; border-radius: 99px; background: var(--prune); color: #fff; white-space: nowrap; }
.nuit .repere span, .clair-sur-nuit span { color: var(--pale); }
.clair .repere span, .givre .repere span { color: var(--prune-fonce); }

.titre { font: 900 clamp(2.15rem, 9.4vw, 6.6rem)/.94 var(--titre); font-style: italic; text-transform: uppercase; letter-spacing: -.025em; text-wrap: balance; }
.titre .ligne-masque, .ts-lignes .ligne-masque { overflow: hidden; display: block; padding: .06em .1em .1em 0; margin: -.06em -.1em -.1em 0; }
.entete { margin-bottom: clamp(34px, 6vh, 70px); max-width: 900px; }
.entete-texte { margin-top: clamp(14px, 2.4vh, 24px); max-width: 34em; font-size: 1.08em; }
.nuit .entete-texte { color: var(--pale); }
.clair .entete-texte { color: #3d2c66; }

.bouton { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 99px;
  font: 800 .82rem/1 var(--titre); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: scale .45s var(--rebond), box-shadow .3s; -webkit-tap-highlight-color: transparent; }
.bouton span { position: relative; z-index: 2; display: inline-block; transition: transform .45s var(--glisse); }
.bouton::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--glisse); }
.bouton.plein { background: var(--prune); color: #fff; box-shadow: 0 10px 26px rgba(138,69,168,.38); }
.bouton.plein::before { background: var(--nuit); }
.bouton.contour { color: var(--nuit); box-shadow: inset 0 0 0 2px var(--nuit); background: rgba(255,255,255,.4); }
.bouton.contour::before { background: var(--nuit); }
.nuit .bouton.contour, #station .bouton.contour { color: #fff; box-shadow: inset 0 0 0 2px var(--pale); background: rgba(19,10,42,.35); }
.nuit .bouton.contour::before, #station .bouton.contour::before { background: var(--pale); }
.bouton.grand { min-height: 66px; padding: 0 44px; font-size: 1.05rem; }
.bouton:active { scale: .93; }
@media (hover: hover) {
  .bouton:hover::before { transform: translateY(0); }
  .bouton.contour:hover { color: #fff; }
  .nuit .bouton.contour:hover, #station .bouton.contour:hover { color: var(--nuit); }
  .puce:hover { background: #fff; transform: translateY(-2px); }
}
.onde { position: absolute; z-index: 1; border-radius: 50%; background: rgba(255,255,255,.45); transform: translate(-50%, -50%) scale(0); pointer-events: none; animation: onde .6s var(--glisse) forwards; }
@keyframes onde { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

.pastille { display: inline-flex; align-items: center; gap: 6px; font: 800 .62rem/1 var(--titre); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; white-space: nowrap; }
.pastille::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pastille.miam { background: var(--pale); color: var(--prune-fonce); }
.pastille.anim { background: var(--glace); color: #2c3f66; }
.pastille.hotline { background: var(--prune); color: #fff; }
.pastille.secret { background: var(--nuit); color: var(--glace); box-shadow: inset 0 0 0 1px var(--lavande); }
.pastille.secret::before { border-radius: 1px; transform: rotate(45deg); }

.verre { background: rgba(255,255,255,.42); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 18px 50px rgba(19,10,42,.16); }

.trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.trace path { fill: none; stroke: var(--pale); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ── HERO ───────────────────────────────────────────────────────────── */
.hero { position: relative; height: 430vh; height: 430svh; }
.hero-fixe { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; color: var(--nuit); }
.hero-titre { position: relative; z-index: 3; width: 100%; min-width: 0; max-width: 100vw; padding: calc(var(--haut-barre) + 8px) var(--gout) 9vh; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-branche { position: absolute; z-index: 1; top: -3%; width: clamp(150px, 44vw, 430px); height: auto; pointer-events: none; filter: drop-shadow(0 20px 22px rgba(19,10,42,.28)); will-change: transform;
  translate: calc(var(--px, 0) * 30px) calc(var(--py, 0) * 16px); transition: translate .5s cubic-bezier(.16, 1, .3, 1); animation: balance 6s ease-in-out infinite; }
.hero-branche.bg { left: -4%; transform-origin: 0 0; }
.hero-branche.bd { right: -4%; transform-origin: 100% 0; animation-delay: -2.4s; }
@keyframes balance { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.4deg; } }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { .hero-branche { width: min(30vw, 62vh); top: -6%; } }
.hero-texte { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.hero-blason { width: clamp(118px, 40vw, 200px); max-width: 26svh; aspect-ratio: 1; margin-bottom: clamp(10px, 2.2vh, 22px); perspective: 800px; will-change: transform; }
.hb-flotte { width: 100%; height: 100%; transform-style: preserve-3d; }
.hero-blason img { width: 100%; height: 100%; filter: drop-shadow(0 16px 26px rgba(94,44,120,.4)); animation: flotte 5.5s ease-in-out infinite; }
@keyframes flotte { 0%, 100% { transform: translateY(-1.5%) rotate(-2.5deg); } 50% { transform: translateY(2.5%) rotate(2.5deg); } }
.blason-vol { position: fixed; z-index: 81; pointer-events: none; filter: drop-shadow(0 16px 26px rgba(11,6,25,.5)); }
.hero-sur { overflow: hidden; margin-bottom: clamp(10px, 2.2vh, 22px); }
.hero-sur span { display: inline-block; font: 700 clamp(.62rem, 2.4vw, .8rem)/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; border-radius: 99px; background: var(--nuit); color: #fff; }
.geant { position: relative; font: 900 clamp(2.4rem, 14.4vw, 5.6rem)/.86 var(--titre); font-style: italic; text-transform: uppercase; letter-spacing: -.035em; color: var(--nuit); }
.geant-l { display: block; overflow: hidden; padding: .08em .12em .08em .04em; margin: -.08em -.12em -.08em -.04em; white-space: nowrap; }
.geant-2 { color: var(--prune); }
.geant-les { position: absolute; z-index: 2; left: -.1em; top: -.52em; font: 400 .42em/1 var(--pinceau); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--prune); transform: rotate(-9deg);
  -webkit-text-stroke: 5px #fff; paint-order: stroke fill; }
.car { display: inline-block; will-change: transform; }
.hero-accroche { max-width: 26em; margin-top: clamp(14px, 2.6vh, 26px); font-weight: 500; font-size: clamp(.98rem, 3.9vw, 1.2rem); line-height: 1.4; color: #2b1c52; text-wrap: balance; }
.rebours { margin-top: clamp(16px, 3vh, 30px); display: flex; flex-direction: column; align-items: center; }
.rebours-titre { display: inline-flex; align-items: center; gap: 8px; font: 700 .66rem/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--prune-fonce); margin-bottom: 10px; }
.rebours-titre i { width: 8px; height: 8px; border-radius: 50%; background: var(--prune); box-shadow: 0 0 0 0 rgba(138,69,168,.6); animation: pouls 1.6s infinite; }
/* panneau de chronométrage, comme au bas d'une piste de course */
.rebours-cases { position: relative; display: inline-flex; align-items: flex-start; gap: clamp(4px, 1.4vw, 10px); padding: 15px clamp(14px, 4vw, 24px) 11px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, var(--nuit-2), var(--nuit) 60%); box-shadow: 0 18px 40px rgba(19,10,42,.32), inset 0 0 0 1px rgba(217,210,246,.18), inset 0 1px 0 rgba(255,255,255,.12); }
.rebours-cases::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--prune) 0 14px, var(--lavande) 14px 28px); }
.rebours-cases::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -9px; background: rgba(11,6,25,.55); box-shadow: 0 1px 0 rgba(255,255,255,.05); pointer-events: none; }
.case { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.case > span { display: block; font: 700 .54rem/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--lavande); margin-top: 7px; }
.chiffres { display: flex; justify-content: center; font: 900 clamp(1.9rem, 9.4vw, 3.1rem)/1 var(--titre); font-variant-numeric: tabular-nums; color: var(--glace); text-shadow: 0 0 18px rgba(169,150,204,.55); }
.case-j .chiffres { color: #fff; }
.rebours-sep { font: 900 clamp(1.5rem, 7vw, 2.4rem)/1 var(--titre); color: var(--prune); padding-top: .08em; animation: battement 1s steps(1) infinite; }
@keyframes battement { 50% { opacity: .25; } }
.rebours-trait { align-self: stretch; width: 1px; margin: 2px clamp(2px, 1vw, 6px) 14px; background: linear-gradient(180deg, transparent, rgba(217,210,246,.4), transparent); }
.chf { position: relative; display: inline-block; width: .74em; height: 1em; overflow: hidden; }
.chf b { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-weight: 900; }
.hero-liens .bouton { padding: 0 20px; font-size: .76rem; }
.hero-liens { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(18px, 3.2vh, 32px); }
.hero-defile { position: absolute; z-index: 3; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 800 .64rem/1 var(--titre); letter-spacing: .2em; text-transform: uppercase; color: var(--nuit); }
.hero-defile i { width: 2px; height: 34px; background: linear-gradient(var(--nuit), transparent); transform-origin: top; animation: defile 1.8s var(--elan) infinite; }
@keyframes defile { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1) translateY(34px); opacity: 0; } }

.temps { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; text-align: center; padding: 0 var(--gout); pointer-events: none; visibility: hidden; }
.td-petit { font: 400 clamp(1.5rem, 7vw, 2.6rem)/1 var(--pinceau); color: var(--prune); transform: rotate(-4deg); }
.td-grand { display: flex; align-items: center; justify-content: center; gap: .06em; font: 900 clamp(2.8rem, 15vw, 12.5rem)/.9 var(--titre); font-style: italic; letter-spacing: -.05em; color: var(--nuit); }
.td-grand span { display: inline-block; }
.td-grand i { font-style: normal; color: var(--prune); font-size: .5em; }
.td-mois { font: 800 clamp(.9rem, 4.6vw, 1.7rem)/1 var(--titre); letter-spacing: .32em; text-transform: uppercase; color: var(--nuit); margin-top: 1.2vh; }
.temps-slogan { gap: clamp(18px, 4vh, 40px); }
.ts-lignes { font: 900 clamp(1.9rem, 9.6vw, 6rem)/1 var(--titre); font-style: italic; text-transform: uppercase; letter-spacing: -.03em; color: var(--nuit); }
.ts-lignes .ligne-masque:nth-child(2) > * { color: var(--prune); }
.ts-lignes .ligne-masque:last-child > * { color: #fff; background: var(--nuit); padding: .04em .22em .08em; border-radius: .12em; transform: rotate(-2deg); margin-top: .12em; }
.temps-slogan .ts-carte { max-width: 420px; padding: 18px 22px; text-align: left; display: grid; gap: 6px; }
.temps-slogan .ts-carte b { font: 800 .85rem/1.1 var(--titre); text-transform: uppercase; }
.temps-slogan .ts-carte span { font-size: .98rem; color: #2b1c52; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* ordinateur : le texte à gauche, le blason en grand à droite */
  .hero-titre { flex-direction: row-reverse; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 90px); text-align: left; padding-bottom: 6vh; }
  .hero-texte { align-items: flex-start; flex: 0 1 auto; }
  .hero-blason { flex: none; width: min(34vw, 58vh); max-width: none; margin: 0; }
  .geant { font-size: clamp(3.6rem, min(7.6vw, 15vh), 9.5rem); }
  .geant-les { left: -.05em; }
  .hero-sur { margin-bottom: clamp(24px, 5vh, 48px); }
  .rebours-cases, .hero-liens { justify-content: flex-start; }
  .hero-accroche { text-wrap: pretty; }
}

/* ── Bandeau défilant ───────────────────────────────────────────────── */
.bandeau { position: relative; z-index: 3; background: var(--prune); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.6deg) scale(1.04); margin: -26px 0; box-shadow: 0 14px 40px rgba(19,10,42,.3); }
.bandeau-piste { display: flex; width: max-content; will-change: transform; font: 900 clamp(1.05rem, 4.4vw, 1.9rem)/1 var(--titre); font-style: italic; text-transform: uppercase; white-space: nowrap; }
.bandeau-piste span { display: inline-flex; align-items: center; gap: .7em; padding-right: .7em; }
.bandeau-piste svg { width: .9em; height: .9em; color: var(--glace); }
.bandeau-piste em { font-style: italic; color: var(--prune); -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }

/* ── BULLETIN ───────────────────────────────────────────────────────── */
.bulletin-grille { display: grid; gap: clamp(36px, 7vh, 70px); }
.bulletin-prose { margin-top: clamp(18px, 3.4vh, 34px); font: 500 clamp(1.25rem, 5.2vw, 2.1rem)/1.28 var(--texte); letter-spacing: -.01em; max-width: 21em; }
.bulletin-prose .mot { opacity: .16; transition: opacity .3s linear; }
.bulletin-prose .mot.lu { opacity: 1; }
.bulletin-blason { display: grid; justify-items: center; gap: 14px; perspective: 900px; }
.relief { position: relative; width: min(74vw, 440px); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.relief-logo { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(40px); filter: drop-shadow(0 22px 34px rgba(94,44,120,.35)); }
.relief-ombre { position: absolute; inset: 14% 10% 2%; border-radius: 50%; background: radial-gradient(closest-side, rgba(94,44,120,.4), transparent); transform: translateZ(-60px) translate(calc(var(--ry, 0deg) * -1.2px / 1deg), calc(var(--rx, 0deg) * 1.2px / 1deg)); filter: blur(14px); }
.relief-orbite { position: absolute; inset: -6%; border-radius: 50%; border: 2px dashed var(--lavande); transform: translateZ(-30px); animation: tourne 40s linear infinite; opacity: .7; }
.relief-orbite.o2 { inset: 6%; border: 0; box-shadow: inset 0 0 0 1px var(--pale); transform: translateZ(-80px) scale(1.22); animation: none; }
@keyframes tourne { to { transform: translateZ(-30px) rotate(360deg); } }
.relief-reflet { position: absolute; inset: 0; transform: translateZ(41px); border-radius: 50%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(calc(110deg + var(--ry, 0deg) * 3), transparent 30%, rgba(255,255,255,.95) 48%, rgba(227,247,248,.6) 54%, transparent 70%);
  -webkit-mask: url("../assets/img/blason.webp") center/contain no-repeat; mask: url("../assets/img/blason.webp") center/contain no-repeat; }
.relief-flocon { position: absolute; color: var(--violet); }
.relief-flocon.f1 { width: 13%; left: -2%; top: 8%; transform: translateZ(110px); color: var(--prune); }
.relief-flocon.f2 { width: 9%; right: 2%; top: 2%; transform: translateZ(150px); color: var(--lavande); }
.relief-flocon.f3 { width: 8%; right: 10%; bottom: 0; transform: translateZ(90px); }
.gyro-bouton { font: 700 .66rem/1.2 var(--titre); letter-spacing: .04em; text-transform: uppercase; padding: 12px 16px; border-radius: 99px; background: var(--pale); color: var(--prune-fonce); }
.chiffres-cles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chiffres-cles li { padding: 18px 16px 16px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--pale), 0 16px 40px rgba(134,105,185,.14); position: relative; overflow: hidden; }
.chiffres-cles li::after { content: ""; position: absolute; right: -18px; top: -18px; width: 62px; height: 62px; border-radius: 50%; background: var(--pale); opacity: .6; }
.chiffres-cles b { display: block; font: 900 clamp(2.2rem, 11vw, 4rem)/1 var(--titre); font-style: italic; color: var(--prune); font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.chiffres-cles span { font-weight: 600; font-size: .92rem; line-height: 1.25; display: block; margin-top: 6px; color: #3d2c66; }
@media (min-width: 900px) {
  .bulletin-grille { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .chiffres-cles { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* ── HOTLINES ───────────────────────────────────────────────────────── */
.hot-infos { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: clamp(18px, 3vh, 28px); }
.voyant { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 99px; background: rgba(217,210,246,.1); box-shadow: inset 0 0 0 1px rgba(217,210,246,.3); font: 700 .7rem/1 var(--titre); letter-spacing: .04em; text-transform: uppercase; }
.voyant i { width: 9px; height: 9px; border-radius: 50%; background: var(--lavande); }
.voyant.ouvert { background: var(--glace); color: var(--nuit); }
.voyant.ouvert i { background: var(--prune); box-shadow: 0 0 0 0 rgba(138,69,168,.7); animation: pouls 1.6s infinite; }
@keyframes pouls { to { box-shadow: 0 0 0 12px rgba(138,69,168,0); } }
.hot-quand { font-weight: 600; color: var(--pale); }
.hot-visuel { position: relative; margin: 0 calc(var(--gout) * -1) clamp(30px, 6vh, 60px); aspect-ratio: 16 / 10; overflow: hidden; will-change: clip-path; }
.hot-visuel img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 78% 50%; will-change: transform; }
.hot-visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--nuit) 0%, transparent 22%, transparent 70%, var(--nuit) 100%); }
@media (min-width: 760px) { .hot-visuel { margin-inline: 0; aspect-ratio: 21 / 9; border-radius: 28px; } .hot-visuel::after { background: linear-gradient(180deg, transparent 60%, rgba(19,10,42,.6)); } }
.plateaux { --haut: calc(var(--haut-barre) + 14px); display: grid; gap: 22px; padding-bottom: 6vh; }
.plateau { position: sticky; top: calc(var(--haut) + var(--i) * 10px); }
.plateau-int { position: relative; display: grid; gap: 18px; padding: clamp(20px, 5vw, 38px); border-radius: 28px; color: var(--nuit); background: var(--neige);
  box-shadow: 0 -10px 40px rgba(11,6,25,.5), inset 0 0 0 1px #fff; transform-origin: 50% 0; will-change: transform; overflow: hidden; }
.plateau:nth-child(3n+2) .plateau-int { background: var(--pale); }
.plateau:nth-child(3n) .plateau-int { background: var(--glace); }
.plateau-int::after { content: ""; position: absolute; inset: 0; background: var(--nuit); opacity: var(--ombre, 0); pointer-events: none; z-index: 3; }
.plateau-int::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: repeating-linear-gradient(90deg, var(--prune) 0 18px, transparent 18px 30px); opacity: .9; }
.plateau-dessin { width: clamp(96px, 26vw, 170px); aspect-ratio: 1; flex: none; }
.plateau-dessin svg { width: 100%; height: 100%; overflow: visible; }
/* logos des hotlines : l'écusson flotte légèrement au-dessus de la carte */
.plateau-logo { width: clamp(124px, 34vw, 230px); margin: -6px 0 -10px -6px; }
.plateau-logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(19,10,42,.18)); transform: rotate(-4deg); transition: transform .6s var(--rebond); }
.plateau:nth-child(even) .plateau-logo img { transform: rotate(4deg); }
@media (hover: hover) { .plateau-int:hover .plateau-logo img { transform: rotate(0) scale(1.06); } }
.plateau-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.plateau-num { font: 700 .66rem/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; color: var(--prune-fonce); }
.plateau h3 { font: 900 clamp(1.6rem, 7.4vw, 3.1rem)/.98 var(--titre); font-style: italic; text-transform: uppercase; letter-spacing: -.025em; }
.plateau-texte { margin-top: 12px; max-width: 34em; color: #2b1c52; }
.appel { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 8px; border-radius: 99px; background: var(--nuit); color: #fff; text-decoration: none;
  font: 800 clamp(1rem, 4.6vw, 1.25rem)/1 var(--titre); font-variant-numeric: tabular-nums; letter-spacing: .01em; transition: transform .45s var(--rebond), background .3s; box-shadow: 0 12px 28px rgba(19,10,42,.3); }
.appel i { width: 42px; height: 42px; border-radius: 50%; background: var(--prune); display: grid; place-items: center; transition: transform .5s var(--rebond); }
.appel svg { width: 20px; height: 20px; }
.appel:active { transform: scale(.94); }
@media (hover: hover) { .appel:hover { background: var(--prune-fonce); } .appel:hover i { transform: rotate(-18deg) scale(1.1); } }
@keyframes sonne { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(6deg); } }
.plateau.vu .appel i svg { animation: sonne .7s var(--glisse) .35s; }
@media (min-width: 760px) {
  .plateaux { --haut: 15vh; }
  .plateau-int { grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); min-height: 46vh; }
  .plateau:nth-child(even) .plateau-dessin { order: 2; }
  .plateau-logo { margin: 0; }
}

/* ── INTERLUDES ─────────────────────────────────────────────────────── */
.interlude { position: relative; height: 170vh; height: 170svh; }
.interlude-fixe { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 1.5vh; background: var(--nuit-2); }
.interlude-fond { position: absolute; inset: -10% -3%; background: var(--nuit-2) 50% 50% / cover no-repeat; will-change: transform; }
.plus .interlude-fond { background-image: url("../assets/img/foret-l.webp"); }
.interlude.soir .interlude-fond { filter: brightness(.62) saturate(.9); }
@media (max-aspect-ratio: 4/5) { .plus .interlude-fond { background-image: url("../assets/img/foret-p.webp"); } }
.interlude-fixe::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(19,10,42,.6), rgba(19,10,42,.1) 28%, rgba(19,10,42,.1) 68%, rgba(19,10,42,.72)); }
.mega { white-space: nowrap; font: 900 clamp(4rem, 21vw, 15rem)/.9 var(--titre); font-style: italic; text-transform: uppercase; letter-spacing: -.04em; }
.mega span { display: inline-block; will-change: transform; padding-right: .3em; }
.mega-a { color: #fff; text-shadow: 0 10px 50px rgba(19,10,42,.35); }
.mega-b { color: #fff; text-shadow: 0 6px 30px rgba(19,10,42,.55); }
.interlude-blason { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(72vw, 60vh); height: auto; translate: -50% -50%; filter: drop-shadow(0 24px 40px rgba(19,10,42,.45)); will-change: transform; }
.mega { position: relative; z-index: 1; }
.interlude-note { position: absolute; z-index: 4; left: var(--gout); bottom: max(26px, env(safe-area-inset-bottom)); right: 60px; font-weight: 600; color: #fff; text-shadow: 0 2px 14px rgba(19,10,42,.6); }
.interlude-note b { font: 800 .7rem/1 var(--titre); padding: 8px 11px; border-radius: 99px; background: var(--nuit); margin-right: 8px; white-space: nowrap; }

/* ── ÉQUIPE : le télésiège ──────────────────────────────────────────── */
.telesiege { padding: 0; height: calc(100vh + var(--course, 2400px)); height: calc(100svh + var(--course, 2400px)); }
.tele-fixe { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.tele-entete { padding: calc(var(--haut-barre) + 2vh) var(--gout) 0; margin: 0; flex: none; }
.tele-entete .repere { margin-bottom: 10px; }
.tele-entete .titre { font-size: clamp(1.9rem, 8vw, 4.6rem); }
.tele-entete .entete-texte { margin-top: 8px; font-size: 1rem; }
.tele-scene { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; }
.tele-cable { position: absolute; left: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.tele-cable path { stroke: var(--nuit); stroke-width: 3; vector-effect: non-scaling-stroke; }
.tele-rail { display: flex; gap: clamp(18px, 4vw, 44px); padding: 0 50vw 0 var(--gout); height: 100%; align-items: flex-start; will-change: transform; }
.forfait { position: relative; flex: none; width: clamp(212px, 58vw, 290px); padding-top: clamp(52px, 9vh, 96px); height: 100%; transform-origin: 50% 22px; will-change: transform; }
.forfait-pince { position: absolute; left: 50%; top: 14px; width: 4px; height: clamp(40px, 8vh, 84px); margin-left: -2px; background: var(--nuit); border-radius: 2px; }
.forfait-pince::before { content: ""; position: absolute; left: -9px; top: -6px; width: 22px; height: 14px; border-radius: 5px; background: var(--prune); box-shadow: inset 0 0 0 2px var(--nuit); }
.forfait-pince::after { content: ""; position: absolute; left: -7px; bottom: -8px; width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--nuit); background: var(--neige); }
.forfait-carte { position: relative; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 1px 0 var(--pale), 0 26px 50px rgba(94,44,120,.22); transform-style: preserve-3d;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--glisse); max-height: calc(100% - 12px); display: flex; flex-direction: column; }
.forfait-tete { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; background: var(--nuit); color: #fff; font: 700 .58rem/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; flex: none; }
.forfait-tete span:last-child { color: var(--lavande); }
.forfait-marque { display: inline-flex; align-items: center; gap: 7px; }
.forfait-marque img { width: 24px; height: 24px; margin: -6px 0; }
.forfait-photo { position: relative; aspect-ratio: 4 / 4.6; min-height: 0; flex: 1 1 auto; background: var(--pale); overflow: hidden; }
.forfait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(.28) contrast(1.05) saturate(.92); }
.forfait-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--violet); mix-blend-mode: soft-light; opacity: .5; }
.forfait-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 52%, rgba(19,10,42,.5)); }
.forfait-photo svg { width: 100%; height: 100%; }
.forfait-attente { position: absolute; z-index: 2; left: 10px; bottom: 10px; font: 700 .56rem/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; padding: 7px 9px; border-radius: 99px; background: rgba(19,10,42,.75); color: var(--glace); }
.forfait-role { position: absolute; z-index: 3; right: 10px; top: 46px; font: 800 .66rem/1 var(--titre); letter-spacing: .04em; text-transform: uppercase; padding: 8px 11px; border-radius: 99px; background: var(--prune); color: #fff; box-shadow: 0 6px 16px rgba(19,10,42,.3); transform: rotate(4deg); }
.forfait-bas { padding: 13px 14px 14px; flex: none; position: relative; }
.forfait-bas h3 { font: 900 clamp(1.4rem, 6.6vw, 1.85rem)/1 var(--titre); font-style: italic; text-transform: uppercase; letter-spacing: -.02em; color: var(--nuit); }
.forfait-surnom { margin-top: 5px; font-weight: 600; font-size: .92rem; line-height: 1.2; color: var(--prune-fonce); }
.code-barres { margin-top: 11px; height: 20px; opacity: .85;
  background: repeating-linear-gradient(90deg, var(--nuit) 0 2px, transparent 2px 5px, var(--nuit) 5px 6px, transparent 6px 9px, var(--nuit) 9px 12px, transparent 12px 14px, var(--nuit) 14px 15px, transparent 15px 19px); }
.holo { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit; opacity: var(--ho, .2); transition: opacity .4s;
  background: linear-gradient(115deg, transparent 22%, rgba(227,247,248,.85) 38%, rgba(169,150,204,.75) 46%, rgba(138,69,168,.6) 53%, rgba(217,210,246,.85) 61%, transparent 76%) var(--hx, 30%) var(--hy, 50%) / 280% 280%; }
@media (hover: hover) and (pointer: fine) { .holo { mix-blend-mode: screen; opacity: var(--ho, .24); } }
.tele-jauge { flex: none; margin: 0 var(--gout) max(18px, env(safe-area-inset-bottom)); height: 4px; border-radius: 4px; background: var(--pale); overflow: hidden; }
.tele-jauge i { display: block; height: 100%; background: var(--prune); transform-origin: left; transform: scaleX(var(--t, 0)); }

/* ── PLANNING ───────────────────────────────────────────────────────── */
.jours { --n: 4; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 26px; background: rgba(217,210,246,.08); box-shadow: inset 0 0 0 1px rgba(217,210,246,.22); max-width: 720px; }
.jours-glisse { position: absolute; top: 6px; left: 6px; bottom: 6px; width: calc((100% - 12px - (var(--n) - 1) * 6px) / var(--n)); border-radius: 20px; background: var(--prune); box-shadow: 0 10px 30px rgba(138,69,168,.45); will-change: transform; }
.jour-onglet { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; padding: 14px 2px 12px; border-radius: 20px; transition: scale .4s var(--rebond), color .3s; color: var(--pale); -webkit-tap-highlight-color: transparent; }
.jour-onglet b { font: 900 clamp(1.5rem, 7vw, 2.6rem)/1 var(--titre); font-style: italic; }
.jour-onglet span { font: 600 clamp(.56rem, 2.5vw, .68rem)/1 var(--texte); letter-spacing: .1em; text-transform: uppercase; }
.jour-onglet.actif { color: #fff; }
.jour-onglet:active { scale: .94; }
.jour-scene { margin-top: clamp(26px, 5vh, 54px); display: grid; gap: clamp(22px, 4vh, 40px); }
.jour-grand { position: relative; }
.jg-num { display: flex; font: 900 clamp(6rem, 34vw, 16rem)/1 var(--titre); font-style: italic; letter-spacing: -.06em; color: var(--nuit); -webkit-text-stroke: 4px var(--lavande); paint-order: stroke fill; margin-left: -.04em; }
.jg-num .chf { width: .9em; height: .98em; overflow: hidden; }
.jg-num .chf b { line-height: 1; padding-left: .06em; }
.jg-titre { font: 400 clamp(1.7rem, 8vw, 3.2rem)/1 var(--pinceau); color: var(--glace); transform: rotate(-4deg); transform-origin: left; margin-top: -.5em; position: relative; }
.jg-titre .ligne-masque { overflow: hidden; display: block; padding: .15em .1em; }
.creneaux { position: relative; display: grid; gap: 10px; }
.creneaux::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(180deg, var(--lavande) 0 6px, transparent 6px 14px); transform-origin: top; transform: scaleY(var(--fil, 1)); }
.creneau { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px 16px 0; border-radius: 22px; }
.creneau-balise { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--nuit-3); box-shadow: inset 0 0 0 2px var(--violet); display: grid; place-items: center; color: var(--glace); }
.creneau-balise svg { width: 20px; height: 20px; }
.creneau[data-tag="hotline"] .creneau-balise { background: var(--prune); box-shadow: 0 0 0 5px rgba(138,69,168,.25); color: #fff; }
.creneau[data-tag="secret"] .creneau-balise { border-radius: 10px; transform: rotate(45deg); background: var(--encre); box-shadow: inset 0 0 0 2px var(--glace); }
.creneau[data-tag="secret"] .creneau-balise svg { transform: rotate(-45deg); }
.creneau-haut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.creneau time { font: 800 .82rem/1 var(--titre); font-variant-numeric: tabular-nums; color: var(--glace); white-space: pre; }
.creneau h3 { font: 800 clamp(1.05rem, 4.8vw, 1.5rem)/1.1 var(--titre); text-transform: uppercase; font-style: italic; letter-spacing: -.01em; }
.creneau p { margin-top: 6px; color: var(--pale); max-width: 36em; }
.creneau[data-tag="secret"] h3 { color: transparent; text-shadow: 0 0 12px var(--glace); }
.creneau-lien { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px; border-radius: 99px; font: 800 .74rem/1 var(--titre); letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  color: var(--nuit); background: var(--glace); transition: transform .4s var(--rebond), background .3s; }
.creneau-lien i { font-style: normal; transition: transform .4s var(--rebond); }
.creneau[data-tag="hotline"] .creneau-lien { background: var(--prune); color: #fff; }
.creneau-lien:active { transform: scale(.94); }
@media (hover: hover) { .creneau-lien:hover i { transform: translateX(4px); } }
@media (min-width: 900px) { .jour-scene { grid-template-columns: .8fr 1.2fr; align-items: start; } .jour-grand { position: sticky; top: 16vh; } }

/* Petit déj livré : carte claire sous le planning */
.petitdej { position: relative; margin-top: clamp(40px, 8vh, 90px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: clamp(22px, 5vw, 40px); border-radius: 28px; color: var(--nuit); background: var(--neige);
  box-shadow: 0 24px 60px rgba(11,6,25,.45), inset 0 0 0 1px #fff; overflow: hidden; scroll-margin-top: calc(var(--haut-barre, 70px) + 20px); }
.petitdej:empty { display: none; }
.petitdej::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: repeating-linear-gradient(90deg, var(--prune) 0 18px, transparent 18px 30px); opacity: .9; }
.pd-dessin { width: clamp(90px, 24vw, 150px); aspect-ratio: 1; }
.pd-dessin svg { width: 100%; height: 100%; overflow: visible; }
.pd-sur { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.pd-quand { font: 800 .78rem/1.2 var(--titre); letter-spacing: .02em; color: var(--prune-fonce); }
.pd-titre { font: 900 clamp(1.6rem, 7.4vw, 3rem)/.98 var(--titre); font-style: italic; text-transform: uppercase; letter-spacing: -.025em; }
.pd-texte { margin-top: 12px; max-width: 36em; color: #2b1c52; }
.pd-lieux { margin-top: 8px; max-width: 36em; font-weight: 600; color: var(--prune-fonce); }
.pd-corps { min-width: 0; }
.pd-action { margin-top: 18px; }
.pd-action .bouton { max-width: 100%; min-height: 56px; padding-block: 12px; white-space: normal; text-align: center; line-height: 1.2; }
.pd-action:empty { display: none; }
.pd-attente { opacity: .7; cursor: default; }
.pd-etat { margin-top: 12px; font: 700 .8rem/1.4 var(--titre); color: #4a3a75; }
.petitdej.ferme .pd-etat { font-size: .95rem; color: var(--prune-fonce); }
@media (min-width: 760px) { .petitdej { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); } }

/* ── MYSTÈRE ────────────────────────────────────────────────────────── */
#mystere { overflow: hidden; }
#mystere::before { content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 26px; transform: rotate(-1.2deg);
  background: repeating-linear-gradient(-45deg, var(--nuit) 0 22px, var(--pale) 22px 44px); box-shadow: 0 6px 20px rgba(19,10,42,.2); }
.mystere-grille { display: grid; gap: clamp(30px, 6vh, 60px); }
.t-givre .car { display: inline-block; }
.mystere-sous { font: 400 clamp(1.35rem, 6vw, 2.2rem)/1.1 var(--pinceau); color: var(--prune); margin-top: 14px; transform: rotate(-2deg); transform-origin: left; }
.mystere-prose { margin-top: 18px; max-width: 30em; color: #2b1c52; font-size: 1.08em; }
.indices { margin-top: 22px; display: grid; gap: 8px; counter-reset: i; }
.indices li { counter-increment: i; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px #fff; font-weight: 600; color: var(--nuit); }
.indices li::before { content: "Indice " counter(i); font: 800 .58rem/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; padding: 7px 9px; border-radius: 99px; background: var(--nuit); color: var(--glace); white-space: nowrap; }
.verrou { margin-top: 22px; display: inline-grid; gap: 8px; padding: 16px 20px; border-radius: 20px; background: var(--nuit); color: #fff; box-shadow: 0 16px 40px rgba(19,10,42,.28); }
.verrou span { font: 700 .62rem/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--lavande); }
.verrou b { font: 900 clamp(1.15rem, 5.4vw, 1.7rem)/1 var(--titre); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.vitre { position: relative; aspect-ratio: 4 / 4.6; border-radius: 30px; overflow: hidden; background: var(--nuit); box-shadow: 0 30px 70px rgba(19,10,42,.35), inset 0 0 0 2px rgba(255,255,255,.4);
  touch-action: pan-y; -webkit-user-select: none; user-select: none; transform: rotate(1.5deg); max-width: 520px; width: 100%; justify-self: center; }
.vitre-fond { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,6,25,.86) 0%, rgba(11,6,25,.35) 42%, transparent 60%), url("../assets/img/bache.webp") 50% 100% / cover no-repeat var(--encre); color: #fff; }
.dossier { position: absolute; left: 8%; right: 8%; top: 7%; display: grid; gap: 9px; font: 700 .68rem/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; }
.dossier p { display: grid; grid-template-columns: 5.4em 1fr; align-items: center; gap: 8px; color: var(--lavande); }
.dossier i { display: block; height: 13px; width: var(--l); background: var(--glace); border-radius: 2px; }
.dossier-tampon { display: inline-block !important; justify-self: start; padding: 8px 12px; border: 3px solid var(--glace); border-radius: 8px; color: var(--glace) !important; transform: rotate(-6deg); font-size: .82rem; margin-bottom: 6px; }
.dossier-pied { display: block !important; margin-top: 4px; color: #fff !important; font-family: var(--texte); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: .9rem; }
#buee { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }   /* frotter la vitre au doigt ne fait pas défiler la page */
.vitre-aide { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 9px 14px; border-radius: 99px; background: rgba(19,10,42,.72); color: #fff; font: 700 .64rem/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.vitre.frottee .vitre-aide { opacity: 0; }
@media (min-width: 900px) { .mystere-grille { grid-template-columns: 1.05fr .95fr; align-items: center; } .vitre { aspect-ratio: 1 / 1.05; } }

/* ── CINÉMA ─────────────────────────────────────────────────────────── */
.salles { display: grid; gap: clamp(22px, 4vw, 40px); }
.salle { position: relative; }
.ecran { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--encre); box-shadow: 0 30px 80px rgba(11,6,25,.6), inset 0 0 0 1px rgba(217,210,246,.25); will-change: clip-path; }
.ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.affiche { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; padding: 10px; width: 100%; overflow: hidden;
  background: linear-gradient(180deg, rgba(11,6,25,.25), rgba(11,6,25,.72)), url("../assets/img/projection.webp") 30% 50% / cover no-repeat var(--encre); border: 0; color: #fff; font: inherit; }
.affiche::before { content: ""; position: absolute; left: 50%; top: -30%; width: 150%; height: 200%; transform-origin: 50% 0; margin-left: -75%;
  background: conic-gradient(from 180deg at 50% 0, transparent 158deg, rgba(217,210,246,.22) 168deg, rgba(227,247,248,.36) 180deg, rgba(217,210,246,.22) 192deg, transparent 202deg); animation: faisceau 5s ease-in-out infinite alternate; }
@keyframes faisceau { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.affiche::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 22px, var(--encre) 22px 32px) left / 16px 100% no-repeat, repeating-linear-gradient(180deg, transparent 0 22px, var(--encre) 22px 32px) right / 16px 100% no-repeat; box-shadow: inset 20px 0 0 -4px rgba(169,150,204,.25), inset -20px 0 0 -4px rgba(169,150,204,.25); }
.affiche > * { position: relative; z-index: 1; }
.affiche-studio { display: inline-flex; align-items: center; gap: 8px; font: 700 .56rem/1 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--pale); }
.affiche-studio img { width: clamp(28px, 8vw, 44px); height: auto; }
.affiche { gap: clamp(5px, 1.4vw, 12px) !important; }
.affiche-mot { font: 400 clamp(1.2rem, 5.4vw, 2rem)/1 var(--pinceau); color: var(--glace); transform: rotate(-4deg); }
.affiche-titre { font: 900 clamp(1.3rem, 6vw, 2.5rem)/.98 var(--titre); font-style: italic; text-transform: uppercase; color: #fff; max-width: 12em; }
.affiche-pied { font: 600 .68rem/1 var(--texte); letter-spacing: .2em; text-transform: uppercase; color: var(--lavande); }
.lecture { width: 74px; height: 74px; border-radius: 50%; background: var(--prune); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(138,69,168,.28); transition: transform .5s var(--rebond); }
.lecture svg { width: 26px; height: 26px; margin-left: 4px; }
button.affiche:active .lecture { transform: scale(.9); }
@media (hover: hover) { button.affiche:hover .lecture { transform: scale(1.14); } }
.salle-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 16px; }
.salle-bas h3 { font: 800 clamp(1.05rem, 4.6vw, 1.4rem)/1.1 var(--titre); font-style: italic; text-transform: uppercase; }
.salle-bas p { color: var(--lavande); font-weight: 500; }
@media (min-width: 860px) { .salles { grid-template-columns: 1fr 1fr; } .salle:nth-child(2) { margin-top: 9vh; } }

/* ── JEU (borne de lancement) ───────────────────────────────────────── */
.jeu-grille { display: grid; gap: clamp(30px, 6vh, 56px); }
.jeu-regles { margin-top: clamp(20px, 4vh, 34px); display: grid; gap: 10px; }
.jeu-regles li { display: grid; grid-template-columns: 6.2em 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 var(--pale), 0 12px 30px rgba(134,105,185,.12); }
.jeu-regles b { font: 900 .86rem/1 var(--titre); font-style: italic; text-transform: uppercase; color: var(--prune); }
.jeu-regles span { font-weight: 500; line-height: 1.3; color: #2b1c52; }
.borne { position: relative; justify-self: center; width: min(100%, 400px); padding: 12px; border-radius: 36px; background: var(--nuit); box-shadow: 0 40px 80px rgba(94,44,120,.35), inset 0 0 0 2px var(--violet); transform: rotate(-2deg); }
.borne::before { content: "Snowpark · borne n° 1"; display: block; text-align: center; font: 700 .58rem/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; color: var(--lavande); padding: 4px 0 12px; }
.borne-ecran { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--neige); }
#borne-apercu { width: 100%; height: 100%; }
.borne-blason { position: absolute; z-index: 2; left: 12px; top: 12px; width: 62px; height: 62px; filter: drop-shadow(0 6px 12px rgba(19,10,42,.35)); }
.borne-voile { position: absolute; inset: 0; display: grid; place-items: center; align-content: end; gap: 12px; padding: 22px 16px; background: linear-gradient(180deg, transparent 30%, rgba(19,10,42,.78)); color: #fff; text-align: center; }
.borne-record { font: 700 .68rem/1 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--pale); }
.borne-record b { color: #fff; font-size: 1.3em; font-variant-numeric: tabular-nums; margin-left: 6px; }
.borne-note { font-size: .82rem; color: var(--pale); min-height: 1.3em; }
@media (min-width: 900px) { .jeu-grille { grid-template-columns: 1.1fr .9fr; align-items: center; } }

/* ── CLASSEMENT ─────────────────────────────────────────────────────── */
.onglets { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 99px; background: rgba(217,210,246,.08); box-shadow: inset 0 0 0 1px rgba(217,210,246,.22); margin-top: clamp(18px, 3vh, 28px); }
.onglets-glisse { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 99px; background: var(--prune); will-change: transform; }
.onglets button { position: relative; z-index: 1; padding: 13px 20px; font: 800 .72rem/1 var(--titre); letter-spacing: .04em; text-transform: uppercase; color: var(--pale); transition: color .3s, scale .35s var(--rebond); border-radius: 99px; }
.onglets button.actif { color: #fff; }
.onglets button:active { scale: .94; }
.mode { margin-top: 14px; font-size: .9rem; color: var(--pale); padding: 10px 14px; border-radius: 14px; background: rgba(217,210,246,.08); display: inline-block; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: clamp(6px, 2vw, 16px); height: clamp(250px, 46vh, 380px); max-width: 720px; margin: 0 auto clamp(24px, 4vh, 40px); }
.marche { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; height: var(--h); min-width: 0; text-align: center; }
.marche.m1 { --h: 100%; order: 2; } .marche.m2 { --h: 78%; order: 1; } .marche.m3 { --h: 62%; order: 3; }
.marche-nom { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 clamp(.74rem, 3.3vw, 1.05rem)/1.2 var(--titre); text-transform: uppercase; font-style: italic; padding: 0 2px; }
.marche-score { font: 600 clamp(.8rem, 3.4vw, 1rem)/1 var(--texte); color: var(--glace); margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.marche-bloc { width: 100%; height: 100%; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, var(--violet), var(--nuit-3)); display: grid; place-items: start center; padding-top: 14px; transform-origin: bottom; box-shadow: inset 0 2px 0 rgba(255,255,255,.3); }
.marche.m1 .marche-bloc { background: linear-gradient(180deg, var(--prune), var(--nuit-3)); }
.marche-bloc i { font: 900 clamp(2rem, 9vw, 3.6rem)/1 var(--titre); font-style: italic; color: rgba(255,255,255,.9); }
.marche.vide .marche-nom { color: var(--lavande); }
.liste-scores { max-width: 720px; margin: 0 auto; display: grid; gap: 6px; }
.liste-scores li { display: grid; grid-template-columns: 2.6em 1fr auto; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: rgba(217,210,246,.07); box-shadow: inset 0 0 0 1px rgba(217,210,246,.14); }
.liste-scores .rg { font: 800 .8rem/1 var(--titre); color: var(--lavande); }
.liste-scores .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-scores b { font: 800 .9rem/1 var(--titre); font-variant-numeric: tabular-nums; color: var(--glace); }
.liste-scores li.moi { background: var(--prune); box-shadow: none; } .liste-scores li.moi .rg { color: #fff; }
.classement-vide { text-align: center; color: var(--pale); max-width: 30em; margin: 0 auto; }

/* ── STATION (pied de page) ─────────────────────────────────────────── */
#station { position: relative; min-height: 130vh; min-height: 130svh; display: flex; align-items: flex-start; color: #fff; }
#station::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 34vh; background: linear-gradient(var(--nuit), transparent); pointer-events: none; }
/* voile sombre derrière le texte, pour qu'il reste lisible sur le village illuminé */
#station::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 20%, rgba(11,6,25,.62) 44%, rgba(11,6,25,.5) 66%, transparent 86%); }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) { #station::after { background: linear-gradient(90deg, rgba(11,6,25,.78), rgba(11,6,25,.5) 38%, transparent 66%); -webkit-mask: linear-gradient(180deg, transparent 12%, #000 34%); mask: linear-gradient(180deg, transparent 12%, #000 34%); } }
.station-contenu { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: calc(30svh + var(--haut-barre) + 16px) var(--gout) 0; text-shadow: 0 2px 24px rgba(11,6,25,.6); }
.station-blason { width: clamp(104px, 30vw, 210px); height: auto; margin: 0 0 clamp(16px, 3vh, 30px) -6px; filter: drop-shadow(0 0 40px rgba(169,150,204,.45)) drop-shadow(0 18px 30px rgba(11,6,25,.6)); }
.station-phrase { font-size: clamp(2.1rem, 9.6vw, 6.4rem); }
.station-appel { margin-top: 18px; font: 500 clamp(1.1rem, 4.6vw, 1.6rem)/1.3 var(--texte); max-width: 24em; color: var(--pale); }
.station-liens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.station-mention { padding: 8px 12px; border-radius: 12px; background: rgba(11,6,25,.6); width: fit-content; }
.station-mention { position: absolute; left: var(--gout); right: var(--gout); top: calc(130svh - 70px - env(safe-area-inset-bottom, 0px)); font-size: .8rem; color: var(--pale); text-shadow: 0 1px 8px var(--encre); }

/* ── Arène du jeu, tempête, curseur ─────────────────────────────────── */
#arene { position: fixed; inset: 0; z-index: 70; background: var(--nuit); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
#arene[hidden] { display: none; }
#tempete { position: fixed; inset: 0; z-index: 85; pointer-events: none; opacity: 0; }
#tempete canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#tempete::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px 40px rgba(247,244,255,.95), inset 0 0 220px 90px rgba(227,247,248,.6); }

#curseur { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.curseur-actif, html.curseur-actif a, html.curseur-actif button, html.curseur-actif .vitre { cursor: none; }
  html.curseur-actif #curseur { display: block; position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .2s; }
  html.curseur-actif #curseur.visible { opacity: 1; }
  /* les deux conteneurs sont déplacés par le script (sans transition) ; les effets d'état vivent sur leurs enfants */
  .cur-point, .cur-anneau { position: absolute; left: 0; top: 0; will-change: transform; }
  .cur-point i { display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--prune); box-shadow: 0 0 0 2px #fff; transition: scale .25s var(--glisse), opacity .2s; }
  .cur-anneau span { display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--prune), 0 0 0 1px rgba(255,255,255,.6);
    font: 800 .5rem/1 var(--titre); letter-spacing: .06em; text-transform: uppercase; color: #fff; scale: var(--e, 1); transition: scale .3s var(--rebond), background .25s, box-shadow .25s; }
  #curseur.lien .cur-anneau span { --e: 1.5; background: rgba(138,69,168,.25); }
  #curseur.lien .cur-point i { scale: .5; }
  #curseur.objet .cur-anneau span, #curseur.jeu .cur-anneau span, #curseur.essuie .cur-anneau span, #curseur.photo .cur-anneau span { --e: 2; background: var(--prune); box-shadow: 0 10px 30px rgba(19,10,42,.35); }
  #curseur.objet .cur-point i, #curseur.jeu .cur-point i, #curseur.essuie .cur-point i, #curseur.photo .cur-point i { opacity: 0; }
  #curseur.appui .cur-anneau span { --e: .8; }
  #curseur.objet.appui .cur-anneau span, #curseur.jeu.appui .cur-anneau span, #curseur.essuie.appui .cur-anneau span, #curseur.photo.appui .cur-anneau span { --e: 1.7; }
}
body.fige #curseur { display: none !important; }

/* ── Avant l'animation d'entrée : rien ne clignote ──────────────────── */
.js .a-venir { visibility: hidden; }

/* ── Mouvement réduit : version sobre, toujours lisible ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
/* « sobre » est posé par main.js : mouvement réduit demandé, ou moteur d'animation indisponible */
.sobre .hero { height: auto; }
.sobre .hero-fixe { position: relative; height: auto; min-height: 100svh; display: block; overflow: visible; }
.sobre .hero-titre { min-height: 100svh; justify-content: center; }
.sobre .temps { position: relative; visibility: visible; padding-block: 12vh; inset: auto; }
.sobre .interlude, .sobre .interlude-fixe { height: 70svh; }
.sobre .telesiege { height: auto; padding-bottom: 8vh; }
.sobre .tele-fixe { position: relative; height: auto; overflow: visible; }
.sobre .tele-scene { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }
.sobre .tele-rail { padding-right: var(--gout); height: auto; }
.sobre .forfait { height: auto; }
.sobre .tele-jauge, .sobre .hero-defile { display: none; }
.sobre .bulletin-prose .mot { opacity: 1; }
.sobre .plateau { position: relative; top: auto; }
