/* Game Viewer — landing. Charte Régie : bordeaux sombre, filets, aucun arrondi,
   coin coupé à 45° réservé aux actions principales et aux éléments actifs.
   Saira (corps), Saira condensée en capitales (titres, libellés), JetBrains Mono (temps). */

@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #160d10;
  --panel: #1d1216;
  --raise: #2a1a1f;
  --video: #0d0809;
  --rule: #35232a;
  --rule-hi: #4a323a;
  --edge: #3d2830;
  --ink: #f3e9ea;
  --body: #e6d6da;
  --soft: #c9b6bb;
  --muted: #b8a2a8;
  --dim: #8f7a80;
  --red: #ff3b5c;
  --red-hi: #ff8fa2;
  --on-red: #1a0b0f;
  --teal: #2fa39a;
  --teal-hi: #3fd4a6;
  --teal-txt: #7fe6cc;
  --yellow: #ffd166;
  --wine: #3b0f1d;
  --wine-deep: #26090f;
  --wine-rule: #6a2439;
  --paper: #f3e9ea;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --cut: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  --gut: clamp(16px, 4vw, 56px);
  --scrub-h: 0px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 "Saira", "Arial Narrow", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--scrub-h);
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
time, output, kbd { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--red); color: var(--on-red); }

.wrap { width: 100%; max-width: 1344px; margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: var(--gut); top: -80px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 20; }
.skip:focus { top: 8px; }

/* Libellés : Saira condensée, capitales, guillemet de chevron devant. */
.label {
  font-size: .875rem; line-height: 1.3; font-weight: 700; font-stretch: 75%;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red-hi);
}
.label::before { content: "« "; }
.hero__label, .stage__bar .label, .room__bar .label, .session__code .label, .keys .label { color: var(--muted); }
.stage__bar .label::before, .room__bar .label::before, .session__code .label::before, .keys .label::before { content: none; }

/* Grand titre de section. Le h2 descriptif (pour les moteurs) porte la classe .label ;
   la formule qui suit garde l'allure du titre avec .punch. */
h2, .punch {
  font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(2.125rem, 4vw, 3.25rem); line-height: 1; letter-spacing: 0;
  text-wrap: balance;
}
h2.label { font-size: .875rem; line-height: 1.4; font-weight: 700; letter-spacing: .2em; }
.punch { color: var(--ink); }

/* Coin coupé : boutons principaux et éléments actifs uniquement. */
.btn--rec, .transport__play, .pov.is-focus .pov__tag, .room__view .pov__tag { clip-path: var(--cut); }

/* ── Boutons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  font-weight: 700; font-size: 1.0625rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--rule-hi); transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 1rem; }
.btn--rec { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn--rec:hover { background: #ff5a75; border-color: #ff5a75; }
.btn--rec:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--on-red), inset 0 0 0 4px var(--ink); }
.btn--line { font-weight: 600; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn__dot { display: none; }
#recBtn .btn__dot { display: block; width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); }
.session.is-rec #recBtn .btn__dot { transform: none; }

/* ── En-tête ── */
.top {
  display: flex; align-items: center; gap: 24px; height: 68px; padding-inline: max(var(--gut), calc((100% - 1344px) / 2 + var(--gut)));
  border-bottom: 1px solid var(--rule);
}
.top__logo img { width: 112px; }
.top__nav { display: flex; gap: 24px; margin-left: auto; }
.top__nav a, .top__login, .top__lang, .foot nav a {
  font-size: .9375rem; font-weight: 700; font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 12px 0; transition: color .15s, border-color .15s;
}
.top__nav a:hover, .top__lang:hover, .foot nav a:hover { color: var(--ink); }
.top__lang { padding: 12px 6px; margin-right: -8px; }
.top__login { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; color: var(--ink); border: 1px solid var(--rule-hi); letter-spacing: .12em; }
.top__login:hover { border-color: var(--ink); }
@media (max-width: 760px) { .top { height: 60px; } .top__logo img { width: 96px; } .top__nav { display: none; } .top__lang { margin-left: auto; } }

/* ── Hero : une promesse, un bouton, puis le produit ── */
.hero { position: relative; isolation: isolate; padding-bottom: clamp(40px, 5vw, 64px); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 -20% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 60% at 86% 4%, rgba(255, 59, 92, .24), transparent 70%),
    radial-gradient(40% 46% at 6% 78%, rgba(63, 212, 166, .08), transparent 70%),
    repeating-linear-gradient(90deg, rgba(74, 50, 58, .3) 0 1px, transparent 1px 120px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.ruler { display: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.hero__h1 { font: inherit; }
.hero__h1 > .hero__label, .hero__h1 > .hero__title { display: block; }
.hero__label { margin-top: clamp(32px, 5vw, 72px); font-size: .9375rem; }
.hero__title {
  margin: 18px 0 0 -.03em;
  font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  /* borné par la hauteur : la démo doit commencer dans le premier écran */
  font-size: clamp(3rem, min(8vw, 13vh), 6.75rem); line-height: .92; letter-spacing: -.005em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title em { font-style: normal; color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .hero__title span { animation: align .95s var(--ease) both; }
  .hero__title span:nth-child(1) { --from: 3.2%; }
  .hero__title span:nth-child(2) { --from: 9%; animation-delay: .06s; }
  .hero__title span:nth-child(3) { --from: 5.6%; animation-delay: .12s; }
  @keyframes align { from { transform: translateX(var(--from)); } to { transform: none; } }
}
.hero__side { display: grid; gap: 22px; justify-items: start; padding-bottom: .4em; }
.hero__lede { max-width: 34rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; color: var(--body); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__cta .btn--rec { min-height: 56px; padding-inline: 30px; font-size: 1.125rem; }
.hero__notes { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9375rem; color: var(--muted); }
.hero__notes li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--teal-hi); transform: rotate(45deg) translateY(-2px); }
@media (min-width: 1100px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); } }
@media (max-width: 700px) {
  .hero__title { font-size: 12.8vw; }
  .hero__label { margin-top: 32px; font-size: .8125rem; letter-spacing: .18em; }
  .hero__cta, .hero__cta .btn { width: 100%; }
}

