/* ============================================================
   SmartLabo — site vitrine
   ------------------------------------------------------------
   Aucune dependance, aucun build. La palette reprend celle de
   l'application (client/src/styles/tokens.css) pour qu'un
   prospect qui se connecte apres la visite reconnaisse le
   produit : meme bleu clinique, meme neutre slate, meme Inter.
   ============================================================ */

/* --- 1. Jetons ------------------------------------------- */

:root {
  color-scheme: light;

  /* Rampe de marque : bleu clinique */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;

  /* Rampe neutre : slate legerement bleute */
  --slate-0: #ffffff;
  --slate-25: #fbfcfe;
  --slate-50: #f6f8fb;
  --slate-100: #eef1f6;
  --slate-200: #e2e7ef;
  --slate-300: #cbd3e0;
  --slate-400: #94a1b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #080d1a;

  /* Accents fonctionnels */
  --teal-500: #14b8a6;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --violet-500: #8b5cf6;

  /* Couche semantique — c'est elle que les composants lisent */
  --bg-page: var(--slate-0);
  --bg-alt: var(--slate-50);
  --bg-surface: var(--slate-0);
  --bg-raised: var(--slate-50);
  --bg-inset: var(--slate-100);
  --text-strong: var(--slate-900);
  --text-body: var(--slate-600);
  --text-muted: var(--slate-500);
  --text-inverse: var(--slate-0);
  --border-subtle: var(--slate-200);
  --border-strong: var(--slate-300);
  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --accent-soft: var(--blue-50);
  --accent-text: var(--blue-700);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -4px rgba(15, 23, 42, 0.1), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.12), 0 16px 40px -12px rgba(37, 99, 235, 0.28);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shell: 1180px;
  --nav-h: 68px;

  /* Decalage d'apparition, reecrit par site.js element par element
     pour obtenir une cascade a l'interieur d'une meme grille. */
  --reveal-delay: 0ms;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg-page: var(--slate-950);
  --bg-alt: #0b1220;
  --bg-surface: #101a2e;
  --bg-raised: #16233c;
  --bg-inset: #0b1220;
  --text-strong: #f1f5f9;
  --text-body: #a8b6cc;
  --text-muted: #7d8da8;
  --border-subtle: rgba(148, 161, 184, 0.18);
  --border-strong: rgba(148, 161, 184, 0.3);
  --accent: var(--blue-400);
  --accent-hover: var(--blue-300);
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-text: var(--blue-300);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(96, 165, 250, 0.18), 0 16px 40px -12px rgba(59, 130, 246, 0.35);
}

/* --- 2. Reset -------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 680;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--blue-600);
  color: #fff;
}

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

/* --- 3. Primitives --------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 9vw, 116px);
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-subtle);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow::before {
  display: none;
}

h2.title {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  margin-bottom: 16px;
}

h3.title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  line-height: 1.65;
  color: var(--text-body);
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), background-color 0.18s, border-color 0.18s,
    box-shadow 0.18s, color 0.18s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.16), 0 8px 24px -8px rgba(37, 99, 235, 0.5);
}

.btn--primary:hover {
  background: var(--blue-700);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.18), 0 14px 32px -10px rgba(37, 99, 235, 0.6);
}

.btn--ghost {
  background: var(--bg-surface);
  color: var(--text-strong);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn--onDark {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn--onDark:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 1rem;
}

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

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

/* Puces / badges */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text-body);
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  flex: none;
}

.chip--onDark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag--optional {
  background: color-mix(in srgb, var(--violet-500) 12%, transparent);
  color: var(--violet-500);
}

