/* ==========================================================================
   WATTS & KM — Design system
   Thème : cockpit nocturne. Voir DESIGN.md.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fontes auto-hébergées (aucune requête tierce — contrainte RGPD)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/source-serif-4-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Repli pour les moteurs sans OKLCH (< 2023) */
  --bg: #161616;         --bg-deep: #0a0a0a;
  --surface: #232323;    --surface-2: #2f2f2f;
  --line: #545454;       --line-strong: #7a7a7a;  --line-soft: #3a3a3a;
  --ink: #f8f8f8;        --ink-2: #c6c6c6;   --muted: #9a9a9a;
  --signal: #b6f07a;     --signal-dim: #7fae4e;
  --moss: #33421f;       --ember: #b2551c;
}
@supports (color: oklch(0.5 0.1 120)) {
  :root {
    --bg: oklch(0.085 0 0);
    --bg-deep: oklch(0.04 0 0);
    --surface: oklch(0.135 0 0);
    --surface-2: oklch(0.185 0 0);
    --line: oklch(0.32 0 0);
    --line-strong: oklch(0.45 0 0);
    --line-soft: oklch(0.22 0 0);
    --ink: oklch(0.975 0 0);
    --ink-2: oklch(0.80 0 0);
    --muted: oklch(0.655 0 0);
    --signal: oklch(0.86 0.15 128);
    --signal-dim: oklch(0.62 0.12 130);
    --moss: oklch(0.295 0.058 128);
    --ember: oklch(0.525 0.145 45);
  }
}

:root {
  /* Typographie */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-prose: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.81rem + 0.14vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.20vw, 1.10rem);
  --step-1: clamp(1.25rem, 1.17rem + 0.40vw, 1.48rem);
  --step-2: clamp(1.56rem, 1.41rem + 0.75vw, 2.05rem);
  --step-3: clamp(1.80rem, 1.55rem + 1.25vw, 2.75rem);
  --step-4: clamp(2.20rem, 1.80rem + 2.00vw, 3.40rem);
  --step-5: clamp(2.15rem, 1.55rem + 2.90vw, 4.40rem);

  /* Espacement */
  --sp-3xs: 0.25rem;  --sp-2xs: 0.5rem;  --sp-xs: 0.75rem;
  --sp-s: 1rem;       --sp-m: 1.5rem;    --sp-l: 2.25rem;
  --sp-xl: 3.5rem;    --sp-2xl: clamp(3rem, 2.1rem + 3.4vw, 5.25rem);
  --sp-3xl: clamp(4.5rem, 3rem + 6.5vw, 8.5rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 68ch;
  --wrap: 1280px;
  --wrap-narrow: 760px;

  --radius: 4px;
  --radius-lg: 10px;

  /* Mouvement */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 420ms;

  /* Empilement */
  --z-base: 1;
  --z-sticky: 100;
  --z-drawer: 200;
  --z-header: 300;
  --z-modal: 400;

  /* Composantes sRGB des couleurs de fond, pour composer des transparences
     avec rgb(... / alpha). color-mix() avec `transparent` donne des résultats
     inconstants selon les moteurs : à éviter sur les voiles photo. */
  --bg-rgb: 22 22 22;
  --surface-rgb: 35 35 35;
  --moss-rgb: 51 66 31;
  --signal-rgb: 182 240 122;

  color-scheme: dark;
  accent-color: var(--signal);
}

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain très léger : évite le banding des dégradés sur fond noir */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; background-color: var(--surface); }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }
table { border-collapse: collapse; }

:where(a) { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--signal); color: var(--bg); }

.skip-link {
  position: absolute;
  top: var(--sp-2xs);
  left: var(--sp-2xs);
  z-index: 999;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Typographie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: var(--step-5); font-variation-settings: 'wdth' 116; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); font-variation-settings: 'wdth' 112; }
h3 { font-size: var(--step-1); font-variation-settings: 'wdth' 105; line-height: 1.18; letter-spacing: -0.018em; }
h4 { font-size: var(--step-0); font-variation-settings: 'wdth' 100; line-height: 1.25; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 46ch;
  font-weight: 400;
}

