/* PNYX, façon Talon : la télé sur le bureau, le zoom dans l'écran, l'intérieur de l'écran.
   Les mesures viennent du CSS de Talon (1rem Talon = 10px ici). Le studio prend le papier
   de PNYX, l'écran garde le noir et le cyan de Talon, l'orange reste le caillou de PNYX. */

@font-face { font-family: "PPSupplyMonoRegular";    src: url(../assets/fonts/PPSupplyMono-Regular.otf) format("opentype");    font-weight: 400; font-display: swap; }
@font-face { font-family: "PPSupplySansRegular";    src: url(../assets/fonts/PPSupplySans-Regular.otf) format("opentype");    font-weight: 400; font-display: swap; }
@font-face { font-family: "PPSupplySansUltralight"; src: url(../assets/fonts/PPSupplySans-Ultralight.otf) format("opentype"); font-weight: 300; font-display: swap; }

:root {
  --paper: #C2BC83;
  --ink: #141412;
  --orange: #DE5427;
  --dark: #141412;     /* encre : le fond de l'écran */
  --light: #D6D1A2;    /* papier clair : titres et texte fort */
  --gray: #C2BC83;     /* papier : le texte */
  --dgray: #A8A271;    /* papier atténué */
  --mute: #8C875F;     /* papier discret */
  --fade: #3A382A;     /* traits */
  --line: #26251C;     /* séparateurs */
  --accent: #DE5427;   /* l'orange du caillou */
  --ui: var(--ink);
  --mono: "PPSupplyMonoRegular", ui-monospace, Menlo, Consolas, monospace;
  --sans: "PPSupplySansRegular", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0.8, 1);
}
html.night { --paper: #11110E; --ui: #D6D1A2; }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ui);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: none;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
html::-webkit-scrollbar { display: none; }
html.is-inside { overflow: hidden; }
body { margin: 0; min-height: 100%; }
body::before {                                   /* grain du papier */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url(../assets/grain.png);
}
html.night body::before { opacity: .2; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--dark); }

.p2 { font-family: var(--mono); font-size: 15px; font-weight: 400; line-height: 1.3; }
@media (min-width: 1920px) { .p2 { font-size: 17px; } }

/* ------------------------------------------------------------------ préchargeur */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--dark); color: var(--light);
  padding: 48px 40px;
}
.preloader.is-gone { transform: translateY(-100%); transition: transform .9s cubic-bezier(.87, 0, .13, 1); }
.preloader__inner { position: relative; width: 100%; height: 100%; }
.preloader__text {
  position: absolute; left: 0; top: 0; margin: 0; width: 100%;
  font-family: var(--sans); font-weight: 400; line-height: .99;
  font-size: 88px; max-width: 944px;
}
@media (min-width: 1440px) { .preloader__text { font-size: 118px; max-width: 1236px; } }
@media (min-width: 1920px) { .preloader__text { font-size: 148px; max-width: 1587px; } }
@media (max-width: 1023px) { .preloader__text { font-size: 72px; max-width: 688px; } }
@media (max-width: 767px)  { .preloader { padding: 48px 16px; } .preloader__text { font-size: 52px; } }
.pw { display: inline-block; overflow: hidden; vertical-align: top; }
.pw__i {
  display: inline-block; transform: translateY(110%);
  transition: transform .95s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i) * 60ms);
}
.preloader.is-in .pw__i { transform: translateY(0); }
.pw__i.is-accent { color: var(--accent); }
.preloader.is-out .pw__i {
  transform: translateY(-110%);
  transition: transform .55s cubic-bezier(.7, 0, .84, 0);
  transition-delay: calc(var(--i) * 40ms);
}
.preloader__progress {
  position: absolute; left: 0; bottom: 40px; width: 100%; height: 1px;
  background: var(--fade); transform-origin: left center; transform: scaleX(0);
  transition: transform 2.4s cubic-bezier(.65, 0, .35, 1) .15s;
}
.preloader.is-in .preloader__progress { transform: scaleX(1); }

