/* =====================================================================
   atlaspromax.org — Atlas Pro Max, banc d'essai et abonnements
   Direction visuelle : « Onyx & Jade »

   Ordre du fichier
   1. Jetons de conception
   2. Remise à zéro et éléments de base
   3. Primitives de mise en page
   4. Composants
   5. Blocs propres à une page
   6. Adaptatif
   7. Mouvement réduit
   ===================================================================== */

/* =====================================================================
   1. JETONS DE CONCEPTION
   ===================================================================== */
:root {
  /* --- surfaces onyx --- */
  --onyx-950: #0a0f0e;
  --onyx-900: #0f1615;
  --onyx-850: #141d1b;
  --onyx-800: #1a2523;
  --onyx-700: #22302d;

  /* --- filets --- */
  --line: #2a3a37;
  --line-2: #3a4d49;

  /* --- accent principal : jade --- */
  --jade: #14d3a0;
  --jade-deep: #0e9e78;
  --jade-dim: #0b7a5c;
  --jade-wash: rgba(20, 211, 160, 0.1);
  --jade-line: rgba(20, 211, 160, 0.32);

  /* --- accent négatif : corail --- */
  --alert: #ff6b81;
  --alert-deep: #d84158;
  --alert-wash: rgba(255, 107, 129, 0.1);

  /* --- accent neutre : ardoise --- */
  --slate: #7b8d89;

  /* --- textes --- */
  --text: #ecf3f1;
  --text-dim: #a9bab6;
  --text-faint: #7b8d89;

  /* --- rayons : presque droits --- */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-pill: 999px;

  /* --- échelle d'espacement --- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;
  --s-10: 120px;

  /* --- familles --- */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* --- échelle typographique --- */
  --t-h1: clamp(2rem, 1.24rem + 3.2vw, 3.4rem);
  --t-h2: clamp(1.54rem, 1.18rem + 1.5vw, 2.2rem);
  --t-h3: clamp(1.14rem, 1.02rem + 0.5vw, 1.34rem);
  --t-lead: clamp(1.05rem, 0.99rem + 0.3vw, 1.2rem);
  --t-body: 1.0435rem;
  --t-sm: 0.94rem;
  --t-xs: 0.84rem;
  --t-label: 0.73rem;

  /* --- mesures --- */
  --wrap: 1200px;
  --measure: 70ch;

  /* --- transitions --- */
  --tr: 170ms cubic-bezier(0.3, 0.7, 0.4, 1);
  --tr-slow: 300ms cubic-bezier(0.3, 0.7, 0.4, 1);

  /* --- en-tête --- */
  --header-h: 70px;
}

/* =====================================================================
   2. REMISE À ZÉRO ET ÉLÉMENTS DE BASE
   ===================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--onyx-950);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.72;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* fond : hachure diagonale très faible + halo de jade en bas à droite */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(236, 243, 241, 0.022) 0 1px,
    transparent 1px 9px
  );
}

body::after {
  content: "";
  position: fixed;
  right: -16vw;
  bottom: -22vh;
  width: 60vw;
  height: 60vw;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 60% 60%, var(--jade-wash), transparent 64%);
}

body > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.018em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  line-height: 1.06;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.14;
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.3;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

p {
  margin: 0 0 var(--s-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--jade);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--tr);
}

a:hover {
  color: #4ce3ba;
}

strong,
b {
  font-weight: 700;
  color: var(--text);
}

ul,
ol {
  margin: 0 0 var(--s-4);
  padding-left: 1.3em;
}

li {
  margin-bottom: var(--s-2);
}

li:last-child {
  margin-bottom: 0;
}

img,
svg,
picture {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-7) 0;
}

blockquote {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--jade);
  color: var(--onyx-950);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 200;
  background: var(--jade);
  color: var(--onyx-950);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--tr);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--onyx-950);
}

/* =====================================================================
   3. PRIMITIVES DE MISE EN PAGE
   ===================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.section {
  padding-block: var(--s-9);
}

.section--tight {
  padding-block: var(--s-8);
}

.section--raised {
  background: var(--onyx-900);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.measure {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--s-4);
}

.prose p {
  color: var(--text-dim);
}

.prose h2 {
  margin-top: var(--s-7);
}

.prose h3 {
  margin-top: var(--s-6);
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}

/* --- en-tête de section : grand index chiffré à gauche --------------- */
.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s-5);
  row-gap: var(--s-2);
  align-items: start;
  margin-bottom: var(--s-6);
}