/* --- 4. Navigation --------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg-page) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}

.nav[data-scrolled="true"] {
  border-bottom-color: var(--border-subtle);
  background: color-mix(in srgb, var(--bg-page) 92%, transparent);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-right: auto;
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__sub {
  font-weight: 450;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__links a {
  padding: 8px 13px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-body);
  transition: color 0.15s, background-color 0.15s;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text-strong);
  background: var(--bg-inset);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-body);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.icon-btn:hover {
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

:root[data-theme="dark"] .theme-toggle .ico-sun,
.theme-toggle .ico-moon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .ico-moon,
.theme-toggle .ico-sun {
  display: none;
}

.nav__burger {
  display: none;
}

@media (max-width: 940px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s var(--ease-out);
  }

  .nav__links[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    padding: 12px 14px;
    font-size: 0.98rem;
  }

  .nav__burger {
    display: grid;
  }

  .nav__actions .btn--login {
    display: none;
  }

  .nav__links .btn--login {
    display: inline-flex;
    margin-top: 10px;
  }
}

@media (min-width: 941px) {
  .nav__links .btn--login {
    display: none;
  }
}

/* --- 5. Hero --------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--slate-950);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(72px, 10vw, 128px) clamp(0px, 4vw, 40px);
  margin-top: calc(var(--nav-h) * -1);
  padding-top: calc(var(--nav-h) + clamp(64px, 8vw, 104px));
}

/* Halos de couleur : deux nappes qui se croisent derriere le titre. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero::before {
  width: 780px;
  height: 640px;
  top: -280px;
  left: -140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 68%);
}

.hero::after {
  width: 660px;
  height: 560px;
  top: -140px;
  right: -180px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.32), transparent 68%);
}

/* Grille technique, en fondu vers le bas. */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  color: #fff;
  margin-block: 20px 22px;
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--blue-300) 10%, var(--teal-500) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  line-height: 1.62;
  color: rgba(226, 232, 240, 0.78);
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__proof li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(226, 232, 240, 0.7);
}

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

/* Maquette d'interface : construite en HTML, pas une capture — elle
   reste nette a tous les zooms et suit le theme. */
.mock {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.92), rgba(8, 13, 26, 0.94));
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.7s var(--ease-out);
}

.mock:hover {
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
}

@media (max-width: 1000px) {
  .mock {
    transform: none;
  }
  .mock:hover {
    transform: none;
  }
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.mock__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.mock__bar span {
  margin-left: 8px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: rgba(226, 232, 240, 0.42);
}

.mock__body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.mock__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock__kpi {
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mock__kpi b {
  display: block;
  font-size: 1.18rem;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.mock__kpi em {
  font-style: normal;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(226, 232, 240, 0.45);
}

.mock__rail {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock__step {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.mock__step.on {
  background: linear-gradient(90deg, var(--blue-500), var(--blue-400));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
}

.mock__rows {
  display: grid;
  gap: 7px;
}

.mock__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.72);
}

.mock__row b {
  font-weight: 550;
  color: rgba(255, 255, 255, 0.92);
}

.mock__val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.6);
}

.mock__pill {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.mock__pill.ok {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
}

.mock__pill.hi {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

.mock__pill.wait {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

/* Bandeau de logos / mentions sous le hero */
.strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 22px;
  background: rgba(8, 13, 26, 0.6);
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.5);
}

.strip__inner b {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* --- 6. Cartes ------------------------------------------- */

.card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-subtle));
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 1.06rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 16px;
}

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

.card__list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: grid;
  gap: 7px;
}

.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-body);
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
}

/* Carte mise en avant, sur fond sombre */
.card--dark {
  background: linear-gradient(160deg, var(--slate-900), var(--slate-950));
  border-color: rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.75);
}

.card--dark h3 {
  color: #fff;
}

.card--dark .card__icon {
  background: rgba(59, 130, 246, 0.16);
  color: var(--blue-300);
}

.card--dark .card__list li {
  color: rgba(226, 232, 240, 0.75);
}

/* --- 7. Le circuit en 8 etapes --------------------------- */

.rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  counter-reset: step;
}

@media (max-width: 1000px) {
  .rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rail__step {
  position: relative;
  padding: 18px 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}

.rail__step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* La vignette : l'icone de l'etape, avec son numero en pastille.
   Le numero reste indispensable — huit dessins ne portent pas un ordre,
   et c'est l'ordre qui fait le circuit. */
.rail__figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 14px;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}

.rail__figure svg {
  width: 25px;
  height: 25px;
}

.rail__figure::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg-surface);
}