/* ------------------------------------------------------------------ en-tête */
.header {
  position: fixed; left: 0; top: 0; z-index: 1000; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 24px 40px 0; pointer-events: none; color: var(--ui);
  transition: opacity .35s ease;
}
@media (min-width: 1920px) { .header { padding-top: 32px; } }
@media (max-width: 767px)  { .header { padding: 20px 16px 0; } }
.header__navigation { list-style: none; margin: 0; padding: 0; }
.header__navigation-item + .header__navigation-item { margin-top: 12px; }
.nav-link {
  display: block; position: relative; width: max-content;
  padding: 4px; margin: -4px; border: 0; background: none;
  color: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; pointer-events: all;
}
.nav-link::after {
  content: ""; display: block; position: absolute; left: 4px; bottom: 0;
  width: calc(100% - 8px); height: 1px; background: currentColor;
  transform-origin: left center; transform: scaleX(0);
  transition: transform .5s var(--ease);
}
@media (min-width: 1280px) { .nav-link:hover::after { transform: scaleX(1); } }
.nav-link:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.header__center { position: absolute; left: 50%; top: 27px; transform: translateX(-50%); }
@media (min-width: 1920px) { .header__center { top: 35px; } }
@media (max-width: 767px)  { .header__center { top: 22px; } }
.header__logo {
  display: block; width: 62px; padding: 0; border: 0; background: none;
  color: var(--ui); cursor: pointer; pointer-events: all;
}
@media (min-width: 1920px) { .header__logo { width: 75px; } }
@media (max-width: 767px)  { .header__logo { width: 44px; } }
.header__logo svg { display: block; width: 100%; height: auto; }
html.is-inside .header { opacity: 0; }
html.is-inside .header * { pointer-events: none !important; }
/* pendant le zoom, l'habillage s'efface pour laisser l'écran seul */
.header, .ss-caption, .ss-scroll, .ss-clock, .ss-switch { opacity: var(--zoom-fade, 1); }
html.is-zooming .header *, html.is-zooming .ss-switch { pointer-events: none !important; }

/* ------------------------------------------------------------------ la scène */
.start-stage { position: relative; z-index: 1; height: 300vh; }
.start-screen {
  position: sticky; top: 0; width: 100%; height: 100vh; overflow: hidden;
  color: var(--ui);
  background: url(../assets/hill.png) center bottom / min(1500px, 190%) auto no-repeat;
}
html.night .start-screen { background: none; }
.hero3d-wrap { position: absolute; inset: 0; }
.hero3d, .hero3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hero3d.is-hot canvas { cursor: pointer; }
.hero3d-loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 30;
  letter-spacing: .15em; opacity: .7; text-align: center;
}
.hero3d-loading__dots::after { content: "..."; animation: ssblink 1s steps(1) infinite; }

/* le libellé de l'interrupteur, posé par scene.js sur l'interrupteur du bas */
.ss-mode {
  position: absolute; left: 50%; top: 50%; z-index: 20;
  display: flex; align-items: flex-end; gap: 6px;
  pointer-events: none; will-change: transform;
  transition: opacity .25s linear;
}
.ss-mode__arrow { width: 40px; height: 60px; flex: none; opacity: .85; }
.ss-mode__btn {
  pointer-events: all; white-space: nowrap; padding: 0 0 6px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.ss-mode__btn::after {
  content: ""; display: block; width: calc(100% - 8px); height: 1px; margin-top: 4px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease);
}
@media (min-width: 1280px) { .ss-mode__btn:hover::after { transform: scaleX(1); } }
.ss-mode__btn:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.ss-mode.is-off .ss-mode__btn { pointer-events: none; }

/* son */
.ss-switch {
  position: absolute; top: 24px; right: 40px; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; pointer-events: all;
}
@media (min-width: 1920px) { .ss-switch { top: 32px; } }
@media (max-width: 767px)  { .ss-switch { top: 20px; right: 16px; } }
.ss-switch:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.ss-toggle {
  width: 34px; height: 18px; border: 1px solid currentColor; border-radius: 999px;
  position: relative; opacity: .6; transition: opacity .3s ease-in-out;
}
.ss-toggle__dot {
  position: absolute; top: 50%; left: 2.5px; width: 11px; height: 11px; border-radius: 50%;
  background: currentColor; transform: translateY(-50%); transition: left .3s ease-in-out;
}
.ss-toggle.on { opacity: 1; }
.ss-toggle.on .ss-toggle__dot { left: calc(100% - 13.5px); }
.ss-sound__playing {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: -6px;
  box-shadow: 0 0 8px rgba(222, 84, 39, .6); animation: ssPlayingPulse 1.4s ease-in-out infinite;
}

