/* Oqad · getoqad.com — feuille de style unique, sans dépendance externe */

/* ---------- 1. Jetons ---------- */
:root {
  color-scheme: light dark;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --subtle: #f3f4f1;
  --ink: #111412;
  --ink-2: #2f3430;
  --muted: #5b605c;
  --line: #e3e5e1;
  --line-strong: #cdd1cb;
  --accent: #1a7f37;
  --accent-btn: #1a7f37;
  --accent-btn-hover: #156c2e;
  --accent-soft: #e7f3ea;
  --accent-ink: #136129;
  --hot: #c2311a;
  --hot-soft: #fdecea;
  --todo: #fff3b0;
  --todo-ink: #111412;
  --shadow: 0 1px 2px rgb(17 20 18 / 6%), 0 8px 24px -6px rgb(17 20 18 / 10%), 0 24px 48px -12px rgb(17 20 18 / 8%);
  --inv-bg: #111412;
  --inv-ink: #f1f3f0;
  --inv-muted: #a9afaa;
  --inv-line: #2b302c;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --wrap: 1160px;
  --gutter: 16px;
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d0c;
    --surface: #161816;
    --subtle: #121412;
    --ink: #e9ebe8;
    --ink-2: #cdd1cc;
    --muted: #9ba19c;
    --line: #242724;
    --line-strong: #3a3e3a;
    --accent: #4ac26b;
    --accent-btn: #238636;
    --accent-btn-hover: #2a9a40;
    --accent-soft: #14271a;
    --accent-ink: #6fd28a;
    --hot: #ff7b72;
    --hot-soft: #3a1714;
    --todo: #5c4d00;
    --todo-ink: #fff8c5;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -8px rgb(0 0 0 / 55%);
    --inv-bg: #161816;
    --inv-ink: #e9ebe8;
    --inv-muted: #9ba19c;
    --inv-line: #2a2e2a;
  }
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
strong, b { font-weight: 600; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus-visible { top: 12px; }

.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* Emplacements à compléter */
.todo {
  background: var(--todo);
  color: var(--todo-ink);
  padding: 0.05em 0.15em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary { background: var(--accent-btn); color: #fff; }
.btn--primary:hover { background: var(--accent-btn-hover); }
.btn--sm { min-height: 44px; padding: 0 1rem; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1.125rem; }
.btn svg { width: 18px; height: 18px; transition: transform 150ms ease; }
.btn:hover svg { transform: translateX(2px); }
@media (max-width: 479px) {
  .btn--block-sm { width: 100%; }
}

/* ---------- 4. En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.logo svg { width: auto; height: 26px; }
@media (max-width: 359px) { .site-header .btn--sm { padding: 0 0.75rem; font-size: 0.875rem; } }

/* ---------- 5. Sections ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }

.h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 22ch;
}
.lead {
  margin-top: 1.25rem;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}
.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.kicker {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- 6. Ouverture ---------- */
.hero { padding-top: clamp(2.5rem, 1.5rem + 5vw, 6rem); padding-bottom: clamp(3.5rem, 2rem + 5vw, 7rem); }
.hero__grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4.5rem; align-items: center; }
}
.h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.9vw, 3.75rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.036em;
}
.h1 span { display: block; text-wrap: balance; }
.h1__a { color: var(--muted); }
.hero__lede {
  margin-top: 1.5rem;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}
.marks {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.marks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
.marks svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.hero .btn { margin-top: 2rem; }

/* Vidéo (façade : la vidéo ne se télécharge qu’au clic) */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #111412;
  box-shadow: var(--shadow);
}
.video__play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}
.video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}
.video__play:hover img { transform: scale(1.012); }
.video__play:focus-visible { outline: 3px solid #fff; outline-offset: -8px; border-radius: var(--r-lg); }
.video__time {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgb(0 0 0 / 70%);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.8125rem;
  pointer-events: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111412;
}
.video-caption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1rem;
}
.video-caption .mono { flex: none; color: var(--muted); font-size: 0.8125rem; }