.label {
  font-size: var(--step--2);
  font-variation-settings: 'wdth' 78;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.num { font-variant-numeric: tabular-nums; }

.mark { color: var(--signal); }
.mark-ember { color: var(--ember); }

/* --------------------------------------------------------------------------
   5. Mise en page
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: var(--z-base);
}
.wrap--narrow { width: min(100%, var(--wrap-narrow)); }

.section { padding-block: var(--sp-2xl); }
.section--tight { padding-block: var(--sp-xl); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-m);
  margin-bottom: var(--sp-l);
  padding-bottom: var(--sp-s);
  border-bottom: 1px solid var(--line);
}
.section-head p { color: var(--muted); max-width: 42ch; font-size: var(--step--1); }

.rule { border: 0; border-top: 1px solid var(--line-soft); }

/* --------------------------------------------------------------------------
   6. En-tête
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgb(var(--bg-rgb) / 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  min-height: 4.25rem;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  font-variation-settings: 'wdth' 118;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo__amp { color: var(--signal); font-weight: 600; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.6rem); }
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--ink); }

.header .btn { flex-shrink: 0; }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.burger__lines::before, .burger__lines::after { content: ''; position: absolute; }
.burger__lines::before { transform: translateY(-5.5px); }
.burger__lines::after { transform: translateY(5.5px); }
.burger[aria-expanded='true'] .burger__lines { background: transparent; }
.burger[aria-expanded='true'] .burger__lines::before { transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger__lines::after { transform: rotate(-45deg); }

@media (max-width: 60rem) {
  .burger { display: grid; position: relative; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-s) var(--gutter) var(--sp-l);
    max-height: calc(100svh - 4.25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
  }
  .nav[data-open='true'] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 0.95rem 0;
    font-size: var(--step-0);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: var(--sp-m); }
  .nav__cta .btn { display: flex; width: 100%; }
}

/* --------------------------------------------------------------------------
   7. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 700;
  font-variation-settings: 'wdth' 96;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1em; height: 1em; flex: none; }

.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: color-mix(in oklab, var(--ink) 82%, var(--signal)); }

.btn--signal { background: var(--signal); color: var(--bg); }
.btn--signal:hover { background: color-mix(in oklab, var(--signal) 84%, white); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); background: var(--surface); }

.btn--wide { width: 100%; }
.btn--sm { min-height: 40px; padding: 0.5rem 0.9rem; font-size: var(--step--2); }

/* --------------------------------------------------------------------------
   8. Premier écran
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(80svh, 720px);
  display: flex;
  align-items: flex-end;
  padding-block: var(--sp-2xl) var(--sp-xl);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 9%;
  filter: saturate(0.55) contrast(1.12) brightness(1.02);
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(var(--bg-rgb) / 0.96) 0%, rgb(var(--bg-rgb) / 0.20) 58%, rgb(var(--bg-rgb) / 0) 100%),
    linear-gradient(to right, rgb(var(--bg-rgb) / 0.93) 0%, rgb(var(--bg-rgb) / 0.82) 34%, rgb(var(--bg-rgb) / 0.34) 62%, rgb(var(--bg-rgb) / 0) 92%);
}
.hero__inner { display: grid; gap: var(--sp-m); max-width: 58rem; }
.hero h1 { max-width: 21ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-top: var(--sp-2xs); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-m);
  margin-top: var(--sp-s);
  padding-top: var(--sp-s);
  border-top: 1px solid var(--line);
  font-size: var(--step--2);
  color: var(--muted);
}
.hero__meta strong { color: var(--ink-2); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. Mention d'affiliation
   -------------------------------------------------------------------------- */
.aff-note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--step--2);
  line-height: 1.5;
}
.aff-note svg { width: 1.05em; height: 1.05em; flex: none; margin-top: 0.15em; color: var(--signal-dim); }
.aff-note a { color: var(--ink-2); }