/* bas de l'écran : légende, scroll, horloge */
.ss-caption { position: absolute; left: 40px; bottom: 24px; max-width: 480px; z-index: 20; }
.ss-scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.ss-scroll__sq { width: 8px; height: 8px; background: currentColor; display: inline-block; animation: ssblink 1.2s steps(1) infinite; }
.ss-clock { position: absolute; right: 40px; bottom: 24px; z-index: 20; }
.ss-clock .clock { margin: 0; }
@media (max-width: 767px) {
  .ss-caption { left: 16px; right: 16px; bottom: 50px; max-width: none; }
  .ss-scroll { left: 16px; transform: none; bottom: 20px; }
  .ss-clock { right: 16px; bottom: 20px; }
}
html.is-inside .ss-caption, html.is-inside .ss-scroll, html.is-inside .ss-clock, html.is-inside .ss-switch {
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}

/* flash quand on entre dans l'écran */
.ss-flash {
  position: absolute; inset: 0; z-index: 40; background: var(--light);
  opacity: 0; pointer-events: none; transition: opacity .45s ease-in-out;
}
.ss-flash.on { opacity: 1; }

/* ------------------------------------------------------------------ l'intérieur de l'écran */
.screenview {
  position: fixed; inset: 0; z-index: 900; overflow: hidden;
  background: var(--dark); color: var(--light);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease-in-out, visibility 0s linear .6s;
}
.screenview.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .6s ease-in-out; }
.screenview__canvas { position: absolute; inset: 0; }
.screenview__canvas canvas { position: absolute; }
.screenview__scan {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.18) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: multiply;
}
.screenview__vignette {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,.5) 88%, rgba(0,0,0,.85) 100%);
}
.screenview__ui {
  position: absolute; inset: 0; z-index: 3;
  padding: 56px 70px 48px;
  display: flex; flex-direction: column; pointer-events: none;
}
@media (max-width: 1023px) { .screenview__ui { padding: 48px 40px 36px; } }
@media (max-width: 767px)  { .screenview__ui { padding: 20px 16px 16px; } }

