/* Scène fixe 1920 × 1080 : programme, preview et lecture libre. */
:root {
  --ink: #0d1117;
  --ink-2: #161c25;
  --ink-3: #222b38;
  --paper: #f3eee4;
  --muted: #9aa4b2;
  --dim: #5d6878;
  --accent: #e8a33d;
  --pod: #4f6a8f;
  --pod-2: #5d7aa3;
  --ad: #2f9c95;
  --conflict: #e5484d;
  --valid: #3fb27f;
  --filler: #8b8f98;
  --font: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino", "Georgia", serif;
}

.stage-wrap { position: relative; overflow: hidden; background: #000; }
.stage {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  transform-origin: 0 0; background: var(--ink); color: var(--paper);
  font-family: var(--font); overflow: hidden;
}
.stage .scene { position: absolute; inset: 0; animation: scene-in .5s ease both; }
.stage .scene.leaving { animation: scene-out .35s ease both; }
.stage .scene-black { background: #000; }
@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scene-out { from { opacity: 1; } to { opacity: 0; } }

.on { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.off { opacity: 0; transform: translateY(18px); transition: opacity .3s ease, transform .3s ease; }

.kicker { font-size: 30px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.badge {
  position: absolute; right: 72px; top: 60px; font-size: 22px; letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid var(--dim); color: var(--muted); padding: 10px 18px; border-radius: 6px;
}
.stage-foot {
  position: absolute; left: 120px; right: 120px; bottom: 48px; display: flex; justify-content: space-between;
  font-size: 20px; letter-spacing: .06em; color: var(--dim);
}
h1, h2 { margin: 0; font-weight: 600; }

/* Titre */
.layout-title { position: absolute; left: 160px; right: 160px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.layout-title h1 { font-size: 132px; line-height: 1.02; letter-spacing: -.02em; margin-top: 28px; max-width: 1500px; }
.layout-title .subtitle { font-size: 44px; color: var(--muted); margin-top: 36px; }
.layout-title .rule { width: 160px; height: 6px; background: var(--accent); margin-top: 56px; }
.demo-open { margin-top: 56px; font-size: 36px; color: var(--accent); }

/* Dates */
.layout-dates { position: absolute; left: 160px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 96px; }
.date-line .date { font-size: 150px; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-top: 18px; }
.date-line + .date-line .date { color: var(--accent); }

/* Énoncés */
.layout-statement { position: absolute; left: 160px; right: 200px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.statements { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 44px; }
.statements li { font-size: 64px; line-height: 1.15; font-weight: 500; padding-left: 48px; border-left: 6px solid var(--ink-3); }
.statements li.on { color: var(--muted); }
.statements li.current { color: var(--paper); border-left-color: var(--accent); }
.scene-still .statements li.on { color: var(--paper); }

/* Citation */
.layout-quote { position: absolute; left: 200px; right: 200px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.layout-quote blockquote { margin: 0; font-family: var(--serif); font-size: 84px; line-height: 1.22; font-style: italic; }
.layout-quote blockquote::before { content: "«\00a0"; color: var(--accent); }
.layout-quote blockquote::after { content: "\00a0»"; color: var(--accent); }
.provenance { margin-top: 56px; font-size: 28px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Grille */
.layout-grid { position: absolute; left: 160px; right: 160px; top: 150px; }
.layout-grid h2 { font-size: 64px; margin-bottom: 48px; }
.work-grid { width: 100%; border-collapse: collapse; font-size: 40px; font-variant-numeric: tabular-nums; }
.work-grid th { text-align: left; font-size: 24px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 24px 18px; border-bottom: 2px solid var(--ink-3); }
.work-grid td { padding: 18px 24px; border-bottom: 1px solid var(--ink-3); }
.work-grid tr.kind-anchor td:last-child { color: var(--accent); font-weight: 600; }
.work-grid tr.kind-ad td:last-child { color: var(--ad); font-weight: 600; }
.grid-total { margin-top: 36px; font-size: 40px; font-weight: 600; color: var(--valid); }

/* Diagramme */
.layout-diagram { position: absolute; left: 140px; right: 140px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.layout-diagram h2 { font-size: 64px; margin-bottom: 80px; }
.boxes { display: flex; align-items: stretch; gap: 20px; }
.box { flex: 1; background: var(--ink-2); border: 2px solid var(--ink-3); border-top: 6px solid var(--accent); border-radius: 10px; padding: 40px 36px; }
.box-index { font-size: 26px; color: var(--accent); font-weight: 700; }
.box-title { font-size: 46px; font-weight: 600; margin: 14px 0 20px; }
.box-text { font-size: 30px; line-height: 1.35; color: var(--muted); }
.arrow { align-self: center; font-size: 48px; color: var(--dim); }

/* Roue */
.layout-wheel { position: absolute; inset: 0; display: grid; grid-template-columns: 1040px 1fr; align-items: center; }
.wheel-holder { padding-left: 60px; }
.wheel { width: 960px; height: 960px; display: block; }
.wheel-side { padding-right: 120px; }
.wheel-side h2 { font-size: 54px; margin-bottom: 28px; }
.caption { font-size: 50px; line-height: 1.2; font-weight: 500; }
.verdict { margin-top: 48px; font-size: 38px; line-height: 1.25; font-weight: 600; display: flex; gap: 22px; align-items: flex-start; padding: 26px 30px; border-radius: 10px; background: var(--ink-2); border-left: 8px solid var(--muted); animation: scene-in .6s ease both; }
.verdict-mark { font-size: 44px; line-height: 1; }
.verdict-ok { border-left-color: var(--valid); color: #bfe8d3; }
.verdict-ok .verdict-mark { color: var(--valid); }
.verdict-violation { border-left-color: var(--conflict); color: #f6c5c6; }
.verdict-violation .verdict-mark { color: var(--conflict); }
.verdict-impossible { border-left-color: var(--accent); color: #f5ddb5; }
.verdict-impossible .verdict-mark { color: var(--accent); }
.verdict-filler { border-left-color: var(--filler); color: var(--paper); }
.legend-note { margin-top: 40px; font-size: 26px; color: var(--muted); }

.wheel .track { fill: none; stroke: var(--ink-2); }
.wheel .tick { stroke: var(--muted); stroke-width: 4; }
.wheel .tick-minor { stroke: var(--dim); stroke-width: 2; }
.wheel .tick-label { fill: var(--muted); font-size: 34px; font-weight: 600; text-anchor: middle; dominant-baseline: middle; font-family: var(--font); }
.wheel .seg path { stroke: var(--ink); stroke-width: 4; transition: fill .5s ease; }
.wheel .seg-anchor path { fill: var(--accent); }
.wheel .seg-pod path { fill: var(--pod); }
.wheel .seg-pod:nth-of-type(odd) path { fill: var(--pod-2); }
.wheel .seg-ad path { fill: var(--ad); }
.wheel .seg-conflict path { fill: var(--conflict); }
.wheel .seg-valid path { fill: var(--valid); }
.wheel .seg-filler path { fill: var(--filler); stroke-dasharray: 10 8; }
.wheel .seg-gap path { fill: url(#hatch); stroke: var(--accent); stroke-dasharray: 14 10; }
.wheel .hatch-bg { fill: var(--ink-2); }
.wheel .hatch-line { stroke: var(--ink-3); stroke-width: 8; }
.wheel .seg-label { fill: var(--ink); font-size: 30px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; font-family: var(--font); }
.wheel .seg-pod .seg-label, .wheel .seg-conflict .seg-label, .wheel .seg-ad .seg-label:not(.outside) { fill: #fff; }
.wheel .seg-label.outside { fill: var(--paper); font-size: 28px; }
.wheel .seg-gap .seg-label { fill: var(--accent); font-size: 26px; }
.wheel .lead { stroke: var(--muted); stroke-width: 2; }
.wheel .seg-conflict .lead { stroke: var(--conflict); }
.wheel .seg-conflict .seg-label.outside { fill: var(--conflict); }
.wheel .link-dot { fill: var(--conflict); }
.wheel .link { fill: none; stroke: var(--conflict); stroke-width: 5; stroke-dasharray: 14 10; animation: scene-in .8s ease both; }
.wheel .center-big { fill: var(--paper); font-size: 104px; font-weight: 600; text-anchor: middle; font-family: var(--font); font-variant-numeric: tabular-nums; }
.wheel .center-small { fill: var(--muted); font-size: 28px; text-anchor: middle; font-family: var(--font); }
.wheel .enter { animation: seg-in .7s ease both; }
@keyframes seg-in { from { opacity: 0; } to { opacity: 1; } }

/* Pause OTT */
.layout-break { position: absolute; left: 160px; right: 160px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.layout-break h2 { font-size: 60px; margin-bottom: 72px; }
.break-bar { display: flex; height: 220px; gap: 8px; }
.slot { flex: 1; border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 30px; background: var(--pod); transition: background .5s ease; animation: scene-in .5s ease both; }
.slot-name { font-size: 48px; font-weight: 700; }
.slot-dur { font-size: 26px; opacity: .8; }
.slot-A { background: var(--pod); }
.slot-B { background: var(--ad); }
.slot-C { background: #7a5ea8; }
.slot-conflict { background: var(--conflict); }
.slot-valid { box-shadow: inset 0 0 0 6px var(--valid); }
.slot-gap { background: repeating-linear-gradient(45deg, var(--ink-2) 0 14px, var(--ink-3) 14px 28px); border: 4px dashed var(--accent); color: var(--accent); }
.slot-filler { background: var(--filler); border: 4px dashed var(--paper); }
.break-ticks { position: relative; height: 50px; margin-top: 14px; font-size: 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
.break-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.break-ticks span:first-child { transform: none; }
.break-ticks span:last-child { transform: translateX(-100%); }
.layout-break .caption { margin-top: 40px; }

/* Vidéo */
.layout-video { position: absolute; inset: 0; background: #000; }
.scene-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-left: 160px; background: var(--ink); }
.video-fallback[hidden] { display: none; }
.video-fallback-text { font-size: 84px; font-weight: 600; margin-top: 24px; }

/* Démo */
.demo-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.scene-demo .stage-foot { display: none; }

/* Échange */
.layout-qa { position: absolute; left: 160px; right: 160px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.qa-idle h1 { font-size: 132px; line-height: 1.02; margin-top: 28px; }
.qa-idle .subtitle { font-size: 44px; color: var(--muted); margin-top: 36px; }
.qa-card { display: none; }
.layout-qa.has-question .qa-idle { display: none; }
.layout-qa.has-question .qa-card { display: block; animation: scene-in .6s ease both; }
.qa-text { margin: 40px 0 0; font-family: var(--serif); font-size: 76px; line-height: 1.22; font-style: italic; border-left: 8px solid var(--accent); padding-left: 48px; }
.qa-name { margin-top: 36px; padding-left: 56px; font-size: 34px; color: var(--muted); }
.qa-invite { position: absolute; left: 0; bottom: 130px; font-size: 36px; }
.qa-invite strong { color: var(--accent); }

/* Vote */
.layout-vote { position: absolute; left: 160px; right: 160px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.layout-vote h2 { font-size: 80px; line-height: 1.1; margin: 28px 0 56px; }
.choices { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.choices li { position: relative; overflow: hidden; font-size: 48px; display: flex; align-items: center; gap: 32px; background: var(--ink-2); padding: 24px 34px; border-radius: 10px; }
.choice-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink-3); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.choices li.leading .choice-bar { background: #4a3a1c; }
.choice-key, .choice-text, .choice-pct { position: relative; }
.choice-key { display: inline-grid; place-items: center; flex: 0 0 70px; height: 70px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 38px; }
.choice-text { flex: 1; }
.choice-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.vote-status { margin-top: 40px; min-height: 52px; font-size: 36px; color: var(--paper); display: flex; align-items: center; gap: 18px; }
.vote-status strong { color: var(--accent); }
.vote-countdown { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 44px; }
.vote-live-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--conflict); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.footnote { margin-top: 28px; font-size: 28px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .stage *, .stage *::before { animation: none !important; transition: none !important; }
}