.aff-strip {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--step--2);
  color: var(--muted);
}
.aff-strip .wrap { padding-block: 0.55rem; display: flex; gap: 0.55rem; align-items: center; justify-content: center; text-align: center; }
.aff-strip svg { width: 1em; height: 1em; flex: none; color: var(--signal-dim); }
.aff-strip a { color: var(--ink-2); text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   10. Champ d'instrument
   -------------------------------------------------------------------------- */
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.field {
  background: var(--bg);
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}
.field dt { font-size: var(--step--2); font-variation-settings: 'wdth' 78; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field dd { font-size: var(--step-1); font-weight: 700; font-variation-settings: 'wdth' 100; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.field dd small { font-size: 0.66em; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* --------------------------------------------------------------------------
   11. Plaque appareil (illustration, pas une photo produit)
   -------------------------------------------------------------------------- */
.device {
  --dev-w: 132px;
  --dev-ar: 0.66;
  --dev-r: 13px;
  --dev-tint: var(--signal);
  width: var(--dev-w);
  aspect-ratio: var(--dev-ar);
  flex: none;
  position: relative;
  border-radius: var(--dev-r);
  background: linear-gradient(170deg, oklch(0.26 0 0), oklch(0.13 0 0) 55%, oklch(0.09 0 0));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 oklch(0.42 0 0 / 0.55), 0 12px 28px -18px black;
  padding: calc(var(--dev-w) * 0.088);
  display: grid;
}
.device::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 34%;
  height: 5px;
  transform: translateX(-50%);
  background: oklch(0.18 0 0);
  border-radius: 0 0 3px 3px;
}
.device__screen {
  border-radius: calc(var(--dev-r) * 0.42);
  background:
    radial-gradient(90% 120% at 50% 0%, rgb(var(--signal-rgb) / 0.12), rgb(var(--signal-rgb) / 0) 70%),
    oklch(0.115 0 0);
  border: 1px solid oklch(0.30 0 0);
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: calc(var(--dev-w) * 0.055);
  padding: calc(var(--dev-w) * 0.075) calc(var(--dev-w) * 0.065);
}
.device__row { display: grid; gap: 2px; }
.device__val {
  font-size: calc(var(--dev-w) * 0.155);
  font-weight: 800;
  font-variation-settings: 'wdth' 88;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--dev-tint);
  line-height: 1;
}
.device__key {
  font-size: calc(var(--dev-w) * 0.062);
  font-variation-settings: 'wdth' 72;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.62 0 0);
  line-height: 1;
}
.device__trace { width: 100%; height: auto; color: var(--dev-tint); opacity: 0.62; }
.device__btns { position: absolute; inset-inline: -1px; bottom: 8%; display: flex; justify-content: space-between; pointer-events: none; }
.device__btns i { display: block; width: 3px; height: calc(var(--dev-w) * 0.10); background: oklch(0.34 0 0); border-radius: 2px; }
.device--mono { --dev-tint: oklch(0.78 0 0); }
.device--lg { --dev-w: 158px; }
.device--sm { --dev-w: 84px; }
.device--sm .device__screen { align-content: center; padding: calc(var(--dev-w) * 0.12); }
.device--sm .device__row { display: none; }
.device--sm .device__trace { opacity: 0.85; }

/* --------------------------------------------------------------------------
   11 bis. Photo produit réelle (remplace la plaque quand elle existe)
   -------------------------------------------------------------------------- */
.shot {
  --shot-w: 158px;
  width: var(--shot-w);
  aspect-ratio: 4 / 5;
  flex: none;
  display: grid;
  place-items: center;
  padding: 8%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: contain; background: none; }
.shot--sm { --shot-w: 84px; border-radius: var(--radius); padding: 6%; }
.shot--lg { --shot-w: 170px; }
.shot--xl { --shot-w: 100%; max-width: 20rem; }

/* Visuel sur fond blanc : plaque claire, le blanc s'y fond par multiplication. */
.shot--blanc {
  background: linear-gradient(168deg, oklch(0.955 0.003 120), oklch(0.875 0.005 120));
  border: 1px solid oklch(0.80 0.005 120);
}
.shot--blanc img { mix-blend-mode: multiply; }

/* PNG détouré : plaque sombre, aucun mélange. */
.shot--transparent {
  background: radial-gradient(80% 70% at 50% 25%, var(--surface-2), var(--surface) 70%);
  border: 1px solid var(--line-soft);
}

/* Photo en situation : plein cadre, sans plaque. */
.shot--situation { padding: 0; border: 0; background: var(--surface); }
.shot--situation img { object-fit: cover; }

/* --------------------------------------------------------------------------
   12. Sélection éditoriale (podium asymétrique)
   -------------------------------------------------------------------------- */
.picks { display: grid; gap: var(--sp-m); grid-template-columns: 1fr; }
@media (min-width: 62rem) {
  .picks { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .picks__runners { display: grid; gap: var(--sp-s); }
}

.pick {
  position: relative;
  display: grid;
  gap: var(--sp-s);
  padding: var(--sp-m);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg) 70%);
  transition: border-color var(--dur) var(--ease);
}
.pick:hover { border-color: var(--line); }
.pick__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: start;
  justify-self: start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: var(--step--2);
  font-weight: 700;
  font-variation-settings: 'wdth' 80;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--signal);
  color: var(--bg);
}
.pick__tag--ember { background: var(--ember); color: white; }
.pick__tag--ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); }
.pick__top { display: flex; gap: var(--sp-m); align-items: center; flex-wrap: wrap; }
.pick__title { font-size: var(--step-2); font-variation-settings: 'wdth' 108; }
.pick__title a { text-decoration: none; }
.pick__title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.pick__why { color: var(--ink-2); max-width: 48ch; }
.pick__price { font-size: var(--step-1); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pick__price small { display: block; font-size: 0.62em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pick__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); position: relative; z-index: 2; }

