@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-VF.woff2") format("woff2-variations"),
       url("fonts/Newsreader-VF.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Italic-VF.woff2") format("woff2-variations"),
       url("fonts/Newsreader-Italic-VF.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-VF.woff2") format("woff2-variations"),
       url("fonts/HankenGrotesk-VF.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* Thèmes : sombre par défaut (piste C), clair si le système ou l'utilisateur le demande. */
:root {
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-chip: 6px; --r-btn: 10px; --r-card: 12px; --r-hero: 16px; --r-sheet: 22px;
  --gutter: 22px;
  --sec: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: dark;
  --bg: #171412; --deep: #1D1A17; --surface: #221E1B; --raised: #2B2622;
  --ink: #EFE7DA; --muted: #B3A898; --muted-2: #6F665C; --placeholder: #8C8275;
  --line: #3A332D; --line-soft: #2D2824;
  --caramel: #D49A63; --caramel-hover: #E0AA76; --on-caramel: #171412;
  --vert: #7FA88A; --sauge: #2C3A30; --brique: #E07A5F; --brique-text: #F09A82;
  --btn-ink: #3A332D; --btn-ink-hover: #4A423A; --on-btn-ink: #EFE7DA;
  --die: #EFE7DA; --pip: #1D1A17; --die-shadow: rgba(0, 0, 0, .55);
  --heat0: #2B2622; --heat1: #33473A; --heat2: #4C6E57; --heat3: #6E9A7B; --heat4: #9CC3A5;
  --chip-cuir: #4A3A2C; --tbd-bg: #4A2A22; --wm-dot: #E07A5F;
  --phone-frame: #0E0C0B; --phone-shadow: 0 30px 60px rgba(0, 0, 0, .45); --screen-ph: #2B2622;
  --paper: #1F1B18; --margin-line: #5A3A31;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .94 0 0 0 0 .9 0 0 0 0 .84 1.3 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  --quad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M15.5 0V16M0 15.5H16' fill='none' stroke='%232F2A26' stroke-width='1'/%3E%3C/svg%3E");
  --quad-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M23.5 0V24M0 23.5H24' fill='none' stroke='%23221E1B' stroke-width='1'/%3E%3C/svg%3E");
  --ink-band: #100E0C;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F0EA; --deep: #EAE6DF; --surface: #FCFBF8; --raised: #EEEAE3;
  --ink: #1D1A17; --muted: #5C554E; --muted-2: #B0A89D; --placeholder: #8E857A;
  --line: #D8D2C8; --line-soft: #E4DFD7;
  --caramel: #9A5A2C; --caramel-hover: #874D24; --on-caramel: #FAF6EF;
  --vert: #35553F; --sauge: #D6DCCB; --brique: #A8442F; --brique-text: #8F3725;
  --btn-ink: #1D1A17; --btn-ink-hover: #36302A; --on-btn-ink: #F3F0EA;
  --die: #FCFBF8; --pip: #1D1A17; --die-shadow: rgba(29, 26, 23, .28);
  --heat0: #E2DDD3; --heat1: #C7CDB4; --heat2: #8FA584; --heat3: #567760; --heat4: #2F4F3B;
  --chip-cuir: #E7D4BA; --tbd-bg: #F0D6CA; --wm-dot: #A8442F;
  --phone-frame: #1D1A17; --phone-shadow: 0 28px 56px rgba(29, 26, 23, .16), 0 6px 14px rgba(29, 26, 23, .08); --screen-ph: #E4DFD7;
  --paper: #FCFBF8; --margin-line: #E2B9AC;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .15 1.3 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  --quad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M15.5 0V16M0 15.5H16' fill='none' stroke='%23DFD9CF' stroke-width='1'/%3E%3C/svg%3E");
  --quad-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M23.5 0V24M0 23.5H24' fill='none' stroke='%23E6E1D9' stroke-width='1'/%3E%3C/svg%3E");
  --ink-band: #1D1A17;
}
@media (prefers-color-scheme: light) { :root:not([data-theme]) {
  color-scheme: light;
  --bg: #F3F0EA; --deep: #EAE6DF; --surface: #FCFBF8; --raised: #EEEAE3;
  --ink: #1D1A17; --muted: #5C554E; --muted-2: #B0A89D; --placeholder: #8E857A;
  --line: #D8D2C8; --line-soft: #E4DFD7;
  --caramel: #9A5A2C; --caramel-hover: #874D24; --on-caramel: #FAF6EF;
  --vert: #35553F; --sauge: #D6DCCB; --brique: #A8442F; --brique-text: #8F3725;
  --btn-ink: #1D1A17; --btn-ink-hover: #36302A; --on-btn-ink: #F3F0EA;
  --die: #FCFBF8; --pip: #1D1A17; --die-shadow: rgba(29, 26, 23, .28);
  --heat0: #E2DDD3; --heat1: #C7CDB4; --heat2: #8FA584; --heat3: #567760; --heat4: #2F4F3B;
  --chip-cuir: #E7D4BA; --tbd-bg: #F0D6CA; --wm-dot: #A8442F;
  --phone-frame: #1D1A17; --phone-shadow: 0 28px 56px rgba(29, 26, 23, .16), 0 6px 14px rgba(29, 26, 23, .08); --screen-ph: #E4DFD7;
  --paper: #FCFBF8; --margin-line: #E2B9AC;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .15 1.3 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  --quad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M15.5 0V16M0 15.5H16' fill='none' stroke='%23DFD9CF' stroke-width='1'/%3E%3C/svg%3E");
  --quad-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M23.5 0V24M0 23.5H24' fill='none' stroke='%23E6E1D9' stroke-width='1'/%3E%3C/svg%3E");
  --ink-band: #1D1A17;
} }
/* Bandes « encre » : le Drill et la cotation restent sombres dans les deux thèmes (le Rush est en encre). */
:root:not([data-theme="light"]) .ink {
  color-scheme: dark;
  --bg: #171412; --deep: #1D1A17; --surface: #221E1B; --raised: #2B2622;
  --ink: #EFE7DA; --muted: #B3A898; --muted-2: #6F665C; --placeholder: #8C8275;
  --line: #3A332D; --line-soft: #2D2824;
  --caramel: #D49A63; --caramel-hover: #E0AA76; --on-caramel: #171412;
  --vert: #7FA88A; --sauge: #2C3A30; --brique: #E07A5F; --brique-text: #F09A82;
  --btn-ink: #3A332D; --btn-ink-hover: #4A423A; --on-btn-ink: #EFE7DA;
  --die: #EFE7DA; --pip: #1D1A17; --die-shadow: rgba(0, 0, 0, .55);
  --heat0: #2B2622; --heat1: #33473A; --heat2: #4C6E57; --heat3: #6E9A7B; --heat4: #9CC3A5;
  --chip-cuir: #4A3A2C; --tbd-bg: #4A2A22; --wm-dot: #E07A5F;
  --phone-frame: #0E0C0B; --phone-shadow: 0 30px 60px rgba(0, 0, 0, .45); --screen-ph: #2B2622;
  --paper: #1F1B18; --margin-line: #5A3A31;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .94 0 0 0 0 .9 0 0 0 0 .84 1.3 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  --quad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M15.5 0V16M0 15.5H16' fill='none' stroke='%232F2A26' stroke-width='1'/%3E%3C/svg%3E");
  --quad-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M23.5 0V24M0 23.5H24' fill='none' stroke='%23221E1B' stroke-width='1'/%3E%3C/svg%3E");
  
  --bg: var(--ink-band-local); }
.ink { background: var(--grain) repeat, var(--bg); color: var(--ink); }
:root[data-theme="light"] .ink { background: var(--quad-faint), var(--grain) repeat, var(--bg); }
:root { --ink-band-local: #100E0C; }
:root[data-theme="light"] { --ink-band-local: #1D1A17; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --ink-band-local: #1D1A17; } }
@media (min-width: 720px) { :root { --gutter: 48px; } }


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--grain) repeat, var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 450; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.num { font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--muted); }
.wrap {
  width: 100%; max-width: calc(1180px + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.016em; text-wrap: balance; }
.lede { margin-top: 16px; color: var(--muted); max-width: 34em; }

/* Boutons */
.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 10px 22px; border-radius: var(--r-btn);
  font: 600 16px/1.2 var(--sans); text-decoration: none; white-space: nowrap; flex: none;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not([disabled]) { transform: scale(.97); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-primary { background: var(--caramel); color: var(--on-caramel); }
.btn-ink { background: var(--btn-ink); color: var(--on-btn-ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--caramel-hover); }
  .btn-ink:hover:not([disabled]) { background: var(--btn-ink-hover); }
  .btn-line:hover:not([disabled]) { box-shadow: inset 0 0 0 1.5px var(--muted); }
}
.link-btn {
  -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer;
  font: 500 15px/1.3 var(--sans); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  -webkit-tap-highlight-color: transparent; transition: opacity .1s ease-out;
}
.link-btn:active { opacity: .6; }
@media (hover: hover) { .link-btn:hover { color: var(--ink); } }
.input {
  -webkit-appearance: none; appearance: none; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-btn); background: var(--deep); color: var(--ink);
  font: 400 17px/1.3 var(--sans);
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:focus-visible { outline: none; border-color: var(--ink); }

/* En-tête */
.top { padding-block: 20px; }
.top-in { display: flex; align-items: center; gap: 28px; }
#wordmark { display: block; flex: none; }
#wordmark img { height: 30px; width: auto; display: block; }
.top nav { flex: 1; }
.top nav ul { display: flex; gap: 26px; justify-content: flex-end; }
.top nav a { font: 500 15px/1 var(--sans); color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) { .top nav a:hover { color: var(--ink); } }
@media (max-width: 899px) { .top nav li:not(.keep) { display: none; } }

/* Premier écran */
.hero { display: grid; gap: 40px; padding-block: 28px 80px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; padding-block: 56px 120px; } }
.hero h1 {
  font-family: var(--serif); font-size: clamp(42px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.022em;
  max-width: 11em; text-wrap: balance;
}
.hero .lede { margin-top: 22px; font-size: 18px; max-width: 30em; }
.hero .lede strong { color: var(--ink); font-weight: 500; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-cta .note { font-size: 14px; color: var(--muted); }

/* Le Rush */
.rush {
  position: relative; background: var(--quad), var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-hero); padding: clamp(18px, 3vw, 28px);
  min-height: 430px; display: flex; flex-direction: column; overflow: hidden;
}
.rush-top { display: flex; align-items: center; gap: 14px; font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; }
.rush-top .who { color: var(--muted); min-width: 6.4em; }
.rush-bar { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rush-bar span { display: block; height: 100%; width: 100%; background: var(--vert); transform-origin: left center; }
.rush-time { min-width: 2.8em; text-align: right; }
.score-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; gap: 16px; }
.score { display: flex; align-items: baseline; gap: 10px; }
.score .lbl { font-size: 14px; color: var(--muted); }
.odo { display: inline-flex; font-family: var(--serif); font-size: 44px; line-height: 1; height: 1em; overflow: hidden; font-variant-numeric: tabular-nums lining-nums; font-weight: 450; }
.odo .d { display: block; height: 1em; overflow: hidden; }
.odo .strip { display: flex; flex-direction: column; transition: transform .55s var(--ease); }
.odo .strip span { display: block; height: 1em; line-height: 1; text-align: center; }
.record { font-size: 14px; color: var(--muted); text-align: right; }
.record strong { color: var(--brique); font-family: var(--serif); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums lining-nums; margin-left: 4px; }
.stage { position: relative; flex: 1; min-height: 210px; margin-top: 10px; }
.op {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .5s var(--ease), opacity .35s ease;
}
.op.enter { transform: translateY(46px); opacity: 0; }
.op.leave { transform: translateY(-46px); opacity: 0; }
.op .q { font-family: var(--serif); font-weight: 450; font-size: clamp(52px, 7vw, 76px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; white-space: nowrap; }
.op .q .x { color: var(--muted); font-size: .8em; margin-inline: .12em; }
.op .a {
  margin-top: 22px; min-width: 4.2em; padding: 6px 14px 8px; border-bottom: 1.5px solid var(--line);
  font-family: var(--serif); font-size: 40px; line-height: 1.1; text-align: center; font-variant-numeric: tabular-nums lining-nums;
  transition: border-color .2s ease, background-color .2s ease; border-radius: 6px 6px 0 0;
}
.op .a .caret { display: inline-block; width: 2px; height: .9em; background: var(--muted); vertical-align: -0.08em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.op.ok .a { border-color: var(--vert); background: var(--sauge); }
.op.ok .a .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.rush-play-in { display: none; }
.rush.is-play .rush-play-in { display: block; }
.rush.is-play .ghost-only { display: none; }
.rush-input {
  -webkit-appearance: none; appearance: none; display: block; margin: 22px auto 0; width: 4.6em; max-width: 100%;
  background: transparent; color: var(--ink); border: 0; border-bottom: 1.5px solid var(--muted); border-radius: 6px 6px 0 0;
  font: 400 40px/1.1 var(--serif); font-variant-numeric: tabular-nums lining-nums; text-align: center; padding: 6px 10px 8px;
  transition: border-color .2s ease, background-color .2s ease;
}
.rush-input:focus-visible { outline: none; border-color: var(--ink); }
.rush-input.ok { border-color: var(--vert); background: var(--sauge); }
.rush-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; min-height: 50px; }
.rush-foot .hint { font-size: 14px; color: var(--muted); }
.rush-end { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 12px; }
.rush.is-end .rush-end { display: flex; }
.rush.is-end .stage, .rush.is-end .rush-foot, .rush.is-end .score-row { display: none; }
.rush-end .lbl { font-size: 15px; color: var(--muted); }
.rush-end .big { font-family: var(--serif); font-size: 96px; line-height: 1; margin-top: 6px; font-weight: 450; font-variant-numeric: tabular-nums lining-nums; }
.rush-end .msg { margin-top: 12px; font-size: 16px; }
.rush-end .msg strong { color: var(--brique); font-weight: 600; }
.rush-end .acts { margin-top: 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* Question du jour : les dés */
.qotd { padding-block: var(--sec); border-top: 1px solid var(--line-soft); }
.qotd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 15px; }
.qotd-head b { font-weight: 600; }
.qotd-head .lvl { color: var(--muted); }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: var(--r-chip); font: 500 13px/1.2 var(--sans); background: var(--sauge); color: var(--ink); }
.qotd-q { margin-top: 16px; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.16; letter-spacing: -0.012em; max-width: 21em; text-wrap: pretty; }
.qotd-grid { margin-top: 44px; display: grid; gap: 28px; grid-template-areas: "dice" "answer" "chart" "cta"; }
@media (min-width: 960px) {
  .qotd-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "dice answer" "chart answer" "chart cta"; grid-template-rows: auto auto 1fr; gap: 24px 56px; align-items: start; }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-hero); padding: clamp(18px, 3vw, 28px); }
