/* Charte reprise de venum.com :
   - fond blanc, texte noir #121212, grandes surfaces noires à trame fine et repères d’angle ;
   - titres en gothique étroite (Alternate Gothic sur le site ; ici League Gothic, sa version libre, embarquée) ;
   - texte courant en Assistant, comme le site ;
   - un seul accent, le rouge des prix et des boutons du site ;
   - étiquettes en parallélogramme, comme les boutons du site.
   Code couleur du deck : noir = ce que fait l’agent, rouge = ce que valide l’humain. */
@font-face {
  font-family: "League Gothic";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/league-gothic-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "League Gothic";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/league-gothic-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Assistant";
  font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/assistant-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Assistant";
  font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/assistant-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --ink: #121212;
  --black: #070707;
  --soft: #f3f3f3;
  --grey: #5f5f5f;
  --rule: #d6d6d6;
  --red: #db5957;       /* rouge des prix du site */
  --red-deep: #a32e2e;  /* rouge du bouton du site */
  /* Si le kit Adobe Fonts de Venum est chargé, la vraie police du site prend le relais. */
  --display: "alternate-gothic-atf", "League Gothic", "Arial Narrow", Arial, sans-serif;
  --font: "Assistant", Arial, sans-serif;
  --skew: -14deg;
  /* Surface noire du site : trame fine sur un noir légèrement éclairé. */
  --tile:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(120% 100% at 25% 15%, #262626 0%, #0b0b0b 72%);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--black); color: var(--ink); -webkit-text-size-adjust: 100%; font-synthesis: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p, ol, ul { margin: 0; padding: 0; }

/* Repères d’angle, comme sur les visuels du site */
.brackets { position: relative; }
.brackets::after {
  content: ""; position: absolute; inset: 20px; pointer-events: none;
  --c: rgba(255, 255, 255, 0.5); --l: 28px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l) no-repeat;
}

/* Parallélogramme : la forme est inclinée, le texte reste droit */
.para { position: relative; isolation: isolate; background: none; border: 0; }
.para::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--skew)); border: 2px solid currentColor; }

/* Logo : public/logo.png sert de masque (1113 × 302), la couleur vient du texte ; sinon le nom en toutes lettres */
.logo { display: block; flex: none; height: 1.25em; aspect-ratio: 1113 / 302; background: currentColor; -webkit-mask: url("logo.png") center / contain no-repeat; mask: url("logo.png") center / contain no-repeat; }
.logo-text { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.9; letter-spacing: 0.02em; }

