/* ============================================================
   LMU Stats Viewer — site de présentation
   Palette « Le Mans » : #0A0E1A (fond sombre) + #FFB400 (ambre)
   Thème sombre par défaut, bascule clair via [data-theme="light"]
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --amber: #FFB400;
  --amber-soft: #FFC94A;
  /* Variante « encre » de l'ambre : le jaune vif passe très bien sur fond
     sombre, mais devient illisible en texte sur fond clair. Tout ce qui se
     lit utilise --amber-ink, tout ce qui décore garde --amber. */
  --amber-ink: #FFB400;
  --red: #E0451C;
  --blue: #5B9DFF;
  --green: #35C98C;
  --violet: #A183FF;

  --bg: #0A0E1A;
  --bg-2: #0E1424;
  --bg-3: #141C31;
  --surface: #111a2e;
  --border: #22304d;
  --text: #E8ECF6;
  --muted: #94A3BE;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .75);
  --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, .8);
  --glow: rgba(255, 180, 0, .16);

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 20px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="light"] {
  --bg: #F7F8FC;
  --bg-2: #FFFFFF;
  --bg-3: #EEF1F8;
  --surface: #FFFFFF;
  --border: #DFE4EF;
  --text: #12182A;
  --muted: #5C6780;
  --shadow: 0 20px 50px -22px rgba(16, 24, 48, .28);
  --shadow-sm: 0 8px 24px -16px rgba(16, 24, 48, .35);
  --glow: rgba(255, 180, 0, .22);

  --amber-ink: #8F6300;
  --blue: #2A6FD6;
  --green: #12996A;
  --violet: #7B55E0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-3); padding: .12em .4em; border-radius: 5px; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.16; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.05rem); letter-spacing: -.038em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: 1.08rem; }
p  { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }

/* Le sprite d'icônes ne doit rien occuper dans le flux. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: #0A0E1A; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Apparition au défilement — uniquement si JS tourne (cf. index.html). */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  /* Les effets de mouvement sur les captures sont désactivés ; le glow et le
     changement de bordure au survol, eux, restent (ils n'animent rien). */
  .hero-shot::after,
  .shot-open::after { display: none; }
  .shot img,
  .shot:hover img { transform: none; transition: none; }
  .spot-shot,
  .spot-rev .spot-shot,
  .spot-shot:hover,
  .spot-rev .spot-shot:hover { transform: none; transition: box-shadow .2s ease, border-color .2s ease; }
  .shot-open::before { transition: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 15px; font-size: .87rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 11px; }
.btn-primary {
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: #241700;
  box-shadow: 0 10px 26px -10px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 38px -14px var(--glow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-3); border-color: var(--muted); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.icon-btn:hover { background: var(--bg-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -.015em; text-decoration: none; font-size: 1rem;
}
.brand img { border-radius: 6px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 13px; border-radius: 8px; text-decoration: none;
  color: var(--muted); font-size: .93rem; font-weight: 500;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--text); background: var(--bg-3); }
.nav a[aria-current="true"] { color: var(--text); }
.nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--amber);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Sélecteur de langue */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 11px; border-radius: 9px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.lang-btn:hover { background: var(--bg-3); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 148px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  display: flex; align-items: center; gap: 9px;
  width: 100%; text-align: left;
  padding: 8px 11px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer;
}
/* Drapeaux : un filet clair les détache aussi bien du fond sombre que du blanc. */
.flag {
  width: 17px; height: 13px; flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent);
}
.lang-menu button:hover { background: var(--bg-3); }
.lang-menu button[aria-current="true"] { color: var(--amber-ink); font-weight: 600; }

/* Icônes thème */
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }

.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 clamp(44px, 6vw, 78px);
  text-align: center;
}
/* Halo ambré */
.hero::before {
  content: ""; position: absolute; inset: -22% 50% auto; translate: 50% 0;
  width: min(1150px, 135%); height: 680px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}
/* Grille technique très discrète, en fondu vers le bas */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 0%, transparent 68%);
  opacity: .5;
}
.hero > .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 8px 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-2);
  font-size: .82rem; font-weight: 600; color: var(--muted);
  margin: 0 0 24px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px var(--glow); flex: none;
}
/* Badge de version : masqué tant que GitHub n'a pas répondu, et cliquable
   vers les notes de version. */
.eyebrow .ver {
  margin-left: 2px;
  padding: 2px 9px; border-radius: 999px; text-decoration: none;
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  color: var(--amber-ink); font-variant-numeric: tabular-nums; font-size: .8rem;
  transition: background-color .2s ease;
}
.eyebrow .ver:hover { background: color-mix(in srgb, var(--amber) 30%, transparent); }
.eyebrow .ver::before { content: "v"; opacity: .7; }