.dice-panel { grid-area: dice; }
.chart-panel { grid-area: chart; }
.answer-col { grid-area: answer; }
.play { display: grid; gap: 22px; align-items: center; }
@media (min-width: 560px) { .play { grid-template-columns: auto minmax(0, 1fr); gap: 34px; } }
.dice { display: flex; gap: 22px; padding-top: 40px; }
.die-slot { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 84px; }
.die-slot small { font-size: 13px; color: var(--muted); white-space: nowrap; }
.die-stage { position: relative; width: 70px; height: 70px; perspective: 560px; }
.die-shadow { position: absolute; left: 6px; right: 6px; bottom: -10px; height: 12px; border-radius: 50%; background: var(--die-shadow); filter: blur(5px); }
.die-wrap { position: absolute; inset: 0; transform-style: preserve-3d; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.face {
  position: absolute; inset: 0; border-radius: 12px; background: var(--die);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pip) 12%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--pip) 10%, transparent);
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 12px; backface-visibility: hidden;
}
.face i { width: 11px; height: 11px; border-radius: 50%; background: var(--pip); place-self: center; }
.f1 { transform: translateZ(35px); }
.f6 { transform: rotateY(180deg) translateZ(35px); }
.f3 { transform: rotateY(90deg) translateZ(35px); }
.f4 { transform: rotateY(-90deg) translateZ(35px); }
.f5 { transform: rotateX(90deg) translateZ(35px); }
.f2 { transform: rotateX(-90deg) translateZ(35px); }
.die-stage.win::after { content: ""; position: absolute; inset: -7px; border-radius: 16px; border: 1.5px solid var(--vert); pointer-events: none; }
.count-row { display: flex; align-items: baseline; gap: 10px; }
.count { font-family: var(--serif); font-weight: 450; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.count-label { color: var(--muted); font-size: 15px; }
.tally { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; min-height: 26px; margin-top: 12px; }
.tally span { width: 4px; height: 12px; border-radius: 2px; background: var(--ink); opacity: .3; transform-origin: bottom; }
.tally span.six { height: 20px; opacity: .85; }
.tally span.win { height: 26px; opacity: 1; background: var(--vert); }
.tally span.new { animation: tick .14s ease-out both; }
@keyframes tick { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.play-actions { display: flex; align-items: center; gap: 12px 16px; margin-top: 18px; flex-wrap: wrap; }
.result { font-size: 15.5px; min-height: 1.5em; color: var(--muted); }
.result.done { color: var(--ink); }

.answer-col label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.answer-row { display: flex; gap: 10px; }
.answer-row .input { width: 140px; font: 450 24px/1.2 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.answer-tools { margin-top: 4px; }
.qhint { margin-top: 4px; color: var(--muted); font-size: 16px; border-left: 2px solid var(--line); padding-left: 12px; }
.form-msg { margin-top: 10px; font-size: 15px; color: var(--brique-text); min-height: 1.4em; }
.verdict { margin-top: 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.verdict[hidden] { display: none; }
.verdict .good { font-family: var(--serif); font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.verdict .good.ok { color: var(--vert); }
.verdict .unit { font-size: 16px; }
.struck { position: relative; display: inline-flex; flex-direction: column; align-items: center; color: var(--brique-text); }
.struck .v { font-family: var(--serif); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.struck small { font-size: 13px; margin-top: 4px; }
.struck svg { position: absolute; left: -8px; right: -8px; top: 2px; width: calc(100% + 16px); height: 34px; overflow: visible; pointer-events: none; }
.struck path { fill: none; stroke: var(--brique); stroke-width: 2.4; stroke-linecap: round; }
.why { margin-top: 16px; color: var(--muted); font-size: 16px; }
.why strong { color: var(--ink); font-weight: 600; }
details.reason { margin-top: 10px; }
details.reason summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 44px; color: var(--caramel); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; font-size: 15px; -webkit-tap-highlight-color: transparent; }
details.reason summary::-webkit-details-marker { display: none; }
details.reason[open] > div { animation: rise .25s ease-out both; }
.reason div { color: var(--muted); font-size: 16px; }
.reason p + p, .reason .eq { margin-top: 10px; }
.eq { font-family: var(--serif); font-size: 21px; color: var(--ink); display: grid; gap: 6px; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .66em; line-height: 1.05; margin: 0 .12em; }
.frac span:first-child { border-bottom: 1px solid currentColor; }
.sim-row { margin-top: 22px; }
.qotd-cta { grid-area: cta; align-self: end; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 15.5px; color: var(--muted); }
.qotd-cta a { color: var(--ink); }

.chart svg { width: 100%; height: auto; overflow: visible; display: block; }
.chart .ax { font: 500 12px var(--sans); fill: var(--muted); }
.chart .target-label { font: 450 18px var(--serif); fill: var(--ink); }
.chart .you-label { font: 600 13px var(--sans); fill: var(--brique-text); }
.chart-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.chart-head b { font-weight: 600; }
.chart-read { margin-top: 10px; font-size: 15px; color: var(--muted); min-height: 1.5em; font-variant-numeric: tabular-nums; }
.chart-read b { color: var(--ink); font-weight: 600; }
.chart-box { position: relative; margin-top: 14px; }
@media (max-width: 559px) { .chart .ax { font-size: 18px; } .chart .target-label { font-size: 25px; } .chart .you-label { font-size: 18px; } }
.chart-empty { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-size: 15px; color: var(--muted); padding-inline: 12px; }
.is-hidden { opacity: 0; }
.fade { transition: opacity .3s ease-out; }

/* Fais-moi un marché */
.band { background: var(--deep); border-block: 1px solid var(--line-soft); }
.market { display: grid; gap: 36px; padding-block: clamp(64px, 9vw, 112px); }
@media (min-width: 960px) { .market { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.market .qtext { margin-top: 18px; font-family: var(--serif); font-size: 23px; line-height: 1.35; }
.market .expl { margin-top: 16px; color: var(--muted); max-width: 30em; font-size: 16px; }
.desk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-hero); padding: clamp(18px, 3vw, 30px); }
.quote { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.side { display: flex; flex-direction: column; gap: 8px; }
.side.ask { align-items: flex-end; text-align: right; }
.side .lbl { font-size: 14px; color: var(--muted); }
.price { font-family: var(--serif); font-size: clamp(44px, 6vw, 64px); line-height: 1; font-weight: 450; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; }
.bid .price { color: var(--vert); }
.steppers { display: flex; gap: 8px; }
.step {
  -webkit-appearance: none; appearance: none; width: 44px; height: 44px; border-radius: var(--r-btn);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
  font: 500 22px/1 var(--sans); display: grid; place-items: center; transition: transform .1s ease-out, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.step:active:not([disabled]) { transform: scale(.94); }
.step[disabled] { opacity: .35; cursor: default; }
@media (hover: hover) { .step:hover:not([disabled]) { border-color: var(--muted); } }
.spread { text-align: center; padding-bottom: 6px; }
.spread .lbl { font-size: 13px; color: var(--muted); display: block; }
.spread .v { font-family: var(--serif); font-size: 24px; font-variant-numeric: tabular-nums lining-nums; }
.scale { position: relative; margin-top: 34px; height: 150px; }
.scale .zone { position: absolute; bottom: 30px; top: 0; background: color-mix(in srgb, var(--vert) 10%, transparent); border-left: 1px solid color-mix(in srgb, var(--vert) 55%, transparent); border-right: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); border-radius: 4px 4px 0 0; transition: left .35s var(--ease), width .35s var(--ease); }
.scale .axis { position: absolute; left: 0; right: 0; bottom: 30px; height: 1px; background: var(--muted); }
.scale .tick { position: absolute; bottom: 0; transform: translateX(-50%); font: 500 13px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 8px; }
.scale .tick::before { content: ""; position: absolute; left: 50%; top: -1px; width: 1px; height: 6px; background: var(--muted); }
.dot { position: absolute; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ink); transition: transform .6s var(--ease), opacity .25s ease; }
.dot.out { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.dot.fall { transform: translateY(-140px); opacity: 0; }
.mean { position: absolute; top: -6px; bottom: 30px; width: 0; border-left: 1.5px dashed var(--ink); opacity: 0; transition: opacity .4s ease; }
.mean.show { opacity: 1; }
.mean .tag { position: absolute; top: -22px; white-space: nowrap; font: 500 13px/1 var(--sans); transform: translateX(-50%); }
.mid { position: absolute; bottom: 25px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--brique); opacity: 0; transition: opacity .4s ease, left .35s var(--ease); }
.mid.show { opacity: 1; }
.legend { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.legend span[class^="lg-"] { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 10px; }
.legend span[class^="lg-"]:first-child { margin-left: 0; }
.legend .lg-zone { width: 14px; border-radius: 2px; background: color-mix(in srgb, var(--vert) 22%, transparent); border: 1px solid color-mix(in srgb, var(--vert) 60%, transparent); }
.legend .lg-mid { background: var(--brique); }
.legend .lg-in { background: var(--ink); }
.legend .lg-out { box-shadow: inset 0 0 0 1.5px var(--muted); }
.desk-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-top: 22px; }
.tally-mm { font-size: 16px; min-height: 1.6em; }
.tally-mm .num { font-size: 22px; }
.tally-mm .roll { color: var(--muted); margin-left: 10px; font-size: 15px; }
.mm-verdict { margin-top: 18px; font-size: 16px; min-height: 1.6em; color: var(--muted); }
.mm-verdict strong { color: var(--ink); font-weight: 600; }

/* La séance */
.seance { padding-block: var(--sec); display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .seance { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } }
.phone { width: min(300px, 78vw); margin-inline: auto; border-radius: 46px; padding: 10px; background: var(--phone-frame); box-shadow: 0 0 0 1px var(--line), var(--phone-shadow); }
.phone img { border-radius: 37px; width: 100%; height: auto; }
.phone-cap { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (min-width: 960px) { .seance figure { order: -1; } }
.steps { margin-top: 34px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 8px 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--muted); font-variant-numeric: lining-nums; }
.steps h3 { font: 600 17px/1.3 var(--sans); }
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.steps .rec { color: var(--brique); }

/* Catégories */
.cats { padding-block: 0 var(--sec); }
.fam { margin-top: 56px; }
.fam-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fam-head h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.fam-head p { color: var(--muted); font-size: 16px; }
.row { display: grid; gap: 10px 32px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 860px) { .row { grid-template-columns: 200px minmax(0, 1fr) 200px; align-items: start; } }
.row .cat b { font-weight: 600; font-size: 15px; display: block; }
.row .cat span { color: var(--muted); font-size: 14px; }
.row .cat-q { font-family: var(--serif); font-size: 22px; line-height: 1.35; text-wrap: pretty; }
.row .big { font-family: var(--serif); font-size: clamp(36px, 4vw, 48px); line-height: 1.05; font-variant-numeric: lining-nums; letter-spacing: -0.01em; }
.row.drill { background: var(--quad); border-radius: var(--r-card); padding-inline: 16px; margin-top: 12px; border: 1px solid var(--line-soft); }
details.answer summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px;
  color: var(--caramel); font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; -webkit-tap-highlight-color: transparent;
}
details.answer summary::-webkit-details-marker { display: none; }
details.answer[open] summary { text-decoration-thickness: 2px; }
details.answer p { font-size: 15.5px; color: var(--muted); }
details.answer p strong { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); margin-right: 4px; }
details.answer[open] p { animation: rise .25s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Pour qui */
.who-sec { padding-block: clamp(64px, 9vw, 112px); }
.aud-grid { margin-top: 44px; display: grid; gap: 56px; }
@media (min-width: 960px) { .aud-grid { grid-template-columns: 1fr 1fr; gap: 0; } .aud + .aud { border-left: 1px solid var(--line); padding-left: 56px; } .aud:first-child { padding-right: 56px; } }
.aud h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; }
.aud > p { margin-top: 12px; color: var(--muted); }
.mini { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; }
.mini-head b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.mini-head span { font-size: 14px; color: var(--muted); }
.iv-list { margin-top: 10px; }
.iv-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.iv-list .d { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-cuir { background: var(--chip-cuir); }
.heat { margin-top: 14px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--heat0); }
.heat i.today { box-shadow: inset 0 0 0 1.5px var(--brique); }
.streak { margin-top: 16px; display: flex; gap: 36px; }
.streak b { font-family: var(--serif); font-weight: 450; font-size: 28px; line-height: 1; display: block; font-variant-numeric: lining-nums; }
.streak span { font-size: 13px; color: var(--muted); }
.lines { margin-top: 22px; }
.lines li { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15.5px; color: var(--muted); }
.lines li:first-child { border-top: 0; }

/* FAQ */
.faq-sec { padding-block: 0 var(--sec); display: grid; gap: 28px; }
@media (min-width: 960px) { .faq-sec { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }
.faq-sec .lede a { color: var(--ink); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; min-height: 44px; font: 600 17px/1.35 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 40em; }
.faq details[open] > div { animation: rise .25s ease-out both; }
.faq details > div p + p { margin-top: 8px; }
.faq details a { color: var(--ink); }

/* Pied de page */
.foot { border-top: 1px solid var(--line-soft); padding-top: 40px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 22px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } }
.foot img { width: 96px; height: auto; }
.foot p { color: var(--muted); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { font-size: 15px; text-underline-offset: 3px; text-decoration-color: var(--line); display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .odo .strip, .op, .dot, .scale .zone, .mid, .mean, .fade, .btn, .faq summary::after { transition: none; }
  .op .a .caret { animation: none; }
  .tally span.new, details.answer[open] p, details.reason[open] > div, .faq details[open] > div { animation: none; }
}
/* ===== DEBUT COMPOSANT WORDMARK (CSS) ===== */
/* Couleurs : l'encre suit `color`, le point suit --nk-wm-dot. */
.nk-wm { display: block; width: 100%; height: auto; overflow: visible; color: inherit; }
.nk-wm-ink { fill: currentColor; }
.nk-wm-dot { fill: var(--wm-dot); }

/* ===== FIN COMPOSANT WORDMARK (CSS) ===== */
.hero-wm { display: block; width: clamp(150px, 16vw, 210px); margin-bottom: clamp(22px, 3vw, 34px); color: var(--ink); }
#wordmark:empty { display: none; }

/* ===== Version 3 ===== */
/* En-tête collant (Olmind : ancres + bouton d'action) */
.top { position: sticky; top: 0; z-index: 20; padding-block: 0; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.stuck { border-bottom-color: var(--line-soft); }
.top-in { min-height: 68px; gap: 24px; }
.top-wm { display: block; flex: none; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .2s ease-out, transform .2s ease-out; }
.top-wm.on { opacity: 1; transform: none; pointer-events: auto; }
.top-wm img { height: 26px; width: auto; }
.top nav ul { gap: 24px; }
@media (max-width: 899px) { .top nav { display: none; } .top-in { justify-content: space-between; } }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 12px 28px; font-size: 17px; }
#wordmark { display: none; }

/* Badge App Store officiel : non modifié, marge libre ≥ 1/4 de la hauteur (12 px pour 48 px) */
.store-badge { display: inline-block; padding: 12px; margin: -12px; border-radius: 12px; line-height: 0; -webkit-tap-highlight-color: transparent; transition: transform .1s ease-out; }
.store-badge:active { transform: scale(.97); }
.store-badge img { height: 48px; width: auto; }
.hero-cta { gap: 14px 28px; }

/* Le produit en grand */

.show-head { text-align: center; }
.show-head .h2 { max-width: 18em; margin-inline: auto; }
.show-head .lede { margin-inline: auto; }
.show-stage { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 40px; align-items: center; }
.show-phone { order: -1; }
.phone-lg { width: min(340px, 80vw); }
@media (min-width: 960px) {
  .show-stage { grid-template-columns: minmax(0, 500px) 360px; gap: 96px; justify-content: center; }
  .show-phone { order: 0; }
  .phone-lg { width: 360px; }
}
.steps-side { margin-top: 0; }

/* Pourquoi Numki : tableau comparatif */
.why-sec { padding-block: var(--sec); }
.cmp-wrap { margin-top: 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-hero); background: var(--surface); }
.cmp-wrap:focus-visible { outline-offset: 4px; }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { padding: 18px 16px; text-align: center; vertical-align: middle; border-top: 1px solid var(--line-soft); }
.cmp thead th, .cmp thead td { border-top: 0; padding-top: 22px; padding-bottom: 16px; vertical-align: bottom; }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink); width: 30%; padding-left: 22px; line-height: 1.35; }
.cmp-name { display: block; font: 450 22px/1.1 var(--serif); color: var(--ink); }
.cmp thead small { display: block; margin-top: 4px; font: 400 13px/1.3 var(--sans); color: var(--muted); }
.cmp td small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.cmp-txt { color: var(--muted); font-size: 14.5px; }
.cmp .is-numki { background: var(--raised); }
.cmp thead .is-numki { border-radius: 10px 10px 0 0; }
.ic { width: 22px; height: 22px; display: block; margin-inline: auto; }
.ic-yes { color: var(--vert); }
.is-numki .ic-yes { color: var(--ink); }
.ic-no { display: block; width: 14px; height: 1.5px; margin: 10px auto; background: var(--muted-2); }
@media (max-width: 699px) {
  .cmp-wrap { overflow: visible; }
  .cmp { min-width: 0; }
  .cmp, .cmp thead, .cmp tbody { display: block; }
  .cmp tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cmp thead td { display: none; }
  .cmp thead th { padding: 18px 4px 12px; }
  .cmp-name { font-size: 17px; }
  .cmp thead small, .cmp td small { font-size: 11.5px; }
  .cmp tbody th { grid-column: 1 / -1; width: auto; padding: 16px 16px 4px; font-size: 15px; }
  .cmp tbody td { border-top: 0; padding: 8px 4px 16px; }
  .cmp-txt { font-size: 12.5px; line-height: 1.3; display: block; }
  .cmp thead .is-numki { border-radius: 0; }
  .cmp tbody tr:last-child td.is-numki { border-radius: 0 0 0 var(--r-hero); }
}
.cmp-note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 46em; }

