/* Numki — site vitrine. Palette « Tapis », Newsreader + Hanken Grotesk. */

@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;
}

:root {
  color-scheme: light dark;
  --bg: #EFE8DC;          /* ivoire */
  --surface: #F8F3EA;     /* papier */
  --calm: #E4DCCF;        /* lin */
  --ink: #1D1A17;         /* encre */
  --muted: #6B6259;       /* gris chaud, 4.9:1 sur ivoire */
  --muted-strong: #574F47;/* secondaire sur lin / cuir */
  --line: #DCD3C5;        /* filet */
  --caramel: #9A5A2C;     /* boutons */
  --caramel-hover: #874D24;
  --caramel-text: #8A5228;
  --on-caramel: #FAF6EF;
  --vert: #35553F;        /* progression, juste */
  --brique: #A8442F;      /* toi, record, à revoir */
  --brique-text: #8F3725; /* brique sur rosé */
  --cuir: #E7D4BA;
  --sauge: #D6DCCB;
  --rose: #F0D6CA;
  --btn-ink: #1D1A17;
  --btn-ink-hover: #36302A;
  --on-btn-ink: #EFE8DC;
  --heat0: #E2D9CB; --heat1: #C7CDB4; --heat2: #8FA584; --heat3: #567760; --heat4: #2F4F3B;
  --phone-bezel: #1D1A17;

  --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='.32'/%3E%3C/svg%3E");
  --quad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M13.5 0V14M0 13.5H14' fill='none' stroke='%23DCD3C5' stroke-width='1'/%3E%3C/svg%3E");

  --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;
  --wrap: 1160px;
  --gutter: 22px;
  --sec-pad: clamp(72px, 10vw, 128px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #221E1B;
    --calm: #1E1A17;
    --ink: #EFE7DA;
    --muted: #B3A898;
    --muted-strong: #C2B8A9;
    --line: #3A332D;
    --caramel: #D49A63;
    --caramel-hover: #E0AA76;
    --caramel-text: #D49A63;
    --on-caramel: #171412;
    --vert: #7FA88A;
    --brique: #E07A5F;
    --brique-text: #F09A82;
    --cuir: #3A2E24;
    --sauge: #2C3A30;
    --rose: #4A2A22;
    --btn-ink: #3A332D;
    --btn-ink-hover: #4A423A;
    --on-btn-ink: #EFE7DA;
    --heat0: #2B2622; --heat1: #33473A; --heat2: #4C6E57; --heat3: #6E9A7B; --heat4: #9CC3A5;
    --phone-bezel: #3A332D;
    --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='14' height='14'%3E%3Cpath d='M13.5 0V14M0 13.5H14' fill='none' stroke='%233A332D' stroke-width='1'/%3E%3C/svg%3E");
  }
}

@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::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-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 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));
}

.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.brique { color: var(--brique); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
input:focus-visible { outline-offset: 1px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-btn);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Titles ---------- */
.h-section {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.sec-lede { color: var(--muted); max-width: 34em; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 10px 22px; text-align: center;
  border: 0; border-radius: var(--r-btn);
  font: 600 16px/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not([disabled]) { transform: scale(.97); }
.btn-primary { background: var(--caramel); color: var(--on-caramel); }
@media (hover: hover) { .btn-primary:hover { background: var(--caramel-hover); } }
.btn-ink { background: var(--btn-ink); color: var(--on-btn-ink); }
@media (hover: hover) { .btn-ink:hover { background: var(--btn-ink-hover); } }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }

.link-btn {
  -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 10px 0; min-height: 44px;
  font: 500 15px/1.3 var(--sans); color: var(--caramel-text); cursor: pointer;
  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 { text-decoration-thickness: 2px; } }

.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); white-space: nowrap;
}
.chip-sauge { background: var(--sauge); color: var(--vert); }
.chip-rose { background: var(--rose); color: var(--brique-text); }
.chip-cuir { background: var(--cuir); color: var(--ink); }

/* ---------- Inputs ---------- */
.field-label { display: block; font: 500 14px/1.3 var(--sans); color: var(--muted); margin-bottom: 8px; }
.input {
  -webkit-appearance: none; appearance: none;
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--surface); color: var(--ink);
  font: 400 17px/1.3 var(--sans);
}
.input::placeholder { color: var(--muted); opacity: 1; }
@media (hover: hover) { .input:hover { border-color: var(--muted); } }
.input:focus-visible { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 0; }