.rail__step:hover .rail__figure {
  background: var(--accent);
  color: #fff;
  transform: scale(1.04);
}

/* Le fil qui relie les etapes : a la hauteur du centre des vignettes. */
.rail__step::after {
  content: "";
  position: absolute;
  top: 41px;
  left: calc(100% + 1px);
  width: 10px;
  height: 1px;
  background: var(--border-strong);
}

.rail__step:last-child::after,
.rail__step:nth-child(8n)::after {
  display: none;
}

@media (max-width: 1000px) {
  .rail__step:nth-child(4n)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .rail__step::after {
    display: none;
  }
}

.rail__step h4 {
  font-size: 0.9rem;
  font-weight: 620;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.rail__step p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* --- 8. Modules : bloc alterne texte / visuel ------------ */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 60px);
}

.feature + .feature {
  border-top: 1px solid var(--border-subtle);
}

.feature--flip .feature__media {
  order: -1;
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature--flip .feature__media {
    order: 0;
  }
}

.feature__body h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 14px;
}

.feature__body > p {
  font-size: 1rem;
  line-height: 1.66;
}

.feature__points {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.feature__points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.feature__points svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.feature__points b {
  display: block;
  color: var(--text-strong);
  font-weight: 620;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.feature__points span {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-body);
}

/* Panneau visuel générique (écran simulé) */
.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-raised);
}

.panel__head strong {
  font-size: 0.82rem;
  font-weight: 620;
  color: var(--text-strong);
}

.panel__head span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.panel__body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.line {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  font-size: 0.84rem;
}

.line strong {
  font-weight: 550;
  color: var(--text-strong);
}

.line em {
  font-style: normal;
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.line__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--text-strong);
  font-weight: 550;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 650;
  white-space: nowrap;
}

.badge--ok {
  background: color-mix(in srgb, var(--teal-500) 14%, transparent);
  color: color-mix(in srgb, var(--teal-500) 78%, var(--text-strong));
}

.badge--warn {
  background: color-mix(in srgb, var(--amber-500) 16%, transparent);
  color: color-mix(in srgb, var(--amber-500) 72%, var(--text-strong));
}

.badge--bad {
  background: color-mix(in srgb, var(--rose-500) 14%, transparent);
  color: color-mix(in srgb, var(--rose-500) 78%, var(--text-strong));
}

.badge--info {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.panel__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-raised);
}

.panel__total span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 600;
}

.panel__total b {
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

/* --- 7 ter. Telephones de la section « Sur mobile » ------
   Trois SVG inline, meme parti que la carte et l'agenda : les couleurs
   vivent ici, jamais en attribut `fill`, sinon le theme sombre ne peut
   plus les atteindre. */

.telephones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 44px);
}

@media (max-width: 900px) {
  .telephones {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }
}

.telephone {
  margin: 0;
  text-align: center;
}

.tel {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-inline: auto;
  font-family: var(--font-sans);
  filter: drop-shadow(0 18px 40px rgba(15, 23, 42, 0.16));
}

:root[data-theme="dark"] .tel {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
}

.telephone figcaption {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  text-align: left;
}

.telephone figcaption b {
  color: var(--text-strong);
  font-size: 1rem;
}