.sec-head__index {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--jade);
  padding-right: var(--s-5);
  border-right: 1px solid var(--line);
  padding-top: 0.18em;
  white-space: nowrap;
  grid-row: 1 / span 2;
}

.sec-head h2 {
  margin: 0;
  grid-column: 2;
}

.sec-head__aside {
  grid-column: 2;
  margin: 0;
  color: var(--text-dim);
  font-size: var(--t-sm);
  max-width: 64ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 var(--s-3);
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--jade);
  flex: none;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--text-dim);
  max-width: 66ch;
}

/* =====================================================================
   4. COMPOSANTS
   ===================================================================== */

/* --- 4.1 en-tête collant -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 14, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr), background var(--tr);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(10, 15, 14, 0.96);
}

.site-header > .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__tag {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 4px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
}

.nav__link:hover {
  background: var(--onyx-800);
  color: var(--text);
}

.nav__link[aria-current="page"] {
  color: var(--jade);
  background: var(--jade-wash);
  font-weight: 700;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--onyx-850);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* --- 4.2 boutons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--f-display);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--jade {
  background: var(--jade);
  color: var(--onyx-950);
}

.btn--jade:hover {
  background: #4ce3ba;
  color: var(--onyx-950);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

.btn--outline:hover {
  border-color: var(--jade);
  color: var(--jade);
  background: var(--jade-wash);
}

.btn--solid {
  background: var(--onyx-800);
  color: var(--text);
  border-color: var(--line);
}

.btn--solid:hover {
  background: var(--onyx-700);
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--jade);
  border-color: transparent;
  padding-inline: 2px;
}

.btn--ghost:hover {
  color: #4ce3ba;
  text-decoration: underline;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* --- 4.3 étiquettes et verdicts ------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  background: var(--onyx-800);
  border: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.chip--jade {
  background: var(--jade-wash);
  border-color: var(--jade-line);
  color: var(--jade);
}

.chip--alert {
  background: var(--alert-wash);
  border-color: rgba(255, 107, 129, 0.32);
  color: var(--alert);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-row li {
  margin: 0;
}

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid;
}

.verdict--ok {
  background: var(--jade-wash);
  border-color: var(--jade-line);
  color: var(--jade);
}

.verdict--mid {
  background: rgba(123, 141, 137, 0.14);
  border-color: rgba(123, 141, 137, 0.4);
  color: #9fb3ae;
}

.verdict--no {
  background: var(--alert-wash);
  border-color: rgba(255, 107, 129, 0.32);
  color: var(--alert);
}

/* --- 4.4 cartes ----------------------------------------------------- */
.card {
  background: var(--onyx-900);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  transition: border-color var(--tr), transform var(--tr);
}

.card--pad {
  padding: var(--s-6);
}

.card:hover {
  border-color: var(--line-2);
}

.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--jade-wash);
  border: 1px solid var(--jade-line);
  color: var(--jade);
  margin-bottom: var(--s-4);
}

.card__icon svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  margin-bottom: var(--s-2);
}

.card p {
  color: var(--text-dim);
  font-size: var(--t-sm);
}

/* --- 4.5 banc d'essai (composant signature) ------------------------- */
.bench {
  background: var(--onyx-900);
  border: 1px solid var(--line);
  border-left: 3px solid var(--jade);
  border-radius: var(--r-md);
  overflow: hidden;
}

.bench--fail {
  border-left-color: var(--alert);
}

.bench__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--onyx-850);
  border-bottom: 1px solid var(--line);
}

.bench__ref {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.bench__title {
  font-family: var(--f-display);
  font-size: 1.06rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.bench__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.bench__row:last-child {
  border-bottom: 0;
}

.bench__key {
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.bench__val {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--t-sm);
}

.bench__val strong {
  color: var(--jade);
  font-weight: 700;
}

/* --- 4.6 jauge de débit --------------------------------------------- */
.gauge {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 92px;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}

.gauge:last-child {
  border-bottom: 0;
}

.gauge__label {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text);
}

.gauge__track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--onyx-800);
  border: 1px solid var(--line);
  overflow: hidden;
}

.gauge__fill {
  display: block;
  height: 100%;
  background: var(--jade);
}