/* ---------- Header ---------- */
.top { padding-block: 18px; }
.top-in { display: flex; align-items: center; gap: 28px; }
.home { display: block; border-radius: 8px; flex: none; }
.home img { width: 34px; height: 34px; }
.top nav { flex: 1; }
.top nav ul { list-style: none; display: flex; gap: 26px; }
.top nav a, .lang {
  font: 500 15px/1 var(--sans); text-decoration: none; color: var(--muted);
  display: inline-flex; align-items: center; min-height: 44px;
}
@media (hover: hover) { .top nav a:hover, .lang:hover { color: var(--ink); } }
.lang { margin-left: auto; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
@media (max-width: 899px) { .top nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "brand" "q" "form";
  gap: 36px;
  padding-top: 18px;
  padding-bottom: var(--sec-pad);
}
.hero-brand { grid-area: brand; }
.qotd { grid-area: q; }
.hero-form { grid-area: form; }

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "q brand" "q form";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 88px);
    row-gap: 34px;
    padding-top: 40px;
  }
}

.wordmark { display: block; }
.wordmark img { height: auto; width: clamp(150px, 40vw, 230px); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.014em;
  margin-top: 26px;
  max-width: 15em;
}
.lede { margin-top: 16px; color: var(--muted); max-width: 30em; }

/* Question of the day card */
.qotd {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-hero);
  padding: clamp(22px, 4vw, 44px);
  align-self: start;
  display: flex; flex-direction: column;
}
.qotd-foot { margin-top: 8px; padding-top: 22px; font-size: 14px; color: var(--muted); }
.qotd-foot span { display: block; border-top: 1px solid var(--line); padding-top: 16px; }
.qotd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.qotd-kicker { font: 600 15px/1.3 var(--sans); }
.qotd-sub { font: 400 14px/1.4 var(--sans); color: var(--muted); margin-top: 2px; }
.qotd-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 2.9vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-top: clamp(20px, 3vw, 30px);
  max-width: 21em;
  text-wrap: pretty;
}
.qotd-form { margin-top: clamp(24px, 3.4vw, 36px); }
.qotd-row { display: flex; gap: 10px; }
.qotd-row .input { max-width: 200px; font-size: 20px; font-variant-numeric: tabular-nums; }
.qotd-tools { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.hint { margin-top: 6px; color: var(--muted); font-size: 16px; border-left: 2px solid var(--cuir); padding-left: 12px; }
.qotd-result { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.qotd-result:focus { outline: none; }
.verdict { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 500; }
.solution { margin-top: 18px; }
.solution p { color: var(--ink); }
.solution p + p { margin-top: 10px; }
.eq {
  font-family: var(--serif); font-size: 21px; line-height: 1.5;
  margin: 12px 0; padding: 12px 16px; background: var(--bg); border-radius: var(--r-card);
  font-variant-numeric: lining-nums;
}
.eq span.row { display: block; }
.eq i { font-style: italic; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .72em; line-height: 1.05; margin: 0 .12em; }
.frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 .15em; }
.qotd-cta { margin-top: 18px; padding: 16px 18px; background: var(--cuir); border-radius: var(--r-card); color: var(--ink); }
.qotd-cta a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

.reveal-anim .verdict, .reveal-anim .solution > *, .reveal-anim .qotd-cta {
  animation: rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.reveal-anim .solution > *:nth-child(1) { animation-delay: .08s; }
.reveal-anim .solution > *:nth-child(2) { animation-delay: .16s; }
.reveal-anim .solution > *:nth-child(3) { animation-delay: .24s; }
.reveal-anim .solution > *:nth-child(4) { animation-delay: .32s; }
.reveal-anim .qotd-cta { animation-delay: .44s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal-anim .verdict, .reveal-anim .solution > *, .reveal-anim .qotd-cta { animation: none; }
}

/* Waitlist */
.waitlist { max-width: 460px; }
.h-form { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.form-sub { color: var(--muted); margin-top: 6px; margin-bottom: 18px; font-size: 16px; }
.seg { border: 0; padding: 0; margin: 16px 0 18px; min-width: 0; }
.seg legend { padding: 0; font: 500 14px/1.3 var(--sans); color: var(--muted); margin-bottom: 8px; }
.seg-options { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); padding: 3px; }
.seg-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-options label {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 8px;
  border-radius: 7px; font: 500 15px/1.2 var(--sans); color: var(--muted); cursor: pointer; text-align: center;
}
.seg-options input:checked + label { background: var(--ink); color: var(--bg); }
.seg-options input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.consent a { color: var(--muted); }
.form-status { margin-top: 14px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--brique-text); }
.form-done { padding: 18px 20px; background: var(--sauge); border-radius: var(--r-card); color: var(--ink); }
.form-done strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 4px; color: var(--vert); }
.form-soon { padding: 18px 20px; background: var(--cuir); border-radius: var(--r-card); color: var(--ink); }
.form-soon strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bands ---------- */
.band { padding-block: var(--sec-pad); }
.band-calm { background: var(--grain) repeat, var(--calm); }
.band-calm .sec-lede, .band-calm .muted, .band-calm .step p, .band-calm .aud > p { color: var(--muted-strong); }

