/* ════════════════════════════════════════════════════════════════
   THW — couche « stade » : effets partagés de tout le site vitrine.
   Bandeau de nuit (halo qui suit le curseur), rideau entre les pages,
   barre de progression, aimants, cartes inclinables, ticker, compteurs,
   sceau doré (record / palier validé), titres qui se lèvent.
   Chargée APRÈS colors_and_type.css / site.css. Rien n'anime si
   l'utilisateur a demandé moins de mouvement (prefers-reduced-motion).
   ════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;0,7..72,700;1,7..72,500&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* Pages qui n'importent pas les tokens (connexion, support) : mêmes polices. */
:root {
  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --st-ease: cubic-bezier(.22, .61, .36, 1);
  --st-ease-io: cubic-bezier(.7, 0, .3, 1);
}

/* ─── Typographie éditoriale ─────────────────────────────────────
   Literata remplace un sans-serif très gras : on la pose en 600, avec
   un interlettrage presque neutre et un interlignage qui laisse
   respirer les jambages. S'applique aussi aux styles inline. */
[style*="font-display"],
.disc-hero h1, .th-hero h1, .cta-band h2, .section-head h2,
.bubble-title, .brand-word, .t-display, .t-h1, .t-h2, .t-h3,
.t-metric-xl, .t-metric-lg, .t-metric-md {
  font-weight: 600 !important;
  letter-spacing: -0.018em !important;
  font-optical-sizing: auto;
}
h1[style*="font-display"], .disc-hero h1, .th-hero h1, .cta-band h2 { line-height: 1.04 !important; }
.brand-word { font-weight: 700 !important; letter-spacing: -0.01em !important; }

/* ─── Barre de progression de lecture ─────────────────────────── */
#thw-prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 400; pointer-events: none; }
#thw-prog .fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--gold)); }
#thw-prog .run {
  position: absolute; top: -3px; left: 0; width: 9px; height: 9px; margin-left: -5px; border-radius: 50%;
  background: #f3dca3; box-shadow: 0 0 0 3px rgba(224, 183, 102, .25), 0 0 12px 2px rgba(224, 183, 102, .7);
  opacity: 0; transition: opacity .3s;
}
#thw-prog.on .run { opacity: 1; }

/* ─── Rideau de transition entre les pages ────────────────────── */
#thw-curtain {
  position: fixed; inset: 0; z-index: 390; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 62px, rgba(238, 243, 248, .07) 62px 64px), var(--night);
  transform: scaleX(0); transform-origin: left;
  display: grid; place-items: center;
}
#thw-curtain span {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 46px);
  color: var(--gold-bright); letter-spacing: -0.01em;
}
#thw-curtain span i { font-style: normal; color: var(--brand); }
/* Page qui arrive sous le rideau : couverte dès le premier paint. */
html.thw-cur-pre::before {
  content: ''; position: fixed; inset: 0; z-index: 389; background: var(--night);
}

/* ─── Bandeau de nuit (héros, CTA finaux, pied de page) ───────────
   Reste « nuit » dans les deux thèmes ; redéfinit les tokens pour que
   tout composant posé dedans s'affiche en version sombre. */
.st-night {
  --text: var(--night-ink); --text-mid: var(--night-muted); --text-dim: #6f849c;
  --bg-card: rgba(238, 243, 248, 0.05); --bg-card-2: rgba(238, 243, 248, 0.03);
  --bg-hover: rgba(238, 243, 248, 0.08);
  --border: rgba(158, 177, 200, 0.18); --border-mid: rgba(158, 177, 200, 0.3);
  --brand: #00c8e0; --gold-ink: #e0b766;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--night-ink);
}
/* Halo qui suit le curseur. */
.st-night::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx, 72%) var(--my, 38%), rgba(0, 200, 224, 0.17), transparent 62%),
    radial-gradient(ellipse 60% 70% at 12% 0%, rgba(91, 111, 255, 0.16), transparent 70%);
  transition: background .2s linear;
}
/* Trame de points, effacée vers le bas. */
.st-night::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url('assets/topo.svg');
  background-size: 640px 420px;
  animation: stTopo 140s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.st-night .eyebrow { color: var(--gold-bright); }
.st-night .eyebrow::before { background: var(--gold-bright); }

/* Le bandeau sort de la colonne .wrap pour aller bord à bord. */
.st-bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ─── Apparition au scroll ────────────────────────────────────── */
.st-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--st-ease), transform .7s var(--st-ease); }
.st-reveal.st-in { opacity: 1; transform: none; }