/* FAQ : tout en bas, avant le dernier appel */
.faq-sec { padding-block: var(--sec); }

/* Dernier appel, entre deux colonnes de vraies questions du pack */
.final { border-top: 1px solid var(--line-soft); background: var(--deep); overflow: hidden; }
.final-grid { display: grid; gap: 40px; padding-block: clamp(72px, 11vw, 150px); align-items: center; }
.final-center { text-align: center; }
.final-side { display: grid; gap: 22px; align-content: center; }
.final-side .fq:nth-child(n+3) { display: none; }
@media (min-width: 1000px) {
  .final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px) minmax(0, 1fr); gap: 56px; }
  .final-side .fq:nth-child(n+3) { display: block; }
  .final-side-r { text-align: right; }
}
.fq { margin: 0; font: 400 17px/1.4 var(--serif); color: var(--ink); opacity: .16; transition: opacity 1.2s ease; text-wrap: pretty; }
.fq.lit { opacity: .48; }
.final-title { font: 450 clamp(36px, 4.6vw, 58px)/1.05 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.final-sub { margin-top: 14px; color: var(--muted); font-size: 18px; }
.final .btn { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .fq { transition: none; } .top-wm, .top { transition: none; } }

/* ===== Version 4 ===== */
/* Images propres à un thème */
:root[data-theme="light"] .only-dark, :root[data-theme="dark"] .only-light { display: none !important; }
:root:not([data-theme]) .only-light { display: none !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .only-light { display: block !important; }
  :root:not([data-theme]) .only-dark { display: none !important; }
}
.top-wm img, .foot img { display: block; }

/* En-tête : bouton de thème */
.top-in { gap: 18px; }
.top nav { flex: 1; }
@media (max-width: 1099px) { .top nav { display: none; } .top-in { justify-content: flex-start; } .top-in .btn-sm { margin-left: 0; } .theme-btn { margin-left: auto; } }
.theme-btn {
  -webkit-appearance: none; appearance: none; flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-btn); background: transparent; color: var(--muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: color .15s ease, transform .1s ease-out;
}
.theme-btn svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
:root[data-theme="light"] .theme-btn svg { transform: rotate(180deg); }
.theme-btn:active { transform: scale(.94); }
@media (hover: hover) { .theme-btn:hover { color: var(--ink); } }

/* Petits textes */
.kicker { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.lede.small { font-size: 15.5px; margin-top: 12px; }

/* ---------- Téléphones aux vraies proportions (iPhone 17 Pro, 1206 × 2622) ---------- */
.dev { --w: 300px; margin: 0; }
.dev-frame {
  width: var(--w); padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .17);
  background: var(--phone-frame); box-shadow: 0 0 0 1px var(--line), var(--phone-shadow);
}
.dev-screen {
  position: relative; aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * .14); overflow: hidden;
  background: var(--quad), var(--screen-ph);
}
.dev-screen[data-ph]::before, .slide[data-ph]::before {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
  font: 450 19px/1.3 var(--serif); color: var(--muted);
}
.dev-screen .cap, .slide .cap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dev-cap { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.dev-hero { --w: clamp(250px, 24vw, 320px); }
.dev-md { --w: clamp(230px, 22vw, 290px); }

/* ---------- Premier écran ---------- */
.hero4 { background: var(--quad-faint), transparent; border-bottom: 1px solid var(--line-soft); }
.hero4-in { display: grid; gap: 48px; padding-block: 28px 72px; align-items: center; }
@media (min-width: 960px) { .hero4-in { grid-template-columns: minmax(0, 1fr) auto; gap: 72px; padding-block: 40px 96px; } }
.hero4 h1 {
  font-family: var(--serif); font-weight: 450; font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.024em;
  max-width: 9.5em; text-wrap: balance;
}
.hero4 .lede { margin-top: 22px; font-size: 18.5px; max-width: 29em; color: var(--muted); }
.hero4 .hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero4 .hero-cta .note { font-size: 14px; color: var(--muted); line-height: 1.45; }
.proof { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 18px 40px; }
.proof li { display: flex; align-items: baseline; gap: 12px; max-width: 17em; }
.proof b { font-weight: 450; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.proof span { font-size: 14.5px; color: var(--muted); line-height: 1.35; }
.hero4-dev { display: flex; flex-direction: column; align-items: center; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateX(6%); transition: opacity .45s ease, transform .55s var(--ease); }
.slide.is-on { opacity: 1; transform: none; }
.slide.was { transform: translateX(-6%); }
.dots { display: flex; gap: 4px; margin-top: 18px; }
.dots button {
  -webkit-appearance: none; appearance: none; border: 0; background: none; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); transition: background-color .2s ease, transform .2s ease; }
.dots button[aria-pressed="true"]::before { background: var(--ink); transform: scale(1.15); }
.hero4 .dev-cap { margin-top: 4px; }

/* ---------- Question du jour ---------- */
.q4 { border-top: 0; }
.q4 .qotd-head .lvl + .lvl { margin-left: -2px; }
.q4-grid { margin-top: 44px; display: grid; gap: 40px; }
@media (min-width: 1000px) { .q4-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; } }
.q4-check { display: grid; gap: 18px; }
.check-title { font-size: 15.5px; color: var(--muted); max-width: 34em; }
.check-title b { color: var(--ink); font-weight: 600; }
.chart-head { align-items: center; }
.chart .c-axis { stroke: color-mix(in srgb, var(--ink) 28%, transparent); stroke-width: 1; }
.chart .c-tick { stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1; }
.chart .c-target { stroke: color-mix(in srgb, var(--ink) 60%, transparent); stroke-width: 1.25; stroke-dasharray: 3 5; }
.chart .c-curve { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.chart .c-you { stroke: color-mix(in srgb, var(--brique) 45%, transparent); stroke-width: 1; }
.chart .c-you-dot { fill: var(--brique); stroke: var(--surface); stroke-width: 2; }
.see-dem { margin-top: 6px; }
.see-dem[hidden] { display: none; }

/* ---------- Le brouillon : une démarche qui s'écrit ---------- */
.brouillon {
  position: relative; margin-top: 22px; padding: 18px 20px 22px;
  background: var(--quad), var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
}
@media (min-width: 720px) { .brouillon { padding: 22px 28px 26px; } }
.brouillon[hidden] { display: none; }
.br-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; font-size: 14px; }
.br-head b { font-weight: 600; }
.br-head span { color: var(--muted); }
.dem-rows { font-family: var(--serif); font-size: 19px; font-variant-numeric: lining-nums; color: var(--ink); --lh: 46px; }
@media (min-width: 720px) { .dem-rows { font-size: 21px; } }
.js .brouillon:not(.shown) .dem-rows { visibility: hidden; }
.dr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; min-height: var(--lh); padding-block: 4px; }
.dr.br1, .dr.br2 { padding-left: 26px; }
.dr.prose { display: block; font-size: .86em; line-height: 1.45; padding-block: 8px 6px; min-height: 0; }
.dr .note { font-style: italic; font-size: .78em; color: var(--muted); line-height: 1.3; }
.dem-rows sub, .dem-rows sup { font-size: .62em; line-height: 0; }
.dem-rows sub { vertical-align: -0.28em; }
.dem-rows sup { vertical-align: .55em; }
.dem-rows .frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .68em; line-height: 1.12; margin: 0 .16em; position: relative; top: -.06em; }
.dem-rows .frac > span + span { border-top: 1px solid currentColor; padding-top: 1px; }
.dem-rows .res { font-weight: 600; display: inline-block; padding: 0 .12em; }
.dem-rows .w { white-space: nowrap; }
.dem-rows .g { display: inline-block; }
.dem-ov { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.dem-ov path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pen-ink { stroke: var(--ink); }
.pen-brique { stroke: var(--brique); }
.pen-vert { stroke: var(--vert); }

/* ---------- Révision ---------- */
.rev { padding-block: var(--sec); border-top: 1px solid var(--line-soft); background: var(--deep); }
.rev-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .rev-in { grid-template-columns: minmax(0, 1fr) auto; gap: 88px; } }
.rev-text .h2 { max-width: 14em; }
.rev-dev { justify-self: center; }
.rev-log { margin-top: 32px; background: var(--quad), var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 20px 8px; max-width: 560px; }
.rl-q { font: 450 18px/1.35 var(--serif); padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.rl { display: grid; grid-template-columns: 74px 64px 1fr; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--line-soft); }
.rl:last-child { border-bottom: 0; }
.rl .day { font-size: 14px; color: var(--muted); }
.rl .ans { position: relative; display: inline-flex; justify-content: center; }
.rl .v { font-size: 24px; line-height: 1; }
.rl svg { position: absolute; overflow: visible; pointer-events: none; }
.rl-miss .v { color: var(--brique-text); }
.rl-miss svg { left: -6px; right: -6px; top: 0; width: calc(100% + 12px); height: 26px; }
.rl-ok .v { color: var(--vert); }
.rl-ok svg { right: -24px; top: -4px; width: 22px; height: 22px; }
.rl path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.rl-miss path { stroke: var(--brique); }
.rl-ok path { stroke: var(--vert); stroke-width: 2.6; }
.rl .what { font-size: 15px; }
.rl-ok .what { color: var(--vert); font-weight: 600; }
.js .rev-log .rl { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s var(--ease); }
.js .rev-log .rl path { stroke-dashoffset: 1; transition: stroke-dashoffset .32s cubic-bezier(.35, .1, .3, 1); }
.js .rev-log.is-played .rl { opacity: 1; transform: none; }
.js .rev-log.is-played .rl path { stroke-dashoffset: 0; }
.rev-log.is-played .rl:nth-child(2) { transition-delay: .1s; }
.rev-log.is-played .rl:nth-child(2) path { transition-delay: .55s; }
.rev-log.is-played .rl:nth-child(3) { transition-delay: 1.15s; }
.rev-log.is-played .rl:nth-child(3) path { transition-delay: 1.6s; }
.rev-log.is-played .rl:nth-child(4) { transition-delay: 2.2s; }
.rev-log.is-played .rl:nth-child(4) path { transition-delay: 2.65s; }
.warm { margin-top: 26px; font-size: 15.5px; color: var(--muted); max-width: 34em; }
.warm b { color: var(--ink); font-weight: 600; }