/* ---------- Séance du jour ---------- */
.seance-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) {
  .seance-grid { grid-template-columns: auto minmax(0, 1fr); gap: clamp(56px, 8vw, 112px); }
  .seance-text { order: 2; }
  .phone { order: 1; }
}
.steps { list-style: none; margin-top: 36px; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--caramel-text);
  font-variant-numeric: lining-nums;
}
.step h3 { font: 600 18px/1.3 var(--sans); }
.step p { margin-top: 4px; }
.step .step-meta { font-size: 14px; margin-top: 8px; }

/* Phone mockup (HTML/CSS, mirrors T4-A1) */
.phone {
  justify-self: center;
  width: 300px; max-width: 100%;
  border: 9px solid var(--phone-bezel);
  border-radius: 46px;
  background: var(--grain) repeat, var(--bg);
  overflow: hidden;
  position: relative;
  font-size: 13px; line-height: 1.35;
}
.phone-in { padding: 34px 18px 22px; }
.phone-island { position: absolute; top: 9px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: var(--phone-bezel); border-radius: 14px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; }
.ph-top img { width: 66px; height: auto; }
.ph-week { display: flex; gap: 3px; }
.ph-week i { width: 10px; height: 10px; border-radius: 2px; background: var(--heat2); display: block; }
.ph-week i:nth-child(2), .ph-week i:nth-child(6) { background: var(--heat4); }
.ph-week i:nth-child(3) { background: var(--heat1); }
.ph-week i:nth-child(4) { background: var(--heat0); }
.ph-week i:nth-child(5) { background: var(--heat3); }
.ph-week i:last-child { background: var(--heat3); box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px var(--brique); }
.ph-date { color: var(--muted); margin-top: 18px; font-size: 12px; }
.ph-title { font-family: var(--serif); font-size: 27px; line-height: 1.1; margin-top: 2px; }
.ph-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; }
.ph-bar i { height: 3px; border-radius: 2px; background: var(--line); display: block; }
.ph-bar i:nth-child(1) { background: var(--vert); }
.ph-bar i:nth-child(2) { background: var(--caramel); }
.ph-meta { color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.ph-step { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px 0; }
.ph-step + .ph-step { border-top: 1px solid var(--line); }
.ph-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.ph-dot.done { background: var(--vert); color: var(--surface); }
.ph-dot.now { border: 1.5px solid var(--caramel); color: var(--caramel-text); font-family: var(--serif); font-size: 12px; }
.ph-dot.next { border: 1px solid var(--muted); color: var(--muted); font-family: var(--serif); font-size: 12px; }
.ph-step b { font-weight: 600; display: block; font-size: 13.5px; }
.ph-step span.s { color: var(--muted); font-size: 11.5px; }
.ph-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 4px 0; }
.ph-card .ph-step { padding: 0; }
.ph-q { font-family: var(--serif); font-size: 18px; line-height: 1.25; margin-top: 12px; }
.ph-note { color: var(--muted); font-size: 11px; margin-top: 8px; }
.ph-btn { margin-top: 10px; background: var(--caramel); color: var(--on-caramel); border-radius: 9px; text-align: center; font-weight: 600; padding: 10px; font-size: 13px; }
.ph-more { font-family: var(--serif); font-size: 19px; margin-top: 18px; }
.ph-rush { margin-top: 8px; background: var(--quad), var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ph-rush b { font-weight: 600; font-size: 13px; display: block; }
.ph-rush .s { color: var(--muted); font-size: 11px; }
.ph-rush .go { background: var(--btn-ink); color: var(--on-btn-ink); border-radius: 8px; padding: 7px 11px; font-weight: 600; font-size: 12px; }

/* ---------- Rush ---------- */
.rush-sec { padding-block: var(--sec-pad); display: grid; gap: 36px; }
@media (min-width: 900px) {
  .rush-sec { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 7vw, 96px); align-items: center; }
}
.rush-intro p { margin-top: 14px; }
.rush-intro .small { font-size: 15px; color: var(--muted); }
.rush {
  background: var(--quad), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-hero);
  padding: clamp(20px, 3.4vw, 34px);
  min-height: 360px;
  display: flex; flex-direction: column;
}
.rush-top { display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums lining-nums; }
.rush-time { font: 600 15px/1 var(--sans); min-width: 3.2em; }
.rush-bar { flex: 1; height: 4px; 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-score { font: 500 15px/1 var(--sans); color: var(--muted); }
.rush-score strong { color: var(--ink); font-weight: 600; }
.rush-stage { flex: 1; display: grid; place-items: center; text-align: center; padding-top: 18px; }
.rush-panel { width: 100%; max-width: 420px; }
.rush-panel[hidden] { display: none; }
.rush-idle-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.rush-idle p.muted { margin-top: 8px; font-size: 15px; }
.rush-idle .btn { margin-top: 22px; min-width: 160px; }
.rush-best { margin-top: 16px; font-size: 15px; color: var(--muted); }
.rush-best strong { color: var(--brique); font-weight: 600; }
.rush-problem {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 7vw, 68px); line-height: 1.05; letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}
.rush-input {
  margin: 22px auto 0; max-width: 220px; text-align: center;
  font: 500 28px/1.2 var(--sans); font-variant-numeric: tabular-nums; min-height: 60px;
  transition: background-color .12s ease, border-color .12s ease;
}
.rush-input.ok { background: var(--sauge); border-color: var(--vert); }
.rush-play .link-btn { margin-top: 8px; }
.rush-end {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 26px 22px 22px; overflow: hidden;
}
.guilloche {
  position: absolute; left: 0; right: 0; top: 0; height: 70px;
  background: var(--caramel); opacity: .32;
  -webkit-mask: url("assets/guilloche.svg") center / 100% 100% no-repeat;
  mask: url("assets/guilloche.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.rush-end > *:not(.guilloche) { position: relative; }
.rush-end-label { font-size: 14px; color: var(--muted); margin-top: 26px; }
.rush-end-score { font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: 1; margin-top: 4px; font-variant-numeric: lining-nums; }
.rush-end-msg { margin-top: 10px; font-size: 16px; }
.rush-end-msg strong { color: var(--brique); font-weight: 600; }
.rush-end-actions { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Catégories ---------- */
.cats { padding-block: var(--sec-pad); }
.family { display: grid; gap: 22px; padding-top: 40px; margin-top: 48px; border-top: 1px solid var(--line); }
.family:first-of-type { margin-top: 44px; }
@media (min-width: 900px) {
  .family { grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr); gap: 48px; }
}
.fam-head h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.fam-head p { color: var(--muted); margin-top: 8px; max-width: 18em; }
.fam-head .fam-cats { font-size: 14px; margin-top: 12px; color: var(--muted); }
.cat-name { font: 600 15px/1.3 var(--sans); }
.cat-level { font-size: 14px; color: var(--muted); }
.cat-q { font-family: var(--serif); font-size: 21px; line-height: 1.3; margin-top: 12px; text-wrap: pretty; }
details.answer { margin-top: 12px; }
details.answer summary {
  cursor: pointer; display: inline-flex; align-items: center; min-height: 44px;
  font: 500 15px/1.3 var(--sans); color: var(--caramel-text);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; list-style: none;
}
details.answer summary::-webkit-details-marker { display: none; }
details.answer[open] summary { text-decoration-thickness: 2px; }
details.answer p { font-size: 16px; margin-top: 2px; }
details.answer p strong { font-family: var(--serif); font-size: 19px; font-weight: 500; }

/* Puzzles: two paper cards, staggered */
.puzzles-grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .puzzles-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .puzzles-grid > :nth-child(2) { margin-top: 40px; }
}
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 24px 12px; }