.picks--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); align-items: start; }
@media (min-width: 62rem) { .picks--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); } }
.pick--runner { padding: var(--sp-s) var(--sp-m) var(--sp-m); }
.pick__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: start;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--signal);
}
.pick__more svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.pick:hover .pick__more svg { transform: translateX(3px); }
.pick--runner .pick__title { font-size: var(--step-1); }
.pick--runner .pick__top { gap: var(--sp-s); }

/* --------------------------------------------------------------------------
   13. Comparateur
   -------------------------------------------------------------------------- */
.filters {
  display: grid;
  gap: var(--sp-s);
  padding: var(--sp-m);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-bottom: var(--sp-m);
}
.filters__row { display: flex; flex-wrap: wrap; gap: var(--sp-s) var(--sp-l); }
.filters__group { display: grid; gap: 0.55rem; }
.filters__group > .label { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  min-height: 38px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--signal); border-color: var(--signal); color: var(--bg); }

.filters__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-s); border-top: 1px solid var(--line-soft); padding-top: var(--sp-s); }
.filters__count { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.filters__count b { color: var(--ink); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  scrollbar-color: var(--line) transparent;
}
.ctable { width: 100%; min-width: 62rem; font-size: var(--step--1); }
.ctable caption { text-align: left; padding: var(--sp-s) var(--sp-m); color: var(--muted); font-size: var(--step--2); border-bottom: 1px solid var(--line-soft); }
.ctable th, .ctable td { padding: 0.85rem 0.9rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.ctable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-2);
  font-size: var(--step--2);
  font-variation-settings: 'wdth' 80;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.ctable tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.ctable tbody tr:hover { background: rgb(var(--moss-rgb) / 0.45); }
.ctable tbody tr:last-child td { border-bottom: 0; }
.ctable th[scope='row'] { min-width: 16rem; font-weight: 400; }
.ctable th[scope='row'] a { display: inline-block; padding-block: 0.25rem; }
.ctable .num, .ctable td[data-num] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctable .yes { color: var(--signal); font-weight: 700; white-space: nowrap; }
.ctable .no { color: var(--muted); white-space: nowrap; }

.sortable {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding-block: 0.2rem;
  gap: 0.35rem;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}
.sortable svg { width: 0.85em; height: 0.85em; opacity: 0.4; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.sortable:hover svg { opacity: 0.9; }
th[aria-sort='ascending'] .sortable svg { opacity: 1; color: var(--signal); }
th[aria-sort='descending'] .sortable svg { opacity: 1; color: var(--signal); transform: rotate(180deg); }

.cell-model { display: grid; gap: 0.2rem; }
.cell-model strong { display: block; font-size: var(--step-0); font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.cell-model a { text-decoration: none; color: var(--ink); }
.cell-model a:hover strong { color: var(--signal); }
.cell-model .meta { display: block; font-size: var(--step--2); color: var(--muted); }

/* ------------------------------------------------- Tableau en fiches (mobile)
   Sous 62rem, un tableau de 8 colonnes n'est pas consultable : on ne voit
   qu'un tiers de colonne à la fois. Chaque ligne devient une fiche empilée,
   avec le nom de la colonne repris devant sa valeur. Le HTML reste un
   <table> sémantique unique : ni duplication de contenu, ni JavaScript.
   -------------------------------------------------------------------------- */
@media (max-width: 61.99rem) {
  .table-scroll { overflow: visible; border: 0; border-radius: 0; }
  .ctable { display: block; width: 100%; min-width: 0; }
  .ctable caption { display: block; width: 100%; padding: 0 0 var(--sp-s); border: 0; }
  .ctable thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ctable tbody { display: grid; gap: var(--sp-s); }
  .ctable tbody tr {
    display: block;
    padding: var(--sp-s) var(--sp-m);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--surface);
  }
  .ctable tbody tr:hover { background: var(--surface); }
  .ctable th[scope='row'] {
    display: block;
    min-width: 0;
    padding: 0 0 var(--sp-xs);
    margin-bottom: var(--sp-3xs);
    border-bottom: 1px solid var(--line);
  }
  .ctable th[scope='row'] a { padding-block: 0; }
  .cell-model strong { font-size: var(--step-1); }
  .ctable tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-s);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .ctable tbody tr td:last-child { border-bottom: 0; }
  .ctable tbody td::before {
    content: attr(data-label);
    flex: none;
    font-size: var(--step--2);
    font-variation-settings: 'wdth' 78;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* Tri au sélecteur : indispensable sur mobile, où les en-têtes sont masqués. */
.filters__tri { display: flex; align-items: end; gap: var(--sp-s); flex-wrap: wrap; }
.sort-mobile { display: none; gap: 0.4rem; flex-direction: column; }
.sort-mobile select {
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
}
@media (max-width: 61.99rem) { .sort-mobile { display: flex; } }

.empty-state {
  display: none;
  padding: var(--sp-xl) var(--sp-m);
  text-align: center;
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); margin-bottom: var(--sp-2xs); }
.is-empty .empty-state { display: block; }
.is-empty .table-scroll { display: none; }

/* --------------------------------------------------------------------------
   14. Profils d'usage
   -------------------------------------------------------------------------- */
.profiles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2xs) var(--sp-l);
  padding: var(--sp-m) 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: padding-inline var(--dur) var(--ease);
}
@media (min-width: 50rem) {
  .profile { grid-template-columns: 15rem 1fr auto; align-items: center; }
  .profile:hover { padding-inline: var(--sp-s); background: rgb(var(--surface-rgb) / 0.6); }
}
.profile h3 { font-size: var(--step-1); }
.profile p { color: var(--muted); font-size: var(--step--1); max-width: 52ch; }
.profile__link { text-decoration: none; font-weight: 700; font-size: var(--step--1); color: var(--signal); white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; }
.profile__link::after { content: ''; position: absolute; inset: 0; }
.profile__link svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.profile:hover .profile__link svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   15. Critères (liste réglée, pas de grille de cartes)
   -------------------------------------------------------------------------- */
