/*
  L'accueil public de Keryx (29/11/2026), dans la DA du site : encre, Onest, une seule touche d'or.
  La barre du haut et le pied de page sont dans chrome.css, commune à l'accueil, à « Les écrans » et aux Tarifs.
  Les mêmes jetons que la régie (src/ui/temoin.css), recopiés ici : cette page se charge sans l'application.
  Jour par défaut ; html.theme-dark pour la nuit (posé par boot.js avant le premier affichage).
  Style d'outil (3 décembre 2026, diagnostic « Unslop ») : fond plat, filets de 1 px, arrondis de 2 à 6 px, six tailles
  de texte et trois graisses, aucun halo ni apparition au défilement. La page est complète dès l'arrivée.
*/
@font-face { font-family: Onest; src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F4F5F7; --surface: #FFFFFF; --surface-2: #EAEDF1; --line: #D9DEE5; --line-strong: #78818D;
  --ink: #111418; --ink-2: #3C4451; --ink-3: #5B6472;
  --brand: #111418; --on-brand: #FFFFFF;
  --accent: #A16207; --accent-soft: rgba(161, 98, 7, .12); --accent-ink: #8A5306;
  --bad: #C2410C; --bad-soft: rgba(194, 65, 12, .09);
  /* Les ombres (3 décembre 2026, DESIGN.md) : plusieurs petites ombres superposées plutôt qu'une grande, teintées de bleu.
     --shadow-1 pour ce qui est posé (blocs, boutons), --shadow-2 pour ce qui ressort (captures en grand), --shadow-pop pour
     ce qui flotte (la fenêtre du compte, le téléphone du copilote). */
  --shadow-1: 0 1px 2px rgb(16 22 34 / .06), 0 1px 3px rgb(16 22 34 / .08);
  --shadow-2: 0 1px 2px rgb(16 22 34 / .05), 0 4px 8px -2px rgb(16 22 34 / .08), 0 16px 32px -8px rgb(16 22 34 / .14);
  --shadow-pop: 0 1px 3px rgb(16 22 34 / .1), 0 12px 24px -8px rgb(16 22 34 / .18), 0 32px 64px -24px rgb(16 22 34 / .4);
  /* Formes Net : 4 px pour les blocs, 3 px pour les commandes, 6 px pour la fenêtre. */
  --r: 4px; --r-s: 3px; --r-l: 6px;
  /* Six tailles, en rem : elles grandissent ensemble avec la taille de base (chrome.css). 13, 15, 17, 22, 32, 56 px à 16 px. */
  --t1: .8125rem; --t2: .9375rem; --t3: 1.0625rem; --t4: 1.375rem; --t5: 2rem; --t6: 3.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font: 400 100%/1.5 Onest, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-behavior: smooth; scroll-padding-top: 5.5rem;
}
/* La taille de base grandit avec la fenêtre au-delà de 1366 px de large : voir chrome.css, commune aux pages publiques. */
html.theme-dark {
  color-scheme: dark;
  --bg: #15181D; --surface: #1C2027; --surface-2: #242A32; --line: #2F3640; --line-strong: #68717E;
  --ink: #EEF1F5; --ink-2: #BCC3CD; --ink-3: #8F98A5;
  --brand: #EEF1F5; --on-brand: #15181D;
  --accent: #E3B341; --accent-soft: rgba(227, 179, 65, .14); --accent-ink: #E3B341;
  --bad: #FF7A45; --bad-soft: rgba(255, 122, 69, .13);
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 1px 3px rgb(0 0 0 / .22);
  --shadow-2: 0 1px 2px rgb(0 0 0 / .3), 0 4px 8px -2px rgb(0 0 0 / .3), 0 16px 32px -8px rgb(0 0 0 / .45);
  --shadow-pop: 0 1px 3px rgb(0 0 0 / .4), 0 12px 24px -8px rgb(0 0 0 / .5), 0 32px 64px -20px rgb(0 0 0 / .7);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: var(--t3); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--accent); }
img, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.on-dark { display: none; }
html.theme-dark .on-light { display: none; }
html.theme-dark .on-dark { display: block; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - clamp(2rem, 6vw, 5rem), 78rem); margin-inline: auto; }
/*
  Les bandeaux d'encre (3 décembre 2026) : l'accroche et « Pendant le cast » sur l'encre de la marque, pleine largeur,
  comme les pages Keryx de bracket-ae.com. Les jetons sont redéfinis ici : texte, boutons et galerie suivent seuls.
  De nuit, le bandeau est un cran plus clair que la page, bordé d'un filet.
*/
.ink { --bg: #12161B; --surface: #1A1F26; --surface-2: #232931; --line: #2E353F; --line-strong: #6C7581;
  --ink: #F2F4F7; --ink-2: #C2C9D2; --ink-3: #9AA3AF; --brand: #F2F4F7; --on-brand: #12161B;
  --accent: #E3B341; --accent-soft: rgba(227, 179, 65, .14); --accent-ink: #E3B341;
  background: var(--bg); color: var(--ink); color-scheme: dark; }
html.theme-dark .ink { --bg: #1C2128; --surface: #232931; --surface-2: #2B323B; --line: #363E49; border-block: 1px solid #2F3640; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .6rem 1rem; border-radius: var(--r-s); background: var(--brand); color: var(--on-brand); font-weight: 600; }
.skip:focus { top: 1rem; }

/* Boutons : un bord, ou l'aplat d'encre pour l'action principale. Le survol change le fond, rien ne bouge. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: transparent; color: var(--ink); font-weight: 600; font-size: var(--t2); line-height: 1.1; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: transparent; color: var(--on-brand); box-shadow: var(--shadow-1); }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 86%, var(--on-brand)); }
.btn.big { min-height: 3rem; padding: 0 1.35rem; }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn:disabled { cursor: not-allowed; background: var(--surface-2); border: 1px dashed var(--line-strong); color: var(--ink-3); }
/* Un sur-titre seulement s'il apprend quelque chose : en petit, dans la couleur du texte secondaire. */
.kicker { display: flex; align-items: center; gap: .5rem; font-size: var(--t1); font-weight: 600; color: var(--ink-3); }

/*
  L'accueil (refait le 3 décembre 2026, direction « mur d'écrans », DESIGN.md) : sur l'encre, le titre à gauche et
  l'accroche à droite ; dessous, le mur de contrôle d'une régie. L'écran à l'antenne en grand, « Avancer » à côté, les
  quatre écrans prêts dessous. Le mur déborde sur la section suivante. Aucun écran n'y est rogné.
*/
:root { --spill: 9rem; }
/* Les autres pages (Soutenir, aide, page introuvable) gardent l'accroche simple, sur l'encre, alignée à gauche comme
   le reste du site : un paragraphe centré se lit mal (3 décembre 2026). */
.hero { padding-block: clamp(3rem, 7vw, 6rem); overflow-x: clip; }
.intro { display: grid; gap: 1.25rem; justify-items: start; }
.home-hero { display: flow-root; padding-block: clamp(2.5rem, 5vw, 3.25rem) 0; overflow-x: visible; }
.home-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem 3rem; align-items: end; padding-bottom: clamp(2rem, 4vw, 2.75rem); }
.intro-side { display: grid; gap: 1.1rem; padding-bottom: .4rem; }
h1 { font-size: 4.6rem; font-weight: 800; line-height: .98; letter-spacing: -.04em; }
h1 .line { display: block; }
.lead { color: var(--ink-2); font-size: 1.2rem; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.reassure { color: var(--ink-3); font-size: var(--t2); }
.reassure b { color: var(--ink); font-weight: 600; }
.reassure a { white-space: nowrap; }

/* Les fondus : des images l'une sur l'autre, seule l'opacité change (400 ms, la durée des écrans OBS). Rien ne bouge. */
.stack { position: relative; }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.layer.is-on { opacity: 1; }
.layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slow .layer { transition-duration: .9s; }
/* « En jeu » est transparent : il se pose sur une vraie partie d'Age of Empires IV (celle de KeryxHUD). */
.game { background: url("/home/screens/hud.jpg") center / cover no-repeat, #10151E; }

.wall { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-bottom: calc(-1 * var(--spill));
  overflow: hidden; border: 1px solid #2E353F; border-radius: var(--r) var(--r) 0 0; background: #2E353F; box-shadow: 0 1px 2px rgb(0 0 0 / .25), 0 8px 16px -4px rgb(0 0 0 / .3), 0 40px 80px -24px rgb(0 0 0 / .55); }
.tile { display: grid; grid-template-rows: auto 1fr; min-width: 0; margin: 0; padding: 0; border: 0; background: #12161B; color: #C2C9D2; font: inherit; text-align: left; }
.tile .screen { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background-color: #10151E; }
.tile .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tile.pgm { grid-column: 1 / span 3; grid-row: 1; }
button.tile { cursor: pointer; }
button.tile:focus-visible { outline: 2px solid #F2F4F7; outline-offset: -2px; border-radius: 0; }
/* Sous chaque écran, son étiquette, comme sur le mur d'une régie ; l'écran à l'antenne porte l'aplat corail. */
.umd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .1rem 1rem; min-height: 2.5rem; padding: .35rem .9rem; background: #1A1F26; color: #C2C9D2; font-size: var(--t1); font-weight: 600; transition: background-color .15s; }
.umd small { color: #9AA3AF; font-size: var(--t1); font-weight: 400; }
.dot { display: inline-flex; align-items: center; gap: .45rem; }
.src[aria-pressed="true"] .dot::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #FF7A45; }
.src[aria-pressed="true"] .umd { color: #fff; }
.src:hover .umd { background: #232931; }
.pgm .umd { min-height: 3rem; background: #CC4422; color: #fff; font-size: var(--t2); }
.pgm .umd small { color: #fff; }
.tally { display: inline-flex; align-items: center; gap: .45rem; }
/* La seule boucle de la page : le voyant d'antenne, qui pulse lentement, comme dans la régie. */
.tally::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #fff; animation: tally 2.4s ease-in-out infinite; }
@keyframes tally { 50% { opacity: .45; } }
.tile.note { grid-column: 4; grid-row: 1; display: grid; align-content: center; padding: 1.4rem 1.5rem; background: #1A1F26; color: #F2F4F7; }
.tile.note > div { display: grid; gap: .8rem; }
.tile.note p { color: #C2C9D2; font-size: var(--t2); }
.wall-link { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; min-height: 2.75rem; color: #E3B341; font-size: var(--t2); font-weight: 600; text-decoration-color: rgb(227 179 65 / .5); }
.wall-link .ico { width: 1em; height: 1em; fill: currentColor; stroke: none; }
/* « Avancer », tel qu'il est dans le Direct : un aplat, le chevron double, et ce qu'il va envoyer. */
.advance { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem 1rem; width: 100%; padding: .9rem 1.1rem; border: 0; border-radius: var(--r); background: #F2F4F7; color: #12161B; font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-1); transition: background-color .15s; }
.advance:hover { background: #fff; }
.advance:focus-visible { outline: 2px solid #E3B341; outline-offset: 3px; }
.advance .ico { grid-row: span 2; width: 1.6rem; height: 1.6rem; stroke-width: 2.4; }
.advance b { font-size: var(--t4); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.advance span { font-size: var(--t2); font-weight: 600; }

/* Les sections : un titre qui nomme la chose, puis peu de choses à la fois. */
.band { padding-block: clamp(4rem, 7vw, 6rem); }
.band-alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { display: grid; gap: .75rem; max-width: 46rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
h2 { font-size: 2.6rem; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: var(--t3); font-weight: 600; line-height: 1.3; }
.head-lead { max-width: 62ch; color: var(--ink-2); font-size: var(--t3); }
/* Un sur-titre seulement s'il apprend quelque chose : en petit, dans la couleur du texte secondaire. */
.kicker { font-size: var(--t1); font-weight: 600; color: var(--ink-3); }

/* « Rien ne part à l'antenne avant Avancer » : la colonne Antenne du Direct, le copilote posé sur son coin. */
.after-wall { padding-top: calc(var(--spill) + clamp(4rem, 7vw, 5rem)); }
.antenna { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.antenna-text { display: grid; gap: 2rem; }
.rows li { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; padding-block: .95rem; border-top: 1px solid var(--line); font-size: var(--t2); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows b { font-weight: 600; }
.rows span { color: var(--ink-2); }
.desk { position: relative; padding: 2.5rem 11.5rem 2.5rem 2.5rem; border-radius: var(--r-l); background: var(--surface-2); }
.desk > img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); }
.desk .phone { position: absolute; right: 1.5rem; bottom: -2.5rem; width: 13.5rem; }
.desk .phone img { width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: var(--r-l); box-shadow: var(--shadow-pop); }

/* Installation : une liste numérotée (l'ordre est réel) ; l'étape 2 montre la vraie carte de la régie et son bouton Copier. */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.how-text { display: grid; gap: 1.75rem; }
.steps { max-width: 46rem; padding-left: 2rem; list-style: decimal; }
.step { display: list-item; padding-block: 1.25rem; padding-left: .5rem; border-top: 1px solid var(--line); }
.step > * + * { margin-top: .35rem; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::marker { font-size: var(--t3); font-weight: 700; color: var(--ink-3); }
.step p { max-width: 52ch; color: var(--ink-2); }
.how-panel { display: grid; gap: .9rem; justify-items: center; padding: clamp(1.75rem, 4.5vw, 4rem); border-radius: var(--r-l); background: var(--surface-2); }
.how-panel img { width: min(100%, 27rem); height: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); }
.how-panel figcaption { max-width: 27rem; color: var(--ink-2); font-size: var(--t2); }

/*
  Les écrans qui sortent du cadre : coupés exprès, toujours de la même quantité. Le cadre va jusqu'au bord de la fenêtre
  (--vw : la page sans la barre de défilement, posée par home.js) ; l'écran y dépasse d'un quart pour l'Après-match, d'un
  dixième pour le Bracket, dont « Cartes et civs » doit rester entier.
*/
.out { overflow: hidden; padding-bottom: clamp(4rem, 7vw, 6.5rem); }
.bleed { --edge: calc((var(--vw, 100vw) - min(var(--vw, 100vw) - clamp(2rem, 6vw, 5rem), 78rem)) / 2);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.bleed.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bleed-text { display: grid; gap: 1.25rem; justify-items: start; }
.bleed-text p { max-width: 34ch; color: var(--ink-2); font-size: 1.15rem; }
.bleed-text .state { color: var(--ink-3); font-size: var(--t2); }
.state b { color: var(--ink); font-weight: 600; }
.bleed .pic { margin-right: calc(-1 * var(--edge)); overflow: hidden; }
.bleed.flip .pic { margin-right: 0; margin-left: calc(-1 * var(--edge)); }
.bleed .frame { width: 133%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: #10151E; box-shadow: var(--shadow-2); }
.bleed.flip .frame { width: 112%; margin-left: -12%; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--r) var(--r) 0; }

/* KeryxHUD : la capture du jeu en grand, ce que le mod apporte, puis comment l'installer. */
/* KeryxHUD : cinq captures en jeu l'une sur l'autre, une fenêtre du mod chacune, en fondu (la pile des écrans plus haut).
   Le cadre « Votre caméra » réserve, à droite entre le compteur de soldats tombés et le score, la place d'une caméra de
   streamer : environ 17 % de la largeur, au 16:9, sans rien cacher de ce que le mod affiche. */
.hud-shot { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-2); }
.hud-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: .5rem; border-bottom: 1px solid var(--line); }
.hud-tabs[hidden] { display: none; }
.hud-tabs button { min-height: 2.4rem; padding: 0 .9rem; border: 0; border-radius: var(--r-s); background: none; color: var(--ink-2); font: inherit; font-weight: 600; font-size: var(--t2); cursor: pointer; transition: background-color .2s, color .2s; }
.hud-tabs button:hover { background: var(--surface-2); color: var(--ink); }
.hud-tabs button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.hud-stage { aspect-ratio: 16 / 9; background: #10151E; container-type: inline-size; }
.hud-stage .layer img { object-fit: cover; }
.hud-cam { position: absolute; left: 82%; top: 30%; width: 17.2%; aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: .3rem; border: 1px solid rgb(255 255 255 / .55); border-radius: 3px; background: rgb(16 21 30 / .62); color: rgb(255 255 255 / .9); font-size: clamp(.6rem, 1cqw, .8rem); font-weight: 600; pointer-events: none; }
.hud-cam-ico { width: 1.6em; height: 1.6em; }
@container (max-width: 36rem) { .hud-cam span { display: none; } .hud-cam-ico { width: 1.1rem; height: 1.1rem; } }
.hud-shot figcaption { display: grid; gap: .2rem; padding: .7rem 1rem; border-top: 1px solid var(--line); font-size: var(--t1); }
.hud-says { color: var(--ink); font-size: var(--t2); }
.hud-note { color: var(--ink-3); }
.hud-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.5rem); margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.hud-point { display: grid; gap: .4rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.hud-point p { color: var(--ink-2); }
.hud-install { display: flex; align-items: center; gap: 1rem; margin-top: clamp(1.75rem, 3vw, 2.75rem); padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.hud-ico { width: 1.5rem; height: 1.5rem; color: var(--ink-2); }
.hud-install h3 { margin-bottom: .15rem; }
.hud-install p { max-width: 86ch; color: var(--ink-2); }

/* Ils utilisent déjà Keryx : les streamers avec leur image Twitch, les tournois par leur nom. Accord de chacun. */
.users { padding-top: 0; }
.users h2 { margin-bottom: 2.25rem; }
.users-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--line); box-shadow: var(--shadow-1); }
.users-grid > div { padding: 2rem 2.25rem; background: var(--surface); }
.users h3 { margin-bottom: 1rem; color: var(--ink-3); font-size: var(--t2); font-weight: 600; }
.streamers li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; align-items: center; padding-block: .85rem; border-top: 1px solid var(--line); }
.streamers li:first-child { padding-top: 0; border-top: 0; }
.streamers img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.streamers a { text-decoration: none; }
.streamers a:hover b { text-decoration: underline; text-decoration-color: var(--accent); }
.streamers b { display: block; font-size: var(--t4); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.streamers span { color: var(--ink-3); font-size: var(--t2); }
.names { display: grid; gap: 1.1rem; }
.names li { display: grid; gap: .15rem; }
.names b { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.names small { color: var(--ink-3); font-size: var(--t2); }

/* Gratuit, puis sur mesure : deux colonnes inégales ; le prix plancher en or, sur l'encre. */
.money-band { padding-top: 0; }
.money { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--line); box-shadow: var(--shadow-1); }
.money > div { display: grid; gap: 1.5rem; align-content: start; padding: clamp(1.75rem, 3.5vw, 2.75rem); background: var(--surface); }
.money .zero { font-size: 5.5rem; font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.money h2 { font-size: 2rem; }
.money p { max-width: 44ch; color: var(--ink-2); }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; font-size: var(--t2); }
.incl li { padding-block: .6rem; border-top: 1px solid var(--line); }
.money .own { background: var(--bg); }
.money .price { color: var(--accent); font-size: var(--t4); font-weight: 700; }
.money .own .btn { justify-self: start; }
.own-contact { font-size: var(--t2); }
.own-contact b, .own-contact a { color: var(--ink); font-weight: 600; }
.give { margin-top: 1.5rem; color: var(--ink-3); font-size: var(--t2); }
.give a { color: var(--ink); font-weight: 600; }

/* « Les écrans » (/ecrans) : les quatre écrans OBS en simulation, deux par deux. Chaque cadre porte le vrai écran,
   en 1920 × 1080, réduit à sa place (public/home/screens.js pose --k) ; tant qu'il n'est pas prêt, sa capture fixe. */
/* L'en-tête sur l'encre, pleine largeur ; la première rangée d'écrans déborde dessus (3 décembre 2026). */
.live { --spill-s: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.live-band { padding-block: clamp(2.5rem, 5vw, 4.5rem) calc(var(--spill-s) + clamp(1.5rem, 3vw, 2.5rem)); }
.live-band + .wrap { margin-top: calc(-1 * var(--spill-s)); }
.live-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 3rem; }
.live-head > div { display: grid; gap: .75rem; }
.live-head h1 { font-size: var(--t5); letter-spacing: -.02em; }
.live-head .lead { max-width: 64ch; font-size: var(--t3); }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 2.4vw, 2.5rem) clamp(1.25rem, 2.2vw, 2.25rem); }
.live-item { display: grid; gap: .3rem; align-content: start; }
.live-item h2 { margin-top: .6rem; font-size: var(--t3); font-weight: 600; letter-spacing: 0; }
.live-item p { color: var(--ink-2); font-size: var(--t2); }
.live-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--shot) center / cover no-repeat, #10151E; }
/* « En jeu » : la vraie partie sous l'écran transparent, avant comme après sa mise en place. */
.live-frame[data-screen="jeu"], .live-frame.is-live[data-screen="jeu"] { background: var(--shot) center / cover no-repeat, url("/home/screens/hud.jpg") center / cover no-repeat, #10151E; }
/* L'écran est transparent (« En jeu ») : il garde le jeu de couleurs clair du document qu'il porte, sinon le navigateur lui pose un fond. */
/* « Mes parties » sur « Les écrans » : la source transparente, posée sur une capture de l'interface du joueur. */
.live-frame[data-screen="solo"], .live-frame.is-live[data-screen="solo"] { background: var(--shot) center / cover no-repeat, #10151E; }
.live-frame.is-live[data-screen="solo"] { background: url("/home/screens/joueur.jpg") center / cover no-repeat, #10151E; }
.live-solo { margin-top: clamp(3.5rem, 6vw, 5.5rem); display: grid; gap: 1.5rem; }
.live-solo-head { display: grid; gap: .6rem; }
.live-solo-head h2 { font-size: var(--t4, 2.6rem); letter-spacing: -.03em; }
.live-solo-head p { max-width: 64ch; color: var(--ink-2); font-size: var(--t3); }
.live-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live-item h3 { margin-top: .6rem; font-size: var(--t3); font-weight: 600; letter-spacing: 0; }
.live-frame iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; transform: scale(var(--k, .3)); pointer-events: none; color-scheme: light; opacity: 0; transition: opacity .3s ease; }
.live-frame.is-live iframe { opacity: 1; }
/* Une fois l'écran prêt, sa capture s'efface : elle transparaîtrait sous l'écran « En jeu ». */
.live-frame.is-live { background-image: none; background-color: #10151E; }
.live-frame.is-live[data-screen="jeu"] { background: url("/home/screens/hud.jpg") center / cover no-repeat, #10151E; }

.auth-copilot .ico { color: var(--ink-3); }

/* Les listes à filets de la page Soutenir : un titre et sa phrase, en deux colonnes, sans cadre ni icône. */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
.feat { display: grid; gap: .3rem; align-content: start; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.feat p { max-width: 52ch; color: var(--ink-2); font-size: var(--t2); }
.feats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 46rem) { .feats, .feats-3 { grid-template-columns: 1fr; } }

/* La page Soutenir (01/12/2026) : l'habillage de l'accueil, sur une colonne. */
.support-hero .intro { max-width: 46rem; }
.support-hero h1 { font-size: var(--t5); letter-spacing: -.02em; text-wrap: balance; }
.support-hero .lead { max-width: 52ch; font-size: var(--t3); }

.support-more { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; min-height: 2.25rem; margin-top: .25rem; font-weight: 600; font-size: var(--t2); }
.support-more .ico { width: 1em; height: 1em; }

.support-note { margin-top: clamp(2rem, 4vw, 3rem); max-width: 62ch; color: var(--ink-3); font-size: var(--t2); }

/* L'aide publique a sa feuille : public/home/help.css (3 décembre 2026). */


/* La fenêtre du compte : créer ou se connecter, sans quitter la page. Elle flotte : la seule ombre de la page. */
.auth { width: min(27.5rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); overflow: auto; }
.auth::backdrop { background: rgb(13 15 15 / .58); }
.auth-box { display: grid; gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; }
.auth-head { display: flex; align-items: center; justify-content: space-between; }
.auth-logo { height: 2.2rem; width: auto; margin-left: -.35rem; }
.auth-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.6rem; border: 0; border-radius: var(--r); background: none; color: var(--ink-2); }
.auth-close:hover { background: var(--surface-2); color: var(--ink); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border-radius: var(--r); background: var(--surface-2); }
.auth-tabs button { min-height: 2.6rem; border: 0; border-radius: var(--r-s); background: none; color: var(--ink-2); font-weight: 600; font-size: var(--t2); transition: background-color .15s, color .15s; }
.auth-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), inset 0 -2px 0 var(--accent); }
html.theme-dark .auth-tabs button[aria-pressed="true"] { background: var(--line); }
.auth-form { display: grid; gap: .8rem; }
.auth-form label { display: grid; gap: .35rem; font-size: var(--t2); font-weight: 600; color: var(--ink-2); }
.auth-label { display: flex; justify-content: space-between; gap: 1rem; }
.auth-label small { font-size: var(--t1); font-weight: 400; color: var(--ink-3); }
.auth-form input { width: 100%; min-height: 2.9rem; padding: 0 .85rem; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font-size: var(--t3); }
html.theme-dark .auth-form input { background: var(--bg); }
.auth-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.auth-form input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.auth-password { position: relative; display: block; }
.auth-password input { padding-right: 5.5rem; }
.auth-password button { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); min-height: 2.3rem; padding: 0 .7rem; border: 0; border-radius: var(--r-s); background: none; color: var(--ink); font-size: var(--t2); font-weight: 600; }
.auth-password button:hover { background: var(--surface-2); }
.auth-field-error { margin-top: -.45rem; color: var(--bad); font-size: var(--t1); font-weight: 600; }
.auth-error { padding: .7rem .85rem; border: 1px solid var(--bad); border-radius: var(--r); background: var(--bad-soft); color: var(--ink); font-size: var(--t2); font-weight: 600; }
.auth-submit { width: 100%; margin-top: .2rem; }
.auth-small { color: var(--ink-3); font-size: var(--t1); line-height: 1.45; }
.auth-small strong { display: block; margin-bottom: .3rem; color: var(--ink); font-weight: 600; }
.auth-alt { font-size: var(--t2); font-weight: 600; }
.auth-copilot { display: flex; align-items: center; gap: .6rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); font-size: var(--t1); }
.auth[data-mode="signin"] [data-only="signup"], .auth[data-mode="signup"] [data-only="signin"] { display: none; }
/* Mot de passe oublié (2 décembre 2026) : un titre à la place des onglets, un message de réussite, un lien-bouton. */
.auth-recover { display: grid; gap: .35rem; }
.auth-recover-title { font-weight: 700; font-size: var(--t3); color: var(--ink); }
.auth-recover .auth-small { font-size: var(--t2); color: var(--ink-2); }
.auth-done { padding: .7rem .85rem; border: 1px solid var(--accent); border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: var(--t2); font-weight: 600; }
.auth-link { min-height: 2.25rem; padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.auth-link:hover { color: var(--ink); }

/*
  Mouvement (3 décembre 2026, DESIGN.md) : des fondus sur place, qui reproduisent un geste de la régie (Avancer, révéler
  le vainqueur, ouvrir « Cartes et civs »). La fenêtre du compte et son fond apparaissent en fondu. Rien n'apparaît au
  défilement, rien ne suit la souris.
*/
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.auth[open], .auth[open]::backdrop { animation: fade .15s ease both; }

/* Les deux choix de l'inscription (3 décembre 2026) : caster un tournoi, ou streamer ses parties. */
.reassure a { color: var(--ink); font-weight: 600; }
.auth-doors { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-doors legend { margin-bottom: .45rem; padding: 0; color: var(--ink-2); font-size: var(--t2); font-weight: 600; }
.auth-door { position: relative; display: flex; align-items: center; gap: .55rem; min-height: 3rem; padding: .55rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); color: var(--ink-2); font-size: var(--t2); font-weight: 600; line-height: 1.25; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.auth-door input { position: absolute; opacity: 0; pointer-events: none; }
.auth-door .ico { flex: none; width: 1.15rem; height: 1.15rem; color: var(--ink-3); }
.auth-door:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.auth-door:has(input:checked) .ico { color: var(--accent-ink); }
.auth-door:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.auth-social { display: grid; gap: .55rem; }
.auth-provider { justify-content: center; gap: .6rem; width: 100%; }
.auth-provider .brand-mark { width: 1.2rem; height: 1.2rem; }
.auth-provider[data-provider="twitch"] .brand-mark { color: #9146FF; }
.auth-provider[data-provider="discord"] .brand-mark { color: #5865F2; }
.auth-or { display: flex; align-items: center; gap: .75rem; color: var(--ink-3); font-size: var(--t1); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 26rem) { .auth-doors { grid-template-columns: 1fr; } }

/* « Réduire les animations » : les écrans changent d'un coup, le voyant ne pulse plus (home.js arrête le Bracket). */
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* Tablette : une colonne. Le mur garde l'antenne en entier, « Avancer » passe dessous, les quatre écrans deux par deux. */
@media (max-width: 62rem) {
  .home-intro, .antenna, .how, .bleed, .bleed.flip, .users-grid, .money { grid-template-columns: 1fr; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.pgm, .tile.note { grid-column: 1 / -1; }
  .tile.note { grid-row: 2; }
  .lead { max-width: 56ch; }
  .hud-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-grid { grid-template-columns: 1fr; }
  /* Hors cadre seulement sur grand écran : en une colonne, l'écran est entier, à la largeur du texte. */
  .bleed .pic, .bleed.flip .pic { margin: 0; }
  .bleed .frame, .bleed.flip .frame { width: 100%; margin: 0; border: 1px solid var(--line); border-radius: var(--r); }
  .bleed.flip .pic { order: 2; }
  .desk { padding: 1.5rem 7rem 1.5rem 1.5rem; }
  .desk .phone { width: 9rem; right: 1rem; }
}
@media (max-width: 46rem) {
  h1 { font-size: 2.6rem; letter-spacing: -.03em; }
  h2 { font-size: 1.75rem; letter-spacing: -.02em; }
  .lead { font-size: var(--t3); }
  .rows li { grid-template-columns: 1fr; gap: .2rem; }
  .money .zero { font-size: 4rem; }
  .incl { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  :root { --spill: 4rem; }
  .actions .btn.big { flex: 1 1 100%; }
  .umd small { display: none; }
  .pgm .umd small { display: inline; }
  .auth-box { padding: 1rem 1.1rem 1.25rem; }
  .hud-points { grid-template-columns: 1fr; }
  .hud-tabs { padding: .4rem; }
  .hud-tabs button { min-height: 2.25rem; padding: 0 .55rem; font-size: var(--t1); }
  .hud-install { align-items: start; }
  .live-head .btn.big { flex: 1 1 100%; }
  .desk { padding: 1rem; }
  .desk .phone { display: none; }
  .users-grid > div { padding: 1.5rem 1.25rem; }
}

/*
  « Mes parties » sur l'accueil (lot 7, 4 décembre 2026) : le texte à gauche, l'écran entier à droite (5/7), sans coupe :
  le nom de la carte vit dans le coin de la minicarte, que la coupe enlèverait. Trois moments, un fondu sur place.
*/
.solo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.solo-text { display: grid; gap: 1.25rem; justify-items: start; }
.solo-text p { max-width: 36ch; color: var(--ink-2); font-size: 1.15rem; }
/* La source « En jeu » qui suffit (5 décembre 2026) : une note sous l'accroche, filet à gauche. */
.solo-text .solo-kept { padding-left: .9rem; border-left: 2px solid var(--line); color: var(--ink-2); font-size: var(--t2); }
.solo-text .state { min-height: 4.5em; color: var(--ink-3); font-size: var(--t2); }
.solo-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 4px; background: var(--line); }
.solo-tab { min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 3px; background: transparent; color: var(--ink-2); font: inherit; font-size: var(--t2); font-weight: 600; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.solo-tab:hover { color: var(--ink); }
.solo-tab[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent, #A16207); }
.solo-pic { margin: 0; display: grid; gap: .75rem; }
.solo-pic .frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #10151E; box-shadow: var(--shadow-2); }
.solo-pic figcaption { color: var(--ink-3); font-size: var(--t1, .8125rem); }
@media (max-width: 960px) { .solo { grid-template-columns: 1fr; } .solo-text .state { min-height: 0; } }
@media (max-width: 720px) { .live-grid-3 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .solo-tab { transition: none; } }