/* Théorie: an editorial list, no cards */
.theorie-list { display: grid; }
.t-item { display: grid; gap: 6px; padding: 4px 0 22px; }
.t-item + .t-item { border-top: 1px solid var(--line); padding-top: 24px; }
@media (min-width: 720px) {
  .t-item { grid-template-columns: 200px 1fr; column-gap: 32px; }
  .t-item .t-meta { padding-top: 6px; }
  .t-item .cat-q { margin-top: 0; font-size: 23px; }
}
.formula { font-family: var(--serif); font-size: 19px; color: var(--muted); margin-top: 10px; font-variant-numeric: lining-nums; }

/* Drill: on squared paper, big numerals */
.drill-strip {
  background: var(--quad), var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  display: grid;
}
@media (min-width: 720px) { .drill-strip { grid-template-columns: 1fr 1fr; } }
.d-item { padding: 24px 24px 12px; min-width: 0; }
@media (min-width: 1000px) { .d-big { white-space: nowrap; } }
.d-item + .d-item { border-top: 1px solid var(--line); }
@media (min-width: 720px) { .d-item + .d-item { border-top: 0; border-left: 1px solid var(--line); } }
.d-big { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.5vw, 46px); line-height: 1.1; margin-top: 14px; font-variant-numeric: lining-nums; letter-spacing: -0.01em; }