.gauge__fill--mid {
  background: var(--jade-deep);
}

.gauge__fill--high {
  background: var(--jade-dim);
}

.gauge__value {
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--jade);
  text-align: right;
}

/* --- 4.7 score ------------------------------------------------------ */
.score {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-5);
  background: var(--onyx-900);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6);
}

.score__item {
  border-left: 2px solid var(--jade);
  padding-left: var(--s-4);
}

.score__num {
  display: block;
  font-family: var(--f-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.score__label {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-xs);
  color: var(--text-faint);
  line-height: 1.5;
}

/* --- 4.8 formules --------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  align-items: start;
}

.plan {
  position: relative;
  background: var(--onyx-900);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-6) var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  transition: border-color var(--tr), transform var(--tr);
}

.plan:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.plan--featured {
  border-color: var(--jade);
  background: linear-gradient(180deg, var(--jade-wash), transparent 34%), var(--onyx-900);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: var(--s-5);
  padding: 3px 11px;
  border-radius: var(--r-xs);
  background: var(--onyx-800);
  border: 1px solid var(--line-2);
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.plan--featured .plan__badge {
  background: var(--jade);
  border-color: var(--jade);
  color: var(--onyx-950);
}

.plan__name {
  font-size: 1.28rem;
  margin: 0 0 2px;
}

.plan__screens {
  margin: 0 0 var(--s-4);
  font-size: var(--t-sm);
  color: var(--text-faint);
}

.plan__price {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  font-family: var(--f-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  margin: 0 0 var(--s-1);
  letter-spacing: -0.025em;
}

.plan__cur {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--jade);
  margin-top: 0.34em;
}

.plan__period {
  margin: 0 0 var(--s-5);
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.plan__list {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line);
}

.plan__list li {
  position: relative;
  padding-left: 1.55em;
  font-size: var(--t-sm);
  color: var(--text-dim);
  margin-bottom: var(--s-3);
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 9px;
  height: 2px;
  background: var(--jade);
}

.plan .btn {
  margin-top: auto;
}

.plan__note {
  margin: var(--s-3) 0 0;
  font-size: var(--t-xs);
  color: var(--text-faint);
  text-align: center;
}

/* --- 4.9 étapes ----------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 82px;
  padding-bottom: var(--s-6);
  margin-bottom: 0;
}

.steps > li::before {
  content: "Test " counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 60px;
  padding: 5px 0;
  text-align: center;
  border-radius: var(--r-xs);
  background: var(--jade-wash);
  border: 1px solid var(--jade-line);
  color: var(--jade);
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 36px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.steps > li:last-child {
  padding-bottom: 0;
}

.steps > li:last-child::after {
  display: none;
}

.steps h3 {
  margin-bottom: var(--s-2);
}

.steps p {
  color: var(--text-dim);
  font-size: var(--t-sm);
}

.steps--plain > li::before {
  content: "Ét. " counter(step);
}

/* --- 4.10 notes ----------------------------------------------------- */
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--jade);
  border-radius: var(--r-sm);
  background: var(--onyx-900);
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-sm);
}

.note__title {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.99rem;
  margin-bottom: var(--s-2);
  color: var(--text);
}

.note p {
  color: var(--text-dim);
  margin-bottom: var(--s-3);
}

.note p:last-child {
  margin-bottom: 0;
}

.note--warn {
  border-left-color: var(--alert);
  background: rgba(255, 107, 129, 0.05);
}

.note--tip {
  border-left-color: var(--jade);
  background: rgba(20, 211, 160, 0.05);
}

/* --- 4.11 tableaux -------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--onyx-900);
}

.table {
  min-width: 640px;
  font-size: var(--t-sm);
}

.table caption {
  text-align: left;
  padding: var(--s-4) var(--s-5);
  font-size: var(--t-xs);
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
}

.table th,
.table td {
  padding: 13px var(--s-5);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table thead th {
  background: var(--onyx-850);
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: var(--onyx-850);
}

.table td {
  color: var(--text-dim);
}

.table td strong {
  color: var(--jade);
}

/* --- 4.12 FAQ ------------------------------------------------------- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--onyx-900);
  overflow: hidden;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--tr), color var(--tr);
}

.faq__trigger:hover {
  background: var(--onyx-850);
  color: var(--jade);
}

.faq__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--jade);
  transition: transform var(--tr-slow);
}

.faq__trigger[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__panel {
  display: none;
  padding: 0 var(--s-5) var(--s-5);
}

.faq__panel.is-open {
  display: block;
}

.faq__panel p {
  color: var(--text-dim);
  font-size: var(--t-sm);
  max-width: 74ch;
}

/* --- 4.13 cadre de capture ------------------------------------------ */
.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--onyx-900);
  padding: var(--s-3);
}