/* ---------- Les démarches ---------- */
.maths { padding-block: var(--sec); border-top: 1px solid var(--line-soft); }
.maths-head .h2 { max-width: 14em; }
.tabs { margin-top: 36px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  -webkit-appearance: none; appearance: none; flex: none; min-height: 44px; padding: 8px 16px; border-radius: var(--r-btn);
  border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 15px/1.2 var(--sans); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease-out;
}
.tabs button:active { transform: scale(.97); }
.tabs button[aria-selected="true"] { background: var(--btn-ink); border-color: var(--btn-ink); color: var(--on-btn-ink); }
@media (hover: hover) { .tabs button:not([aria-selected="true"]):hover { color: var(--ink); border-color: var(--muted-2); } }
.mpanel { margin-top: 24px; display: grid; gap: 8px; }
.mpanel[hidden] { display: none; }
@media (min-width: 1000px) { .mpanel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; } .mpanel .brouillon { margin-top: 0; } }
.mq { padding-top: 8px; }
.mq-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14.5px; color: var(--muted); }
.mq-q { margin-top: 14px; font: 450 clamp(22px, 2.2vw, 27px)/1.3 var(--serif); letter-spacing: -0.006em; text-wrap: pretty; }
.mq-hint { margin-top: 18px; font-size: 15.5px; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--line); }
.mq-hint b { color: var(--ink); font-weight: 600; }