.criteria { display: grid; gap: 0; counter-reset: crit; }
.criterion {
  display: grid;
  gap: var(--sp-2xs) var(--sp-l);
  padding: var(--sp-m) 0;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 54rem) {
  .criterion { grid-template-columns: 3rem 18rem 1fr; align-items: start; }
}
.criterion__n { counter-increment: crit; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--signal-dim); font-size: var(--step--1); padding-top: 0.35em; }
.criterion__n::before { content: counter(crit, decimal-leading-zero); }
.criterion h3 { font-size: var(--step-1); }
.criterion p { color: var(--ink-2); font-size: var(--step-0); max-width: 62ch; }
.criterion p + p { margin-top: var(--sp-2xs); }

/* --------------------------------------------------------------------------
   16. Bande photo
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  isolation: isolate;
  padding-block: var(--sp-3xl);
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.5) contrast(1.06) brightness(0.9);
}
/* Le texte occupe la moitié gauche : on assombrit là, et on laisse la photo
   respirer à droite. Un voile uniforme rendrait l'image invisible. */
.band__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgb(var(--bg-rgb) / 0.93) 0%,
      rgb(var(--bg-rgb) / 0.66) 42%,
      rgb(var(--bg-rgb) / 0.10) 100%),
    linear-gradient(to bottom,
      rgb(var(--bg-rgb) / 0.45) 0%,
      rgb(var(--bg-rgb) / 0) 35%,
      rgb(var(--bg-rgb) / 0.45) 100%);
}
.band--produit { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.band--produit h2 {
  font-size: var(--step--2);
  font-variation-settings: 'wdth' 78;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-xs);
}
.band__actions { margin-top: var(--sp-m); }
.band__lead {
  max-width: 30ch;
  font-size: var(--step-2);
  font-weight: 700;
  font-variation-settings: 'wdth' 106;
  letter-spacing: -0.022em;
  line-height: 1.18;
  text-wrap: balance;
}
.band blockquote { max-width: 26ch; font-size: var(--step-3); font-weight: 700; font-variation-settings: 'wdth' 110; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; }
.band cite { display: block; margin-top: var(--sp-s); font-style: normal; font-size: var(--step--1); color: var(--muted); }