.hero h1 { max-width: 21ch; margin-inline: auto; }
.hero h1::after {
  content: ""; display: block; width: 74px; height: 4px; margin: 24px auto 0;
  background: linear-gradient(90deg, var(--red), var(--amber)); border-radius: 3px;
}
.lead {
  max-width: 64ch; margin: 24px auto 0;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted);
  text-wrap: pretty;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.fineprint { margin-top: 15px; font-size: .84rem; color: var(--muted); }

/* Capture principale, présentée dans une fenêtre stylisée */
.hero-shot {
  position: relative;
  margin: clamp(40px, 5vw, 66px) 0 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px -30px var(--glow);
  background: var(--surface);
}
.hero-shot img { width: 100%; height: auto; }

/* Un reflet balaie la capture une fois, au chargement — comme la lumière des
   stands qui passe sur une carrosserie. */
.hero-shot::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background: linear-gradient(104deg,
    transparent 38%,
    color-mix(in srgb, var(--amber) 22%, transparent) 47%,
    rgba(255, 255, 255, .12) 50%,
    color-mix(in srgb, var(--amber) 22%, transparent) 53%,
    transparent 62%);
  transform: translateX(-130%);
  animation: sheen 2.6s var(--ease) 1s 1 both;
}
@keyframes sheen { to { transform: translateX(130%); } }

.win-bar {
  display: flex; align-items: center; gap: 12px;
  height: 34px; padding: 0 12px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}
.win-dots { display: inline-flex; gap: 6px; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.win-dots i:first-child { background: color-mix(in srgb, var(--red) 70%, var(--border)); }
.win-title {
  flex: 1; text-align: center;
  font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: .01em;
}
.win-ctrls { display: inline-flex; gap: 9px; }
.win-ctrls i { width: 9px; height: 1px; background: var(--border); }
.win-ctrls i:nth-child(2) { height: 8px; width: 8px; border: 1px solid var(--border); background: none; }

.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none; margin: 28px 0 0; padding: 0;
}
.chips li {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 9px 17px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: .86rem; color: var(--muted);
}
.chips strong { font-size: 1.08rem; color: var(--amber-ink); font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { margin-bottom: clamp(36px, 4vw, 52px); }
.kicker {
  margin: 0 0 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink);
}
.section-head h2 { margin-bottom: 0; max-width: 22ch; }
.section-lead { max-width: 66ch; color: var(--muted); font-size: 1.03rem; margin: 14px 0 0; text-wrap: pretty; }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .18s var(--ease), border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); box-shadow: var(--shadow); }
.card h3 { margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }

.ico {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--amber);
}
.ico svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Marqueur « bêta » : le Coach IA n'a pas le même degré de maturité que le
   reste, autant le dire à côté de son nom. */
.tag-beta {
  display: inline-block; vertical-align: middle;
  margin-left: 6px; padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--violet) 45%, transparent);
  background: color-mix(in srgb, var(--violet) 14%, transparent);
  color: var(--violet);
  font-size: .64rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}

.ico-amber  { color: var(--amber-ink);  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 34%, transparent); }
.ico-blue   { color: var(--blue);   box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 32%, transparent); }
.ico-green  { color: var(--green);  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 32%, transparent); }
.ico-red    { color: var(--red);    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 36%, transparent); }
.ico-violet { color: var(--violet); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 34%, transparent); }

/* ---------- Spotlight ---------- */
.spot {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  padding: clamp(30px, 4vw, 46px) 0;
}
.spot + .spot { border-top: 1px solid var(--border); }
.spot-rev .spot-text { order: 2; }
.spot-kicker {
  margin: 0 0 10px; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.spot-text h3 { font-size: clamp(1.3rem, 2.2vw, 1.72rem); letter-spacing: -.024em; margin-bottom: 12px; }
.spot-text > p { color: var(--muted); font-size: 1rem; margin-bottom: 18px; text-wrap: pretty; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li {
  position: relative; padding-left: 30px;
  font-size: .94rem; color: var(--text);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--amber) 16%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: .62em;
  width: 8px; height: 4.5px;
  border-left: 1.8px solid var(--amber-ink); border-bottom: 1.8px solid var(--amber-ink);
  rotate: -45deg;
}

/* Les captures des trois blocs sont légèrement tournées dans l'espace, comme
   un écran posé de biais sur un baquet ; elles se redressent au survol. */
.spot-shot {
  margin: 0; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transform: perspective(1600px) rotateY(-4.5deg) scale(.985);
  transition: transform .4s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.spot-rev .spot-shot { transform: perspective(1600px) rotateY(4.5deg) scale(.985); }
.spot-shot:hover,
.spot-rev .spot-shot:hover {
  transform: perspective(1600px) rotateY(0) scale(1) translateY(-4px);
  border-color: color-mix(in srgb, var(--amber) 45%, var(--border));
  box-shadow: var(--shadow), 0 0 60px -26px var(--glow);
}
.spot-shot img { width: 100%; height: auto; }

/* ---------- Galerie ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tab {
  padding: 8px 16px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.tab:hover { color: var(--text); background: var(--bg-3); }
.tab.is-active { background: var(--amber); border-color: var(--amber); color: #241700; }

.gallery { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.shot {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  transition: transform .18s var(--ease), border-color .2s ease, box-shadow .2s ease;
}
.shot:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--amber) 55%, var(--border));
  box-shadow: var(--shadow), 0 0 46px -22px var(--glow);
}
/* La capture est un vrai bouton : atteignable au clavier, annoncé comme cliquable. */
.shot-open {
  display: block; position: relative; width: 100%; padding: 0; margin: 0;
  border: 0; background: none; cursor: zoom-in; overflow: hidden;
}
.shot-open:focus-visible { outline-offset: -3px; }
.shot img {
  width: 100%; height: auto; border-bottom: 1px solid var(--border);
  transition: transform .5s var(--ease), filter .35s ease;
}
/* Au survol : la capture avance, un reflet la traverse et une bande
   rouge → ambre se déploie sous elle. */
.shot:hover img { transform: scale(1.045); filter: saturate(1.12) contrast(1.04); }

.shot-open::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--red), var(--amber));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.shot:hover .shot-open::before,
.shot-open:focus-visible::before { transform: scaleX(1); }