.screenview__head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--dgray); pointer-events: auto;
}
.screenview__back, .screenview__x {
  position: relative; padding: 4px; margin: -4px; border: 0; background: none;
  color: inherit; cursor: pointer; font: inherit; text-decoration: none;
}
.screenview__back::after, .screenview__x::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease);
}
@media (min-width: 1280px) { .screenview__back:hover::after, .screenview__x:hover::after { transform: scaleX(1); } }
.screenview__back:focus-visible, .screenview__x:focus-visible, .screenview__brand:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.screenview__brand { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.screenview__brand svg { width: 54px; height: auto; display: block; }
@media (max-width: 767px) { .screenview__brand svg { width: 40px; } }
.screenview__chain { letter-spacing: .18em; text-transform: uppercase; }

.sv-body {
  flex: 1; min-height: 0; margin-top: 36px;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 64px;
  pointer-events: none;
}
.sv-left {
  min-height: 0; overflow: auto; scrollbar-width: none;
  display: flex; flex-direction: column; pointer-events: auto;
}
.sv-left::-webkit-scrollbar { display: none; }
.screenview__phrase {
  margin: 0; max-width: 640px;
  font-family: var(--sans); font-weight: 400; font-size: 48px; line-height: 1.04; color: var(--light);
}
@media (min-width: 1920px) { .screenview__phrase { font-size: 62px; } }
@media (max-width: 1199px) { .screenview__phrase { font-size: 38px; } }
.screenview__word { color: var(--accent); display: inline-block; animation: svWordIn .45s cubic-bezier(.22, 1, .36, 1) both; }
.screenview__word:empty { display: none; }
.screenview__caret {
  display: inline-block; width: .6ch; height: 1em; margin-left: 4px; vertical-align: -.12em;
  background: var(--light); animation: crtCaret 1s steps(1) infinite;
}
.screenview__desc { margin: 24px 0 0; max-width: 460px; color: var(--dgray); line-height: 1.5; }

.sv-nav { margin-top: 32px; }
.sv-nav ul { list-style: none; margin: 0; padding: 0; }
.sv-nav a {
  display: flex; align-items: center; gap: 10px; width: max-content;
  padding: 6px 0; color: var(--gray); text-decoration: none;
}
.sv-nav .mk { width: 10px; font-size: 10px; color: var(--accent); opacity: 0; transition: opacity .2s; }
.sv-nav a:hover { color: var(--light); }
.sv-nav a.is-on { color: var(--light); }
.sv-nav a.is-on .mk { opacity: 1; }
.sv-nav a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.sv-nav .sep { height: 1px; width: 160px; margin: 10px 0; background: var(--fade); }
.sv-nav a.is-quiet { color: #6B6749; }
.sv-nav a.is-quiet:hover, .sv-nav a.is-quiet.is-on { color: var(--light); }
.sv-nav .lock svg { display: block; width: 9px; height: 11px; fill: currentColor; }
.index-foot { margin: 14px 0 0; }
.index-foot a { color: var(--gray); text-decoration: underline; text-underline-offset: 4px; }

/* le panneau des infos */
.sv-panel {
  pointer-events: auto; min-height: 0; height: 100%;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(20, 20, 18, .9); border: 1px solid var(--fade);
}
.bar {
  display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 18px;
  border-bottom: 1px solid var(--fade);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); white-space: nowrap;
}
.bar-id { color: var(--light); }
.bar-title { flex: 1; min-width: 0; overflow: hidden; color: var(--gray); }
.view {
  min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 26px 30px 24px;
  font-family: var(--mono); font-size: 14px; line-height: 1.55; color: var(--gray);
  scrollbar-width: thin; scrollbar-color: var(--fade) transparent;
}
.view::-webkit-scrollbar { width: 6px; }
.view::-webkit-scrollbar-thumb { background: var(--fade); }
.status {
  display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 18px;
  border-top: 1px solid var(--fade); font-size: 12px; color: var(--mute); white-space: nowrap;
}
.status .grow { flex: 1; min-width: 0; overflow: hidden; }
.status .clock b { font-weight: 400; color: var(--gray); }
.status button { margin: 0; padding: 0 2px; border: 0; background: none; color: var(--light); cursor: pointer; font: inherit; font-size: 12px; }
.status button:hover, .status button:focus-visible { color: var(--accent); outline: none; }
#soundBtn { margin-left: auto; }
.status.has-more #soundBtn { margin-left: 0; }
#moreBtn i { font-style: normal; display: inline-block; animation: nudge 1.2s steps(2) infinite; }

/* les pages */
.screen { display: none; }
.screen.is-active { display: block; animation: svIn .35s ease both; }
.view .h1, #ballot .lead { display: none; }          /* la phrase est déjà à gauche */
.h2 { margin: 0 0 8px; font-family: var(--sans); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--light); }
.h3 { margin: 0 0 4px; font-family: var(--mono); font-weight: 400; font-size: 14px; color: var(--light); }
.view p { margin: 0 0 12px; }
.sub { margin: 0 0 22px !important; color: var(--mute); }
.fine { color: var(--mute); font-size: 12px; }
.tag { color: var(--light); }
.n-only { display: none; }
.lcd.is-narrow .n-only { display: inline; }
.lcd.is-narrow .w-only { display: none; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--light); background: transparent; color: var(--light);
  font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--light); color: var(--dark); outline: none; }
.btn-go { background: var(--orange); border-color: var(--orange); color: var(--dark); }
.btn-go:hover, .btn-go:focus-visible { background: var(--light); border-color: var(--light); }