/* --------------------------------------------------------------------------
   17. Articles / cartes de contenu
   -------------------------------------------------------------------------- */
.posts { display: grid; gap: var(--sp-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.post {
  position: relative;
  display: grid;
  gap: var(--sp-xs);
  align-content: start;
  padding-top: var(--sp-s);
  border-top: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}
.post:hover { border-top-color: var(--signal); }
.post__media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) brightness(0.82); transition: filter var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.post:hover .post__media img { filter: saturate(0.75) brightness(0.95); transform: scale(1.03); }
.post h3 { font-size: var(--step-1); }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ''; position: absolute; inset: 0; }
.post p { color: var(--muted); font-size: var(--step--1); }
.post__meta { font-size: var(--step--2); color: var(--muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-s);
  padding: var(--sp-s) 0;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: var(--step-1);
  font-weight: 700;
  font-variation-settings: 'wdth' 104;
  letter-spacing: -0.018em;
  line-height: 1.25;
  transition: color var(--dur-fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--signal); }
.faq summary::after {
  content: '';
  flex: none;
  width: 12px; height: 12px;
  margin-top: 0.5em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__body { padding-bottom: var(--sp-m); color: var(--ink-2); max-width: var(--measure); }
.faq__body p + p { margin-top: var(--sp-2xs); }

/* --------------------------------------------------------------------------
   19. Prose longue (blog, guide, pages légales)
   -------------------------------------------------------------------------- */
.prose {
  font-family: var(--font-prose);
  font-size: clamp(1.06rem, 1rem + 0.28vw, 1.2rem);
  font-weight: 420;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: var(--measure);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: var(--step-2);
  margin-top: 2.2em;
  padding-top: 1em;
  border-top: 1px solid var(--line-soft);
}
.prose h3 { font-family: var(--font-display); color: var(--ink); margin-top: 1.9em; }
.prose h4 { font-family: var(--font-display); color: var(--ink); margin-top: 1.6em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal-dim); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.prose a:hover { color: var(--signal); text-decoration-color: var(--signal); }
.prose ul, .prose ol { display: grid; gap: 0.5em; padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ''; position: absolute; left: -1.15em; top: 0.72em; width: 6px; height: 1.5px; background: var(--signal-dim); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--signal-dim); font-family: var(--font-display); font-weight: 700; font-size: 0.85em; }
.prose blockquote {
  margin-block: 1.6em;
  padding: var(--sp-m);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--ink);
}
.prose figure { margin-block: 1.8em; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { margin-top: 0.6rem; font-family: var(--font-display); font-size: var(--step--2); color: var(--muted); }
.prose .table-wrap {
  margin-block: 1.8em;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  scrollbar-color: var(--line) transparent;
}
.prose .table-wrap:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.prose table { width: 100%; font-family: var(--font-display); font-size: var(--step--1); margin-block: 1.8em; }
.prose .table-wrap table { margin: 0; min-width: 30rem; }
.prose .table-wrap :is(th, td):first-child { padding-left: 1rem; }
.prose .table-wrap :is(th, td):last-child { padding-right: 1rem; }
.prose .table-wrap tr:last-child :is(th, td) { border-bottom: 0; }
.prose th, .prose td { padding: 0.7rem 0.8rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
.prose thead th { font-size: var(--step--2); text-transform: uppercase; letter-spacing: 0.07em; font-variation-settings: 'wdth' 80; color: var(--ink); background: var(--surface); }

/* Bloc « réponse courte » — première chose lue, humaine ou machine */
.tldr {
  border: 1px solid var(--signal-dim);
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--moss) 55%, var(--bg));
  padding: var(--sp-m);
  font-family: var(--font-display);
  font-size: var(--step-0);
  color: var(--ink);
  max-width: var(--measure);
}
.tldr h2 {
  all: unset;
  display: block;
  font-family: var(--font-display);
  font-size: var(--step--2);
  font-variation-settings: 'wdth' 78;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-2xs);
}
.tldr p { text-wrap: pretty; }
.tldr p + p { margin-top: var(--sp-2xs); }
.tldr strong { font-weight: 700; }
.tldr a { color: var(--ink); text-decoration-color: var(--signal); }