/* Titres qui se lèvent : chaque enfant monte avec un léger flou. */
.st-rise > * { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(1.5deg); filter: blur(5px); }
.st-rise.st-in > * { animation: stRise .85s var(--st-ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes stRise { to { opacity: 1; transform: none; filter: none; } }

/* ─── Aimants & cartes inclinables (pilotés par stade.js) ──────── */
.mag { transition: transform .25s var(--st-ease); will-change: transform; }
.tilt {
  --cx: 50%; --cy: 50%;
  position: relative; transform-style: preserve-3d;
  transition: transform .35s var(--st-ease), box-shadow .35s var(--st-ease), border-color .25s;
}
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--cx) var(--cy), rgba(255, 255, 255, 0.10), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.tilt:hover::after { opacity: 1; }
.light .tilt::after { background: radial-gradient(420px circle at var(--cx) var(--cy), rgba(5, 148, 173, 0.08), transparent 45%); }

/* ─── Ticker (bandeau défilant) ───────────────────────────────── */
.st-ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--night-line); background: var(--night-2); color: var(--night-muted);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.st-ticker .st-track {
  display: inline-flex; gap: 46px; padding: 14px 0;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em;
  animation: stTick 48s linear infinite;
}
.st-ticker:hover .st-track { animation-play-state: paused; }
.st-ticker .st-track span::before { content: '◆'; color: var(--gold-bright); margin-right: 10px; font-size: 9px; vertical-align: 1px; }
@keyframes stTick { to { transform: translateX(-50%); } }
@keyframes stTopo { to { background-position: 640px 420px; } }

/* ─── Bande de chiffres (compteurs + jauge qui se remplit) ─────── */
.st-coverline {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.st-coverline > div { position: relative; padding: 24px 24px 26px; border-right: 1px solid var(--border); }
.st-coverline > div:last-child { border-right: 0; }
.st-coverline b {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text);
}
.st-coverline b small { font-size: .5em; color: var(--brand); margin-left: 4px; font-family: var(--font-mono); font-weight: 500; }
.st-coverline .lbl { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.st-coverline .sub { display: block; margin-top: 4px; font-size: 13px; color: var(--text-mid); line-height: 1.4; }
.st-coverline > div::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--st-ease);
  transition-delay: calc(var(--i, 0) * 150ms);
}
.st-coverline.st-in > div::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .st-coverline { grid-template-columns: 1fr 1fr; }
  .st-coverline > div:nth-child(2) { border-right: 0; }
  .st-coverline > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ─── Sceau doré : record / palier / plan validé ───────────────── */
.st-seal { color: var(--gold); display: inline-block; transform: rotate(-8deg); flex: none; }
.st-seal.st-stamp { opacity: 0; }
.st-seal.st-stamp.st-in { animation: stStamp .7s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: var(--d, 0ms); }
@keyframes stStamp { 0% { opacity: 0; transform: scale(2.4) rotate(-30deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }

/* Pastilles statut. */
.st-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.st-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: stLive 1.8s ease-out infinite; }
.st-pill.ok { color: #2fb67c; background: rgba(47, 182, 124, 0.12); }
.st-pill.warn { color: #d9774a; background: rgba(217, 119, 74, 0.13); }
@keyframes stLive { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* Puce « donnée-source » (chiffre qui étaye un conseil). */
.st-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11.5px; padding: 3px 8px; border-radius: 5px;
  background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text);
}

/* Curseur clignotant (texte qui s'écrit). */
.st-caret { display: inline-block; width: 2px; height: 1em; background: var(--brand); margin-left: 2px; vertical-align: -2px; animation: stBlink 1s steps(1) infinite; }
@keyframes stBlink { 50% { opacity: 0; } }

/* ─── En-tête : soulignement qui se trace au survol ────────────── */
.site-header .header-link { position: relative; }
.site-header .header-link::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--st-ease);
}
.site-header .header-link:hover::after, .site-header .header-link[aria-current="page"]::after { transform: scaleX(1); }

