/* Geode — feuille commune, style « Échelle » (accueil 3 choisi par Alex le 10/11).
   Palette : basalte, quartz, améthyste, citrine (AUDIT-DESIGN.md, contraste mesuré). Filets de 1 px, coins de 3 px,
   une seule couleur d'action (citrine), la mono seulement pour les chiffres et les mesures. */
:root {
  --basalt: #1A1A1D; --basalt-2: #232327; --rock: #34333A; --quartz: #EDE7F6; --mist: #A9A3B5;
  --amethyst: #8E5CC7; --amethyst-t: #B793E8; --citrine: #E6B84A; --cancel: #F2797B;
  --display: "Syne", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 56px); --max: 1360px; --r: 3px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--basalt); color: var(--quartz); font: 400 16px/1.6 var(--display); overflow-x: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--amethyst); color: var(--quartz); }
html { scrollbar-color: var(--rock) var(--basalt); caret-color: var(--citrine); accent-color: var(--citrine); }
:focus-visible { outline: 2px solid var(--citrine); outline-offset: 3px; border-radius: var(--r); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.muted { color: var(--mist); }
.am { color: var(--amethyst-t); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p, dd { margin: 0; text-wrap: pretty; }
p { max-width: 62ch; }
::placeholder { color: var(--mist); opacity: .85; }

/* navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gut); max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: clamp(12px, 2.4vw, 28px); align-items: center; }
.nav-links a { text-decoration: none; color: var(--mist); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--quartz); }
.nav-links a.btn-launch, .nav-links a.btn-launch:hover { color: var(--basalt); }
@media (max-width: 640px) { .nav-links a.opt { display: none; } }

/* boutons : rectangle franc, une seule couleur d'action, la citrine ; l'action secondaire est un lien souligné */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--r); border: 0;
  font: 700 1rem/1.3 var(--display); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn-launch { background: var(--citrine); color: var(--basalt); }
.btn-launch:hover { background: #F0C860; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--quartz); box-shadow: inset 0 0 0 1px var(--rock); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--mist); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.link { color: var(--quartz); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-color: var(--citrine); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* statuts de tranche */
.st { font: 500 .78rem/1.3 var(--mono); letter-spacing: .04em; padding: 6px 10px; border-radius: var(--r); display: inline-block; white-space: nowrap; }
.st-armed { color: var(--amethyst-t); box-shadow: inset 0 0 0 1px var(--amethyst); }
.st-burned { color: var(--basalt); background: var(--citrine); }
.st-cancelled { color: var(--cancel); box-shadow: inset 0 0 0 1px var(--cancel); }

/* pastille minérale (vitrine) */
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.foot { border-top: 1px solid var(--rock); margin-top: 96px; padding: 32px 0 48px; color: var(--mist); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.foot a { color: var(--mist); }
.sim { font: 400 .75rem/1.3 var(--mono); color: var(--mist); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* l'échelle des 336 heures tenues (Geode.scale) : 24 h tout près du départ, 336 h au bout */
.gscale { min-width: 0; }
.gs-track { position: relative; height: 150px; border-bottom: 2px solid var(--quartz); }
.gs-tick { position: absolute; bottom: 0; height: 12px; width: 1px; background: var(--rock); }
.gs-fill { position: absolute; left: 0; bottom: -2px; height: 2px; background: var(--citrine); }
.gs-here { position: absolute; bottom: -1px; width: 0; height: 0; }
.gs-here::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--citrine); border-radius: 50%; box-shadow: 0 0 0 4px var(--basalt); }
.gs-here[data-l]::after { content: attr(data-l); position: absolute; top: 34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 .8rem/1.3 var(--mono); color: var(--citrine); }
.gs-mk { position: absolute; bottom: 0; height: var(--h); border-left: 2px solid var(--amethyst); padding: 0 0 12px 10px; }
.gs-mk.end { border-left: 0; border-right: 2px solid var(--amethyst); padding: 0 10px 12px 0; text-align: right; }
.gs-mk.on { border-color: var(--citrine); }
.gs-mk b { display: block; font: 700 clamp(1.15rem, 2.4vw, 2.1rem)/1 var(--display); letter-spacing: -0.03em; }
.gs-mk span { display: block; margin-top: 4px; font: 400 .8rem/1.3 var(--mono); color: var(--mist); white-space: nowrap; }
.gs-axis { display: flex; justify-content: space-between; padding-top: 12px; font: 400 .8rem/1.3 var(--mono); color: var(--mist); }
.gscale.compact .gs-track { height: 34px; border-bottom-width: 1px; }
.gscale.compact .gs-tick { height: 6px; }
.gscale.compact .gs-mk { padding: 0; }
.gscale.compact .gs-here::before { width: 9px; height: 9px; left: -4.5px; top: -4.5px; box-shadow: 0 0 0 3px var(--basalt); }
@media (max-width: 640px) { .gs-track { height: 120px; } .gs-mk span { display: none; } }