/* Le produit sous le hero : la démo dans un cadre, une carte posée dessus */
.product { position: relative; }
.product .stage { box-shadow: 0 50px 140px -30px rgba(255, 59, 92, .3), 0 0 0 8px rgba(243, 233, 234, .03); border-color: var(--rule-hi); }
.float { position: absolute; z-index: 3; right: -18px; bottom: 84px; width: 236px; padding: 14px 16px; background: var(--paper); color: var(--on-red); clip-path: var(--cut); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.float p { font-size: .8125rem; font-weight: 700; font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; }
.float dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 8px; font-size: .875rem; font-weight: 600; }
.float dd { font-family: var(--mono); font-weight: 500; color: #a3122d; }
@media (max-width: 1180px) { .float { display: none; } }

/* Chiffres et jeux */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-block: 1px solid var(--rule); }
.facts li { padding: 22px 20px; border-left: 1px solid var(--rule); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-weight: 800; font-stretch: 75%; font-size: clamp(2.4rem, 4.4vw, 3.75rem); line-height: 1; }
.facts b small { font-size: .45em; color: var(--red); margin-left: .14em; }
.facts span { display: block; margin-top: 6px; color: var(--muted); font-size: .9375rem; line-height: 1.35; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 18px 14px; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.games { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding-top: 24px; }
.games p { color: var(--muted); font-size: .9375rem; }
.games ul { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.games li { font-weight: 700; font-stretch: 75%; font-size: 1.0625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.games a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule-hi); }
.games a:hover { color: var(--red-hi); border-color: var(--red-hi); }

/* ── Aperçu produit : salle de review en vue focus ── */
.stage { margin-top: clamp(36px, 4.4vw, 64px); border: 1px solid var(--rule); background: var(--panel); }
.stage__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.stage__bar .label { font-size: .875rem; letter-spacing: .14em; }
.stage__live { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 700; font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-txt); white-space: nowrap; }
.stage__live i { width: 8px; height: 8px; background: var(--teal-hi); transform: rotate(45deg); }
.stage__grid {
  display: grid; gap: 10px; padding: 14px 0 14px 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(260px, 340px); grid-auto-flow: dense;
}
.pov { position: relative; display: block; background: var(--video); aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--edge); }
.pov canvas { width: 100%; height: 100%; }
.pov.is-focus { grid-column: 1 / span 4; grid-row: 1; aspect-ratio: 2 / 1; border: 2px solid var(--red); cursor: default; }
.pov__tag {
  position: absolute; left: 0; bottom: 0; padding: 2px 8px; background: rgba(0, 0, 0, .7);
  font-size: .8125rem; font-weight: 700; font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase;
}
.pov__tag i { font-style: normal; }
.pov.is-focus .pov__tag, .room__view .pov__tag { top: 0; bottom: auto; padding: 4px 16px 4px 10px; background: var(--red); color: var(--on-red); font-size: .875rem; }
.pov.is-focus .pov__tag::before, .room__view .pov__tag::before { content: "« "; }
.pov:not(.is-focus):hover { border-color: var(--rule-hi); }
.pov:not(.is-focus):hover .pov__tag { color: var(--red-hi); }
.pov:focus-visible { outline-offset: -4px; z-index: 1; }

/* Avec JS : vue grille / vue focus de l'appli, dans une zone de hauteur fixe (aucun saut de page). */
.stage.is-ready .stage__grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.stage__view { position: relative; grid-column: 1; grid-row: 1; aspect-ratio: 25 / 13; }
.stage__view .pov, .stage__slot {
  position: absolute; left: 0; top: 0; width: var(--w, 0); height: var(--h, 0); aspect-ratio: auto;
  transform: translate(var(--x, 0), var(--y, 0));
}
.stage__view .pov { z-index: 1; transition: transform .32s var(--ease), width .32s var(--ease), height .32s var(--ease), border-color .15s; }
.stage__view .pov.is-focus { z-index: 2; }
.stage__view .pov canvas { position: absolute; inset: 0; }
.stage__view .pov.is-sound { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.stage__view .pov.is-sound .pov__tag { background: var(--red); color: var(--on-red); }
.stage__slot {
  z-index: 0; opacity: 0; border: 2px solid var(--red); transition: opacity .2s;
  background: repeating-linear-gradient(135deg, rgba(255, 59, 92, .14) 0 6px, transparent 6px 12px), var(--video);
}
.stage.is-focusview .stage__slot { opacity: .55; transition-delay: .2s; }
.stage__slot span i { font-style: normal; }
.stage__slot span {
  position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 2px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--red); color: var(--on-red); font-size: .75rem; font-weight: 700; font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase;
}
.stage.is-ready .notes { grid-column: 2; grid-row: 1; }
@media (prefers-reduced-motion: reduce) { .stage__view .pov, .stage__slot { transition: none; } }