/* ---------- Accueil ---------- */
.lobby { height: 100dvh; background: var(--black); }
.lobby-stage { height: 100%; }
.slide--lobby { padding: 72px 96px; gap: 30px; }
.lobby-brand { font-size: 150px; }
.lobby-title { display: flex; flex-direction: column; font-size: 36px; font-weight: 700; line-height: 1.2; }
.lobby-title span + span { font-weight: 400; color: #c9c9c9; }
.lobby-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 900px; padding: 0 14px; }
.lang-btn { display: flex; flex-direction: column; gap: 8px; padding: 26px 34px; color: var(--paper); text-decoration: none; min-height: 150px; justify-content: center; }
.lang-btn b { font-family: var(--display); font-weight: 400; font-size: 78px; line-height: 0.95; letter-spacing: 0.01em; }
.lang-btn span { font-size: 19px; line-height: 1.3; color: #c9c9c9; }
.lang-btn:hover::before, .lang-btn:focus-visible::before { background: var(--paper); }
.lang-btn:hover, .lang-btn:focus-visible, .lang-btn:hover span, .lang-btn:focus-visible span { color: var(--ink); }
.lobby-speaker { font-size: 17px; align-self: flex-start; color: #c9c9c9; }

/* ---------- Scène ---------- */
.stage-host { position: relative; overflow: hidden; background: var(--black); }
.stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; background: var(--paper); color: var(--ink); overflow: hidden; }
.slide { position: absolute; inset: 0; padding: 56px 72px 48px; display: flex; flex-direction: column; gap: 28px; font-size: 27px; line-height: 1.3; }
/* Interligne des titres : en capitales 1,04 (un accent monte à 0,89 em), en bas de casse 1,1 (jambage + accent). Ne pas resserrer. */
.title { font-family: var(--display); font-weight: 400; font-size: 82px; line-height: 1.1; letter-spacing: 0.008em; max-width: 1340px; text-wrap: balance; color: var(--black); }
.lead { font-size: 29px; max-width: 1200px; color: var(--grey); }
.foot { margin-top: auto; flex: none; font-size: 23px; line-height: 1.35; max-width: 1280px; padding-top: 18px; border-top: 2px solid var(--ink); }
.num { font-family: var(--display); font-weight: 400; letter-spacing: 0.005em; line-height: 0.9; font-variant-numeric: tabular-nums; color: var(--black); }
.src { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.srcline { font-size: 18px; line-height: 1.35; color: var(--grey); }
.by { font-weight: 700; }

/* Affiche (titre et clôture) : surface noire du site */
.slide--poster { background: var(--tile); color: var(--paper); justify-content: center; }
.slide--poster::after { content: ""; position: absolute; inset: 26px; pointer-events: none; --c: rgba(255, 255, 255, 0.5); --l: 34px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l) no-repeat; }
.slide--poster.has-qr { display: grid; grid-template-columns: 1fr 330px; gap: 64px; align-items: center; padding: 72px 96px; }
.poster-text { display: flex; flex-direction: column; gap: 24px; }
.poster-brand { display: flex; align-items: center; gap: 22px; font-size: 44px; }
.poster-brand::after { content: ""; flex: 0 1 150px; min-width: 48px; height: 1px; background: rgba(255, 255, 255, 0.7); order: 1; }
body:not(.flow) .poster-brand .over { white-space: nowrap; }
.over { order: 2; font-size: 19px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; }
.poster-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 190px; line-height: 1.04; letter-spacing: 0.01em; text-wrap: balance; }
.poster-sub { font-size: 34px; line-height: 1.22; max-width: 900px; color: #dcdcdc; }
.poster-by { font-size: 26px; font-weight: 700; }
.slide--poster.tone-ink { padding: 72px 96px; }
.slide--poster.tone-ink .poster-title { font-size: 150px; }
.join { background: var(--paper); color: var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.join svg { width: 100%; height: auto; display: block; }
.join-text { font-size: 22px; line-height: 1.25; font-weight: 700; }
.join-url { font-size: 18px; word-break: break-all; color: var(--grey); }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: auto 0; }
.stat { padding: 8px 40px 8px 0; display: flex; flex-direction: column; gap: 16px; }
.stat + .stat { padding-left: 40px; border-left: 2px solid var(--ink); }
.stat .num { font-size: 170px; white-space: nowrap; }
.stat-pre { font-size: 26px; font-weight: 700; min-height: 1.3em; margin-bottom: -14px; }
.stat-text { font-size: 30px; line-height: 1.25; }

/* Face à face */
.tape { display: flex; flex-direction: column; margin-top: 8px; }
.tape-row { display: grid; grid-template-columns: 1fr 300px 1fr; align-items: center; min-height: 122px; border-top: 2px solid var(--ink); }
.tape-row:last-child { border-bottom: 2px solid var(--ink); }
.tape-a { text-align: right; padding: 14px 36px 14px 0; color: var(--grey); font-size: 30px; }
.tape-b { padding: 14px 0 14px 36px; font-weight: 700; font-size: 32px; }
.tape-k { justify-self: center; position: relative; isolation: isolate; text-align: center; color: var(--paper); font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: 0.02em; padding: 14px 26px 12px; min-width: 240px; }
.tape-k::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--skew)); background: var(--black); }
.tape-head { min-height: 80px; border-top: 0; }
.tape-head .tape-a, .tape-head .tape-b { font-family: var(--display); font-weight: 400; font-size: 56px; letter-spacing: 0.01em; color: var(--black); }
.tape-head .tape-a { color: var(--grey); }
.tape-head .tape-k { min-height: 0; padding: 0; }
.tape-head .tape-k::before { display: none; }