/* ---------- L'app en vrai ---------- */
.app4 { padding-block: var(--sec); border-top: 1px solid var(--line-soft); background: var(--deep); overflow: hidden; }
.app4-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.app4-head .h2 { max-width: 13em; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  -webkit-appearance: none; appearance: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .1s ease-out, opacity .2s ease;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:active { transform: scale(.94); }
.rail-btn[disabled] { opacity: .35; cursor: default; }
.rail {
  --pad: max(var(--gutter), calc((100% - 1180px) / 2));
  margin-top: 44px; display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 8px var(--pad) 40px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }
.dev-rail { --w: clamp(220px, 62vw, 256px); flex: none; scroll-snap-align: start; }
.rail-cap { width: var(--w); margin-top: 22px; }
.rail-cap h3 { font: 600 17px/1.3 var(--sans); }
.rail-cap p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Catégories ---------- */
.cat-counts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; padding-bottom: 8px; }
@media (min-width: 900px) { .cat-counts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat-counts li { border-top: 1px solid var(--line); padding-top: 14px; }
.cat-counts b { display: block; font-weight: 450; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.cat-counts span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------- Drill et cotation, en encre ---------- */
.drill4 { border-top: 1px solid var(--line-soft); }
.drill4-in { display: grid; gap: 40px; padding-block: clamp(72px, 10vw, 120px); align-items: center; }
@media (min-width: 960px) { .drill4-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }
.drill4-text .h2 { max-width: 11em; }
.market-sec { border-top: 1px solid var(--line-soft); }
.market-sec .steppers { display: none; }
.market-sec .expl.small { font-size: 14.5px; margin-top: 12px; }

/* ---------- Objectif ---------- */
.who4 { background: var(--deep); border-top: 1px solid var(--line-soft); }

/* Mouvement réduit : tout est dans son état final */
@media (prefers-reduced-motion: reduce) {
  .slide, .js .rev-log .rl, .js .rev-log .rl path, .theme-btn svg { transition: none !important; }
}

/* Les zones nommées de la v3 ne servent plus ici */
.q4 .answer-col, .q4 .dice-panel, .q4 .chart-panel { grid-area: auto; }
.dem-rows .eq { display: inline; font-size: inherit; gap: 0; color: inherit; }
.cats { padding-top: var(--sec); }
#faq { padding-top: clamp(24px, 4vw, 48px); }
.dem-rows .eq .res { margin-left: .35em; }
@media (prefers-reduced-motion: reduce) { .tabs button { transition: none; } }

/* ---------- Mode entretien : les types cochés et leur effet ---------- */
.goal .mini-head span { font-variant-numeric: tabular-nums; }
.goal-list { margin-top: 6px; }
.goal-list li + li { border-top: 1px solid var(--line-soft); }
.goal-list label { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 11px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.goal-list input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; top: 11px; left: 0; }
.goal-list .box { width: 22px; height: 22px; margin-top: 1px; border-radius: var(--r-chip); border: 1.5px solid var(--muted); position: relative; transition: background-color .15s ease, border-color .15s ease, transform .1s ease-out; }
.goal-list .box::after { content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .15s var(--ease); }
.goal-list input:checked + .box { background: var(--ink); border-color: var(--ink); }
.goal-list input:checked + .box::after { transform: rotate(45deg) scale(1); }
.goal-list label:active .box { transform: scale(.92); }
.goal-list input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 3px; }
.gl-t b { display: block; font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.gl-t small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.goal-struct { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.goal-struct p { font-size: 13.5px; color: var(--muted); }
.goal-chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.goal-chips button {
  -webkit-appearance: none; appearance: none; min-height: 36px; padding: 6px 12px; border-radius: var(--r-btn); cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 14px/1.2 var(--sans);
  -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, color .15s ease, transform .1s ease-out;
}
.goal-chips button::before { content: "+ "; color: var(--muted); }
.goal-chips button[aria-pressed="true"] { background: var(--btn-ink); color: var(--on-btn-ink); border-color: var(--btn-ink); }
.goal-chips button[aria-pressed="true"]::before { content: ""; }
.goal-chips button:active { transform: scale(.96); }
.goal-effect { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ge-title { font-size: 13.5px; color: var(--muted); }
.ge-bars { margin-top: 10px; display: grid; gap: 8px; }
.ge-bars li { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 12px; font-size: 14px; }
.ge-bars li span { color: var(--muted); transition: color .2s ease; }
.ge-bars li.on span { color: var(--ink); font-weight: 600; }
.ge-bars i { display: block; height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.ge-bars b { display: block; height: 100%; width: 12%; border-radius: 4px; background: var(--muted-2); transition: width .45s var(--ease), background-color .2s ease; }
.ge-bars li.on b { background: var(--vert); }
@media (prefers-reduced-motion: reduce) { .goal-list .box, .goal-list .box::after, .goal-chips button, .ge-bars b, .ge-bars li span { transition: none; } }

/* ===== Version 4.1 : question du jour compacte, repères de lecture ===== */
main section[id] { scroll-margin-top: 72px; }
@media (min-width: 1000px) {
  .q4 { padding-block: 56px 64px; }
  .q4 .kicker { margin-bottom: 8px; font-size: 14.5px; }
  .q4 .qotd-q { margin-top: 10px; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.22; max-width: 34em; }
  .q4-grid { margin-top: 28px; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 44px; }
  .q4-check { gap: 10px; }
  .check-title { font-size: 14.5px; }
  .q4-lab { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px; align-items: stretch; }
  .q4 .dice-panel, .q4 .chart-panel { padding: 16px 18px; }
  .q4 .play { grid-template-columns: 1fr; gap: 12px; }
  .q4 .dice { padding-top: 14px; gap: 14px; }
  .q4 .count { font-size: 34px; }
  .q4 .tally { margin-top: 8px; }
  .q4 .play-actions { margin-top: 12px; gap: 8px 12px; }
  .q4 .play-actions .btn { min-height: 44px; padding: 8px 16px; font-size: 15px; }
  .q4 .result { font-size: 14px; }
  .q4 .chart-head b { font-size: 14px; }
  .q4 .chart-box { margin-top: 6px; }
  .q4 .chart-read { font-size: 13.5px; margin-top: 4px; }
  .q4 .answer-col label { font-size: 14px; }
  .q4 .answer-row .input { width: 120px; min-height: 48px; }
  .q4 .verdict { margin-top: 12px; }
  .q4 .verdict .good { font-size: 38px; }
  .q4 .brouillon { margin-top: 14px; padding: 14px 18px 16px; }
  .q4 .dem-rows { font-size: 18px; --lh: 36px; }
}
@media (min-width: 1000px) and (max-width: 1199px) { .q4-lab { grid-template-columns: 1fr; } }

/* Repères de lecture : un trait par section, la section où tu es en brique */
.srail { display: none; }
@media (min-width: 1200px) {
  .srail { display: block; position: fixed; left: 20px; top: 50%; transform: translateY(-50%); z-index: 15; }
}
.srail ol { display: flex; flex-direction: column; gap: 0; }
.srail a { position: relative; display: flex; align-items: center; width: 34px; height: 22px; padding-left: 6px; text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.srail-tick { display: block; width: 10px; height: 1.5px; border-radius: 1px; background: var(--muted-2); transition: width .2s var(--ease), background-color .2s ease, height .2s ease; }
.srail a[aria-current] .srail-tick { width: 20px; height: 2px; background: var(--brique); }
.srail-label {
  position: absolute; left: 38px; top: 50%; transform: translate(-4px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  font: 500 13px/1 var(--sans); color: var(--ink); background: var(--surface); padding: 6px 9px; border-radius: var(--r-chip);
  box-shadow: 0 0 0 1px var(--line); transition: opacity .15s ease, transform .15s ease;
}
.srail a:hover .srail-label, .srail a:focus-visible .srail-label { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) { .srail a:hover .srail-tick { background: var(--ink); width: 16px; } .srail a[aria-current]:hover .srail-tick { background: var(--brique); width: 20px; } }
.srail a:focus-visible { outline: none; }
.srail a:focus-visible .srail-tick { outline: 2px solid var(--ink); outline-offset: 4px; }
/* Le lien de la section courante, dans la barre du haut */
.top nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brique); text-decoration-thickness: 2px; text-underline-offset: 8px; }
@media (prefers-reduced-motion: reduce) { .srail-tick, .srail-label { transition: none; } }
.q4-lab { display: grid; gap: 12px; }
.proof li { max-width: 19em; }

/* Heure de la barre d'état : l'heure réelle du visiteur, posée à la place du « 9:41 » effacé des captures.
   Position et taille relevées sur les captures 1206 × 2622 (texte de x 170 à 265, y 79 à 116). */
.dev-screen { container-type: inline-size; }
.sb-time {
  position: absolute; z-index: 2; left: 18.04cqw; top: 8.08cqw; transform: translate(-50%, -50%);
  font: 600 4.35cqw/1 -apple-system, "SF Pro Text", "SF Pro", system-ui, "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
  color: #fff;
}
:root[data-theme="light"] .sb-time { color: #000; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .sb-time { color: #000; } }