.shot img {
  border-radius: var(--r-sm);
  width: 100%;
}

.shot figcaption {
  padding: var(--s-3) var(--s-2) var(--s-1);
  font-size: var(--t-xs);
  color: var(--text-faint);
}

/* --- 4.14 cartes de liens ------------------------------------------- */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  gap: var(--s-4);
}

.link-card {
  display: block;
  background: var(--onyx-900);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--tr), transform var(--tr);
}

.link-card:hover {
  border-top-color: var(--jade);
  border-color: var(--line-2);
  transform: translateY(-2px);
  color: var(--text);
}

.link-card__kicker {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: var(--s-2);
}

.link-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--s-2);
}

.link-card p {
  font-size: var(--t-sm);
  color: var(--text-dim);
  margin: 0;
}

.link-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-3);
  font-family: var(--f-display);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--jade);
}

/* --- 4.15 bandeau d'appel ------------------------------------------- */
.cta-band {
  background: var(--onyx-900);
  border: 1px solid var(--line);
  border-top: 2px solid var(--jade);
  border-radius: var(--r-md);
  padding: var(--s-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-6);
  align-items: center;
}

.cta-band h2 {
  margin-bottom: var(--s-3);
}

.cta-band p {
  color: var(--text-dim);
  margin: 0;
  max-width: 58ch;
  font-size: var(--t-sm);
}

/* --- 4.16 moyens de paiement ---------------------------------------- */
.pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pay-row li {
  margin: 0;
  padding: 6px 9px;
  background: var(--onyx-850);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.pay-row img {
  height: 22px;
  width: auto;
}

/* --- 4.17 bandeau de rappel des prix -------------------------------- */
.price-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: var(--s-5);
  align-items: center;
  background: var(--onyx-900);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
}

.price-strip__item {
  border-left: 2px solid var(--jade);
  padding-left: var(--s-4);
}

.price-strip__screens {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.price-strip__amount {
  display: block;
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

.price-strip__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--t-xs);
  color: var(--text-faint);
}

/* --- 4.18 sommaire collant ------------------------------------------ */
.with-toc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--onyx-900);
  padding: var(--s-4);
}

.toc__title {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 2px;
}

.toc a {
  display: block;
  position: relative;
  padding: 6px 8px 6px 32px;
  border-radius: var(--r-xs);
  font-size: var(--t-sm);
  color: var(--text-dim);
  text-decoration: none;
  transition: background var(--tr), color var(--tr);
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 8px;
  top: 8px;
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--jade);
}

.toc a:hover,
.toc a[aria-current="true"] {
  background: var(--jade-wash);
  color: var(--jade);
}

/* --- 4.19 fil d'Ariane ---------------------------------------------- */
.crumbs {
  padding-top: var(--s-5);
  font-size: var(--t-xs);
  color: var(--text-faint);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--line-2);
}

.crumbs a {
  color: var(--text-faint);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--jade);
  text-decoration: underline;
}

/* --- 4.20 formulaire ------------------------------------------------ */
.form {
  display: grid;
  gap: var(--s-4);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--onyx-850);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--t-sm);
  transition: border-color var(--tr), box-shadow var(--tr);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-wash);
  outline: none;
}

.field__hint {
  font-size: var(--t-xs);
  color: var(--text-faint);
}

.field__error {
  display: none;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--alert);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--alert);
}

.field.has-error .field__error {
  display: block;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

/* --- 4.21 bouton flottant ------------------------------------------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--jade);
  color: var(--onyx-950);
  font-family: var(--f-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--tr), transform var(--tr);
}

.wa-float:hover {
  background: #4ce3ba;
  color: var(--onyx-950);
  transform: translateY(-2px);
}

.wa-float svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* --- 4.22 pied de page ---------------------------------------------- */
.site-footer {
  background: var(--onyx-900);
  border-top: 1px solid var(--line);
  padding-block: var(--s-8) var(--s-5);
  margin-top: var(--s-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s-6);
}

.footer-brand p {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--text-dim);
  max-width: 42ch;
}

