/* ==========================================================================
   Objectif Galop — design system
   Couleurs d'un parcours d'obstacles : barres cobalt, rouge et blanc,
   flots jaunes, gazon de la carrière. Signature : la barre d'obstacle rayée.
   ========================================================================== */


:root {
  --ink: #161a2b;
  --ink-2: #3a4059;
  --ink-3: #5c6280;
  --paper: #ffffff;
  --mist: #f3f4f9;
  --mist-2: #e9ebf3;
  --line: #e1e4ee;
  --cobalt: #2448d8;
  --cobalt-strong: #1a37b0;
  --cobalt-soft: #e9edff;
  --cobalt-bg: #2448d8;
  --cobalt-bg-strong: #1a37b0;
  --pill-fg: #6b4c17;
  --night: #161a2b;
  --rouge-text: #b5262a;
  --flame-soft: #fff1e6;
  --rouge: #e03a3e;
  --rouge-soft: #fdeceb;
  --soleil: #ffc233;
  --soleil-strong: #c98f00;
  --soleil-soft: #fff5d6;
  --gazon: #14905a;
  --gazon-soft: #e3f4ea;
  --sable: #ead9bc;
  --sable-soft: #f8f1e5;
  --pole-a: var(--rouge);
  --pole-b: #ffffff;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(22, 26, 43, .06), 0 2px 8px rgba(22, 26, 43, .05);
  --shadow-2: 0 4px 10px rgba(22, 26, 43, .06), 0 18px 40px -12px rgba(22, 26, 43, .18);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--cobalt);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* Interface claire uniquement, même si l'appareil est en mode sombre. */
  color-scheme: only light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--cobalt); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--cobalt-strong); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--soleil); color: #161a2b; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1, h2, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.i-fill { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.eyebrow { font: 700 .78rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .7rem; display: flex; align-items: center; gap: .5em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.bg-mist { background: var(--mist); }
.bg-sable { background: var(--sable-soft); }

/* ---------- Barre d'obstacle (signature) ---------- */
.pole {
  --h: 12px;
  position: relative;
  height: var(--h);
  border-radius: var(--h);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .14)),
    repeating-linear-gradient(90deg, var(--pole-a) 0 32px, var(--pole-b) 32px 64px);
  box-shadow: inset 0 0 0 1px rgba(22, 26, 43, .08);
}
.pole--blue { --pole-a: var(--cobalt); }
.pole--sun { --pole-a: var(--soleil); }
.pole--green { --pole-a: var(--gazon); }
.pole-divider { display: flex; align-items: center; gap: 0; margin-block: 0; }
.pole-divider .pole { flex: 1; }
.pole-divider::before, .pole-divider::after { content: ""; width: 10px; height: 46px; border-radius: 3px; background: var(--ink); opacity: .85; flex: none; }
.pole-divider::before { margin-right: -2px; }
.pole-divider::after { margin-left: -2px; }

