:root {
  --fond: #0A0F16;
  --bloc: #131C28;
  --acc: #19D3F0;
  --vif: #6EE7FB;
  --txt: #EEF3F8;
  --sec: #9FB0C4;
  --alerte: #FF6B6B;
  --ambre: #F5B041;
  --encre: #04202A;
  --ligne: #243447;
  --police: system-ui, "Helvetica Neue", Arial, "Liberation Sans", "DejaVu Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--txt);
  font-family: var(--police);
  font-size: 1.125rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vif); }
a:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
em { font-style: normal; color: var(--acc); }
.alerte { color: var(--alerte); }
.cache { position: absolute; left: -9999px; }
.evitement { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--acc); color: var(--encre); padding: .6rem 1rem; font-weight: 700; }
.evitement:focus { left: 0; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .6rem 1rem;
  background: rgba(10, 15, 22, .94);
  border-bottom: 1px solid var(--ligne);
}
.marque { display: flex; align-items: center; gap: .6rem; color: var(--txt); text-decoration: none; font-weight: 900; font-size: 1.25rem; }
.entete nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.entete nav a { color: var(--sec); text-decoration: none; font-size: .95rem; }
.entete nav a:hover { color: var(--acc); }

/* Blocs */
main { overflow: hidden; background: radial-gradient(50rem 28rem at 78% 14rem, rgba(25, 211, 240, .16), transparent 70%) no-repeat; }
.bloc {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 1rem;
  max-width: 68rem; margin: 0 auto;
}
.bloc > * { max-width: 46rem; }
.bloc > h2, .bloc > .geant, .bloc > .grand { max-width: none; }
.bloc > .cartes, .bloc > .defile, .bloc > .captures { max-width: none; }
.bloc + .bloc { border-top: 1px solid var(--ligne); }
.inverse {
  max-width: none; background: var(--acc); color: var(--encre);
  padding-left: max(1rem, calc((100% - 66rem) / 2)); padding-right: max(1rem, calc((100% - 66rem) / 2));
}
.inverse + .bloc, .bloc + .inverse { border-top: 0; }
.inverse .surtitre { color: var(--encre); }