/* ---------- Audiences ---------- */
.aud-sec { padding-block: var(--sec-pad); }
.aud-grid { display: grid; gap: 64px; margin-top: 48px; }
@media (min-width: 960px) {
  .aud-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .aud:first-child { padding-right: clamp(36px, 4vw, 64px); border-right: 1px solid var(--line); }
  .aud:last-child { padding-left: clamp(36px, 4vw, 64px); }
}
.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); max-width: 32em; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--vert); border-radius: 1px;
}
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; margin-top: 26px; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mini-head b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.mini-head span { font-size: 14px; color: var(--muted); }
.iv-list { list-style: none; 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 li:first-child { border-top: 0; }
.iv-list .d { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.iv-list .lhs { display: flex; flex-direction: column; }
.mini-foot { font-size: 14px; color: var(--muted); margin-top: 8px; }
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-top: 14px; }
.heat i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--heat0); }
.heat i.l1 { background: var(--heat1); } .heat i.l2 { background: var(--heat2); } .heat i.l3 { background: var(--heat3); } .heat i.l4 { background: var(--heat4); }
.heat i.today { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--brique); }
.heat i.future { background: transparent; }
.streak { display: flex; gap: 28px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.streak b { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; font-variant-numeric: lining-nums; }
.streak span { font-size: 13px; color: var(--muted); }

.obj-switch { display: inline-flex; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-btn); padding: 3px; margin-top: 22px; }
.obj-switch span { padding: 8px 14px; border-radius: 7px; font: 500 14px/1.2 var(--sans); color: var(--muted); }
.obj-switch span.on { background: var(--ink); color: var(--bg); }

/* ---------- Offer ---------- */
.offer-sec { padding-bottom: var(--sec-pad); }
.offer {
  background: var(--grain) repeat, var(--cuir);
  border-radius: var(--r-hero);
  padding: clamp(22px, 5vw, 56px);
  display: grid; gap: 32px;
}
@media (min-width: 900px) { .offer { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: end; } }
.offer p, .offer li { color: var(--ink); }
.offer .offer-intro { margin-top: 14px; max-width: 32em; }
.offer-list { list-style: none; margin-top: 24px; display: grid; gap: 0; }
.offer-list li { padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.offer-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.offer-buy { background: var(--surface); border-radius: var(--r-card); padding: clamp(20px, 3vw, 28px); }
.offer-price-label { font-size: 14px; color: var(--muted); }
.offer-price { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; margin-top: 4px; font-variant-numeric: lining-nums; }
.offer-price.is-set { font-size: 48px; }
.offer-buy .btn { margin-top: 20px; width: 100%; }
.offer-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-sec { padding-bottom: var(--sec-pad); display: grid; gap: 28px; }
@media (min-width: 900px) { .faq-sec { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.faq-sec .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; }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
  .faq details[open] > div { animation: none; }
}
.faq details > div p + p { margin-top: 8px; }
.faq details a { color: var(--ink); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); 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; color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 24px var(--sec-pad); max-width: 760px; }
.legal h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-top: 24px; }
.legal h2 { font-family: var(--serif); font-size: 24px; margin-top: 40px; }
.legal p, .legal li { margin-top: 10px; }
.legal ul { padding-left: 20px; }
.legal .todo { background: var(--rose); color: var(--brique-text); padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: .92em; }
.legal .note { margin-top: 16px; padding: 14px 16px; background: var(--cuir); border-radius: var(--r-card); font-size: 15px; }
.legal table { border-collapse: collapse; width: 100%; margin-top: 14px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
.legal th { font-weight: 600; }