/* Cas du secteur */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; flex: 1; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.case { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 16px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-decoration: none; background: var(--paper); }
.case:hover, .case:focus-visible { background: var(--soft); }
.case-who { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--grey); }
.case-num { font-family: var(--display); font-weight: 400; font-size: 92px; line-height: 0.92; white-space: nowrap; color: var(--black); }
.case-text { font-size: 22px; line-height: 1.25; }
.case-by { margin-top: auto; font-size: 16px; line-height: 1.3; color: var(--grey); }
/* Carte « lead » : première ligne de la même grille, les quatre colonnes fusionnées */
.cases.has-lead { grid-template-rows: auto; }
.cases.has-lead .case { padding: 14px 20px 12px; gap: 4px; }
.cases.has-lead .case-num { font-size: 76px; }
.cases.has-lead .case-text { font-size: 21px; line-height: 1.22; }
.cases.has-lead .case-lead { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 48px; padding: 20px 32px 18px; background: var(--tile); color: var(--paper); }
.cases.has-lead .case-lead:hover, .cases.has-lead .case-lead:focus-visible { background: var(--tile); }
.case-lead .case-head { flex: none; display: flex; flex-direction: column; gap: 4px; }
.cases.has-lead .case-lead .case-who { color: var(--paper); font-size: 26px; }
.cases.has-lead .case-lead .case-num { color: var(--paper); font-size: 108px; }
.case-lead .case-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.case-tag { font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: 0.03em; padding: 7px 14px 5px; margin-left: 4px; color: var(--paper); }
.cases.has-lead .case-lead .case-text { font-size: 24px; line-height: 1.26; }
.cases.has-lead .case-lead .case-by { margin-top: 0; color: #bdbdbd; }

/* Listes */
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: auto 0; }
.items-3 { grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.item { padding: 22px 0; border-top: 2px solid var(--ink); display: flex; gap: 22px; }
.item-h { font-size: 34px; line-height: 1.14; font-weight: 700; margin-bottom: 8px; color: var(--black); }
.item-p { font-size: 27px; line-height: 1.3; color: var(--grey); }
.item .srcline { margin-top: 8px; }
.item-n { font-family: var(--display); font-weight: 400; font-size: 96px; line-height: 0.8; min-width: 56px; color: var(--black); }
.slide--list::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; background: var(--black); }
.slide--list.tone-red::before { background: var(--red); }