/* ─── Pied de page : bandeau de nuit + grand monogramme ────────── */
.site-footer.st-night { margin-top: 40px; border-top: 0; }
.site-footer.st-night::before { background: radial-gradient(ellipse 60% 80% at 80% 100%, rgba(0, 200, 224, 0.12), transparent 70%); }
.st-footmark {
  font-family: var(--font-display); font-weight: 600; line-height: .8; letter-spacing: -0.04em;
  font-size: clamp(96px, 20vw, 260px); text-align: center; margin: 26px 0 -8px; user-select: none;
  background: linear-gradient(180deg, rgba(238, 243, 248, 0.14), rgba(238, 243, 248, 0));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.st-footmark i { font-style: normal; -webkit-text-fill-color: rgba(224, 183, 102, 0.35); }

@media (prefers-reduced-motion: reduce) {
  .st-reveal, .st-rise > *, .st-seal.st-stamp { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .st-ticker .st-track { animation: none; }
  .st-night::after { animation: none; }
  .st-medal { transition: none; }
  .st-tape { transition: none; }
  .st-sess, .st-sess > * { animation: none !important; transition: none !important; }
  .st-coverline > div::after { transition: none; transform: scaleX(1); }
  .mag, .tilt { transition: none; transform: none !important; }
  html.thw-cur-pre::before { display: none; }
}

/* ════════════════ Pièces maîtresses (Stade.jsx) ════════════════ */
.st-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.018em; margin: 0 0 14px; text-wrap: balance; color: var(--text); }
.st-lede { font-size: 16.5px; line-height: 1.6; color: var(--text-mid); max-width: 52ch; margin: 0 0 26px; text-wrap: pretty; }
.mono { font-family: var(--font-mono); }

/* ─── L'app en direct (héros de Découvrir) ─── */
.st-live { position: relative; }
.st-live::before { content: ''; position: absolute; inset: -8% -6% 4%; z-index: 0; pointer-events: none;
  background: radial-gradient(48% 52% at 42% 46%, rgba(6, 182, 212, .2), transparent 70%), radial-gradient(40% 44% at 70% 72%, rgba(168, 85, 247, .16), transparent 70%); filter: blur(20px); }
.st-live-stage { position: relative; z-index: 1; perspective: 1900px; perspective-origin: 30% 40%; }
.st-live-scene {
  --ry: -11deg; --rx: 7deg;
  display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas: "td td td td fo fo" "td td td td ch ch" "co co co co sl sl" "wk wk rc rc ac ac";
  transform: rotateY(var(--ry)) rotateX(var(--rx)); transform-style: preserve-3d; transition: transform .7s var(--st-ease);
}
.st-lc {
  position: relative; min-width: 0; padding: 13px 14px 14px; border-radius: 16px; color: var(--night-ink);
  background: linear-gradient(180deg, rgba(28, 47, 75, .96), rgba(16, 30, 50, .96));
  border: 1px solid rgba(158, 177, 200, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 22px 44px -12px rgba(1, 6, 15, .7);
  transform: translateZ(var(--z, 0)); opacity: 0;
}
.st-live.on .st-lc { animation: stLcIn .95s var(--st-ease) both; animation-delay: calc(var(--i) * 110ms + 120ms); }
@keyframes stLcIn { from { opacity: 0; transform: translateZ(var(--z, 0)) translateY(28px); filter: blur(7px); } to { opacity: 1; transform: translateZ(var(--z, 0)); filter: blur(0); } }
.st-lc-hero::before { content: ''; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #06b6d4, #7b8cff 60%, #a855f7); }
.st-lc-ia { border-color: rgba(168, 85, 247, .32); background: linear-gradient(180deg, rgba(40, 36, 78, .96), rgba(18, 28, 52, .96)); }
.st-lc-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; min-width: 0; }
.st-lc-ico { flex: 0 0 auto; color: #06b6d4; }
.st-lc-h b { flex: 1; min-width: 0; font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-lc-h em { font-style: normal; font-family: var(--font-body); font-size: 11.5px; color: var(--night-muted); white-space: nowrap; }
.st-lc-chev { flex: 0 0 auto; color: rgba(158, 177, 200, .55); }
.st-lc.nar .st-lc-chev { display: none; }
.st-lc.nar .st-lc-h b { font-size: 13px; }
@media (min-width: 1200px) { .st-live-stage { margin-right: -56px; } .st-live-note { margin-right: -56px; } }
.st-lc-m { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.st-lc-m > div { min-width: 0; }
.st-lc-l { font-size: 11.5px; line-height: 1.3; color: var(--night-muted); }
.st-lc-v { font-family: var(--font-body); font-weight: 700; font-size: 28px; line-height: 1.05; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; margin: 3px 0 6px; white-space: nowrap; }
.st-lc-v.sm { font-size: 22px; }
.st-lc-v small { font-size: 13px; font-weight: 600; color: var(--night-muted); letter-spacing: 0; }
.st-lc-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-family: var(--font-body); font-size: 11px; font-weight: 700; white-space: nowrap; }
.st-lc-mut { font-size: 11.5px; color: var(--night-muted); white-space: nowrap; }
.st-lc-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.st-lc-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(158, 177, 200, .12); font-size: 11.5px; color: var(--night-muted); display: flex; justify-content: space-between; }
.st-lc-foot b { color: #fdba74; font-variant-numeric: tabular-nums; }
.st-lc-sport { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--night-muted); }
.st-lc-sport i { width: 8px; height: 8px; border-radius: 50%; }
.st-lc-sport.sm { font-size: 10.5px; letter-spacing: .04em; text-transform: none; font-weight: 600; margin-bottom: 2px; }
.st-lc-title { margin: 5px 0 3px; font-family: var(--font-body); font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.st-lc-sub { font-size: 12.5px; color: var(--night-muted); }
.st-lc-prof { display: block; width: 100%; height: auto; margin: 12px 0 8px; overflow: visible; }
.st-lc-fade { opacity: 0; }
.st-live.on .st-lc-fade { opacity: 1; transition: opacity .9s var(--st-ease) 1.5s; }
.st-lc-read { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--night-muted); }
.st-lc-read b { color: var(--night-ink); font-weight: 600; font-size: 13px; }
.st-lc-zone { display: inline-flex; align-items: center; gap: 6px; color: var(--night-ink); }
.st-lc-zone i { width: 8px; height: 8px; border-radius: 2px; background: #94a3b8; transition: background .3s; }
.st-lc-clock { margin-left: auto; }
.st-lc-tasks { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(158, 177, 200, .12); }
.st-lc-tt { font-size: 11.5px; font-weight: 600; color: var(--night-muted); margin-bottom: 4px; }
.st-lc-task { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 13px; }
.st-lc-task i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(158, 177, 200, .45); display: grid; place-items: center; color: #06121f; transition: background .3s, border-color .3s; }
.st-lc-task i svg { opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s var(--st-ease); }
.st-lc-task span { transition: color .3s; }
.st-lc-task.done i { background: #06b6d4; border-color: #06b6d4; }
.st-lc-task.done i svg { opacity: 1; transform: scale(1); }
.st-lc-task.done span { color: var(--night-muted); text-decoration: line-through; text-decoration-color: rgba(158, 177, 200, .6); }
.st-lc-bars rect { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.st-live.on .st-lc-bars rect { transform: scaleY(1); transition: transform .6s var(--st-ease); transition-delay: calc(var(--j) * 60ms + 900ms); }
.st-lc-gauge { stroke-dasharray: 1; stroke-dashoffset: 1; }
.st-live.on .st-lc-gauge { stroke-dashoffset: var(--to); transition: stroke-dashoffset 1.3s var(--st-ease) .6s; }
.st-lc-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.st-live.on .st-lc-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--st-ease) .7s; }
.st-live.on .st-lc-draw.d2 { transition-delay: .95s; }
.st-lc-bubble { min-height: 62px; font-size: 14px; line-height: 1.5; color: var(--night-ink); transition: opacity .45s, transform .45s var(--st-ease); }
.st-lc-bubble.out { opacity: 0; transform: translateY(-6px); }
.st-lc-bubble .st-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #c084fc; animation: stBlink 1s steps(1) infinite; }
@keyframes stBlink { 50% { opacity: 0; } }
.st-lc-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; min-height: 24px; }
.st-lc-srcl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(192, 132, 252, .8); margin-right: 2px; }
.st-lc-pill { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(168, 85, 247, .38); background: rgba(168, 85, 247, .12); color: #e9d5ff; opacity: 0; transform: translateY(6px) scale(.92); transition: opacity .35s, transform .45s var(--st-ease); }
.st-lc-pill.in { opacity: 1; transform: none; }
.st-live-note { position: relative; z-index: 1; margin-top: 18px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--night-muted); opacity: .8; }
@media (max-width: 900px) {
  .st-live-stage { perspective: none; }
  .st-live-scene { transform: none; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "td td" "fo ch" "co co"; }
  .st-lc { transform: none; }
  .st-lc.mh { display: none; }
  @keyframes stLcIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  .st-lc-v { font-size: 25px; }
  .st-lc-m svg { width: 64px; height: auto; }
}

/* ─── Decaform : la piste et le gazon (CadencesField.jsx) ─── */
.cad-field { position: relative; margin: 34px 0 0; padding: 30px 30px 26px; border-radius: 22px; overflow: hidden; isolation: isolate; }
.cad-field-head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 30px; margin-bottom: 8px; }
.cad-field-head h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.015em; margin: 6px 0 6px; color: var(--night-ink); }
.cad-field-head p { margin: 0; max-width: 62ch; font-size: 14.5px; line-height: 1.6; color: var(--night-muted); }
.cad-field-eye { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-bright); }
.cad-field-tot { display: flex; gap: 22px; }
.cad-field-tot div { text-align: right; }
.cad-field-tot b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; color: var(--night-ink); }
.cad-field-tot span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); }
.cad-field-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.cad-field-map svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .4)); }
.cad-field-map .cad-fi { cursor: pointer; transition: opacity .3s; }
.cad-field-map.has-hot .cad-fi:not(.on) { opacity: .5; }
.cad-field-lbl { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.cad-field-note { margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--night-muted); text-align: center; }
.cad-field-card {
  min-height: 170px; padding: 16px 18px; border-radius: 16px;
  background: rgba(238, 243, 248, .06); border: 1px solid rgba(158, 177, 200, .2); border-left: 3px solid var(--c);
  transition: border-color .4s;
}
.cad-field-card .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.cad-field-card b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; margin: 6px 0 6px; color: var(--night-ink); animation: stClaim .45s var(--st-ease) both; }
.cad-field-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--night-muted); animation: stClaim .45s .06s var(--st-ease) both; }
.cad-field-pts { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.cad-field-pts strong { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1; color: var(--gold-bright); }
.cad-field-pts span { font-family: var(--font-mono); font-size: 11px; color: var(--night-muted); letter-spacing: .06em; }
.cad-field-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.cad-field-lists h4 { margin: 0 0 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.cad-field-lists button {
  --c: #00c8e0; display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 6px 9px; margin-bottom: 4px; border-radius: 9px; cursor: pointer; text-align: left;
  border: 1px solid transparent; background: rgba(238, 243, 248, .04); color: var(--night-ink);
  font-family: var(--font-body); font-size: 13px; transition: border-color .2s, background .2s;
}
.cad-field-lists button em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--night-muted); white-space: nowrap; }
.cad-field-lists button:hover { border-color: var(--c); }
.cad-field-lists button.on { border-color: var(--c); background: rgba(238, 243, 248, .1); }
.cad-field-lists button.on em { color: var(--gold-bright); }
@media (max-width: 900px) {
  .cad-field { padding: 22px 16px 18px; border-radius: 18px; }
  .cad-field-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cad-field-tot { gap: 16px; }
  .cad-field-tot div { text-align: left; }
}
@media (max-width: 560px) {
  .cad-field-lbl { display: none; }
  .cad-field-lists { grid-template-columns: minmax(0, 1fr); }
}