/* Barre de progression en forme de barre d'obstacle */
.meter { --pct: 0%; position: relative; height: 14px; border-radius: 14px; background: var(--mist-2); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); }
.meter > span {
  position: absolute; inset: 0 auto 0 0; width: var(--pct); border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .12)),
    repeating-linear-gradient(90deg, var(--meter-a, var(--cobalt)) 0 22px, var(--meter-b, #fff) 22px 44px);
  transition: width .9s var(--ease);
}
.meter--sun { --meter-a: var(--soleil); }
.meter--green { --meter-a: var(--gazon); }
.meter--red { --meter-a: var(--rouge); }
.meter--thin { height: 8px; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--mist-2); --fg: var(--ink); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.25em; border-radius: 999px;
  border: 2px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 700 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap; user-select: none;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { --bg: var(--cobalt-bg); --fg: #fff; box-shadow: 0 2px 0 var(--cobalt-bg-strong), 0 8px 20px -8px rgba(36, 72, 216, .6); }
.btn-primary:hover { --bg: var(--cobalt-bg-strong); }
.btn-sun { --bg: var(--soleil); --fg: #1d1606; box-shadow: 0 2px 0 var(--soleil-strong); }
.btn-ghost { --bg: transparent; --bd: var(--line); }
.btn-ghost:hover { --bd: var(--ink-3); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-danger { --bg: var(--rouge); --fg: #fff; }
.btn-link { --bg: transparent; padding-inline: .2em; min-height: 0; border-radius: 6px; color: var(--cobalt); }
.btn-sm { min-height: 36px; padding: .45em .9em; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; white-space: normal; text-align: center; }
.btn-google { --bg: var(--paper); --bd: var(--line); }
.btn-google:hover { --bd: var(--ink-3); }

/* ---------- Puces, étiquettes ---------- */
.chip { display: inline-flex; align-items: center; gap: .35em; padding: .25em .7em; border-radius: 999px; background: var(--mist-2); color: var(--ink-2); font: 700 .8rem/1.3 var(--font-body); white-space: nowrap; }
.chip--cobalt { background: var(--cobalt-soft); color: var(--cobalt-strong); }
.chip--sun { background: var(--soleil-soft); color: var(--soleil-strong); }
.chip--green { background: var(--gazon-soft); color: var(--gazon); }
.chip--red { background: var(--rouge-soft); color: var(--rouge-text); }
.chip--sable { background: var(--sable-soft); color: #7a5a24; }

/* Dossard : numéro de Galop façon tapis de selle */
.dossard {
  --c: var(--cobalt-bg);
  display: inline-grid; place-items: center; min-width: 2.4em; padding: .15em .35em .05em;
  border-radius: 10px 10px 16px 16px; background: var(--c); color: #fff;
  font: 900 1em/1 var(--font-display); letter-spacing: .02em;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
}

/* ---------- Cartes ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.1rem, 2.4vw, 1.6rem); box-shadow: var(--shadow-1); }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.grid { display: grid; gap: clamp(.9rem, 2vw, 1.4rem); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }

.tile { display: flex; flex-direction: column; gap: .5rem; height: 100%; }
.tile__media { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--mist); margin: -.35rem -.35rem .4rem; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-link:hover .tile__media img { transform: scale(1.04); }
.tile__title { font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin: 0; }
.tile__meta { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; font-size: .88rem; color: var(--ink-3); }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; flex: none; }
.logo:hover { color: var(--ink); }
.logo svg { width: 34px; height: 34px; }
.logo__word { font: 900 1.42rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.logo__word b { color: var(--cobalt); font-weight: 900; }
.nav { display: flex; gap: .2rem; margin-left: .75rem; }
.nav a { padding: .5em .8em; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: .97rem; text-decoration: none; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--cobalt); background: var(--cobalt-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; position: relative; }
.icon-btn:hover { background: var(--mist); color: var(--ink); }
.icon-btn .i { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--rouge); border: 2px solid var(--paper); }
.partner-pill { display: inline-flex; align-items: center; gap: .4em; padding: .3em .75em .3em .4em; border-radius: 999px; background: var(--sable-soft); color: var(--pill-fg); font: 700 .8rem/1 var(--font-body); text-decoration: none; border: 1px solid color-mix(in srgb, var(--sable) 70%, transparent); }
.partner-pill:hover { color: #4f370e; background: var(--sable); }
.partner-pill__dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #111d36; color: #c8973f; font: 900 .7rem/1 var(--font-display); }

.level-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .8rem .3rem .3rem; border-radius: 999px; background: var(--mist); text-decoration: none; color: var(--ink); }
.level-chip:hover { color: var(--ink); background: var(--mist-2); }
.level-chip .dossard { font-size: 1rem; min-width: 2em; }
.level-chip__xp { display: grid; gap: 3px; min-width: 74px; }
.level-chip__xp small { font: 700 .7rem/1 var(--font-mono); color: var(--ink-3); }
.streak { display: inline-flex; align-items: center; gap: .2em; font: 800 .95rem/1 var(--font-mono); color: var(--ink-3); }
.streak.is-on { color: #f2650f; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--sable-soft); flex: none; }

.menu { position: relative; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); padding: .4rem; display: none; z-index: 60; }
.menu.is-open .menu__panel { display: block; animation: pop-in .18s var(--ease); }
.menu__panel a, .menu__panel button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem .75rem; border-radius: 10px; border: 0; background: none; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; text-align: left; }
.menu__panel a:hover, .menu__panel button:hover { background: var(--mist); }
.menu__head { padding: .6rem .75rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.menu__head strong { display: block; }

/* Navigation basse (mobile) */
.tabbar { display: none; }
@media (max-width: 860px) {
  .nav, .header-actions .hide-m { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 45; inset: auto 0 0 0;
    background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; color: var(--ink-3); text-decoration: none; font: 700 .7rem/1.1 var(--font-body); border-radius: 12px; }
  .tabbar a .i { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--cobalt); }
  .tabbar a.tabbar__cta { color: var(--cobalt); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .logo__word { font-size: 1.2rem; }
}

/* ---------- Pied de page ---------- */
.site-footer { background: var(--mist); color: var(--ink-2); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; margin-top: 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--cobalt); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-grid h3 { color: var(--ink-3); font: 800 .9rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; }
.footer-brand .logo { color: var(--ink); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer-partner { margin-top: 1.25rem; display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); max-width: 360px; }
.footer-partner strong { color: #111d36; display: block; font-size: .95rem; }
.footer-partner span { font-size: .85rem; color: var(--ink-2); }
.footer-partner:hover { text-decoration: none !important; border-color: #c8973f; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Fil d'Ariane ---------- */
.crumbs { font-size: .88rem; color: var(--ink-3); padding-top: 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.05rem; }
.field label, .label { font-weight: 700; font-size: .95rem; }
.field small, .hint { color: var(--ink-3); font-size: .85rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: 12px;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 130px; resize: vertical; }
.input:hover { border-color: color-mix(in srgb, var(--ink-3) 50%, var(--line)); }
.input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.input[aria-invalid="true"] { border-color: var(--rouge); }
.field-error { color: var(--rouge); font-weight: 700; font-size: .88rem; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 3.2rem; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.check { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); flex: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch input { appearance: none; width: 50px; height: 30px; border-radius: 30px; background: var(--mist-2); position: relative; cursor: pointer; flex: none; transition: background .2s; border: 1px solid var(--line); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s var(--spring); }
.switch input:checked { background: var(--cobalt-bg); border-color: var(--cobalt-bg); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { box-shadow: var(--focus); }
.divider-text { display: flex; align-items: center; gap: 1rem; color: var(--ink-3); font-size: .85rem; margin: 1.2rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------- Alertes & toasts ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r); background: var(--mist); border: 1px solid var(--line); margin-bottom: 1rem; }
.alert--success { background: var(--gazon-soft); border-color: color-mix(in srgb, var(--gazon) 30%, transparent); }
.alert--error { background: var(--rouge-soft); border-color: color-mix(in srgb, var(--rouge) 30%, transparent); }
.alert--info { background: var(--cobalt-soft); border-color: color-mix(in srgb, var(--cobalt) 25%, transparent); }
.alert--warn { background: var(--soleil-soft); border-color: color-mix(in srgb, var(--soleil-strong) 30%, transparent); }
.alert p:last-child { margin: 0; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 861px) { .toasts { bottom: 24px; } }
.toast { pointer-events: auto; display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; border-radius: var(--r); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-2); animation: toast-in .35s var(--spring); font-weight: 600; }
.toast.is-leaving { animation: toast-out .25s var(--ease) forwards; }
.toast .i { width: 22px; height: 22px; }
.toast--success .i { color: #46e09b; }
.toast--error .i { color: #ff8a8c; }

/* ---------- Fenêtres ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(10, 12, 22, .55); backdrop-filter: blur(3px); animation: fade-in .2s; }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: min(100%, 480px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow-2); animation: pop-in .3s var(--spring); }
.modal__close { position: absolute; top: 10px; right: 10px; }

/* ---------- Contenu éditorial ---------- */
.prose { font-size: 1.08rem; line-height: 1.72; max-width: 70ch; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose img { border-radius: var(--r); margin: 1.5rem 0; }
.prose figure { margin: 1.75rem 0; }
.prose figcaption { color: var(--ink-3); font-size: .9rem; margin-top: .5rem; }
.prose ul li, .prose ol li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5rem 0; padding: .9rem 1.2rem; border-left: 4px solid var(--soleil); background: var(--soleil-soft); border-radius: 0 var(--r) var(--r) 0; }
.prose table { margin: 1.5rem 0; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--mist); font-weight: 700; }
.prose a.gl { color: inherit; text-decoration: underline dotted var(--cobalt) 2px; text-underline-offset: .22em; }
.prose a.gl:hover { color: var(--cobalt); }
.prose .labels { columns: 2 220px; list-style: none; padding: 0; }
.prose .labels li { break-inside: avoid; padding: .2em 0; }
.prose .labels b { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--cobalt-bg); color: #fff; font: 800 .8rem/1 var(--font-mono); margin-right: .4em; }

.essentiel { position: relative; border-radius: var(--r-lg); background: var(--cobalt-soft); padding: 1.3rem 1.4rem 1.2rem; margin: 1.5rem 0 2rem; max-width: 70ch; }
.essentiel h2 { font: 800 .8rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt-strong); margin: 0 0 .6rem; display: flex; align-items: center; gap: .5em; }
.essentiel p:last-child, .essentiel ul:last-child { margin-bottom: 0; }
.essentiel ul { padding-left: 1.1em; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: .75rem; font: 800 1.5rem/1 var(--font-display); color: var(--cobalt); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding-bottom: 1rem; color: var(--ink-2); }

.toc { font-size: .95rem; border-left: 3px solid var(--line); padding-left: 1rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--cobalt); }

.page-hero { padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem); }
.page-hero h1 { max-width: 22ch; }
.meta-line { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; color: var(--ink-3); font-size: .9rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.25rem; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

.quiz-cta { margin-top: 2.5rem; display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1.4rem 1.5rem; border-radius: var(--r-lg); background: var(--ink); color: var(--paper); max-width: 70ch; position: relative; overflow: hidden; }
.quiz-cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--rouge) 0 26px, #fff 26px 52px); }
.quiz-cta h2 { color: var(--paper); margin: 0 0 .25rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.quiz-cta p { margin: 0; opacity: .85; }
.quiz-cta .eyebrow { color: var(--soleil); margin-bottom: .35rem; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.related-list a { display: flex; gap: .7rem; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; padding: .35rem; border-radius: 10px; }
.related-list a:hover { background: var(--mist); }
.related-list img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.side-signup { border-color: color-mix(in srgb, var(--cobalt) 30%, var(--line)); background: linear-gradient(180deg, var(--cobalt-soft), var(--paper) 70%); }

/* ---------- Hubs : Galops, thèmes, cours ---------- */
.section-title { font: 800 .82rem/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .9rem; display: flex; align-items: center; gap: .6rem; }
.section-title::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.galop-hero { --c: var(--cobalt-bg); background: var(--c); color: #fff; position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 3.5rem); }
.galop-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(180deg, rgba(255,255,255,.4), transparent 45%, rgba(0,0,0,.15)), repeating-linear-gradient(90deg, #fff 0 30px, rgba(255,255,255,.35) 30px 60px); }
.galop-hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(2.8rem, 7vw, 5rem); margin-bottom: .4rem; }
.galop-hero__in { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: center; }
.galop-hero__num { font: 900 clamp(7rem, 20vw, 13rem)/.8 var(--font-display); color: rgba(255,255,255,.22); }
.galop-hero__ghost { --bg: rgba(255,255,255,.12); --fg: #fff; --bd: rgba(255,255,255,.35); }
.galop-hero__progress { display: grid; gap: .4rem; max-width: 420px; margin-top: .5rem; font-weight: 700; font-size: .92rem; }
.galop-hero .eyebrow { color: rgba(255,255,255,.8); }
@media (max-width: 640px) { .galop-hero__in { grid-template-columns: 1fr; } .galop-hero__num { position: absolute; right: -.05em; top: .05em; } }
.galop-line { display: flex; align-items: center; gap: 1.1rem; }
.galop-line__body { display: grid; gap: .3rem; flex: 1; }
.galop-line__title { font: 900 1.6rem/1 var(--font-display); text-transform: uppercase; }
.galop-line__go { color: var(--ink-3); width: 22px; height: 22px; }
.galop-nav { display: flex; gap: .45rem; justify-content: center; flex-wrap: wrap; padding-top: 1rem; }
.galop-nav .dossard { font-size: 1.3rem; min-width: 2.2em; text-decoration: none; opacity: .55; transition: opacity .2s, transform .2s var(--spring); }
.galop-nav .dossard:hover, .galop-nav .is-current { opacity: 1; transform: translateY(-3px); color: #fff; }
.theme-card { display: flex; flex-direction: column; gap: .35rem; padding: .7rem .7rem 1rem; }
.theme-card__media { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--mist); margin-bottom: .45rem; }
.theme-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card-link:hover .theme-card__media img { transform: scale(1.05); }
.theme-card__count { position: absolute; left: .5rem; bottom: .5rem; background: rgba(22,26,43,.78); color: #fff; backdrop-filter: blur(4px); }
.theme-card__cat { font: 700 .75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding-inline: .3rem; }
.theme-card .tile__title { padding-inline: .3rem; }
.theme-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: .4rem .3rem 0; }
.theme-card__go { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cobalt-bg); color: #fff; margin-left: auto; transition: transform .2s var(--spring); }
.theme-card__go .i { width: 16px; height: 16px; fill: currentColor; }
.card-link:hover .theme-card__go { transform: scale(1.12); }
.lesson-row { display: flex; gap: .9rem; align-items: center; padding: .7rem; }
.lesson-row img, .lesson-row__ph { width: 88px; height: 66px; border-radius: 10px; object-fit: cover; flex: none; background: var(--mist); }
.lesson-row__ph { display: grid; place-items: center; color: var(--cobalt); background: var(--cobalt-soft); }
.lesson-row__ph--red { color: var(--rouge); background: var(--rouge-soft); }
.lesson-row strong { display: block; line-height: 1.3; font-size: .98rem; }
.lesson-row small { display: block; margin-top: .2rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; max-width: 820px; }
.step { display: flex; gap: 1rem; align-items: center; }
.step strong { display: block; font-size: 1.08rem; }
.step small { display: block; margin-top: .2rem; line-height: 1.45; }
.step > .i { margin-left: auto; color: var(--ink-3); flex: none; }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; border: 3px solid var(--rouge); color: var(--rouge); font: 900 1.5rem/1 var(--font-display); flex: none; background: var(--paper); }

/* ---------- Lexique ---------- */
.glossary-search { position: relative; max-width: 520px; margin-top: 1.25rem; }
.glossary-search .i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.glossary-search .input { padding-left: 2.8rem; }
.glossary-letters { display: flex; flex-wrap: wrap; gap: .3rem; position: sticky; top: var(--header-h); z-index: 5; background: var(--paper); padding-block: .6rem; border-bottom: 1px solid var(--line); }
.glossary-letters a, .glossary-letters span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; font: 800 1.05rem/1 var(--font-display); text-decoration: none; }
.glossary-letters a { background: var(--mist); color: var(--ink); }
.glossary-letters a:hover { background: var(--cobalt-bg); color: #fff; }
.glossary-letters span { color: var(--line); }
.glossary__group { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 70px); }
.glossary__letter { font-size: 3.4rem; color: var(--cobalt); margin: 0; line-height: 1; }
.glossary dl { margin: 0; display: grid; gap: 1.1rem; }
.glossary__item { scroll-margin-top: calc(var(--header-h) + 70px); }
.glossary__item:target { background: var(--soleil-soft); border-radius: var(--r); padding: .6rem .8rem; margin: -.6rem -.8rem; }
.glossary dt { font-weight: 800; font-size: 1.1rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.glossary dd { margin: .2rem 0 0; color: var(--ink-2); max-width: 75ch; }
.glossary__more { display: inline-flex; gap: .3rem; align-items: center; font-weight: 700; font-size: .92rem; margin-left: .3rem; }
@media (max-width: 640px) { .glossary__group { grid-template-columns: 1fr; gap: .4rem; } .glossary__letter { font-size: 2.6rem; } }

/* ---------- Classement, dons ---------- */
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.board__row { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.board__row.is-me { border-color: var(--cobalt); background: var(--cobalt-soft); }
.board__pos { width: 2rem; font: 900 1.4rem/1 var(--font-display); color: var(--ink-3); text-align: center; }
.board__row.is-podium .board__pos { color: var(--soleil-strong); }
.board__row:first-child .board__pos { color: #e0a514; font-size: 1.8rem; }
.board__name { flex: 1; display: grid; line-height: 1.25; }
.board__xp { font-weight: 800; }
.donate-amounts { display: flex; gap: .5rem; flex-wrap: wrap; }
.donate-amount input { position: absolute; opacity: 0; }
.donate-amount span { display: inline-grid; place-items: center; min-width: 76px; height: 52px; border-radius: 14px; border: 2px solid var(--line); font: 800 1.2rem/1 var(--font-display); cursor: pointer; }
.donate-amount input:checked + span { border-color: var(--cobalt); background: var(--cobalt-soft); color: var(--cobalt-strong); }
.donate-amount input:focus-visible + span { box-shadow: var(--focus); }

/* ---------- Pages de quiz (hub, thème, défi) ---------- */
.quiz-galops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .9rem; }
.quiz-galop { min-height: 150px; }
.feature-card { display: flex; gap: 1rem; align-items: center; }
.feature-card > span:nth-child(2) { display: grid; gap: .2rem; flex: 1; }
.feature-card > .i { color: var(--ink-3); flex: none; }
.feature-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--fb, var(--cobalt-soft)); color: var(--fc, var(--cobalt)); flex: none; }
.feature-card__icon .i { width: 26px; height: 26px; }
.signup-strip { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: 1rem 1.2rem; border-radius: var(--r-lg); background: var(--cobalt-soft); }
.signup-strip p { margin: 0; flex: 1; min-width: 220px; }
.signup-strip .shoes .i { width: 24px; height: 24px; }
.theme-hero { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 2.5rem) 1.5rem; }
.theme-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.theme-hero__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-2); transform: rotate(1.5deg); }
@media (max-width: 860px) { .theme-hero { grid-template-columns: 1fr; } .theme-hero__img { display: none; } }
.theme-mastery { display: inline-flex; gap: .7rem; align-items: center; padding: .55rem .9rem; border-radius: 999px; background: var(--mist); font-weight: 600; font-size: .92rem; }
.theme-mastery .i { width: 22px; height: 22px; }
.mode-pick { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: .8rem; }
@media (max-width: 860px) { .mode-pick { grid-template-columns: 1fr 1fr; } .mode-tile.is-main { grid-column: 1 / -1; } }
.mode-tile { position: relative; display: grid; gap: .25rem; align-content: start; padding: 1.1rem 1.1rem 1rem; border-radius: var(--r-lg); border: 2px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .2s var(--spring), border-color .2s, box-shadow .2s; }
.mode-tile:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--cobalt); box-shadow: var(--shadow-2); }
.mode-tile__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cobalt-soft); color: var(--cobalt); margin-bottom: .4rem; }
.mode-tile__label { font: 800 1.3rem/1.1 var(--font-display); text-transform: uppercase; }
.mode-tile__desc { font-size: .9rem; color: var(--ink-2); }
.mode-tile__count { font-size: .78rem; color: var(--ink-3); margin-top: .3rem; }
.mode-tile.is-main { background: var(--cobalt-bg); border-color: var(--cobalt-bg); color: #fff; box-shadow: 0 4px 0 var(--cobalt-bg-strong), 0 12px 30px -10px rgba(36, 72, 216, .6); }
.mode-tile.is-main:hover { color: #fff; }
.mode-tile.is-main .mode-tile__icon { background: rgba(255,255,255,.18); color: #fff; }
.mode-tile.is-main .mode-tile__icon .i { fill: currentColor; }
.mode-tile.is-main .mode-tile__desc, .mode-tile.is-main .mode-tile__count { color: rgba(255,255,255,.85); }
.mode-tile.is-main .mode-tile__label { font-size: 1.7rem; }
.samples { display: grid; gap: 1rem; margin-top: 1rem; }
.sample { padding: 1.1rem 1.2rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.sample__q { display: flex; gap: .8rem; align-items: flex-start; font-weight: 700; font-size: 1.08rem; }
.sample__q .jump__num { width: 36px; height: 36px; font-size: 1.2rem; border-width: 2px; display: grid; place-items: center; border-radius: 9px; border-style: solid; border-color: var(--rouge); color: var(--rouge); font-family: var(--font-display); font-weight: 900; flex: none; background: #fff; }
.sample .jump__choices { display: grid; gap: .5rem; }
.sample .jump__verdict { font: 900 1.3rem/1 var(--font-display); text-transform: uppercase; margin: .8rem 0 .3rem; }
.sample.is-right .jump__verdict { color: var(--gazon); }
.sample.is-wrong .jump__verdict { color: var(--rouge); }
.sample__answer { margin-top: .8rem; font-size: .92rem; color: var(--ink-2); }
.sample__answer summary { cursor: pointer; color: var(--ink-3); font-weight: 700; }
.daily-hero { background: radial-gradient(700px 380px at 85% 10%, var(--soleil-soft), transparent 70%), var(--paper); color: var(--ink-2); padding-block: clamp(2.2rem, 6vw, 4rem); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.daily-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(180deg, rgba(255,255,255,.4), transparent 45%, rgba(0,0,0,.12)), repeating-linear-gradient(90deg, var(--rouge) 0 30px, #fff 30px 60px); }
.daily-hero .eyebrow { color: var(--pill-fg); }
.daily-hero h1 { color: var(--ink); text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 4.6rem); }
.daily-hero .lead { color: var(--ink-2); }
.daily-hero__in { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.daily-hero__count { display: grid; justify-items: center; color: var(--soleil); text-shadow: 0 3px 0 var(--soleil-strong); }
.daily-hero__count span:last-child { color: var(--pill-fg); text-shadow: none; }
.daily-hero__count .display { font-size: clamp(6rem, 16vw, 10rem); line-height: .85; }
.daily-hero__count span:last-child { font: 700 .85rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 640px) { .daily-hero__in { grid-template-columns: 1fr; } .daily-hero__count { display: none; } }
.daily-score { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.daily-score .display { font-size: 4rem; color: var(--cobalt); line-height: 1; }

/* ---------- Bloc partenaire MonHaras ---------- */
.mh { --mh-night: #111d36; --mh-gold: #c8973f; position: relative; overflow: hidden; border-radius: var(--r-lg); background: linear-gradient(120deg, #f1f4fb, #fbf7ee); border: 1px solid #dfe4f0; color: var(--ink-2); padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1.25rem; grid-template-columns: 1fr auto; align-items: center; }
.mh::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 151, 63, .22), transparent 70%); pointer-events: none; }
.mh h3 { color: var(--mh-night); font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; margin: .2rem 0 .4rem; }
.mh p { margin: 0; color: var(--ink-2); }
.mh__tag { font: 700 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #8a6420; }
.mh .btn { --bg: var(--mh-gold); --fg: #111d36; }
.mh .btn:hover { --bg: #dcae55; }
@media (max-width: 640px) { .mh { grid-template-columns: 1fr; } }

.video-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card--tall { aspect-ratio: 9 / 16; max-width: 360px; }
.video-card__sound { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(0, 0, 0, .55); color: #fff; }
.video-card__sound:hover { background: rgba(0, 0, 0, .75); color: #fff; }

/* ---------- Flots (badges) ---------- */
.flot { width: 96px; height: 120px; display: block; filter: drop-shadow(0 6px 10px rgba(22, 26, 43, .18)); }
.flot.is-locked { filter: grayscale(1); opacity: .35; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.badge-item { text-align: center; padding: 1rem .75rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: grid; justify-items: center; gap: .3rem; }
.badge-item h3 { font-size: .98rem; margin: .4rem 0 0; }
.badge-item p { font-size: .82rem; color: var(--ink-3); margin: 0; line-height: 1.35; }

/* Fers de maîtrise (0 à 3) */
.shoes { display: inline-flex; gap: 2px; }
.shoes .i { width: 18px; height: 18px; color: var(--mist-2); }
.shoes .is-on { color: var(--soleil-strong); }

/* ---------- Divers ---------- */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }
.empty .i { width: 44px; height: 44px; color: var(--ink-3); margin-bottom: .5rem; }
.kbd { font: 700 .78rem/1 var(--font-mono); padding: .2em .45em; border-radius: 6px; border: 1px solid var(--line); background: var(--mist); }
.stat { display: grid; gap: .15rem; }
.stat__value { font: 900 clamp(1.9rem, 4vw, 2.6rem)/1 var(--font-display); }
.stat__label { font-size: .85rem; color: var(--ink-3); font-weight: 700; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .3rem; padding: .3rem; background: var(--mist); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs a, .tabs button { padding: .5em 1em; border-radius: 999px; border: 0; background: none; font-weight: 700; color: var(--ink-2); text-decoration: none; cursor: pointer; white-space: nowrap; }
.tabs [aria-current="page"], .tabs [aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }

/* Choix de réponse (accueil, pages de thème, quiz) */
.choice { position: relative; display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 54px; padding: .75rem 1rem; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: 600 1rem/1.35 var(--font-body); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.choice:hover { border-color: var(--cobalt); background: var(--cobalt-soft); }
.choice:active { transform: scale(.985); }
.choice.is-right { border-color: var(--gazon); background: var(--gazon-soft); }
.choice.is-wrong { border-color: var(--rouge); background: var(--rouge-soft); }
.choice[disabled] { cursor: default; }
.choice[disabled]:not(.is-right):not(.is-wrong) { opacity: .55; }

/* ---------- Bandeau cookies ---------- */
.consent { position: fixed; z-index: 85; left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: 520px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 1.15rem 1.2rem; animation: toast-in .4s var(--spring); }
@media (min-width: 861px) { .consent { left: 24px; right: auto; bottom: 24px; } }
.consent p { font-size: .92rem; margin-bottom: .8rem; }
.consent__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.94) translateY(6px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .site-footer, .tabbar, .consent, .no-print { display: none !important; }
  body { padding: 0; }
}
@media (max-width: 640px) { .mh__art { display: none; } }

/* Classements entre amis */
.board__name small { font-size: .82rem; }
.board__row.is-waiting { background: transparent; border-style: dashed; }
.board__row.is-waiting .board__pos { color: var(--ink-3); font-size: 1rem; }
.board__row .btn { flex: none; }
.board-sub { font: 800 .8rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 1.4rem 0 .6rem; }
.friends-zone { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 1rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.friends-zone .section-head { flex-wrap: wrap; gap: .6rem; }
.friends-zone__invite { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; padding: .9rem 1rem; border-radius: var(--r); background: var(--mist); font-size: .95rem; }
.friends-zone__invite p { flex: 1; min-width: 200px; margin: 0; }
.challenger { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .7rem .9rem; margin: 0 0 1.2rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--ink); max-width: 560px; }
.challenger .avatar { width: 44px; height: 44px; }
.challenger p { margin: 0; flex: 1; min-width: 180px; line-height: 1.35; }
.challenger strong { color: var(--cobalt-strong); }
.invite-card { max-width: 520px; margin: clamp(2rem, 6vw, 4rem) auto; text-align: center; padding: 2rem 1.5rem; }
.invite-card .avatar { width: 96px; height: 96px; margin: 0 auto .8rem; display: block; }
.invite-card h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: .2rem 0 .6rem; }
.invite-card .hero__ctas { justify-content: center; }
.invite-card__stats { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; margin: 0 0 1.2rem; color: var(--ink-2); font-size: .95rem; }