.shot-open::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(104deg,
    transparent 42%,
    rgba(255, 255, 255, .16) 50%,
    transparent 58%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.shot:hover .shot-open::after { transform: translateX(130%); }
.shot figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.shot figcaption strong { font-size: .95rem; }
.shot figcaption span { font-size: .85rem; color: var(--muted); }
.shot[hidden] { display: none; }

/* ---------- Étapes ---------- */
.steps {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.steps li {
  position: relative; padding: 26px 22px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step-n {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; margin-bottom: 12px;
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: #241700; font-weight: 700; font-size: .95rem;
}
.steps h3 { margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }

.pillars { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillars > div { padding-left: 16px; border-left: 2px solid var(--amber); }
.pillars strong { display: block; margin-bottom: 5px; }
.pillars p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Installation ---------- */
.split { display: grid; gap: 34px; grid-template-columns: 1.05fr .95fr; align-items: start; }
.install-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: i; }
.install-steps li {
  counter-increment: i; position: relative;
  padding: 0 0 26px 52px; border-left: 1px dashed var(--border); margin-left: 15px;
}
.install-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.install-steps li::before {
  content: counter(i);
  position: absolute; left: -16px; top: -2px;
  width: 31px; height: 31px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--amber-ink); font-weight: 700; font-size: .85rem;
}
.install-steps span { color: var(--muted); font-size: .96rem; }

.req { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.req h3 { margin-top: 0; }
.req table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.req th, .req td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: top; }
.req th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 12px; }
.req tr:last-child th, .req tr:last-child td { border-bottom: 0; }
.req em { color: var(--muted); font-style: normal; font-size: .84em; }

/* ---------- FAQ ---------- */
details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 10px; overflow: hidden;
  transition: border-color .2s ease;
}
details[open] { border-color: color-mix(in srgb, var(--amber) 40%, var(--border)); }
summary {
  padding: 17px 20px; cursor: pointer; font-weight: 600; font-size: .98rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; color: var(--amber-ink); font-size: 1.35rem; font-weight: 400;
  line-height: 1; transition: transform .2s var(--ease); flex: none;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 20px 19px; color: var(--muted); font-size: .94rem; }

/* ---------- CTA final ---------- */
.final {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--bg-2); border-top: 1px solid var(--border);
}
.final::before {
  content: ""; position: absolute; inset: auto 50% -60% ; translate: 50% 0;
  width: min(900px, 120%); height: 460px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.final .wrap { position: relative; }
.final h2 { margin-bottom: 12px; max-width: none; }
.final p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 46px 0 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 6px; }
.footer-brand strong { display: block; font-size: .95rem; }
.footer-brand span { font-size: .85rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .89rem; }
.footer-links a:hover { color: var(--amber-ink); }
.footer-legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-legal p { margin: 0 0 4px; font-size: .8rem; color: var(--muted); }
.footer-legal p:last-child { margin-bottom: 0; }

/* Le mot du développeur : un ton plus personnel que les mentions légales,
   donc un traitement à part. */
.footer-solo {
  display: flex; gap: 11px;
  margin-bottom: 16px !important;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 10px;
  background: var(--bg-3);
  font-size: .86rem !important;
  line-height: 1.6;
  max-width: 76ch;
}
.footer-solo::before {
  content: "🏁";
  font-size: 1rem; line-height: 1.4; flex: none;
}