h1, h2, h3 { font-weight: 900; line-height: 1.08; margin: 0 0 1.2rem; }
h1 { font-size: clamp(3rem, 12vw, 7.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
h3 { font-size: 1.4rem; color: var(--acc); }
.surtitre { font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--acc); font-weight: 700; }
.geant { font-size: clamp(2.8rem, 12vw, 6.2rem); font-weight: 900; line-height: 1; margin: 0 0 .6rem; color: var(--acc); letter-spacing: -.02em; }
.inverse .geant { color: var(--encre); font-size: clamp(2rem, 8.4vw, 6.2rem); }
.grand { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.25; margin: 0 0 1rem; }
.note { color: var(--sec); font-size: .95rem; }
.ref { font-size: .75em; vertical-align: super; text-decoration: none; color: var(--sec); display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-align: center; }
.ref:hover { color: var(--acc); }

/* Hero */
.hero {
  max-width: 68rem; margin: 0 auto;
  padding: clamp(3rem, 10vw, 7rem) 1rem clamp(3rem, 8vw, 5rem);
}
.signature { font-weight: 900; color: var(--acc); font-size: 1.2rem; margin: 0 0 2rem; }
.signature span { color: var(--txt); font-weight: 700; margin-left: .8rem; }
.accroche { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 700; color: var(--sec); }
.accroche strong { color: var(--vif); }
.hero-capture { margin-top: 3rem; max-width: 56rem; }

/* Pastilles, encadré, cartes */
.pastilles { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.pastilles li {
  padding: .5rem 1.2rem; border: 2px solid var(--alerte); border-radius: 999px;
  background: rgba(255, 107, 107, .14); font-weight: 700; text-decoration: line-through; text-decoration-color: var(--alerte); text-decoration-thickness: 2px;
}
.encadre { background: var(--bloc); border-left: 6px solid var(--ambre); border-radius: 12px; padding: 1.2rem 1.5rem; font-weight: 700; }
.chiffres { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 1.5rem 0 .5rem; }
.chiffres p { margin: 0; font-size: 1.2rem; }
.chiffres strong { display: block; font-size: clamp(2.4rem, 8vw, 3.6rem); color: var(--acc); font-weight: 900; line-height: 1.1; }
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.cartes.deux { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.carte { background: var(--bloc); border-radius: 16px; padding: 1.5rem; }
.carte p { margin: 0; }
.carte h3 { margin-bottom: .6rem; }
.chiffre { font-size: clamp(2.6rem, 8vw, 4.4rem); font-weight: 900; color: var(--acc); line-height: 1.05; }
.chiffre span { font-size: .45em; color: var(--vif); }
.chiffre.alerte { color: var(--alerte); }
.unite { font-weight: 700; font-size: 1.3rem; margin-bottom: .4rem !important; }

/* Listes */
.coches { list-style: none; padding: 0; margin: 1.5rem 0; }
.coches li { position: relative; padding-left: 3rem; margin: 1rem 0; font-weight: 700; font-size: 1.3rem; }
.coches li::before {
  content: ""; position: absolute; left: 0; top: .1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--acc);
}
.coches li::after {
  content: ""; position: absolute; left: .68rem; top: .35rem; width: .5rem; height: .95rem;
  border: solid var(--encre); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.coches.sombre li::before { background: var(--encre); }
.coches.sombre li::after { border-color: var(--acc); }
.coches.sombre li { font-size: clamp(1.4rem, 4vw, 2rem); }

blockquote { margin: 2rem 0 1rem; padding-left: 1.4rem; border-left: 5px solid var(--acc); }
blockquote p { margin: 0 0 .4rem; font-size: 1.4rem; font-style: italic; }
blockquote footer { color: var(--sec); font-size: .95rem; }

/* Tableau */
.defile { overflow-x: auto; margin-top: 1.5rem; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; }
th, td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
thead th { font-size: 1.2rem; color: var(--sec); }
tbody th { font-weight: 700; }
td { color: var(--sec); }
.nous { color: var(--txt); font-weight: 700; background: rgba(25, 211, 240, .10); }
thead .nous { color: var(--acc); font-weight: 900; font-size: 1.3rem; }

/* Captures */
.captures { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin-top: 2rem; }
figure { margin: 0; }
.ecran { border: 8px solid #1B2736; border-radius: 14px; background: #1B2736; overflow: hidden; box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .5); }
.ecran img { border-radius: 4px; width: 100%; }
figcaption { color: var(--sec); font-size: .95rem; margin-top: .7rem; }

/* Sources */
.sources { font-size: .95rem; color: var(--sec); }
.sources h2 { color: var(--txt); }
.sources ol { padding-left: 1.6rem; }
.sources li { margin: .5rem 0; overflow-wrap: anywhere; }
.sources li:target { color: var(--txt); background: var(--bloc); border-radius: 6px; }
.precisions { padding-left: 1.2rem; }

/* Mentions légales */
.legal h1 { font-size: clamp(2rem, 6vw, 3.4rem); overflow-wrap: anywhere; }
.legal h2 { font-size: 1.4rem; color: var(--acc); margin: 2rem 0 .4rem; }
.legal p { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.legal .retour { margin-top: 2.5rem; }

/* Pied */
.pied {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 2.5rem 1rem; border-top: 1px solid var(--ligne); font-weight: 700; color: var(--sec);
}
.pied p { margin: 0; }
.pied a { padding: .5rem; }

@media (max-width: 480px) {
  body { font-size: 1.05rem; }
  .entete nav { gap: .8rem; }
  table { min-width: 0; font-size: .92rem; }
  th, td { padding: .6rem .45rem; }
  thead th { font-size: 1rem; }
  thead .nous { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