/* Méthode */
.flow4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; margin-top: 4px; }
.flowbox { position: relative; padding: 26px 24px; min-height: 250px; background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.flowbox h2 { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1.1; letter-spacing: 0.008em; }
.flowbox p { font-size: 26px; line-height: 1.28; }
.flowbox + .flowbox::before { content: ""; position: absolute; left: -46px; top: 50%; width: 44px; height: 2px; background: var(--ink); }
.flowbox + .flowbox::after { content: ""; position: absolute; left: -18px; top: calc(50% - 9px); border: 10px solid transparent; border-left: 14px solid var(--ink); border-right: 0; }
.flowbox-1 { background: var(--tile); color: var(--paper); border-color: var(--black); }
.flowbox-2 { background: var(--red-deep); color: var(--paper); border-color: var(--red-deep); }
.tiers-title { font-size: 31px; font-weight: 700; margin-top: auto; color: var(--black); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; margin-bottom: auto; }
.tier { display: flex; flex-direction: column; gap: 6px; }
.tier-bar { display: block; height: 10px; background: var(--black); margin-bottom: 8px; }
.tier-1 .tier-bar { height: 20px; } .tier-2 .tier-bar { height: 34px; background: var(--red); } .tier-3 .tier-bar { height: 52px; background: var(--red-deep); }
.tier-0 .tier-bar { margin-top: 42px; } .tier-1 .tier-bar { margin-top: 32px; } .tier-2 .tier-bar { margin-top: 18px; }
.tier h2 { font-size: 28px; line-height: 1.12; font-weight: 700; }
.tier p { font-size: 23px; line-height: 1.28; color: var(--grey); }

/* Carte des pôles */
.map { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; flex: 1; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.mapcell { padding: 16px 18px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.mapcell h2 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: 0.01em; color: var(--black); }
.map-promise { font-size: 22px; line-height: 1.22; }
.map-phase { margin-top: auto; font-size: 17px; color: var(--grey); }
.mapcell-note { background: var(--tile); color: var(--paper); justify-content: center; font-weight: 700; font-size: 27px; line-height: 1.15; }

/* Un pôle */
.slide--pole { padding: 0; flex-direction: row; gap: 0; }
.pole-side { position: relative; width: 470px; flex: none; background: var(--tile); color: var(--paper); padding: 64px 48px 52px 56px; display: flex; flex-direction: column; gap: 18px; }
.pole-side::after { content: ""; position: absolute; inset: 22px; pointer-events: none; --c: rgba(255, 255, 255, 0.5); --l: 28px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l) no-repeat; }
.pole-name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 96px; line-height: 1.04; letter-spacing: 0.01em; }
.pole-name.sm { font-size: 76px; }
.pole-name.xs { font-size: 60px; }
.pole-phase { font-size: 20px; line-height: 1.25; color: #bdbdbd; }
.pole-promise { font-size: 31px; line-height: 1.14; font-weight: 700; }
.pole-ref { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.7); display: flex; flex-direction: column; gap: 8px; }
.pole-ref p { font-size: 20px; line-height: 1.3; }
.pole-ref .srcline { font-size: 15px; color: #bdbdbd; }
.pole-main { flex: 1; min-width: 0; padding: 30px 60px 24px 44px; display: flex; flex-direction: column; }
.tasks { display: flex; flex-direction: column; flex: 1; }
.task { display: grid; grid-template-columns: 104px 1fr; gap: 24px; align-items: start; text-align: left; background: none; border: 0; border-top: 2px solid var(--ink); padding: 15px 12px 15px 8px; cursor: pointer; flex: 1 1 auto; }
.task:last-child { border-bottom: 2px solid var(--ink); }
.gain { position: relative; isolation: isolate; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1; letter-spacing: 0.03em; padding: 8px 6px 6px; text-align: center; margin-top: 2px; color: var(--black); }
.gain::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--skew)); border: 2px solid var(--black); }
.gain-rev { color: var(--paper); } .gain-rev::before { background: var(--red-deep); border-color: var(--red-deep); }
.gain-cost { color: var(--paper); } .gain-cost::before { background: var(--black); }
.gain-risk::before { border-style: dashed; }
.task-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.task-t { font-size: 30px; line-height: 1.12; font-weight: 700; color: var(--black); }
.task-a { font-size: 23px; line-height: 1.26; color: var(--grey); }
.task-detail { display: none; grid-template-columns: 1.35fr 1fr 0.9fr; gap: 24px; margin-top: 10px; }
.corner { display: flex; flex-direction: column; gap: 6px; font-size: 22px; line-height: 1.26; padding-top: 10px; border-top: 6px solid #9a9a9a; }
.corner b { font-family: var(--display); font-weight: 400; font-size: 29px; line-height: 1; letter-spacing: 0.02em; color: var(--grey); }
.corner-agent { border-color: var(--black); } .corner-agent b { color: var(--black); }
.corner-human { border-color: var(--red); } .corner-human b { color: var(--red-deep); }
.task.on { background: var(--soft); flex-grow: 0; }
.task.on .task-a { display: none; }
.task.on .task-detail { display: grid; }
.has-hl .task:not(.on) .task-a { display: none; }
.has-hl .task:not(.on) { opacity: 0.5; }
.tap-hint { display: none; }

/* Calculateur */
.calc { display: grid; grid-template-columns: 600px 1fr; gap: 64px; align-items: start; margin: auto 0; }
.calc-in { display: flex; flex-direction: column; gap: 16px; }
.field { display: grid; grid-template-columns: 1fr 170px; gap: 16px; align-items: center; font-size: 26px; line-height: 1.2; }
.field input { font: inherit; font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 8px 10px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); width: 100%; text-align: right; border-radius: 0; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.calc-cell { border-top: 6px solid var(--black); padding-top: 14px; }
.calc-cell .num { font-size: 124px; white-space: nowrap; }
.calc-cell .stat-text { font-size: 24px; margin-top: 8px; }
.calc-net { border-color: var(--red); } .calc-net .num { color: var(--red-deep); }

/* Phases */
.rounds { display: grid; grid-template-columns: 2.4fr 3fr 3.6fr 3.4fr; gap: 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); flex: 1; }
.round { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--ink); }
.round:first-child { border-left: 0; padding-left: 0; }
.round-k { font-family: var(--display); font-weight: 400; font-size: 66px; line-height: 1.04; letter-spacing: 0.01em; color: var(--black); }
.round-d { font-size: 20px; line-height: 1.2; font-weight: 700; }
.round h2 { font-size: 32px; line-height: 1.1; font-weight: 700; margin-top: 10px; }
.round-p { font-size: 24px; line-height: 1.3; color: var(--grey); }
.round-1 { background: var(--tile); color: var(--paper); border-left-color: var(--black); }
.round-1 .round-k { color: var(--paper); }
.round-1 .round-p { color: #d2d2d2; }

/* Sondage, vote, résultats */
.options { display: flex; flex-direction: column; gap: 14px; }
.option { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 26px; background: var(--paper); border: 2px solid var(--ink); text-align: left; cursor: pointer; overflow: hidden; font-size: 31px; font-weight: 700; line-height: 1.15; }
.option-bar { position: absolute; left: 0; top: 0; bottom: 0; background: #e2e2e2; transition: width 0.4s ease; }
.option-t, .option-n { position: relative; }
.option-n { font-family: var(--display); font-weight: 400; font-size: 60px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.option.on { box-shadow: inset 0 0 0 4px var(--red); }
.chiprow, .votelist { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.chip-label { width: 100%; font-size: 21px; font-weight: 700; }
.chip { position: relative; isolation: isolate; padding: 9px 20px; border: 0; background: none; cursor: pointer; font-size: 21px; font-weight: 600; line-height: 1.1; }
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(var(--skew)); border: 2px solid var(--ink); background: var(--paper); }
.chip.on { color: var(--paper); } .chip.on::before { background: var(--black); }
.votetask { width: 100%; display: flex; gap: 16px; align-items: center; padding: 11px 16px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; text-align: left; font-size: 24px; font-weight: 600; line-height: 1.15; }
.check { flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); background: var(--paper); }
.votetask.on { background: var(--black); color: var(--paper); border-color: var(--black); }
.votetask.on .check { background: var(--red); border-color: var(--paper); }
.vote-empty { font-size: 29px; color: var(--grey); padding: 40px 0; }
.slide--vote { gap: 16px; }
.ranking { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rank { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 8px 16px; border: 2px solid var(--ink); background: var(--paper); overflow: hidden; }
.rank-bar { position: absolute; left: 0; top: 0; bottom: 0; background: #e2e2e2; }
.rank:first-child .rank-bar { background: var(--red); opacity: 0.35; }
.rank-n, .rank-body { position: relative; }
.rank-n { font-family: var(--display); font-weight: 400; font-size: 60px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.rank-body { display: flex; flex-direction: column; font-size: 19px; line-height: 1.2; }
.rank-body b { font-size: 25px; }

/* Sources */
.sources { list-style: none; columns: 2; column-gap: 56px; font-size: 23px; line-height: 1.3; }
.sources li { break-inside: avoid; padding: 9px 0; border-top: 1px solid var(--rule); }
.slide--end { align-items: center; justify-content: center; font-family: var(--display); font-size: 140px; background: var(--tile); color: var(--paper); }

/* ---------- Vue public ---------- */
.audience { height: 100dvh; display: flex; flex-direction: column; background: var(--black); }
.audience-stage { flex: 1; min-height: 0; }
.bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; background: var(--black); color: var(--paper); font-size: 15px; z-index: 5; }
/* Écran large : la barre glisse depuis le bas et la scène se resserre du même geste (voir Stage.reserve). */
:root { --glide: 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.audience { position: relative; overflow: hidden; }
body:not(.flow) .audience .bar { position: absolute; left: 0; right: 0; bottom: 0; transition: transform var(--glide); will-change: transform; }
body.idle:not(.flow) .audience .bar { transform: translateY(100%); }
.stage.gliding { transition: transform var(--glide); will-change: transform; }
@media (prefers-reduced-motion: reduce) { body:not(.flow) .audience .bar, .stage.gliding { transition: none; } }
.navb { width: 44px; height: 44px; border: 0; background: var(--paper); color: var(--ink); font-size: 26px; font-weight: 800; cursor: pointer; line-height: 1; }
.navb:disabled { opacity: 0.3; cursor: default; }
.pos { min-width: 62px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.pill { height: 44px; padding: 0 14px; border: 0; font-weight: 700; cursor: pointer; background: var(--red-deep); color: var(--paper); white-space: nowrap; }
.pill.live { background: transparent; color: var(--paper); cursor: default; }
.pill.live::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3ddc6a; margin-right: 8px; }
.pill.solo, .pill.wait { background: transparent; color: var(--paper); font-weight: 500; }
.pill:disabled { opacity: 1; }
.langswitch { padding: 0 12px; height: 44px; display: flex; align-items: center; font-weight: 700; }
.demo-overlay { position: fixed; inset: 0; z-index: 10; background: var(--tile); color: var(--paper); display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.demo-overlay h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 11vw, 190px); line-height: 1.04; letter-spacing: 0.01em; }
.demo-overlay p { font-size: clamp(20px, 3vw, 40px); color: #d2d2d2; }

/* ---------- Téléphone : la scène devient une page qui défile ---------- */
.flow .audience { height: auto; min-height: 100dvh; }
.flow .stage-host:not(.fixed) { overflow: visible; background: var(--paper); }
.flow .stage-host:not(.fixed) .stage { position: static; width: auto; height: auto; overflow: visible; }
.flow .stage-host:not(.fixed) .slide { position: static; min-height: 100dvh; padding: 22px 18px 96px; gap: 18px; font-size: 18px; }
.flow .audience .title { font-size: clamp(40px, 11vw, 56px); }
.flow .audience .lead { font-size: 19px; }
.flow .audience .foot { font-size: 17px; }
.flow .audience .srcline { font-size: 14px; }
.flow .audience .slide--poster, .flow .audience .slide--poster.has-qr, .flow .audience .slide--poster.tone-ink { display: flex; position: relative; padding: 48px 26px 110px; }
.flow .audience .slide--poster::after { inset: 12px; }
/* Accueil sur téléphone : même fond et mêmes crochets, pleine hauteur, contenu centré */
.flow .lobby { height: auto; min-height: 100dvh; background: var(--tile); }
.flow .stage-host:not(.fixed) .slide--lobby { display: flex; position: relative; justify-content: center; padding: 56px 28px; gap: 22px; }
.flow .slide--lobby::after { inset: 12px; }
.flow .lobby-brand { font-size: min(17.5vw, 96px); }
.flow .lobby-title { font-size: 22px; }
.flow .lobby-choices { grid-template-columns: 1fr; gap: 20px; padding: 0 12px; }
.flow .lang-btn { min-height: 0; padding: 20px 26px; } .flow .lang-btn b { font-size: 54px; } .flow .lang-btn span { font-size: 16px; }
.flow .lobby-speaker { font-size: 15px; }
.flow .audience .join { display: none; }
.flow .audience .poster-brand { font-size: 30px; gap: 12px; flex-wrap: wrap; }
.flow .audience .poster-brand::after { flex-basis: 40px; }
.flow .audience .over { font-size: 12px; letter-spacing: 0.22em; }
.flow .audience .poster-title { font-size: clamp(72px, 22vw, 130px); }
.flow .audience .slide--poster.tone-ink .poster-title { font-size: clamp(60px, 17vw, 110px); }
.flow .audience .poster-sub { font-size: 21px; }
.flow .audience .poster-by { font-size: 18px; }
.flow .audience .stats, .flow .audience .items, .flow .audience .calc { margin: 0; }
.flow .audience .stats { grid-template-columns: 1fr; }
.flow .audience .stat, .flow .audience .stat + .stat { padding: 16px 0; border-left: 0; border-top: 2px solid var(--ink); gap: 10px; }
.flow .audience .stat .num { font-size: clamp(84px, 24vw, 120px); }
.flow .audience .stat-pre { font-size: 18px; min-height: 0; margin-bottom: -6px; }
.flow .audience .stat-text { font-size: 20px; }
.flow .audience .tape-row { grid-template-columns: 1fr; min-height: 0; padding: 14px 0; gap: 8px; }
.flow .audience .tape-head { display: none; }
.flow .audience .tape-k { justify-self: start; min-width: 0; font-size: 24px; padding: 7px 16px 6px; margin-left: 6px; }
.flow .audience .tape-a, .flow .audience .tape-b { text-align: left; padding: 0; font-size: 18px; }
.flow .audience .tape-a { text-decoration: line-through; text-decoration-thickness: 1px; }
.flow .audience .tape-b { font-size: 20px; }
.flow .audience .cases { grid-template-columns: 1fr 1fr; }
.flow .audience .cases.has-lead .case-lead { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px; }
.flow .audience .cases.has-lead .case-lead .case-num { font-size: 60px; } .flow .audience .cases.has-lead .case-lead .case-text { font-size: 16px; } .flow .audience .cases.has-lead .case-lead .case-who { font-size: 17px; } .flow .audience .case-tag { font-size: 16px; }
.flow .audience .case { padding: 12px; }
.flow .audience .case-who { font-size: 16px; } .flow .audience .case-num { font-size: 52px; white-space: normal; } .flow .audience .case-text { font-size: 15px; } .flow .audience .case-by { font-size: 12px; }
.flow .audience .items, .flow .audience .items-3 { grid-template-columns: 1fr; }
.flow .audience .item { padding: 16px 0; gap: 14px; }
.flow .audience .item-h { font-size: 22px; } .flow .audience .item-p { font-size: 18px; } .flow .audience .item-n { font-size: 60px; min-width: 34px; }
.flow .audience .slide--list { position: relative; padding-left: 30px; }
.flow .audience .slide--list::before { width: 10px; }
.flow .audience .flow4, .flow .audience .tiers { grid-template-columns: 1fr; gap: 26px; }
.flow .audience .flowbox { min-height: 0; padding: 16px; }
.flow .audience .flowbox h2 { font-size: 36px; } .flow .audience .flowbox p { font-size: 18px; }
.flow .audience .flowbox + .flowbox::before { left: 28px; top: -28px; width: 2px; height: 26px; }
.flow .audience .flowbox + .flowbox::after { left: 19px; top: -13px; border: 10px solid transparent; border-top: 13px solid var(--ink); border-bottom: 0; }
.flow .audience .tiers { gap: 14px; margin-top: 8px; }
.flow .audience .tier-bar { margin-top: 0 !important; }
.flow .audience .tiers-title { font-size: 20px; margin-top: 10px; }
.flow .audience .tier h2 { font-size: 20px; } .flow .audience .tier p { font-size: 17px; }
.flow .audience .map { grid-template-columns: 1fr 1fr; }
.flow .audience .mapcell { padding: 10px; }
.flow .audience .mapcell h2 { font-size: 26px; } .flow .audience .map-promise { font-size: 15px; } .flow .audience .map-phase { font-size: 12px; } .flow .audience .mapcell-note { font-size: 17px; }
.flow .audience .slide--pole { flex-direction: column; padding: 0 0 96px; }
.flow .audience .pole-side { width: auto; padding: 34px 26px 28px; gap: 12px; }
.flow .audience .pole-side::after { inset: 12px; --l: 20px; }
.flow .audience .pole-name, .flow .audience .pole-name.sm, .flow .audience .pole-name.xs { font-size: clamp(48px, 14vw, 76px); }
.flow .audience .pole-phase { font-size: 15px; } .flow .audience .pole-promise { font-size: 22px; }
.flow .audience .pole-ref { margin-top: 6px; } .flow .audience .pole-ref p { font-size: 16px; } .flow .audience .pole-ref .srcline { font-size: 13px; }
.flow .audience .pole-main { padding: 6px 18px 0; }
.flow .audience .task { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
.flow .audience .task.on { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
.flow .audience .gain { justify-self: start; font-size: 19px; padding: 5px 12px 4px; margin: 0 0 0 5px; }
.flow .audience .task-t { font-size: 21px; } .flow .audience .task-a { font-size: 17px; }
.flow .audience .task-detail { grid-template-columns: 1fr; gap: 12px; }
.flow .audience .corner { font-size: 17px; border-top-width: 5px; } .flow .audience .corner b { font-size: 22px; }
.flow .audience .tap-hint { display: block; font-size: 14px; color: var(--grey); padding-top: 12px; }
.flow .audience .calc { grid-template-columns: 1fr; gap: 22px; }
.flow .audience .field { grid-template-columns: 1fr 112px; font-size: 17px; }
.flow .audience .field input { font-size: 20px; }
.flow .audience .calc-out { gap: 16px; }
.flow .audience .calc-cell .num { font-size: clamp(48px, 14vw, 68px); } .flow .audience .calc-cell .stat-text { font-size: 15px; }
.flow .audience .rounds { grid-template-columns: 1fr; }
.flow .audience .round, .flow .audience .round:first-child { border-left: 0; border-top: 2px solid var(--ink); padding: 14px 12px; }
.flow .audience .round:first-child { border-top: 0; }
.flow .audience .round-k { font-size: 44px; } .flow .audience .round-d { font-size: 15px; } .flow .audience .round h2 { font-size: 22px; margin-top: 2px; } .flow .audience .round-p { font-size: 17px; }
.flow .audience .option { font-size: 19px; padding: 16px; } .flow .audience .option-n { font-size: 38px; }
.flow .audience .chiprow, .flow .audience .votelist { padding: 0 6px; gap: 10px 14px; }
.flow .audience .chip { font-size: 16px; padding: 9px 14px; } .flow .audience .chip-label { font-size: 15px; margin-left: -6px; }
.flow .audience .votelist { padding: 0; }
.flow .audience .votetask { font-size: 17px; padding: 12px; }
.flow .audience .vote-empty { font-size: 18px; padding: 16px 0; }
.flow .audience .rank { grid-template-columns: 48px 1fr; padding: 8px 10px; } .flow .audience .rank-n { font-size: 40px; } .flow .audience .rank-body b { font-size: 17px; } .flow .audience .rank-body { font-size: 14px; }
.flow .audience .sources { columns: 1; font-size: 16px; }
.flow .bar { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); border: 1px solid rgba(255, 255, 255, 0.6); max-width: calc(100vw - 16px); }

/* ---------- Vue orateur ---------- */
.route-speaker { background: #161616; color: #f3f3f3; }
.route-speaker :focus-visible { outline-color: var(--red); }
.speaker { height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 14px; }
.sp-banner { grid-column: 1 / -1; padding: 10px 14px; background: var(--red-deep); color: #fff; font-weight: 600; font-size: 16px; }
.sp-banner.demo { background: #fff; color: var(--ink); }
.sp-main { grid-row: 2; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.pv { position: relative; background: #000; }
.pv-cur { aspect-ratio: 16 / 9; width: 100%; max-height: calc(100dvh - 150px); flex: none; }
.pv-next { aspect-ratio: 16 / 9; width: 100%; flex: none; pointer-events: none; }
.sp-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sp-nav, .sp-btn { min-height: 44px; padding: 0 16px; border: 2px solid #f3f3f3; background: transparent; color: #f3f3f3; font-weight: 700; font-size: 16px; cursor: pointer; }
.sp-nav.primary { background: #fff; color: var(--ink); border-color: #fff; }
.sp-btn { display: block; width: 100%; margin: 8px 0; text-align: left; }
.sp-btn.danger { border-color: #ff8f88; color: #ff8f88; }
.sp-info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; font-size: 16px; font-variant-numeric: tabular-nums; align-items: baseline; }
.sp-pos, .sp-clock { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: 0.02em; }
.sp-pace.late { color: #ff8f88; font-weight: 700; } .sp-pace.ok { color: #7fe3a0; }
.sp-right { grid-row: 2; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.sp-label { font-size: 14px; font-weight: 700; color: #b8b8b8; }
.sp-tabs { display: flex; gap: 0; border-bottom: 2px solid #f3f3f3; }
.sp-tabs button { flex: 1; min-height: 40px; border: 0; background: transparent; color: #b8b8b8; font-weight: 700; font-size: 15px; cursor: pointer; }
.sp-tabs button.on { background: #f3f3f3; color: var(--ink); }
.sp-side { flex: 1; min-height: 0; overflow: auto; padding-right: 6px; }
.note-p { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
.note-b { font-size: 21px; line-height: 1.4; margin: 0 0 9px; padding-left: 4px; }
.note-h { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: 0.02em; margin: 26px 0 8px; padding-top: 16px; border-top: 2px solid #5a5a5a; color: #fff; }
.note-s { font-size: 18px; line-height: 1.4; margin-bottom: 14px; color: #c9c9c9; }
.note-pro { font-size: 20px; line-height: 1.4; margin: 0 0 12px; }
.note-kind { display: inline-block; margin-right: 10px; padding: 1px 8px 2px; font-size: 14px; font-weight: 700; border: 1px solid #f3f3f3; vertical-align: 2px; white-space: nowrap; }
.note-kind-sched { background: #f3f3f3; color: var(--ink); }
.sp-list { list-style: none; counter-reset: s; }
.sp-list li { counter-increment: s; }
.sp-list button { width: 100%; text-align: left; padding: 8px 10px; border: 0; background: transparent; color: #f3f3f3; font-size: 16px; cursor: pointer; }
.sp-list button::before { content: counter(s) "  "; color: #b8b8b8; font-variant-numeric: tabular-nums; }
.sp-list button.on { background: #fff; color: var(--ink); font-weight: 700; }
.sp-list button.on::before { color: var(--ink); }
.sp-pre { white-space: pre-wrap; font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace; background: #000; padding: 10px; user-select: all; }
.sp-done { font-size: 14px; color: #7fe3a0; }
.sp-url { font-size: 18px; font-weight: 700; word-break: break-all; margin-bottom: 10px; }
.sp-qr { width: 180px; background: #fff; padding: 6px; margin-bottom: 12px; }
.sp-qr svg { display: block; width: 100%; height: auto; }
.gate { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--tile); }
.gate form { display: flex; flex-direction: column; gap: 12px; width: min(420px, 100%); }
.gate h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 84px; line-height: 1.04; letter-spacing: 0.01em; }
.gate input { font: inherit; font-size: 20px; padding: 12px; border: 2px solid #f3f3f3; background: #000; color: #fff; border-radius: 0; }
.gate button { min-height: 48px; border: 0; background: #fff; color: var(--ink); font-weight: 800; font-size: 17px; cursor: pointer; }
.gate-err { color: #ff8f88; min-height: 1.4em; }
@media (max-width: 900px) {
  .speaker { grid-template-columns: 1fr; grid-template-rows: auto auto auto; height: auto; }
  .sp-main, .sp-right { grid-row: auto; }
  .pv-next { display: none; } .sp-label { display: none; }
  .sp-side { overflow: visible; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .bar, .demo-overlay { display: none !important; } }