.telephone figcaption span {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Le chassis et son encoche. Volontairement neutre : c'est l'ecran qu'on
   regarde. Une teinte fixe, et non var(--text-strong) : en theme sombre
   celle-ci vire au blanc casse, et le telephone se retrouve cercle d'un
   halo clair qui hurle plus fort que son contenu. */
.tel__cadre,
.tel__hp {
  fill: var(--slate-900);
}

/* Assez clair pour cerner l'ecran, assez sombre pour rester un chassis. */
:root[data-theme="dark"] .tel__cadre,
:root[data-theme="dark"] .tel__hp {
  fill: #26334a;
}

.tel__ecran {
  fill: var(--bg-surface);
}

.tel__heure {
  fill: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tel__point {
  fill: var(--text-muted);
  opacity: 0.5;
}

.tel__titre {
  fill: var(--text-strong);
  font-size: 16px;
  font-weight: 700;
}

.tel__sous {
  fill: var(--text-muted);
  font-size: 10.5px;
}

.tel__carte {
  fill: var(--bg-alt);
  stroke: var(--border-subtle);
}

/* Une visite deja faite s'efface, sans disparaitre : le preleveur doit
   pouvoir verifier ce qu'il a deja preleve. */
.tel__carte--fait {
  opacity: 0.6;
}

.tel__champ {
  fill: var(--accent-soft);
  stroke: none;
}

.tel__h {
  fill: var(--text-strong);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tel__nom {
  fill: var(--text-strong);
  font-size: 12.5px;
  font-weight: 600;
}

.tel__meta {
  fill: var(--text-muted);
  font-size: 9.5px;
}

.tel__code {
  fill: var(--accent-text);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.tel__pill {
  fill: var(--bg-surface);
  stroke: var(--border-subtle);
}

.tel__pill-txt {
  fill: var(--text-muted);
  font-size: 9px;
  font-weight: 600;
  text-anchor: middle;
}

.tel__pill--ok {
  fill: color-mix(in srgb, var(--teal-500) 14%, var(--bg-surface));
  stroke: color-mix(in srgb, var(--teal-500) 34%, transparent);
}

.tel__pill-txt--ok {
  fill: var(--teal-500);
}

/* Les etapes du circuit. Trois teintes seulement : ce qui attend, ce qui
   travaille, ce qui est chez le biologiste. Une couleur par etape ferait
   huit couleurs, donc aucune. */
.tel__etape {
  fill: var(--bg-surface);
  stroke: var(--border-subtle);
}

.tel__etape--paillasse {
  fill: color-mix(in srgb, var(--amber-500) 14%, var(--bg-surface));
  stroke: color-mix(in srgb, var(--amber-500) 36%, transparent);
}

.tel__etape--bio {
  fill: var(--accent-soft);
  stroke: color-mix(in srgb, var(--accent) 34%, transparent);
}

.tel__etape-txt {
  fill: var(--text-body);
  font-size: 9px;
  font-weight: 600;
  text-anchor: middle;
}

.tel__pin {
  fill: var(--teal-500);
}

.tel__pin-oeil {
  fill: var(--bg-surface);
}

.tel__dl {
  fill: var(--accent-soft);
}

.tel__dl-fleche {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tel__pied {
  fill: var(--text-muted);
  font-size: 9.5px;
}

.tel__barre {
  fill: var(--text-muted);
  opacity: 0.4;
}

/* --- 7 bis. Illustration de l'agenda ---------------------
   Même parti que la carte de présence plus bas : un SVG inline habillé
   ici, jamais par des attributs `fill` en dur. C'est ce qui lui permet de
   basculer en thème sombre sans une seule ligne de JavaScript. */

.agenda-illus-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  padding: clamp(10px, 2vw, 20px);
  overflow: hidden;
}

/* Nappe de couleur derrière le coin haut-gauche, là où commence la lecture. */
.agenda-illus-wrap::before {
  content: "";
  position: absolute;
  inset: -18% 34% 28% -14%;
  background: radial-gradient(ellipse at 42% 42%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.agenda-illus {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-sans);
}

.agenda-illus__card {
  fill: var(--bg-surface);
  stroke: var(--border-subtle);
}

.agenda-illus__jour {
  fill: var(--text-strong);
  font-size: 19px;
  font-weight: 700;
}

.agenda-illus__rule {
  stroke: var(--border-subtle);
}

.agenda-illus__pill {
  fill: var(--accent-soft);
}

.agenda-illus__pill-txt {
  fill: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
}

/* La semaine : un jour choisi, un jour fermé, cinq jours ordinaires. */
.agenda-illus__chip {
  fill: var(--bg-inset);
}

/* --blue-600 fixe, et non var(--accent) : en thème sombre l'accent s'éclaircit
   jusqu'au bleu 400, sur lequel une lettre blanche ne se lit plus. Même choix
   que .btn--primary, pour la même raison. */
.agenda-illus__chip--on {
  fill: var(--blue-600);
}

.agenda-illus__chip--off {
  fill: none;
  stroke: var(--border-subtle);
  stroke-dasharray: 4 4;
}

.agenda-illus__chip-txt {
  fill: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}

.agenda-illus__chip-txt--on {
  fill: var(--text-inverse);
}

.agenda-illus__chip-txt--off {
  fill: var(--border-strong);
}

/* Le trait qui barre le dimanche. Sans lui, « fermé » et « libre » se
   ressemblent — et c'est exactement la confusion à éviter. */
.agenda-illus__barre {
  stroke: var(--border-strong);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.6;
}

.agenda-illus__row {
  fill: var(--bg-alt);
  stroke: var(--border-subtle);
}

.agenda-illus__row--plein {
  fill: color-mix(in srgb, var(--rose-500) 9%, var(--bg-surface));
  stroke: color-mix(in srgb, var(--rose-500) 26%, transparent);
}

.agenda-illus__row--libre {
  fill: none;
  stroke: var(--border-subtle);
  stroke-dasharray: 5 5;
}

.agenda-illus__heure {
  fill: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Une place, un point. Le compte se lit sans lire le chiffre à côté. */
.agenda-illus__seat {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.6;
}

.agenda-illus__seat--pris {
  fill: var(--accent);
  stroke: var(--accent);
}

.agenda-illus__nom {
  fill: var(--text-body);
  font-size: 12.5px;
}

.agenda-illus__nom--vide {
  fill: var(--text-muted);
  font-style: italic;
}

.agenda-illus__etat {
  fill: var(--bg-surface);
  stroke: var(--border-subtle);
}

.agenda-illus__etat-txt {
  fill: var(--text-body);
  font-size: 11.5px;
  font-weight: 600;
  text-anchor: middle;
}

.agenda-illus__etat--plein {
  fill: color-mix(in srgb, var(--rose-500) 14%, var(--bg-surface));
  stroke: color-mix(in srgb, var(--rose-500) 34%, transparent);
}

.agenda-illus__etat-txt--plein {
  fill: var(--rose-500);
}

.agenda-illus__pin {
  fill: var(--teal-500);
}

.agenda-illus__pin-oeil {
  fill: var(--bg-surface);
}

/* La référence lue au patient : posée par-dessus la carte, parce que c'est
   la dernière chose qui se dit avant de raccrocher. */
.agenda-illus__ticket rect {
  fill: var(--bg-surface);
  stroke: var(--border-subtle);
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.16));
}

:root[data-theme="dark"] .agenda-illus__ticket rect {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}

.agenda-illus__ticket-rond {
  fill: var(--accent-soft);
}

.agenda-illus__ticket-coche {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agenda-illus__ticket-num {
  fill: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.agenda-illus__ticket-sub {
  fill: var(--text-muted);
  font-size: 11.5px;
}

/* --- 8 bis. Carte de présence ---------------------------- */

.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  padding: clamp(12px, 2.5vw, 26px);
  overflow: hidden;
}

/* Nappe de couleur derriere l'Atlantique nord : elle attire l'oeil la ou
   sont les quatre pays, sans rien dessiner de plus. */
.map-wrap::before {
  content: "";
  position: absolute;
  inset: -10% 30% 10% -5%;
  background: radial-gradient(ellipse at 45% 45%, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.map {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.map__graticule {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 0.6;
  opacity: 0.55;
}

.map__land {
  fill: var(--bg-inset);
  stroke: var(--border-subtle);
  stroke-width: 0.5;
  stroke-linejoin: round;
}

.map__on {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 0.8;
  stroke-linejoin: round;
  transition: fill 0.25s var(--ease-out);
}

/* Le Senegal et la Cote d'Ivoire font quelques pixels de large : sans ce
   halo, un aplat les rendrait indiscernables du continent. */
.map__on[data-pays="senegal"],
.map__on[data-pays="cote-ivoire"] {
  stroke-width: 2.4;
  paint-order: stroke;
}

.map__link {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
  opacity: 0.42;
  animation: map-flux 2.6s linear infinite;
}

@keyframes map-flux {
  to {
    stroke-dashoffset: -20;
  }
}

.map__halo {
  fill: var(--accent);
  opacity: 0.18;
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse 3s var(--ease-out) infinite;
}

/* Les quatre halos decales : synchrones, ils battraient comme un seul objet. */
.map__pin[data-pays="france"] .map__halo {
  animation-delay: 0.6s;
}
.map__pin[data-pays="senegal"] .map__halo {
  animation-delay: 1.2s;
}
.map__pin[data-pays="cote-ivoire"] .map__halo {
  animation-delay: 1.8s;
}

@keyframes map-pulse {
  0% {
    transform: scale(0.45);
    opacity: 0.34;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.map__dot {
  fill: var(--bg-surface);
  stroke: var(--accent);
  stroke-width: 3;
}

.map__label {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.01em;
  fill: var(--text-strong);
  paint-order: stroke;
  stroke: var(--bg-surface);
  stroke-width: 4;
  stroke-linejoin: round;
}

/* Sous 640 px, la carte fait 320 px de large : les etiquettes deviendraient
   illisibles et se chevaucheraient. Les points restent, la liste dessous dit
   les noms. */
@media (max-width: 640px) {
  .map__label {
    display: none;
  }
}

/* Survol d'un pays dans la liste : son repere se leve sur la carte. */
.map__on.is-hot {
  fill: var(--accent-hover);
}

.map__pin.is-hot .map__dot {
  r: 7;
  stroke-width: 3.5;
}

.map__pin .map__dot {
  transition: r 0.2s var(--ease-out), stroke-width 0.2s var(--ease-out);
}

/* Liste des pays : elle porte l'information, la carte l'illustre. */
.presence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.presence__item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  cursor: default;
}

.presence__item:hover,
.presence__item:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.presence__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}

.presence__head b {
  font-size: 1rem;
  font-weight: 650;
  color: var(--text-strong);
  letter-spacing: -0.015em;
}

.presence__pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

.presence__item span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .map__link,
  .map__halo {
    animation: none;
  }

  .map__halo {
    opacity: 0.16;
  }
}

/* --- 9. Chiffres ----------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--border-subtle);
}

.stat {
  padding: 26px 22px;
  background: var(--bg-surface);
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* --- 10. Roles ------------------------------------------- */

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
}

.role {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}

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

.role__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.role__dot {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  flex: none;
}

.role__dot svg {
  width: 16px;
  height: 16px;
}

.role h4 {
  font-size: 0.95rem;
  font-weight: 640;
}

.role ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 5px;
}

.role li {
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text-body);
  padding-left: 14px;
  position: relative;
}

.role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* --- 11. FAQ --------------------------------------------- */

.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 10px;
}

details.qa {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

details.qa[open] {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border-subtle));
  box-shadow: var(--shadow-sm);
}

details.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 52px 17px 20px;
  position: relative;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-strong);
}