.toc {
  font-family: var(--font-display);
  font-size: var(--step--1);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--sp-s) var(--sp-m);
  background: var(--surface);
}
.toc > .label { display: block; margin-bottom: var(--sp-2xs); }
.toc ol { display: grid; gap: 0.35rem; list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { color: var(--ink-2); text-decoration: none; display: inline-flex; gap: 0.6rem; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--signal-dim); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--signal); }

/* --------------------------------------------------------------------------
   20. Fiche produit
   -------------------------------------------------------------------------- */
.review-head { display: grid; gap: var(--sp-m); }
@media (min-width: 60rem) {
  .review-head { grid-template-columns: 1fr 20rem; align-items: start; gap: var(--sp-2xl); }
}
.review-head__media {
  display: grid;
  place-items: center;
  padding: var(--sp-l);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: radial-gradient(80% 70% at 50% 30%, var(--surface), var(--bg) 78%);
}

.verdict {
  display: grid;
  gap: var(--sp-s);
  padding: var(--sp-m);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.verdict__score { display: flex; align-items: baseline; gap: 0.5rem; }
.verdict__score b { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--signal); }
.verdict__score span { color: var(--muted); font-size: var(--step--1); }

.pros-cons { display: grid; gap: var(--sp-m); }
@media (min-width: 44rem) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons ul { display: grid; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-2); }
.pros-cons li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; align-items: start; }
.pros-cons svg { width: 1.1rem; height: 1.1rem; margin-top: 0.2em; }
.pros li svg { color: var(--signal); }
.cons li svg { color: var(--ember); }

.sources { font-size: var(--step--2); color: var(--muted); display: grid; gap: 0.4rem; }
.sources a { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   21. Fil d'Ariane
   -------------------------------------------------------------------------- */
.crumbs { padding-block: var(--sp-s); font-size: var(--step--2); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 0.4rem; color: var(--line); }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--signal); }
.crumbs [aria-current='page'] { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   22. Pied de page
   -------------------------------------------------------------------------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line-soft); padding-block: var(--sp-xl) var(--sp-m); margin-top: var(--sp-2xl); }