/* ─── Panneau de stade (palettes) ─── */
.st-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 2px; border-radius: 18px; background: #070e19; box-shadow: 0 30px 60px -30px rgba(8, 18, 31, .55); overflow: hidden; }
.st-board-cell { background: linear-gradient(180deg, #0f1b2d, #0b1626); padding: 22px 22px 24px; }
.st-flaps { display: flex; gap: 5px; perspective: 420px; }
.st-flap {
  position: relative; width: 52px; height: 72px; border-radius: 7px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, #1b2b44 50%, #15233a 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 10px rgba(0, 0, 0, .35);
}
.st-flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #070e19; }
.st-flap-ch { font-family: var(--font-mono); font-weight: 600; font-size: 44px; line-height: 1; color: #f3e6c4; animation: stFlap .16s ease-out both; }
@keyframes stFlap { from { transform: rotateX(-82deg); opacity: .35; } to { transform: none; opacity: 1; } }
.st-board .lbl { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #e0b766; }
.st-board .sub { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: #9db1c8; }
@media (max-width: 760px) {
  .st-board { grid-template-columns: 1fr 1fr; }
  .st-flap { width: 40px; height: 56px; } .st-flap-ch { font-size: 33px; }
  .st-board-cell { padding: 18px 16px 20px; }
}

/* ─── Le plan qui s'écrit + zones ─── */
.st-plan { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 46px; align-items: center; }
.st-zones { display: flex; gap: 10px; align-items: stretch; height: 178px; margin-top: 4px; }
.st-zone { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.st-zone-bar { flex: 1; width: 100%; max-width: 46px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 8px; background: var(--bg-card-2); border: 1px solid var(--border); }
.st-zone-bar i { display: block; width: 100%; border-radius: 6px 6px 0 0; transition: height .45s var(--st-ease); }
.st-zone .mono { font-size: 11px; color: var(--text); }
.st-zone-n { font-size: 10.5px; line-height: 1.2; text-align: center; color: var(--text-dim); }
.st-zone-v { font-family: var(--font-mono); font-size: 11px; color: var(--brand); animation: stFade .4s both; }
.st-zone-cap { font-size: 13.5px; line-height: 1.5; color: var(--text-mid); margin: 14px 0 0; transition: opacity .5s; }
.st-plan-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 30px 60px -34px rgba(8, 18, 31, .45); }
.st-replay { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-mid); font-size: 15px; cursor: pointer; transition: color .2s, border-color .2s, transform .4s; }
.st-replay:hover { color: var(--brand); border-color: var(--brand); transform: rotate(-180deg); }
.st-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 16px 0 10px; }
.st-day { display: flex; flex-direction: column; gap: 6px; }
.st-day-d { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--text-dim); }
.st-sess { --c: #00c8e0; position: relative; overflow: hidden; min-height: 150px; padding: 10px 9px; border-radius: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--bg-card-2); border: 1px dashed var(--border); }
.st-sess > * { opacity: 0; transform: translateY(-12px); }
.st-sess.in { background: color-mix(in srgb, var(--c) 12%, var(--bg-card)); border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); animation: stSessIn .55s var(--st-ease) both; }
.st-sess.in::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.st-sess.in > * { opacity: 1; transform: none; transition: opacity .4s .12s, transform .5s .12s var(--st-ease); }
@keyframes stSessIn { 0% { transform: translateY(-26px) scale(.96); opacity: 0; } 70% { transform: translateY(3px); opacity: 1; } 100% { transform: none; opacity: 1; } }
.st-sess b { font-size: 12.5px; line-height: 1.3; font-weight: 600; color: var(--text); }
.st-sess > span { font-size: 11.5px; color: var(--text-mid); }
.st-sess .st-chip { align-self: flex-start; margin-top: auto; font-size: 10.5px; padding: 2px 6px; }
.st-plan-foot { display: flex; justify-content: space-between; align-items: flex-end; min-height: 58px; font-size: 12px; color: var(--text-mid); }
.st-plan-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.st-plan-card > .st-plan-note { display: block; margin-top: 4px; }
@media (max-width: 900px) {
  .st-plan { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .st-plan-card, .st-plan-side { min-width: 0; }
  .st-week { grid-template-columns: repeat(7, 112px); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .st-day { scroll-snap-align: start; }
}

/* ─── La saison jusqu'au Jour J ─── */
.st-season-head { text-align: center; max-width: 720px; margin: 0 auto 20px; }
.st-season-head .st-lede { margin: 0 auto; }
.st-season-chart { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 14px; box-shadow: var(--shadow-card); }
.st-season-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.st-season-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 8px 6px 0; font-size: 12.5px; color: var(--text-mid); }
.st-season-legend i { display: inline-block; width: 14px; height: 3px; margin-right: 7px; border-radius: 2px; vertical-align: 3px; }
.st-season-legend .st-plan-note { margin-left: auto; }
.st-jj { transition: opacity .5s; }
.st-medal { opacity: 0; transform: translateY(-130px); transition: transform .9s cubic-bezier(.3, 1.45, .5, 1), opacity .3s; }
.st-medal.drop { opacity: 1; transform: none; }

/* ─── Ruban d'arrivée ─── */
.st-finish { position: relative; display: inline-flex; margin: 0 56px; }
.st-tape {
  position: absolute; top: -7px; height: 11px; z-index: 2; pointer-events: none; overflow: hidden; display: flex; align-items: center;
  background: repeating-linear-gradient(-45deg, #e0b766 0 9px, #f6efe0 9px 18px); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .55s cubic-bezier(.2, .9, .3, 1.2), opacity .4s;
}
.st-tape.l { left: -46px; right: 50%; transform-origin: 0 50%; border-radius: 3px 0 0 3px; }
.st-tape.r { right: -46px; left: 50%; transform-origin: 100% 50%; border-radius: 0 3px 3px 0; justify-content: flex-end; }
.st-tape i { font-style: normal; font-family: var(--font-mono); font-size: 7.5px; font-weight: 600; letter-spacing: .22em; color: #0b1626; padding: 0 10px; white-space: nowrap; }
.st-finish:hover .st-tape.l, .st-finish:focus-within .st-tape.l { transform: rotate(26deg) scaleX(.42); opacity: .9; }
.st-finish:hover .st-tape.r, .st-finish:focus-within .st-tape.r { transform: rotate(-26deg) scaleX(.42); opacity: .9; }
.st-post { position: absolute; top: -16px; width: 4px; height: calc(100% + 26px); border-radius: 2px; background: linear-gradient(#e0b766, rgba(224, 183, 102, .15)); }
.st-post.l { left: -50px; } .st-post.r { right: -50px; }
@media (max-width: 560px) { .st-finish { margin: 0 50px; } }

/* ─── Héros de nuit ─── */
.st-hero { padding: 64px 0 0; }
.st-hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 0 32px 54px; }
.st-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(42px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.022em; margin: 0 0 22px; text-wrap: balance; color: var(--night-ink); }
.st-hero h1 .grad { background: linear-gradient(120deg, #00c8e0 10%, #7b8cff 55%, #e0b766 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.st-hero p.lead { font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.6; color: var(--night-muted); max-width: 50ch; margin: 0 0 30px; text-wrap: pretty; }
.st-hero .disc-hero-cta { justify-content: flex-start; }
.st-hero .disc-hero-note { color: var(--night-muted); }
@media (max-width: 900px) {
  .st-hero { padding-top: 34px; }
  .st-hero-grid { grid-template-columns: 1fr; padding: 0 20px 40px; gap: 26px; }
  .st-globe { max-width: 420px; }
}

/* ─── Démo Coach IA ─── */
.st-demo { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.st-qlist { display: grid; gap: 8px; }
.st-q {
  display: flex; gap: 14px; align-items: baseline; text-align: left; width: 100%;
  font: inherit; font-size: 14.5px; line-height: 1.45; color: var(--text-mid);
  background: transparent; border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--st-ease);
}
.st-q .n { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); }
.st-q:hover { border-color: var(--border-mid); color: var(--text); transform: translateX(3px); }
.st-q.on { border-color: var(--brand); color: var(--text); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.st-q.on .n { color: var(--brand); }
.st-demo-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px 18px;
  box-shadow: 0 30px 60px -34px rgba(8, 18, 31, .45); min-height: 360px; display: flex; flex-direction: column; gap: 16px;
}
.st-dc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.st-dc-q, .st-dc-a { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: start; }
.st-dc-q { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.4; color: var(--text); min-height: 52px; }
.st-dc-who { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding-top: 5px; }
.st-dc-who.coach { color: var(--brand); }
.st-claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-claims li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text); padding: 11px 13px; background: var(--bg-card-2); border-radius: 10px; border-left: 2px solid var(--brand); animation: stClaim .5s var(--st-ease) both; animation-delay: calc(var(--i) * 140ms); }
.st-chip.warn { color: #d9774a; border-color: rgba(217, 119, 74, .35); }
@keyframes stClaim { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.st-dc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); min-height: 58px; }
@media (max-width: 900px) { .st-demo { grid-template-columns: minmax(0, 1fr); gap: 26px; } .st-claims li { flex-direction: column; } }

/* ─── Étagère des piliers ─── */
.st-shelf-zone { position: relative; }
.st-shelf {
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: 5px; row-gap: 30px; padding: 0 12px 18px; margin-top: 26px;
  background-image: linear-gradient(to bottom, transparent 270px, var(--plank, #c9bfae) 270px, var(--plank, #c9bfae) 283px, var(--plank-shade, #a99c86) 283px, var(--plank-shade, #a99c86) 286px, transparent 286px);
  background-size: 100% 300px; background-position: 0 0;
}
.dark .st-shelf, :root:not(.light) .st-shelf { --plank: #2a3a52; --plank-shade: #1a2638; }
.light .st-shelf { --plank: #cbbfa9; --plank-shade: #a79a82; }
.st-slot { height: 270px; display: flex; align-items: flex-end; perspective: 600px; }
.st-spine {
  --c: #00c8e0;
  position: relative; width: 46px; border: 0; padding: 12px 0 12px; cursor: pointer; color: #f6efe0;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .10) 18%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .18) 85%, rgba(0, 0, 0, .34)),
    color-mix(in srgb, var(--c) 72%, #0b1626);
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .18), 0 2px 0 rgba(0, 0, 0, .12);
  transition: transform .35s var(--st-ease), box-shadow .35s var(--st-ease), filter .2s;
  transform-origin: bottom center;
}
.st-spine .no { font-family: var(--font-mono); font-size: 10px; opacity: .8; }
.st-spine .band { width: 70%; height: 3px; background: #e0b766; opacity: .85; box-shadow: 0 5px 0 #e0b766; flex: none; }
.st-spine .band.b2 { margin-top: auto; box-shadow: 0 -5px 0 #e0b766; }
.st-spine .ttl {
  writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-display); font-weight: 600;
  font-size: 13.5px; line-height: 1.15; letter-spacing: .01em; text-align: left; max-height: 150px; overflow: hidden;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.st-spine .ico { opacity: .85; display: flex; }
.st-spine:hover, .st-spine:focus-visible { transform: translateY(-16px) rotate(-1.5deg); box-shadow: 0 18px 22px -12px rgba(0, 0, 0, .55), inset 0 -6px 10px rgba(0, 0, 0, .18); outline: none; filter: brightness(1.08); }
.st-spine:focus-visible { box-shadow: 0 0 0 3px var(--brand), 0 18px 22px -12px rgba(0, 0, 0, .55); }
.st-spine.soon { filter: saturate(.4) brightness(.9); }
.site-footer .footer-col h4 { font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; }
.st-shelf-cap { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; margin: 26px auto 0; max-width: 820px; text-align: center; min-height: 48px; }
.st-shelf-cap .mono { font-size: 11.5px; color: var(--brand); letter-spacing: .08em; }
.st-shelf-cap b { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--text); }
.st-shelf-cap span:last-child { color: var(--text-mid); font-size: 15px; }
@media (max-width: 760px) {
  .st-shelf { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; background-size: 100% 300px; }
  .st-slot { scroll-snap-align: center; flex: none; }
}

/* ─── Le livre qui s'ouvre ─── */
.st-bkwrap { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(5, 12, 22, .72); backdrop-filter: blur(6px); animation: stFade .3s ease both; }
@keyframes stFade { from { opacity: 0; } to { opacity: 1; } }
.st-book {
  --c: #00c8e0; --paper: #f6f1e6; --ink: #2b2418;
  position: relative; width: min(920px, 100%); aspect-ratio: 1.55 / 1; display: grid; grid-template-columns: 1fr 1fr;
  perspective: 2200px; transform: translateX(-25%); transition: transform .9s var(--st-ease);
  animation: stDrop .5s var(--st-ease) both;
}
@keyframes stDrop { from { opacity: 0; translate: 0 -30px; } to { opacity: 1; translate: 0 0; } }
.st-book.open { transform: none; }
.st-page {
  position: relative; background: var(--paper); color: var(--ink); padding: 34px 34px 40px; overflow: auto;
  box-shadow: inset 0 0 40px rgba(120, 90, 40, .12);
}
.st-page.left { border-radius: 10px 0 0 10px; opacity: 0; transition: opacity .4s .55s; background: linear-gradient(90deg, var(--paper) 88%, #e7dfcd); }
.st-page.right { border-radius: 0 10px 10px 0; background: linear-gradient(90deg, #e9e1cf, var(--paper) 12%); }
.st-book.open .st-page.left { opacity: 1; }
.st-bk-eye { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #2b2418); }
.st-page h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; margin: 10px 0 8px; color: #1d1810; }
.st-bk-tag { font-family: var(--font-display); font-style: italic; font-size: 16px; color: #6b604c; margin: 0; }
.st-bk-orn { color: #b8893a; letter-spacing: .5em; margin: 18px 0; font-size: 12px; }
.st-bk-intro { font-size: 14.5px; line-height: 1.65; margin: 0; }
.st-bk-pn { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 12px; color: #9a8e78; }
.st-bk-ben { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 11px; }
.st-bk-ben li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.st-bk-chk { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: color-mix(in srgb, var(--c) 75%, #2b2418); margin-top: 1px; }
.st-bk-aud { font-size: 13.5px; line-height: 1.55; color: #5a503e; padding: 12px 14px; border-left: 3px solid #b8893a; background: rgba(184, 137, 58, .08); border-radius: 0 8px 8px 0; }
.st-bk-aud b { color: #2b2418; }
.st-bk-cta { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.st-bk-cta .st-seal { color: #b8893a; }
.st-cover {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.6, .05, .2, 1); z-index: 3;
}
.st-book.open .st-cover { transform: rotateY(-180deg); }
.st-cover .front, .st-cover .back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0 10px 10px 0; }
.st-cover .front {
  display: grid; place-content: center; gap: 14px; text-align: center; padding: 30px; color: #f3e6c4;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .14), transparent 55%), color-mix(in srgb, var(--c) 62%, #0b1626);
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, .08), inset 0 0 0 11px rgba(224, 183, 102, .55), 10px 14px 30px rgba(0, 0, 0, .45);
}
.st-cover .front b { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.8vw, 34px); line-height: 1.1; }
.st-cover .front .mono { font-size: 12px; letter-spacing: .2em; opacity: .85; }
.st-cover .front .star { color: #e0b766; font-size: 22px; }
.st-cover .back { display: none; }
.st-bk-x { position: absolute; top: -44px; right: 0; z-index: 5; background: rgba(255, 255, 255, .1); color: #f6f1e6; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.st-bk-x:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 760px) {
  .st-book, .st-book.open { grid-template-columns: 1fr; aspect-ratio: auto; transform: none; animation: stFade .3s ease both; max-height: 84vh; overflow: auto; border-radius: 12px; }
  .st-page.left, .st-page.right { border-radius: 0; opacity: 1; }
  .st-page.left { border-radius: 12px 12px 0 0; }
  .st-page.right { border-radius: 0 0 12px 12px; }
  .st-cover { display: none; }
  .st-bk-x { top: 10px; right: 10px; background: rgba(0, 0, 0, .55); }
}
@media (prefers-reduced-motion: reduce) {
  .st-book, .st-cover, .st-page.left { transition: none !important; animation: none !important; }
  .st-claims li { animation: none; }
  .st-lc { opacity: 1 !important; animation: none !important; filter: none !important; }
  .st-lc-bars rect { transform: none !important; transition: none !important; }
  .st-lc-fade { opacity: 1 !important; transition: none !important; }
  .st-lc-gauge { stroke-dashoffset: var(--to) !important; transition: none !important; }
  .st-lc-draw { stroke-dashoffset: 0 !important; transition: none !important; }
  .st-lc-pill, .st-lc-task i, .st-lc-task i svg, .st-live-scene { transition: none !important; }
  .st-lc-bubble .st-caret { animation: none; }
}

/* Bascule Étagère / Liste */
.st-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg-card-2); border: 1px solid var(--border); margin-bottom: 8px; }
.st-seg button { border: 0; background: transparent; color: var(--text-mid); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.st-seg button.on { background: var(--text); color: var(--bg); }
.st-final { margin-top: 70px; }
.st-final + .site-footer { margin-top: 0; border-top: 1px solid var(--night-line); }