details.qa summary::-webkit-details-marker {
  display: none;
}

details.qa summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}

details.qa[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

details.qa .qa__body {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-body);
}

/* --- 12. Appel a l'action ------------------------------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 60px);
  background: linear-gradient(140deg, var(--blue-800), var(--slate-950) 62%);
  text-align: center;
  color: rgba(226, 232, 240, 0.8);
}

.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -10% auto -10%;
  height: 420px;
  background: radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.35), transparent 62%);
  filter: blur(50px);
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}

.cta p {
  max-width: 60ch;
  margin-inline: auto;
  font-size: 1.02rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

/* --- 13. Pied de page ------------------------------------ */

.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-alt);
  padding-block: 56px 28px;
  margin-top: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 800px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

.footer__brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  max-width: 38ch;
  color: var(--text-muted);
}

.footer h5 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-strong);
  font-weight: 650;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer a {
  font-size: 0.89rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer a:hover {
  color: var(--accent-text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- 14. Page interne : en-tete ------------------------- */

.page-head {
  padding-block: clamp(48px, 7vw, 84px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg-page));
}

.page-head h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 16px;
}

.page-head .lead {
  max-width: 68ch;
}

/* --- 15. Tarifs ------------------------------------------ */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 20px;
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.plan--featured::before {
  content: "Le plus demandé";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--blue-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.plan h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.plan__pitch {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 42px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-block: 18px 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.plan__price b {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.plan__price span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  flex: 1;
}

.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  align-items: start;
}

.plan li svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--teal-500);
  flex: none;
}