.notes { grid-column: 5; grid-row: 1 / span 2; margin: -14px 0; background: var(--panel); border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.notes li { border-bottom: 1px solid #2e1e23; display: flex; }
.notes li:last-child { border-bottom: 0; }
.notes button {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-content: start; text-align: left; width: 100%;
  padding: 14px 16px; transition: background-color .15s, box-shadow .15s;
}
.notes button:hover { background: var(--raise); }
.notes time { font-size: .8125rem; color: var(--red-hi); }
.notes b { font-size: .8125rem; font-weight: 600; }
.notes span { grid-column: 1 / -1; font-size: .9375rem; line-height: 1.45; color: var(--soft); }
.notes .is-on button { background: var(--raise); box-shadow: inset 3px 0 0 var(--yellow); }
.notes .is-on time { color: var(--yellow); }
.notes .is-on span { color: var(--ink); }

.transport { display: flex; align-items: center; gap: 14px; padding: 10px 16px 12px; border-top: 1px solid var(--rule); }
.transport__play { width: 44px; height: 36px; display: grid; place-items: center; flex: none; background: var(--ink); }
.transport__play:hover { background: #fff; }
.transport__play:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--red); }
.transport__play svg { fill: var(--bg); width: 14px; height: 14px; }
.i-pause, .is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.transport__time { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: .9375rem; min-width: 4.6em; }
.transport__time--end { color: var(--dim); min-width: 0; }
.transport__track { position: relative; flex: 1; height: 44px; display: flex; align-items: center; }
.transport__track i { position: absolute; left: var(--at); top: 9px; width: 8px; height: 8px; margin-left: -4px; background: var(--ink); pointer-events: none; transform: rotate(45deg); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; padding-top: 16px; background: none; cursor: ew-resize; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--red) var(--p, 0%), var(--raise) var(--p, 0%)); }
input[type=range]::-moz-range-track { height: 6px; background: linear-gradient(90deg, var(--red) var(--p, 0%), var(--raise) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 30px; margin-top: -20px; background: #fff; border: 0; }
input[type=range]::-moz-range-thumb { width: 2px; height: 30px; background: #fff; border: 0; border-radius: 0; }


@media (max-width: 1040px) {
  .stage__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px; gap: 6px; }
  .pov.is-focus { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .notes { grid-column: 1 / -1; grid-row: auto; margin: 4px 0 0; border: 0; }
  .pov:not(.is-focus) .pov__tag { font-size: .6875rem; padding: 1px 6px; }
  .stage.is-ready .stage__grid { grid-template-columns: minmax(0, 1fr); }
  .stage.is-ready .notes { grid-column: 1; grid-row: 2; }
}
@media (max-width: 560px) {
  .stage__bar { padding: 8px 12px; }
  .stage__bar .label, .stage__live { font-size: .75rem; letter-spacing: .12em; }
  .stage__bar .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pov:not(.is-focus) .pov__tag { letter-spacing: 0; min-width: 20px; text-align: center; }
  .pov:not(.is-focus) .pov__tag i { display: none; }
  .stage__slot span { font-size: .625rem; padding: 1px 5px; letter-spacing: 0; }
  .stage__slot span i { display: none; }
  /* sur mobile, seul le commentaire courant reste affiché */
  .notes li { display: none; }
  .notes li.is-on, .notes:not(:has(.is-on)) li:first-child { display: flex; }
  .notes button { padding: 10px 12px; }
  .transport { gap: 10px; padding-inline: 10px; }
  .transport__time--end { display: none; }
}

/* ── « Attends, t'es à combien ? » : première rupture d'ambiance, bordeaux plein ── */
.said { padding-block: clamp(64px, 8vw, 128px); }
.said .wrap { display: grid; gap: clamp(20px, 3vw, 40px); }
.said__h { color: #f0c5cd; }
.said__lines { font-weight: 300; font-stretch: 75%; font-size: clamp(1.75rem, 4.6vw, 4.25rem); line-height: 1.1; color: #f0c5cd; }
.said__lines span { display: block; }
.said__lines span:nth-child(2) { padding-left: 14%; }
.said__lines span:nth-child(3) { padding-left: 5%; color: var(--ink); }
.said__after { max-width: 24em; font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.375rem, 2.4vw, 2.125rem); line-height: 1.08; color: var(--ink); text-wrap: balance; }
@media (max-width: 700px) { .said__lines span:nth-child(n) { padding-left: 0; } }

/* ── Ambiances de section ── */
.sec--wine { background: radial-gradient(70% 90% at 12% 0%, #5a1428, transparent 70%), linear-gradient(var(--wine), var(--wine-deep)); border-block: 1px solid #5a1f30; }
.sec--wine .label { color: #f0c5cd; }
.sec--paper { background: var(--paper); color: var(--on-red); }
.sec--paper .label { color: #8a2338; }
.sec--paper h2 em { font-style: normal; color: #d41f43; }
.sec--paper .sec__head p:not(.label):not(.punch) { color: #4a2b33; }
.sec--paper :focus-visible { outline-color: var(--on-red); }
.sec--paper + .sec, .sec--wine + .sec, .sec + .sec--paper, .sec + .sec--wine { border-top: 0; }

/* ── Sections ── */
.sec { padding-block: clamp(64px, 7.5vw, 104px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec--deep + .sec { border-top: 0; }
.sec--deep { background: var(--panel); border-block: 1px solid var(--rule); }
.sec__grid { display: grid; gap: clamp(36px, 4vw, 56px); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.sec__grid--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sec__head h2, .sec__head .punch { margin-top: 14px; }
.sec__head h2.label { margin-top: 0; }
.sec__head p:not(.label):not(.punch) { margin-top: 16px; max-width: 34rem; color: var(--body); }
.sec__head h2 + p, .sec__head .punch + p { margin-top: 20px; }
.sec__head h2.label + .punch { margin-top: 14px; }
.sec__head .btn { margin-top: 28px; }
.sec__head p.dl__alt { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.dl__alt a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.dl__alt a:hover { color: var(--ink); }
.dl__alt a:not([hidden]) ~ a:not([hidden])::before { content: "\00b7"; display: inline-block; margin: 0 .5em; color: var(--dim); text-decoration: none; }
.sec__head--wide h2, .sec__head--wide .punch { max-width: 14em; }
.sec__head--wide h2.label { max-width: 40rem; }

/* ── Fonctionnalités clés : une par écran, la suivante glisse par-dessus ── */
.feats__head { padding-block: clamp(64px, 7.5vw, 104px) clamp(32px, 4vw, 56px); }
.who { margin-top: 24px; max-width: 46rem; color: var(--body); }
.feat { position: relative; isolation: isolate; border-top: 1px solid var(--rule-hi); padding-block: 56px; background: var(--bg); }
.feat::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(46% 70% at var(--gx, 80%) 50%, var(--glow, rgba(255, 59, 92, .15)), transparent 72%); }
.feat:nth-of-type(2) { background: #0f1414; --glow: rgba(63, 212, 166, .15); --gx: 22%; }
.feat:nth-of-type(3) { background: var(--wine-deep); --glow: rgba(255, 59, 92, .24); }
.feat:nth-of-type(4) { background: #1a1410; --glow: rgba(255, 209, 102, .13); --gx: 22%; }
.feat__in { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feat:nth-of-type(even) .feat__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat:nth-of-type(even) .feat__text { order: 2; }
.feat__count { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-weight: 500; font-size: .875rem; color: var(--muted); }
.feat__count b { color: var(--ink); font-weight: 500; }
.feat__count i { flex: 0 0 120px; height: 4px; background: linear-gradient(90deg, var(--red) calc(var(--n) * 25%), var(--raise) 0); }
.feat__verb { margin-top: 26px; }
.feat h3 { margin-top: 12px; font-size: clamp(2.125rem, 4.2vw, 3.5rem); }
.feat__text > p:not([class]) { margin-top: 20px; max-width: 30rem; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--body); }
.tlink { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.tlink:hover { color: var(--red-hi); }
.feat .session, .feat .sync, .feat .room { box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); border-color: var(--rule-hi); }
.feat .room { position: static; margin: 0; }
@media (min-width: 960px) and (min-height: 700px) {
  .feat { position: sticky; top: 0; min-height: calc(100vh - var(--scrub-h)); min-height: calc(100svh - var(--scrub-h)); display: grid; align-items: center; }
  .feat .session__players li { height: clamp(46px, 6.4vh, 60px); }
  .feat .lane { height: clamp(40px, 6vh, 56px); }
}
@media (max-width: 959px) { .feat .feat__in, .feat:nth-of-type(even) .feat__in { grid-template-columns: minmax(0, 1fr); } .feat:nth-of-type(even) .feat__text { order: 0; } }

/* ── Le reste de la salle : grille compacte ── */
.grid8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.grid8 li { padding: 22px 20px 26px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background-color .15s; }
.grid8 li:hover { background: var(--panel); }
.grid8 h3 { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-stretch: 75%; font-size: 1.1875rem; line-height: 1.15; letter-spacing: .08em; text-transform: uppercase; }
.grid8 h3::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg) translateY(-2px); }
.grid8 p { margin-top: 8px; color: var(--soft); font-size: .9375rem; line-height: 1.45; }
@media (max-width: 1000px) { .grid8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid8 li { padding: 16px 14px 18px; } .grid8 h3 { font-size: 1rem; letter-spacing: .05em; } .grid8 p { font-size: .875rem; } }

/* ── Comparatif ── */
.versus { margin-top: clamp(40px, 5vw, 64px); }
.versus h3 { font-weight: 700; font-stretch: 75%; font-size: 1.375rem; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; }
.versus__scroll { margin-top: 18px; overflow-x: auto; border: 1px solid var(--rule); }
.versus table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .9375rem; }
.versus th, .versus td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); color: var(--soft); font-weight: 400; }
.versus tbody tr:last-child > * { border-bottom: 0; }
.versus thead th, .versus tbody th { font-weight: 700; font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; font-size: .875rem; color: var(--ink); }
.versus tbody th { width: 22%; color: var(--muted); }
.versus tr > :last-child { background: var(--raise); color: var(--ink); box-shadow: inset 3px 0 0 var(--red); }
.sec--paper .versus { margin-top: clamp(28px, 3.4vw, 48px); }
.sec--paper .versus__scroll { margin-top: 0; border-color: #d8c4c9; }
.sec--paper .versus th, .sec--paper .versus td { border-bottom-color: #d8c4c9; color: #4a2b33; font-size: 1rem; }
.sec--paper .versus thead th { color: var(--on-red); }
.sec--paper .versus tbody th { color: #7a4a56; }
.sec--paper .versus tr > :last-child { background: #fff; color: var(--on-red); font-weight: 600; }
.sec--paper .versus__more { color: #4a2b33; max-width: 52rem; }
.sec--paper .versus__more a { color: var(--on-red); }
@media (max-width: 680px) {
  /* Mobile : chaque critère devient une carte, les trois réponses l'une sous l'autre */
  .sec--paper .versus__scroll { overflow: visible; border: 0; }
  .sec--paper .versus table, .sec--paper .versus tbody, .sec--paper .versus tr, .sec--paper .versus tbody th, .sec--paper .versus td { display: block; min-width: 0; width: auto; }
  .sec--paper .versus thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sec--paper .versus tbody tr { border: 1px solid #d8c4c9; background: #f8eeef; }
  .sec--paper .versus tbody tr + tr { margin-top: 14px; }
  .sec--paper .versus tbody th { padding: 14px 16px 10px; border-bottom: 0; font-size: 1.125rem; letter-spacing: .06em; color: var(--on-red); }
  .sec--paper .versus td { padding: 10px 16px 12px; border-bottom: 0; border-top: 1px solid #e3d2d6; font-size: 1rem; line-height: 1.4; }
  .sec--paper .versus td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-weight: 700; font-stretch: 75%; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #7a4a56; }
  .sec--paper .versus tbody tr > td:last-child { padding: 12px 16px 14px; border-top: 0; box-shadow: inset 4px 0 0 var(--red); }
  .sec--paper .versus tbody tr > td:last-child::before { color: #c2183a; }
}
#faq .sec__grid { align-items: start; }
@media (max-width: 960px) { .sec__grid, .sec__grid--flip { grid-template-columns: 1fr; } }

/* ── Synchro ── */
.sync { border: 1px solid var(--rule); background: var(--panel); padding: 20px; }
.sync__lanes { position: relative; display: grid; gap: 10px; }
.sync__lanes::after {
  content: ""; position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--red);
  left: calc(76px + (100% - 76px - 76px) * .4); margin-left: -1.5px;
  transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease) .55s;
}
.lane { display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; align-items: center; height: 40px; }
.lane__who { font-size: .875rem; font-weight: 700; font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase; }
.lane__wave { height: 100%; overflow: hidden; background: var(--bg); color: var(--teal-hi); }
.lane__wave path { stroke-width: 2px; }
@media (max-width: 700px) { .lane__wave path { stroke-width: 1px; } }
.lane__wave svg { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.lane__off { text-align: right; font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--dim); }
.is-synced .lane__wave svg { transform: translateX(calc(var(--o) / 150 * 100%)); }
.is-synced .sync__lanes::after { transform: none; }
.is-synced .lane__off { color: var(--teal-txt); }
.sync__foot { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.sync__foot p, .session__foot p { font-size: .875rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 480px) {
  .sync { padding: 14px; }
  .lane { grid-template-columns: 58px minmax(0, 1fr) 62px; }
  .sync__lanes::after { left: calc(58px + (100% - 58px - 62px) * .4); }
  .lane__who { font-size: .8125rem; letter-spacing: .04em; }
}

/* ── Review : salle + fiche ── */
.room { border: 1px solid var(--rule); background: var(--panel); }
.room__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.room__bar .label { font-size: .875rem; letter-spacing: .14em; }
.room__view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 14px 14px 0; border: 2px solid var(--red); background: var(--video); }
.room__view canvas { width: 100%; height: 100%; }
.cursor { position: absolute; left: calc(var(--x, 50) * 1%); top: calc(var(--y, 50) * 1%); display: flex; align-items: flex-start; pointer-events: none; --c: var(--teal-hi); }
.cursor--host { --c: var(--red); }
.cursor i { flex: none; width: 13px; height: 13px; background: var(--c); clip-path: polygon(0 0, 100% 38%, 42% 46%, 30% 100%); }
.cursor b { margin: 10px 0 0 -1px; padding: 3px 6px; background: var(--c); color: var(--on-red); font-size: .75rem; font-weight: 700; font-stretch: 75%; letter-spacing: .08em; line-height: 1; }
.room__note {
  position: absolute; right: 12px; bottom: 12px; width: min(17rem, 62%); padding: 8px 10px 9px 30px;
  background: rgba(22, 13, 16, .92); border: 1px solid var(--rule-hi); display: grid; grid-template-columns: auto 1fr; gap: 2px 8px;
  clip-path: inset(0 0 0 100%); transition: clip-path .45s var(--ease);
}
.room__note::before { content: ""; position: absolute; left: 11px; top: 13px; width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }
.room__note time { font-size: .8125rem; color: var(--yellow); }
.room__note b { font-size: .8125rem; font-weight: 600; color: var(--yellow); }
.room__note span { grid-column: 1 / -1; font-size: .875rem; line-height: 1.4; }
.room.has-note .room__note { clip-path: inset(0); }
.room__line { position: relative; height: 40px; margin-inline: 14px; }
.room__line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 6px; background: linear-gradient(90deg, var(--red) 76%, var(--raise) 76%); }
.room__line i { position: absolute; left: var(--at); top: 9px; width: 8px; height: 8px; margin-left: -4px; background: var(--ink); transform: rotate(45deg); }
.room__line .room__mark { width: 12px; height: 12px; margin-left: -6px; top: 7px; background: var(--yellow); transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.room.has-mark .room__mark { transform: rotate(45deg) scale(1); }
.room__line b { position: absolute; left: var(--at); top: 4px; width: 2px; height: 34px; margin-left: -1px; background: #fff; }
.room figcaption { padding: 10px 16px 12px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--muted); }

@media (max-width: 560px) { .room__view { margin: 10px 10px 0; } .room__line { margin-inline: 10px; } }
.room--ink .room__view { margin-bottom: 14px; }
.room--ink .stage__live { font-family: var(--mono); font-weight: 500; letter-spacing: 0; color: var(--yellow); }
.room--ink .stage__live i { background: var(--yellow); }
.keys { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9375rem; color: var(--muted); }
.keys .label { margin-right: 10px; }
kbd { font-size: .8125rem; color: var(--ink); border: 1px solid var(--edge); background: var(--panel); padding: 3px 9px; min-width: 30px; text-align: center; margin-left: 10px; }
kbd + kbd { margin-left: 0; }
.keys .label + kbd { margin-left: 0; }

/* ── Companion ── */
.session { border: 1px solid var(--rule); background: var(--bg); }
.session__code { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.session__code .label { font-size: .8125rem; letter-spacing: .14em; }
.session__code strong { font-family: var(--mono); font-weight: 500; font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1; letter-spacing: .2em; }
.session__players li { display: grid; grid-template-columns: 1fr auto 4.6rem; align-items: center; gap: 16px; padding: 0 18px; height: 46px; border-top: 1px solid #2e1e23; }
.session__players li:first-child { border-top: 0; box-shadow: inset 3px 0 0 var(--red); }
.session__players span { font-weight: 600; }
.session__players small { font-size: .8125rem; font-weight: 400; color: var(--red-hi); margin-left: 6px; }
.session__players output { font-size: .875rem; color: var(--dim); }
.session__players em { font-style: normal; font-size: .875rem; text-align: right; color: var(--teal-txt); }
.session.is-rec output { color: var(--ink); }
.session.is-rec em, .session.is-count em { color: var(--red-hi); font-weight: 600; }
.session__foot { display: grid; gap: 12px; padding: 14px 18px 16px; border-top: 1px solid var(--rule); }
#recBtn { width: 100%; min-height: 52px; font-weight: 700; font-stretch: 75%; font-size: 1.375rem; letter-spacing: .16em; }

.comp { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.comp .sec__head p:not(.label):not(.punch) { color: #f6dfe3; }
.comp .btn--line { border-color: #b9475f; background: rgba(26, 11, 15, .35); }
.comp .btn--line:hover { border-color: var(--ink); }
.comp .sec__head p.dl__alt, .comp .dl__alt a { color: #e0b3bc; }
.shot img { width: 100%; border: 1px solid var(--wine-rule); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 5px 12px; border: 1px solid var(--wine-rule); font-size: .875rem; font-weight: 600; color: #f0c5cd; }
@media (max-width: 960px) { .comp { grid-template-columns: 1fr; } }

/* ── Tarif et confidentialité ── */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule-hi); }
.duo > div { padding: clamp(24px, 3.6vw, 52px); }
.duo > div + div { border-left: 1px solid var(--rule-hi); background: var(--panel); }
.duo .punch { margin-top: 14px; }
.duo p:not(.label):not(.punch):not(.price) { margin-top: 16px; max-width: 30rem; color: var(--body); }
.duo ul { margin-top: 18px; display: grid; gap: 8px; color: var(--soft); }
.duo li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--teal-hi); transform: rotate(45deg) translateY(-2px); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; font-weight: 800; font-stretch: 75%; font-size: clamp(3.25rem, 6vw, 5rem); line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; font-stretch: 100%; color: var(--muted); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } .duo > div + div { border-left: 0; border-top: 1px solid var(--rule-hi); } }

/* ── FAQ ── */
/* ── Liste d'attente : formulaire solo / équipe ── */
.sec__grid--wait { align-items: start; }
.wait { background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--red); padding: clamp(20px, 3vw, 32px); }
.wait__form { display: grid; gap: 18px; }
.wait__kind { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 0; padding: 0; border: 0; min-width: 0; }
.wait__kind legend { width: 100%; padding: 0; margin-bottom: 10px; color: var(--muted); }
.wait__kind legend::before { content: none; }
.wait__kind label { position: relative; flex: 1 1 140px; }
.wait__kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wait__kind span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--rule-hi); font-weight: 700; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase;
  color: var(--soft); transition: background-color .15s, border-color .15s, color .15s;
}
.wait__kind label + label { margin-left: -1px; }
.wait__kind input:checked + span { position: relative; z-index: 1; }
.wait__kind input:checked + span { background: var(--raise); border-color: var(--red); color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
.wait__kind input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.wait__kind label:hover span { color: var(--ink); }
.sec--wine .wait { border-color: var(--wine-rule); border-top-color: var(--red); }
.sec--wine .sec__head p:not(.label):not(.punch) { color: #f6dfe3; }
.wait__more { border-top: 1px solid var(--rule); }
.wait__more summary { display: flex; align-items: center; gap: 10px; padding: 14px 0 4px; cursor: pointer; list-style: none; font-size: .875rem; font-weight: 700; font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.wait__more summary::-webkit-details-marker { display: none; }
.wait__more summary::before { content: "+"; font-family: var(--mono); font-weight: 500; font-size: 1rem; color: var(--red); }
.wait__more[open] summary::before { content: "–"; }
.wait__more summary:hover { color: var(--ink); }
.wait__more[open] { display: grid; gap: 18px; }
.wait__row { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wait__team { display: grid; gap: 18px; }
.wait__team[hidden], .wait__players[hidden] { display: none; }
.wait__players { display: grid; gap: 10px; }
.wait__players > em { font-style: normal; font-size: .875rem; color: var(--muted); }
.field__title { font-size: .8125rem; font-weight: 700; font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.wait__grid { display: grid; gap: 14px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; }
@media (max-width: 560px) { .wait__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field > span { font-size: .8125rem; font-weight: 700; font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.field small { font-size: inherit; font-weight: 500; letter-spacing: .08em; text-transform: none; color: var(--dim); }
.field em { font-style: normal; font-size: .875rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--rule-hi); border-radius: 0;
  background: var(--video); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.wait__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wait__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.wait__send .btn[disabled] { opacity: .6; cursor: progress; }
.wait__note { flex: 1 1 220px; font-size: .875rem; color: var(--muted); }
.wait__note a { color: var(--soft); }
.wait__state:empty { display: none; }
.wait__state { padding: 12px 14px; border-left: 3px solid var(--red); background: var(--raise); color: var(--ink); }
.wait__form[hidden], .wait__done[hidden] { display: none; }
.wait__done { display: grid; gap: 14px; padding: 8px 0; outline: 0; }
.wait__done .label { color: var(--teal-txt); }
.wait__done .label::before { content: "◆ "; }
.wait__done-title { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.05; }
.wait__done #waitDoneText { color: var(--body); max-width: 32rem; }
.wait__spam { max-width: 32rem; padding-left: 12px; border-left: 2px solid var(--rule); font-size: .875rem; color: var(--muted); }
.wait__spam strong { color: var(--soft); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .wait__row { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red-hi); }
.faq p { padding: 0 48px 22px 0; max-width: 38rem; color: var(--soft); }

/* ── Fin : bandeau rouge ── */
.end { background: var(--red); color: var(--on-red); padding-block: clamp(48px, 6vw, 72px); }
.end .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.end__title { flex: 1 1 520px; font-weight: 800; font-stretch: 75%; font-size: clamp(2.375rem, 4.5vw, 3.75rem); line-height: 1; margin-left: -.02em; }
.end__title span { display: block; }
.end__title em { font-style: normal; }
.end .hero__cta { margin-top: 0; }
.end .hero__cta, .end .hero__cta .btn { width: auto; }
.end .btn--rec { background: var(--on-red); border-color: var(--on-red); color: var(--ink); }
.end .btn--rec:hover { background: #2c141b; border-color: #2c141b; }
.end .btn--rec:focus-visible { box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 4px var(--ink); }
.end .btn--line { border: 2px solid var(--on-red); color: var(--on-red); font-weight: 700; }
.end .btn--line:hover { background: rgba(26, 11, 15, .1); }
.end :focus-visible { outline-color: var(--on-red); }
@media (max-width: 560px) { .end .hero__cta { flex-direction: column; align-items: stretch; width: 100%; } }

.foot { padding-block: 28px 36px; font-size: .875rem; color: var(--muted); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot img { width: 92px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-left: auto; }
.foot nav a { font-family: inherit; font-size: .875rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; text-transform: none; }

/* ── Tête de lecture de la page ── */
.scrub { position: fixed; inset: auto 0 0 0; z-index: 10; height: 3px; background: var(--panel); }
.scrub[hidden] { display: none; }
.scrub__track { position: relative; height: 100%; }
.scrub__fill { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.scrub__time, .scrub a { display: none; }
@media (min-width: 900px) and (min-height: 560px) {
  :root { --scrub-h: 40px; }
  .scrub { height: 40px; display: flex; align-items: center; gap: 18px; padding-inline: var(--gut); border-top: 1px solid var(--rule); background: var(--panel); }
  .scrub__time { display: block; font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: .8125rem; min-width: 3.4em; }
  .scrub__track { flex: 1; height: 100%; }
  .scrub__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--raise); }
  .scrub__fill { inset: 50% 0 auto 0; height: 4px; margin-top: -2px; }
  .scrub a {
    display: block; position: absolute; left: var(--at); top: 0; height: 100%; margin-left: -10px; padding: 0 0 0 16px; background: var(--panel);
    font-size: .8125rem; font-weight: 700; font-stretch: 75%; letter-spacing: .12em; text-transform: uppercase; line-height: 39px;
    text-decoration: none; color: var(--muted); white-space: nowrap; transition: color .15s;
  }
  .scrub a::before { content: ""; position: absolute; left: 6px; top: 16px; width: 8px; height: 8px; background: var(--muted); transform: rotate(45deg); }
  .scrub a span { position: relative; display: block; background: var(--panel); padding: 0 8px; }
  .scrub a[hidden] { display: none; }
  .scrub a.is-end { transform: translateX(-100%); margin: 0 -10px 0 0; padding: 0 16px 0 0; }
    .scrub a.is-end::before { left: auto; right: 6px; }
  .scrub a:hover, .scrub a.is-on { color: var(--ink); }
  .scrub a.is-on::before { background: var(--yellow); }
}

/* ── CTA collant (mobile) ── */
.dock { display: none; }
@media (max-width: 899px) {
  .dock { display: block; position: fixed; inset: auto 0 3px 0; z-index: 9; padding: 10px var(--gut); background: var(--panel); border-top: 1px solid var(--rule); transform: translateY(calc(100% + 3px)); transition: transform .3s var(--ease); }
  .dock[hidden] { display: none; }
  .dock.is-up { transform: none; }
  .dock .btn { width: 100%; min-height: 48px; }
  .foot { padding-bottom: 96px; }
}

/* ── Titres qui se calent à l'entrée dans l'écran ── */
@media (prefers-reduced-motion: no-preference) {
  .js .calage { transition: transform .9s var(--ease); }
  .js .calage:not(.is-in) { transform: translateX(var(--from, 4%)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Pages juridiques (CGU, confidentialité, mentions légales) ── */
.legal { max-width: 52rem; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px); color: var(--body); line-height: 1.7; }
.legal h1 {
  margin: 16px 0 14px; color: var(--ink); font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; text-wrap: balance;
}
.legal h2 {
  margin: 0 0 20px; color: var(--ink); font-weight: 700; font-stretch: 100%; text-transform: none;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: 0;
  padding-top: 40px; border-top: 1px solid var(--rule);
}
.legal section { margin-top: 56px; scroll-margin-top: 24px; }
.legal p, .legal ul { margin-top: 16px; }
.legal h2 + p, .legal h2 + ul { margin-top: 0; }
.legal > p:not(.label):not(.legal__date) { margin-top: 20px; }
.legal ul { list-style: none; }
.legal li { position: relative; padding-left: 24px; margin-top: 10px; overflow-wrap: anywhere; }
.legal p { overflow-wrap: anywhere; }
.legal li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.legal a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.legal a:hover { color: var(--red-hi); }
.legal__date { margin-top: 0; color: var(--muted); font-size: .9375rem; }
.legal__toc { margin-top: 40px; padding: 24px 28px; background: var(--panel); border: 1px solid var(--rule); }
.legal__toc-title { margin: 0; font-size: .875rem; font-weight: 700; font-stretch: 75%; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.legal__toc ol { margin-top: 10px; columns: 2 16rem; column-gap: 32px; }
.legal__toc li { padding: 0; margin: 0; break-inside: avoid; }
.legal__toc li::before { content: none; }
.legal__toc a { display: inline-block; padding: 6px 0; color: var(--soft); text-decoration: none; }
.legal__toc a:hover { color: var(--ink); }
.legal .todo { background: rgba(255, 209, 102, .18); color: var(--yellow); padding: 0 4px; outline: 1px dashed rgba(255, 209, 102, .55); }
.foot nav a[aria-current="page"] { color: var(--ink); }

/* ── Pages comparatives (alternative-insights-gg) : reprennent .legal et .versus ── */
.compare { max-width: 60rem; }
.compare h3 { margin-top: 28px; font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.compare h3 + p { margin-top: 8px; }
.compare .versus { margin-top: 0; }
.compare .versus__scroll { margin-top: 0; }
.compare .versus--wide table { min-width: 820px; }
.compare .versus--wide th, .compare .versus--wide td { padding: 14px 14px; }
.compare .versus--wide tbody th { width: 16%; }
.compare li a strong { color: inherit; }
#comparatif, #compare { scroll-margin-top: 90px; }
.compare__cta { padding: 28px; background: var(--panel); border: 1px solid var(--rule); }
.compare__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.legal a.btn { text-decoration: none; }
.legal a.btn--rec, .legal a.btn--rec:hover { color: var(--on-red); }
.versus__more { margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.versus__more a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