.site-footer h2 {
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-4);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: var(--s-2);
}

.site-footer li a {
  font-size: var(--t-sm);
  color: var(--text-dim);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--jade);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--text-faint);
}

/* --- 4.23 révélation ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--tr-slow), transform var(--tr-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   5. BLOCS PROPRES À UNE PAGE
   ===================================================================== */

/* --- 5.1 héros d'accueil -------------------------------------------- */
.hero {
  padding-block: var(--s-9) var(--s-8);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--s-8);
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--s-4);
}

.hero .lead {
  margin-bottom: var(--s-5);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}

.hero__proof li {
  margin: 0;
  font-size: var(--t-xs);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero__proof svg {
  width: 15px;
  height: 15px;
  color: var(--jade);
  flex: none;
}

.hero__media {
  position: relative;
}

.hero__price-tag {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: var(--onyx-850);
  border: 1px solid var(--jade-line);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
}

.hero__price-tag span {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.hero__price-tag strong {
  font-family: var(--f-display);
  font-size: 1.58rem;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--jade);
}

/* --- 5.2 en-tête de page interne ------------------------------------ */
.page-head {
  padding-block: var(--s-8) var(--s-7);
  border-bottom: 1px solid var(--line);
  background: var(--onyx-900);
}

.page-head h1 {
  margin-bottom: var(--s-4);
}

.page-head .lead {
  margin-bottom: 0;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.page-head__meta li {
  margin: 0;
}

/* --- 5.3 liste d'appareils ------------------------------------------ */
.device-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.device-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px var(--s-4);
  background: var(--onyx-900);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  margin: 0;
}

.device-list svg {
  width: 18px;
  height: 18px;
  color: var(--jade);
  flex: none;
}

/* --- 5.4 avis clients ----------------------------------------------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.review {
  background: var(--onyx-900);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}

.review__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--s-3);
  color: var(--jade);
}

.review__stars svg {
  width: 15px;
  height: 15px;
}

.review blockquote {
  font-size: var(--t-sm);
  color: var(--text-dim);
  margin-bottom: var(--s-4);
}

.review__who {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--text);
}

.review__where {
  display: block;
  font-size: var(--t-xs);
  color: var(--text-faint);
}

/* --- 5.5 bloc juridique -------------------------------------------- */
.legal h2 {
  font-size: 1.3rem;
  margin-top: var(--s-7);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  font-size: var(--t-sm);
  color: var(--text-dim);
}

/* =====================================================================
   6. ADAPTATIF
   ===================================================================== */
@media (max-width: 1080px) {
  .with-toc {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .toc {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    margin: 0;
    padding: var(--s-5);
    background: var(--onyx-900);
    border-bottom: 1px solid var(--line-2);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav .btn {
    width: 100%;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .hero__media {
    order: -1;
  }

  .hero__price-tag {
    left: auto;
    right: 12px;
    bottom: -14px;
  }

  .plans {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .grid-3,
  .reviews {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: var(--s-6);
  }

  .price-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: var(--s-5);
  }

  .price-strip .btn {
    grid-column: 1 / -1;
  }

  .bench__row {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .bench__row .verdict {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  :root {
    --s-9: 64px;
    --s-10: 80px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .reviews,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .sec-head {
    grid-template-columns: 1fr;
    row-gap: var(--s-3);
  }

  .sec-head__index {
    grid-row: auto;
    grid-column: 1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: var(--s-3);
    padding-top: 0;
    font-size: 1.2rem;
  }

  .sec-head h2,
  .sec-head__aside {
    grid-column: 1;
  }

  .bench__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gauge {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gauge__value {
    text-align: left;
  }

  .price-strip {
    grid-template-columns: 1fr;
    padding: var(--s-5);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 14px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding-inline: var(--s-4);
  }

  .steps > li {
    padding-left: 0;
  }

  .steps > li::before {
    position: static;
    display: inline-block;
    margin-bottom: var(--s-3);
  }

  .steps > li::after {
    display: none;
  }

  .plan__price {
    font-size: 2.35rem;
  }
}

/* =====================================================================
   7. MOUVEMENT RÉDUIT
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .plan:hover,
  .link-card:hover,
  .wa-float:hover {
    transform: none;
  }
}