.plan li.off {
  color: var(--text-muted);
}

.plan li.off svg {
  color: var(--border-strong);
}

/* Tableau comparatif */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

table.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.89rem;
}

table.compare th,
table.compare td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

table.compare thead th {
  background: var(--bg-raised);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 650;
  position: sticky;
  top: 0;
}

table.compare tbody th {
  font-weight: 550;
  color: var(--text-strong);
}

table.compare td {
  text-align: center;
  color: var(--text-body);
}

table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td {
  border-bottom: none;
}

table.compare tbody tr:hover {
  background: var(--bg-raised);
}

.yes {
  color: var(--teal-500);
  font-weight: 700;
}

.no {
  color: var(--border-strong);
}

/* --- 16. Formulaire ------------------------------------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

@media (max-width: 880px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}

.form {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}

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

.field--half {
  grid-column: span 1;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-strong);
}

.field label .req {
  color: var(--rose-500);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  font-size: 0.94rem;
  color: var(--text-strong);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

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

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

.field__hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.checkline {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-body);
}

.checkline input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--blue-600);
}

.checkline a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  display: none;
}

.form__status[data-state="ok"] {
  display: block;
  background: color-mix(in srgb, var(--teal-500) 12%, transparent);
  color: color-mix(in srgb, var(--teal-500) 80%, var(--text-strong));
  border: 1px solid color-mix(in srgb, var(--teal-500) 30%, transparent);
}

.form__status[data-state="err"] {
  display: block;
  background: color-mix(in srgb, var(--rose-500) 10%, transparent);
  color: color-mix(in srgb, var(--rose-500) 80%, var(--text-strong));
  border: 1px solid color-mix(in srgb, var(--rose-500) 28%, transparent);
}

.aside-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-alt);
}

.aside-card + .aside-card {
  margin-top: 16px;
}

.aside-card h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.contact-list .role__dot {
  width: 34px;
  height: 34px;
}

.contact-list b {
  display: block;
  font-size: 0.84rem;
  color: var(--text-strong);
  font-weight: 620;
}

.contact-list span,
.contact-list a {
  font-size: 0.86rem;
  color: var(--text-body);
}

.contact-list a:hover {
  color: var(--accent-text);
}

/* --- 17. Document juridique ------------------------------ */