/* ---------- Notes de version ---------- */
.cl-head { padding-bottom: clamp(30px, 4vw, 46px); }
.cl-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.03em; max-width: 20ch; }
.cl-head .cta-row { justify-content: flex-start; }

.cl-list { display: grid; gap: 18px; }
.cl-state { color: var(--muted); margin: 0; }

.cl-item {
  padding: 26px 26px 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.cl-item:first-child { border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); }

.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.cl-tag {
  padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 16%, transparent);
  color: var(--amber-ink); font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums;
}
.cl-tag::before { content: "v"; opacity: .7; }
.cl-meta time { color: var(--muted); font-size: .85rem; }
.cl-badge {
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-3);
  color: var(--muted); font-size: .76rem; font-weight: 600;
}
.cl-badge-pre { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 40%, var(--border)); }

.cl-item h2 { font-size: 1.25rem; letter-spacing: -.02em; margin: 0 0 14px; }

.cl-body { color: var(--muted); font-size: .95rem; }
.cl-body > :first-child { margin-top: 0; }
.cl-body > :last-child { margin-bottom: 0; }
.cl-body h3, .cl-body h4, .cl-body h5, .cl-body h6 {
  color: var(--text); font-size: .98rem; margin: 20px 0 8px;
}
.cl-body ul, .cl-body ol { margin: 0 0 12px; padding-left: 20px; }
.cl-body li { margin-bottom: 5px; }
.cl-body li::marker { color: var(--amber-ink); }
.cl-body a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cl-body a:hover { color: var(--amber-ink); }
.cl-body pre {
  margin: 0 0 12px; padding: 12px 14px; overflow-x: auto;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px;
}
.cl-body pre code { background: none; padding: 0; font-size: .85rem; }
.cl-body blockquote {
  margin: 0 0 12px; padding-left: 14px;
  border-left: 2px solid var(--border); color: var(--muted);
}
.cl-body hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

.cl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Retour en haut ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: opacity .25s ease, transform .25s var(--ease), background-color .2s ease;
}
.to-top[hidden] { display: none; }
.to-top.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.to-top:hover { background: var(--bg-3); }
.to-top svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(4, 7, 14, .93); padding: 4vh 5vw;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 84vh; width: auto;
  border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.lb-caption {
  position: absolute; bottom: 3vh; left: 5vw; right: 5vw;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #cfd6e6; font-size: .9rem; margin: 0; text-align: center;
}
.lb-count {
  padding: 2px 9px; border-radius: 999px;
  background: rgba(255,255,255,.08); font-variant-numeric: tabular-nums; font-size: .82rem;
}
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  color: #fff; cursor: pointer; border-radius: 10px; line-height: 1;
}
.lb-close { top: 3vh; right: 4vw; width: 42px; height: 42px; font-size: 1.6rem; }
.lb-nav { top: 50%; translate: 0 -50%; width: 46px; height: 62px; font-size: 2rem; }
.lb-prev { left: 2vw; }
.lb-next { right: 2vw; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.16); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .spot { grid-template-columns: 1fr; gap: 26px; }
  .spot-rev .spot-text { order: 0; }
  /* Sur une colonne, l'inclinaison des captures n'a plus de sens : elles
     occupent toute la largeur et le biais ferait juste bancal. */
  .spot-shot,
  .spot-rev .spot-shot { transform: none; }
}
/* L'en-tête se dégarnit en deux temps. D'abord le bouton de téléchargement,
   qui n'est qu'un rappel du hero ; puis la navigation, qui passe en menu.
   Les seuils tiennent compte du français, de l'espagnol et de l'allemand,
   dont les libellés sont sensiblement plus longs qu'en anglais. */
@media (max-width: 1120px) {
  .hide-sm { display: none; }
}
@media (max-width: 1000px) {
  .burger { display: inline-grid; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 20px 18px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 1rem; }
  .nav a[aria-current="true"]::after { display: none; }
  /* Les grilles sont en auto-fit : elles retombent d'elles-mêmes sur une
     colonne quand la largeur ne suffit plus, inutile de le forcer ici. */
  .lb-nav { width: 38px; height: 52px; font-size: 1.6rem; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  /* Le titre explique ce que fait l'app : il est long, donc plus mesuré ici
     pour que les boutons restent au-dessus de la ligne de flottaison. */
  .hero h1 { font-size: clamp(1.8rem, 8.2vw, 2.3rem); }
  .hero h1::after { margin-top: 18px; }
  .btn { width: 100%; justify-content: center; }
  .cta-row { flex-direction: column; }
  .eyebrow { flex-wrap: wrap; justify-content: center; }
  .win-bar { height: 28px; }
}

@media print {
  .site-header, .lightbox, .tabs, .cta-row, .to-top { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