.footer__grid { display: grid; gap: var(--sp-l); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer h2 { font-size: var(--step--2); font-variation-settings: 'wdth' 78; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-xs); }
.footer ul { display: grid; gap: 0.5rem; font-size: var(--step--1); }
.footer a { color: var(--ink-2); text-decoration: none; text-underline-offset: 3px; }
.footer a:hover { color: var(--signal); text-decoration: underline; }
.footer__brand p { color: var(--muted); font-size: var(--step--1); max-width: 32ch; margin-top: var(--sp-xs); }
.footer__legal { margin-top: var(--sp-xl); padding-top: var(--sp-s); border-top: 1px solid var(--line-soft); font-size: var(--step--2); color: var(--muted); display: grid; gap: var(--sp-2xs); }
.footer__legal p { max-width: 90ch; }

/* --------------------------------------------------------------------------
   23. Mouvement
   -------------------------------------------------------------------------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.has-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.has-js [data-reveal-stagger] > * { opacity: 0; transform: translateY(12px); }
.has-js [data-reveal-stagger].is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.has-js .hero__inner > * { animation: hero-rise 720ms var(--ease) both; }
.has-js .hero__inner > *:nth-child(1) { animation-delay: 120ms; }
.has-js .hero__inner > *:nth-child(2) { animation-delay: 200ms; }
.has-js .hero__inner > *:nth-child(3) { animation-delay: 280ms; }
.has-js .hero__inner > *:nth-child(4) { animation-delay: 360ms; }

/* L'image du premier écran n'est pas animée : c'est l'élément LCP, et l'animer
   la promeut sur une couche de composition pour un gain visuel négligeable.
   L'entrée est portée par le texte, qui coûte beaucoup moins cher à composer. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .has-js [data-reveal],
  .has-js [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   24. Utilitaires
   -------------------------------------------------------------------------- */
.stack-s > * + * { margin-top: var(--sp-s); }
.stack-m > * + * { margin-top: var(--sp-m); }
.stack-l > * + * { margin-top: var(--sp-l); }
.flow-actions { display: flex; flex-wrap: wrap; gap: var(--sp-xs); }
.text-muted { color: var(--muted); }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

/* --------------------------------------------------------------------------
   25. Notes éditoriales (fiches détaillées)
   -------------------------------------------------------------------------- */
.scores { display: grid; gap: 0.6rem; }
.score { display: grid; gap: 0.25rem; }
.score dt { font-size: var(--step--2); font-variation-settings: 'wdth' 82; font-weight: 600; color: var(--ink-2); }
.score dd { display: flex; align-items: center; gap: 0.6rem; }
.score__bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.score__bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 0%);
  background: var(--signal-dim);
  border-radius: inherit;
}
.score dd b { font-size: var(--step--1); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: right; }

/* Tableaux de prose : même traitement en fiches sous 62rem, les libellés de
   colonne étant injectés au moment de la génération. */
@media (max-width: 61.99rem) {
  .prose .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .prose .table-wrap table { display: block; min-width: 0; width: 100%; margin: 0; }
  .prose .table-wrap thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .prose .table-wrap tbody { display: grid; gap: var(--sp-s); }
  .prose .table-wrap tbody tr {
    display: block;
    padding: var(--sp-s) var(--sp-m);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .prose .table-wrap th[scope='row'] {
    display: block;
    padding: 0 0 var(--sp-2xs);
    margin-bottom: var(--sp-2xs);
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--step-0);
    font-weight: 700;
  }
  .prose .table-wrap td {
    display: grid;
    gap: 0.15rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .prose .table-wrap tr td:last-child { border-bottom: 0; }
  .prose .table-wrap td::before {
    content: attr(data-label);
    font-size: var(--step--2);
    font-variation-settings: 'wdth' 78;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
  }
}