.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
  }
  .doc__toc {
    position: static;
  }
}

.doc__toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-alt);
}

.doc__toc h5 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  font-weight: 650;
  margin-bottom: 12px;
}

.doc__toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
  display: grid;
  gap: 7px;
}

.doc__toc a {
  font-size: 0.85rem;
  color: var(--text-body);
  transition: color 0.15s;
}

.doc__toc a:hover {
  color: var(--accent-text);
}

.doc__body h2 {
  font-size: 1.35rem;
  margin-block: 38px 12px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

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

.doc__body h3 {
  font-size: 1.02rem;
  margin-block: 22px 8px;
}

.doc__body p,
.doc__body li {
  font-size: 0.94rem;
  line-height: 1.68;
}

.doc__body p + p {
  margin-top: 12px;
}

.doc__body ul,
.doc__body ol {
  margin-top: 12px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.doc__body strong {
  color: var(--text-strong);
  font-weight: 620;
}

.doc__body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callout {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 16px;
}

.callout--warn {
  border-left-color: var(--amber-500);
}

.callout b {
  color: var(--text-strong);
}

/* --- 18. Apparition au defilement ------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .mock {
    transform: none;
  }
}

/* --- 19. Accessibilite ----------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--blue-600);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip:focus {
  left: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 20. Impression -------------------------------------- */

@media print {
  .nav,
  .cta,
  .footer,
  .hero__grid {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