/* le bulletin */
.ballot { max-width: 620px; border: 1px solid var(--fade); }
.ballot-head {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--fade);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}
.ballot-head b { color: var(--light); font-weight: 400; letter-spacing: .04em; }
.cands { list-style: none; margin: 0; padding: 6px; }
.cand {
  display: grid; grid-template-columns: 10px minmax(80px, auto) minmax(40px, 1fr) 64px; align-items: center; gap: 12px;
  width: 100%; height: 38px; padding: 0 10px; border: 0; background: none;
  color: var(--gray); font: inherit; text-align: left; cursor: pointer;
}
.cand .box { width: 10px; height: 10px; border: 1px solid currentColor; }
.cand .tick { color: var(--light); white-space: nowrap; overflow: hidden; }
.cand .track { position: relative; height: 6px; background: #201F17; }
.cand .track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #6B6749; }
.cand .num { text-align: right; color: var(--mute); }
.cand:hover { background: rgba(194, 188, 131, .06); }
.cand:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.cand[aria-checked="true"] { background: rgba(222, 84, 39, .1); }
.cand[aria-checked="true"] .box { background: var(--accent); border-color: var(--accent); }
.cand[aria-checked="true"] .track i { background: var(--accent); }
.cand[aria-checked="true"] .num { color: var(--light); }
.cand.is-won { animation: won .9s steps(2) 3; }
.ballot[data-stage="run"] .cand, .ballot[data-stage="done"] .cand { pointer-events: none; }
.ballot-msg { margin: 0; padding: 12px 14px; min-height: 62px; border-top: 1px solid var(--fade); color: var(--gray); }
.ballot-msg b { color: var(--light); font-weight: 400; }
.ballot-off { margin: 0; padding: 12px 14px; border-top: 1px solid var(--fade); }
.meter { display: none; position: relative; height: 6px; margin-top: 10px; background: #201F17; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--orange); }
.ballot[data-stage="run"] .meter.is-on { display: block; }
.meter.is-burn i { background: repeating-linear-gradient(90deg, #6B6749 0 2px, transparent 2px 4px); }
.ballot-act { padding: 4px 14px 16px; }
.rename {
  width: 110px; height: 28px; padding: 0 6px; margin: 0; border: 0; border-bottom: 1px solid var(--accent);
  background: transparent; color: var(--light); font: inherit; text-transform: uppercase;
}
.rename:focus { outline: none; }
.linkish { padding: 0; border: 0; background: none; color: var(--light); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.linkish:hover, .linkish:focus-visible { color: var(--accent); outline: none; }

/* les étapes */
.steps { list-style: none; margin: 0; padding: 0; max-width: 620px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; border-top: 0; }
.steps .n { font-family: var(--sans); font-size: 40px; line-height: 1; color: var(--accent); }
.steps p { margin: 0 !important; }

/* le simulateur */
.sim { max-width: 620px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin-bottom: 16px; }
.field label { grid-column: 1; }
.field output { grid-column: 2; color: var(--light); text-align: right; }
.field input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: #6B6749; }
input[type="range"]::-moz-range-track { height: 1px; background: #6B6749; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--light); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--light); }
input[type="range"]:focus { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb { background: var(--accent); }
input[type="range"]:focus-visible::-moz-range-thumb, input[type="range"]:active::-moz-range-thumb { background: var(--accent); }
.readout { margin: 6px 0 12px; border: 1px solid var(--fade); }
.readout div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.readout div:first-child { border-top: 0; }
.readout dt { margin: 0; }
.readout dd { margin: 0; color: var(--light); white-space: nowrap; }
.readout .big { background: rgba(222, 84, 39, .08); }
.readout .big dd { color: var(--accent); font-family: var(--sans); font-size: 22px; }

/* listes */
.pairs { margin: 0 0 18px; max-width: 620px; }
.pairs div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 0 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.pairs div:first-child { padding-top: 0; border-top: 0; }
.pairs dt { color: var(--light); }
.pairs dd { margin: 0; }
.lcd.is-narrow .pairs div { grid-template-columns: minmax(0, 1fr); }
.split { display: flex; gap: 2px; height: 10px; max-width: 620px; margin: 10px 0; }
.split i { display: block; height: 100%; }
.split .s1 { flex: 4; background: var(--accent); }
.split .s2 { flex: 1; background: var(--light); }
.split .s3 { flex: 1; background: #6B6749; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 22px; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; }
.legend .k1 { background: var(--accent); }
.legend .k2 { background: var(--light); }
.legend .k3 { background: #6B6749; }
.legend b { color: var(--light); font-weight: 400; }
.faq { max-width: 620px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary { position: relative; padding: 12px 0 12px 22px; list-style: none; color: var(--light); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; position: absolute; left: 2px; top: 12px; color: var(--accent); }
.faq details[open] summary::before { content: "\2212"; }
.faq summary:hover, .faq summary:focus-visible { color: var(--accent); outline: none; }
.faq details p { margin: 0 !important; padding: 0 0 14px 22px; }
.checks { list-style: none; margin: 0 0 18px; padding: 0; }
.checks li { display: flex; gap: 12px; padding: 6px 0; }
.checks .c { width: 16px; flex: none; color: #6B6749; }
.checks li:first-child .c { color: var(--light); }
.checks .is-now { color: var(--light); }
.checks .is-now .c { color: var(--orange); }
.note { max-width: 620px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--fade); }
.next {
  display: flex; justify-content: space-between; gap: 12px; max-width: 620px;
  margin: 26px 0 4px; padding: 14px 0 6px; border-top: 1px solid var(--line);
  color: var(--mute); text-decoration: none;
}
.next b { color: var(--light); font-weight: 400; }
.next i { font-style: normal; font-size: 10px; color: var(--accent); }
.next:hover b, .next:focus-visible b { color: var(--accent); }
.next:focus-visible { outline: none; }
.locked { max-width: 440px; padding-top: 6px; }
.locked .glyph svg { display: block; width: 34px; height: 42px; margin-bottom: 18px; fill: var(--light); }
.rename.wallet { width: 100%; max-width: 320px; height: 40px; text-transform: none; border-bottom-color: #6B6749; }
.rename.wallet:focus { border-bottom-color: var(--accent); }
#listCheck label { display: block; margin: 8px 0 6px; color: var(--light); }
#listResult { margin-top: 12px; min-height: 20px; }
#listResult.is-yes { color: var(--accent); }

/* écran étroit : la phrase et le menu passent au-dessus des infos */
@media (max-width: 900px) {
  .sv-body { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
  .sv-left { flex: none; overflow: visible; }
  .screenview__phrase { font-size: 28px; }
  .screenview__desc, .index-foot { display: none; }
  .sv-nav { margin-top: 14px; }
  .sv-nav ul { display: flex; gap: 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-bottom: 4px; }
  .sv-nav ul::-webkit-scrollbar { display: none; }
  .sv-nav .sep { display: none; }
  .sv-nav a { padding: 4px 0; }
  .sv-panel { flex: 1; height: auto; }
  .view { padding: 18px 16px; }
  .keys-hint { display: none; }
  .h2 { font-size: 26px; }
}

/* ------------------------------------------------------------------ curseur en croix (Talon) */
.cursor { position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor__inner { position: absolute; left: 0; top: 0; width: 42px; height: 42px; transform: translate(-50%, -50%); }
.cursor__inner > span { display: block; position: absolute; background: var(--ink); }
.cursor__inner > span:nth-child(1) { top: 50%; right: 0; width: 16px; height: 3px; transform: translateY(-50%); }
.cursor__inner > span:nth-child(2) { bottom: 0; left: 50%; width: 3px; height: 16px; transform: translateX(-50%); }
.cursor__inner > span:nth-child(3) { top: 50%; left: 0; width: 16px; height: 3px; transform: translateY(-50%); }
.cursor__inner > span:nth-child(4) { top: 0; left: 50%; width: 3px; height: 16px; transform: translateX(-50%); }
html.night .cursor__inner > span { background: var(--light); }
html.is-inside .cursor__inner > span { background: var(--accent); }   /* dans l'écran, la croix est orange */

/* ------------------------------------------------------------------ animations */
@keyframes ssblink { 50% { opacity: 0; } }
@keyframes crtCaret { 50% { opacity: 0; } }
@keyframes svWordIn { from { opacity: 0; transform: translateY(.25em); } to { opacity: 1; transform: none; } }
@keyframes ssPlayingPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes nudge { 50% { transform: translateY(2px); } }
@keyframes svIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes won { 50% { background: var(--accent); color: var(--dark); } }

@media (prefers-reduced-motion: reduce) {
  .screen.is-active, .cand.is-won, .screenview__word, .ss-scroll__sq, #moreBtn i { animation: none; }
}

/* sans JavaScript : pas de télé, toutes les infos à la suite */
html:not(.js) .start-stage, html:not(.js) .preloader, html:not(.js) .cursor, html:not(.js) .header { display: none; }
html:not(.js) .screenview { position: relative; opacity: 1; visibility: visible; pointer-events: auto; overflow: visible; }
html:not(.js) .screenview__ui { position: relative; }
html:not(.js) .sv-body { display: block; }
html:not(.js) .sv-panel { height: auto; }
html:not(.js) .view { overflow: visible; }
html:not(.js) .screen { display: block; margin-bottom: 40px; }
html:not(.js) .ballot-act, html:not(.js) .ballot-msg, html:not(.js) input[type="range"], html:not(.js) .status button { display: none; }