/* ---------- 7. Le problème ---------- */
.problem { display: grid; gap: 1.5rem; }
@media (min-width: 960px) {
  .problem { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; }
}
.problem p {
  max-width: 40ch;
  font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- 8. Étapes numérotées ---------- */
.steps {
  display: grid;
  gap: 2rem;
}
@media (min-width: 840px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}
.step { padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.step__n {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--accent-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.step p { color: var(--muted); }
.step strong { display: block; margin-bottom: 0.4rem; color: var(--ink); font-size: 1.125rem; letter-spacing: -0.01em; }

.panel {
  position: relative;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}
.panel__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.panel__meta { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }

/* ---------- 9. Visuel 1 : parcours d’un lead ---------- */
.journey { position: relative; display: grid; gap: 0; }
.journey li {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 1rem;
  padding-bottom: 1.75rem;
}
.journey li:last-child { padding-bottom: 0; }
.journey li::before {
  content: "";
  position: absolute;
  left: 10px; top: 22px; bottom: 0;
  width: 2px;
  background: var(--accent);
}
.journey li:last-child::before { display: none; }
.journey__dot {
  position: relative;
  z-index: 1;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface);
}
.journey li:last-child .journey__dot { background: var(--accent); }
.journey li:last-child .journey__dot::after {
  content: "";
  position: absolute;
  left: 6px; top: 3px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (prefers-color-scheme: dark) {
  .journey li:last-child .journey__dot::after { border-color: #0c0d0c; }
}
.journey__time { display: block; font-family: var(--mono); font-size: 1.0625rem; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 22px; }
.journey__label { display: block; margin-top: 0.35rem; font-weight: 600; }
.journey__detail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin-top: 0.2rem; color: var(--muted); font-size: 0.9375rem; }
.journey li:last-child .journey__label { color: var(--accent); }
.delta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.1em 0.55em;
  border-radius: 999px;
  background: var(--hot-soft);
  color: var(--hot);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (min-width: 840px) {
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journey li {
    grid-template-columns: none;
    grid-template-rows: 22px auto;
    row-gap: 1.25rem;
    padding: 0 1.5rem 0 0;
  }
  .journey li::before { left: 22px; right: 0; top: 10px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- 10. Visuel 2 : voie de secours (signature) ---------- */
.fork {
  display: grid;
  justify-items: center;
  font-size: 0.9375rem;
}
.node {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 56px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--subtle);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.node--dst { border-color: var(--accent); background: var(--accent-soft); }
.node small { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }

.fork__wire { position: relative; width: 100%; }
.lanes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* crochets (mobile : horizontaux, en haut et en bas) */
.lanes::before,
.lanes::after,
.fork__wire::before,
.fork__wire::after {
  content: "";
  position: absolute;
  height: 0;
}
.lanes::before { top: 0; left: 25%; width: 25%; border-top: 2px solid var(--line-strong); }
.lanes::after { top: 0; left: 50%; width: 25%; border-top: 2px solid var(--accent); }
.fork__wire::before { bottom: 0; left: 25%; width: 25%; border-top: 2px dashed var(--line-strong); }
.fork__wire::after { bottom: 0; left: 50%; width: 25%; border-top: 2px solid var(--accent); }

.lane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 300px;
  padding: 1.25rem 0.25rem;
  text-align: center;
}
.lane::before,
.lane::after {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  width: 0;
}
.lane::before { top: 0; height: 50%; border-left: 2px solid var(--line-strong); }
.lane::after { bottom: 0; height: 50%; border-left: 2px dashed var(--line-strong); }
.lane--backup::before,
.lane--backup::after { border-left: 2px solid var(--accent); }
.lane > * { position: relative; z-index: 1; background: var(--surface); }
.lane__label {
  padding: 0.15rem 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.lane--backup .lane__label { color: var(--accent); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-weight: 600;
  line-height: 1.2;
}
.chip svg { width: 14px; height: 14px; flex: none; }
.chip--cut { color: var(--hot); border-style: dashed; background: var(--hot-soft); }
.chip--ok { color: var(--accent-ink); background: var(--accent-soft); }
.lane__note {
  max-width: 18ch;
  padding: 0.15rem 0.35rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (min-width: 840px) {
  .fork {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
  }
  .fork__wire { align-self: stretch; }
  .lanes { grid-template-columns: none; grid-template-rows: repeat(2, minmax(0, 1fr)); height: 100%; }
  .lanes::before { top: 25%; left: 0; width: 0; height: 25%; border-top: 0; border-left: 2px solid var(--line-strong); }
  .lanes::after { top: 50%; left: 0; width: 0; height: 25%; border-top: 0; border-left: 2px solid var(--accent); }
  .fork__wire::before { top: 25%; bottom: auto; left: auto; right: 0; width: 0; height: 25%; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .fork__wire::after { top: 50%; bottom: auto; left: auto; right: 0; width: 0; height: 25%; border-top: 0; border-left: 2px solid var(--accent); }
  .lane { min-height: 0; padding: 1.75rem 2.5rem; }
  .lane::before,
  .lane::after { left: auto; top: calc(50% - 1px); height: 0; border-left: 0; }
  .lane::before { left: 0; width: 50%; border-top: 2px solid var(--line-strong); }
  .lane::after { right: 0; width: 50%; border-top: 2px dashed var(--line-strong); }
  .lane--backup::before,
  .lane--backup::after { border-top: 2px solid var(--accent); border-left: 0; }
  .lane__note { max-width: 28ch; }
  .node { min-width: 148px; min-height: 64px; }
}

/* ---------- 11. Feuille de route ---------- */
.roadmap { display: grid; gap: 1rem; }
@media (min-width: 840px) {
  .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
.roadmap li {
  padding: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  color: var(--muted);
}
.roadmap__n {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 1.25rem;
  border: 1px dashed var(--muted);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.875rem;
}
.roadmap strong { display: block; margin-bottom: 0.4rem; color: var(--ink-2); }

/* ---------- 12. Aperçu du rapport ---------- */
.report-wrap { max-width: none; }
.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.preview-tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px dashed var(--muted);
}
.report {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.report__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.report__logo {
  display: grid;
  place-items: center;
  width: 168px;
  height: 52px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
  line-height: 1.2;
}
.report__id { text-align: right; }
.report__id span { display: block; color: var(--muted); font-size: 0.8125rem; font-family: var(--mono); letter-spacing: 0.02em; }
.report__id strong { font-size: 1.0625rem; }
@media (max-width: 479px) { .report__id { text-align: left; } }
.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.kpi {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 1.5rem clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi:nth-child(2n) { border-right: 0; }
.kpi:nth-last-child(-n + 2) { border-bottom: 0; }
@media (min-width: 840px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi { border-bottom: 0; border-right: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 1px solid var(--line); }
  .kpi:last-child { border-right: 0; }
}
.kpi__value {
  display: block;
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.kpi__value small { font-size: 0.5em; font-weight: 500; letter-spacing: 0; margin-left: 0.15em; color: var(--muted); }
.kpi__label { display: block; margin-top: 0.6rem; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.kpi--alert .kpi__value { color: var(--hot); }
.report__chart { padding: 1.75rem clamp(1.25rem, 1rem + 2vw, 2.5rem) 2rem; }
.report__chart h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 1.25rem; }
.bars { display: grid; gap: 0.9rem; }
.bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
}
@media (min-width: 640px) {
  .bars li { grid-template-columns: 13rem minmax(0, 1fr); align-items: center; gap: 1rem; }
}
.bars__label { color: var(--ink-2); font-size: 0.9375rem; }
.bars__track { display: flex; align-items: center; gap: 0.6rem; }
.bars__bar {
  height: 12px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}
.bars__value { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.9375rem; }
.w-100 { width: calc((100% - 3rem) * 1); }
.bars--next .bars__bar {
  width: calc((100% - 5rem) * 0.3);
  background: none;
  border: 1.5px dashed var(--muted);
  border-left: 0;
}
.bars--next .bars__value { color: var(--muted); font-weight: 500; }
.report__foot {
  padding: 0.9rem clamp(1.25rem, 1rem + 2vw, 2.5rem);
  border-top: 1px solid var(--line);
  background: var(--subtle);
  color: var(--muted);
  font-size: 0.8125rem;
  font-family: var(--mono);
}

/* ---------- 13. Compatibilité ---------- */
.compat { display: grid; gap: 1.5rem; }
@media (min-width: 840px) {
  .compat { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}
.compat__col h3 {
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.compat__col li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.5rem 1rem;
  border-radius: var(--r);
  font-weight: 600;
}
.compat__col li + li { margin-top: 0.6rem; }
.compat__col--now li { background: var(--surface); border: 1px solid var(--accent); }
.compat__col--next li { border: 1px dashed var(--line-strong); color: var(--ink-2); font-weight: 500; }
.compat__col svg { width: 20px; height: 20px; flex: none; }
.compat__col--now svg { color: var(--accent); }
.compat__col--next svg { color: var(--muted); }

/* ---------- 14. Principes ---------- */
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.principles strong { color: var(--ink); }
@media (min-width: 840px) {
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; border-top: 0; }
  .principles li { padding: 1.5rem 0 0; border-bottom: 0; border-top: 1px solid var(--ink); }
}

/* ---------- 15. Diagnostic ---------- */
.diag {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 1rem + 5vw, 5rem);
  background: var(--inv-bg);
  color: var(--inv-ink);
  border-radius: var(--r-lg);
  border: 1px solid var(--inv-line);
}
@media (min-width: 960px) {
  .diag { grid-template-columns: minmax(0, 1.3fr) auto; align-items: end; column-gap: 4rem; }
}
.diag .h2 { color: var(--inv-ink); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); }
.diag .lead { color: var(--inv-muted); }
.diag :focus-visible { outline-color: #fff; }

/* ---------- 16. Oqad ---------- */
.about p {
  max-width: 46ch;
  font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-2);
}
.about p + p { margin-top: 1rem; }
.about .pilot { color: var(--ink); }
.about .pilot strong { box-shadow: inset 0 -0.35em 0 var(--accent-soft); }

/* ---------- 17. Questions fréquentes ---------- */
.faq { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .faq { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 4rem; }
}
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--muted);
  border-radius: 1px;
  transition: transform 160ms ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { max-width: 62ch; padding: 0 2.5rem 1.5rem 0; color: var(--muted); }

/* ---------- 18. Pied de page ---------- */
.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer ul { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; }
.site-footer li { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 640px) {
  .site-footer ul { column-gap: 0; }
  .site-footer li + li::before { content: "·"; margin-inline: 0.75rem; color: var(--line-strong); font-weight: 700; }
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .logo svg { height: 18px; }

/* ---------- 19. Mentions légales ---------- */
.legal { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.legal__body { max-width: 68ch; margin-top: 2.5rem; }
.legal h2 { padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1.125rem; font-weight: 600; }
.legal section + section { margin-top: 2.5rem; }
.legal section:first-child h2 { border-top: 0; padding-top: 0; }
.legal p { margin-top: 0.75rem; color: var(--ink-2); }
.legal dl { margin-top: 0.75rem; display: grid; gap: 0.35rem; color: var(--ink-2); }
.legal dl div { display: flex; flex-wrap: wrap; gap: 0 0.35em; }
.legal dt { color: var(--muted); }
.legal a { text-underline-offset: 3px; }
.legal__date { margin-top: 3rem !important; color: var(--muted) !important; font-size: 0.9375rem; }

/* ---------- 20. Mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
