/* ==========================================================================
   CertifOf — Design System
   Tokens, base, composants. Aucun framework.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* — Couleurs de marque —
     Ardoise froide pour l'autorité, bleu électrique pour l'action,
     émeraude pour la validation (un agrément obtenu), rouge réservé à
     une seule chose : le référentiel qui change le 1er novembre 2026.
     Trois couleurs, trois sens. Rien d'autre n'entre dans la palette. */
  --ink:            #0F1720;
  --ink-soft:       #1C2836;
  --ink-mute:       #5A6672;
  --ink-faint:      #94A0AE;

  --paper:          #F7F8FA;
  --paper-warm:     #EEF1F5;
  --paper-edge:     #E0E5EC;
  --white:          #FFFFFF;

  --signal:         #059669;  /* émeraude — validation, agrément obtenu */
  --signal-dark:    #047857;
  --signal-soft:    #E7F6F0;

  --action:         #2563EB;  /* bleu électrique — les boutons, et rien d'autre */
  --action-dark:    #1D4ED8;
  --action-soft:    #E6EDFE;
  --action-light:   #93B4FD;  /* sur fond ardoise */

  --alert:          #DC2626;  /* le décret de novembre 2026, uniquement */
  --alert-dark:     #B91C1C;
  --alert-soft:     #FDEAEA;
  --alert-light:    #FCA5A5;  /* sur fond ardoise */

  /* — Sémantique — */
  --bg:             var(--paper);
  --bg-raised:      var(--white);
  --bg-sunken:      var(--paper-warm);
  --bg-inverse:     var(--ink);
  --text:           var(--ink);
  --text-mute:      var(--ink-mute);
  --text-inverse:   var(--paper);
  --border:         var(--paper-edge);
  --border-strong:  #C8D0DA;

  /* — Typographie — */
  --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  /* Échelle modulaire 1.25, fluide */
  --text-xs:   0.78rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   clamp(1.05rem, 0.4vw + 0.95rem, 1.15rem);
  --text-lg:   clamp(1.25rem, 0.6vw + 1.1rem, 1.45rem);
  --text-xl:   clamp(1.5rem, 1vw + 1.25rem, 1.85rem);
  --text-2xl:  clamp(1.85rem, 1.8vw + 1.4rem, 2.5rem);
  --text-3xl:  clamp(2rem, 1.6vw + 1.4rem, 2.85rem);
  --text-4xl:  clamp(2.35rem, 2.2vw + 1.6rem, 3.5rem);

  --leading-tight: 1.08;
  --leading-snug:  1.25;
  --leading-base:  1.6;
  --leading-loose: 1.75;

  --tracking-tight: -0.022em;
  --tracking-snug:  -0.012em;
  --tracking-wide:  0.06em;

  /* — Espacement, échelle 4px — */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;

  /* — Bordures — */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* — Élévation — discrète, on n'est pas sur une app SaaS */
  --shadow-sm: 0 1px 2px rgba(15, 23, 32, 0.05);
  --shadow:    0 2px 8px rgba(15, 23, 32, 0.07), 0 1px 2px rgba(15, 23, 32, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 32, 0.10), 0 2px 8px rgba(15, 23, 32, 0.05);

  /* — Mouvement — */
  --ease:      cubic-bezier(0.2, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  120ms;
  --dur:       200ms;
  --dur-slow:  400ms;

  /* — Layout — */
  --container:      1160px;
  --container-prose: 720px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-2xl); letter-spacing: var(--tracking-snug); }
h3 { font-size: var(--text-lg); letter-spacing: var(--tracking-snug); }
h4 { font-size: var(--text-base); }

p { text-wrap: pretty; }

a { color: var(--signal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }

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

::selection { background: var(--signal-soft); color: var(--ink); }

/* Accessibilité — lien d'évitement */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); z-index: 999;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

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

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--prose { max-width: var(--container-prose); }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sunken { background: var(--bg-sunken); }
.section--raised { background: var(--bg-raised); }
.section--inverse {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}
.section--inverse h2, .section--inverse h3 { color: var(--white); }
.section--inverse a { color: #93B4FD; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--narrow-first { grid-template-columns: 0.8fr 1.2fr; }
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHIE UTILITAIRE
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--signal-dark);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.eyebrow::before {
  content: '';
  width: 1.5rem; height: 2px;
  background: var(--signal);
  flex: none;
}
.section--inverse .eyebrow { color: #93B4FD; }
.section--inverse .eyebrow::before { background: #93B4FD; }

.lead {
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--text-mute);
  max-width: 54ch;
}
.section--inverse .lead { color: #B8C4D4; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose ul, .prose ol { padding-left: var(--sp-5); }
.prose li + li { margin-top: var(--sp-2); }
.prose strong { font-weight: 600; }

.text-mute { color: var(--text-mute); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

/* Chiffres tabulaires — prix, délais, statistiques */
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8em 1.5em;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  line-height: 1.2;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--action);
  color: var(--white);
}
.btn--primary:hover { background: var(--action-dark); color: var(--white); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: var(--ink-soft); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--outline:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }

.section--inverse .btn--outline {
  color: var(--paper);
  border-color: rgba(247, 248, 250, 0.35);
}
.section--inverse .btn--outline:hover {
  background: rgba(247, 248, 250, 0.08);
  border-color: var(--paper);
  color: var(--white);
}

.btn--ghost { background: transparent; color: var(--signal-dark); padding-inline: 0; }
.btn--ghost:hover { color: var(--signal); gap: var(--sp-3); }

.btn--lg { font-size: var(--text-md); padding: 0.9em 1.8em; }
.btn--sm { font-size: var(--text-sm); padding: 0.6em 1.1em; }
.btn--block { display: flex; width: 100%; }

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

/* --------------------------------------------------------------------------
   6. BADGES & PASTILLES
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3em 0.75em;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  background: var(--paper-warm);
  color: var(--text-mute);
  border: 1px solid var(--border);
}
.badge--signal { background: var(--signal-soft); color: var(--signal-dark); border-color: transparent; }
.badge--action { background: var(--alert-soft); color: var(--alert-dark); border-color: transparent; }
.badge--ink { background: var(--ink); color: var(--paper); border-color: transparent; }

/* --------------------------------------------------------------------------
   7. CARTE DOSSIER — composant signature
   Métaphore du dossier administratif : onglet en coin, filet fin.
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

.card--offer { display: flex; flex-direction: column; gap: var(--sp-4); }
/* Aligne les prix d'une carte à l'autre malgré des accroches de longueurs différentes */
.card--offer .card__head { min-height: 6.25rem; }
@media (max-width: 880px) { .card--offer .card__head { min-height: 0; } }
.card--offer .card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.card__was {
  font-size: var(--text-sm);
  color: var(--ink-faint);
  text-decoration: line-through;
  margin-left: var(--sp-2);
}
.card__meta {
  font-size: var(--text-sm);
  color: var(--text-mute);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.card__list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); font-size: var(--text-sm); }
.card__list li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: var(--sp-2);
  align-items: start;
}
.card__list li::before {
  content: '';
  width: 1.15rem; height: 1.15rem;
  margin-top: 0.15em;
  background: var(--signal-soft);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23059669' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-position: center;
  background-repeat: no-repeat;
}
.card__list li.is-excluded::before {
  background-color: var(--paper-warm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2394A0AE' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4.5 8h7'/%3E%3C/svg%3E");
}

/* Carte mise en avant */
.card--featured {
  border-color: var(--ink);
  border-width: 1.5px;
  box-shadow: var(--shadow-lg);
}
.card__flag {
  position: absolute;
  top: 0; right: var(--sp-5);
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   8. PARCOURS — composant signature
   Le produit est un enchaînement d'agréments. On en fait le motif graphique.
   -------------------------------------------------------------------------- */
.parcours {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
  counter-reset: etape;
}
@media (min-width: 760px) {
  .parcours { grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
}
.parcours__step {
  position: relative;
  padding-top: var(--sp-5);
  counter-increment: etape;
}
.parcours__step::before {
  content: '';
  position: absolute;
  top: 0.45rem; left: 0;
  width: 0.85rem; height: 0.85rem;
  border-radius: var(--radius-full);
  background: var(--paper);
  border: 2.5px solid var(--border-strong);
  z-index: 1;
}
.parcours__step::after {
  content: '';
  position: absolute;
  top: 0.82rem; left: 0.85rem; right: 0;
  height: 2px;
  background: var(--border);
}
.parcours__step:last-child::after { display: none; }
@media (max-width: 759px) {
  .parcours__step { padding-top: 0; padding-left: var(--sp-5); }
  .parcours__step::before { top: 0.35rem; }
  .parcours__step::after {
    top: 1.2rem; left: 0.38rem; right: auto;
    width: 2px; height: calc(100% - 0.4rem);
  }
}
.parcours__step.is-active::before { background: var(--signal); border-color: var(--signal); }
.parcours__step.is-done::before { background: var(--signal-soft); border-color: var(--signal); }
.parcours__step.is-active::after { background: var(--signal); }
.parcours__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.25;
  letter-spacing: var(--tracking-snug);
}
.parcours__note { display: block; font-size: var(--text-sm); line-height: 1.4; color: var(--text-mute); margin-top: var(--sp-1); }
.section--inverse .parcours__step::before { background: var(--ink); border-color: #33404F; }
.section--inverse .parcours__step::after { background: #253241; }
.section--inverse .parcours__note { color: #9CACC0; }

/* --------------------------------------------------------------------------
   9. STATISTIQUES
   -------------------------------------------------------------------------- */
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4vw + 1.7rem, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; font-size: var(--text-sm); line-height: 1.4; color: var(--text-mute); margin-top: var(--sp-2); max-width: 26ch; }
.section--inverse .stat__label { color: #9CACC0; }

/* --------------------------------------------------------------------------
   10. FAQ — <details> natif, accessible sans JS
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: var(--tracking-snug);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--signal-dark); }
.faq__q::after {
  content: '';
  flex: none;
  width: 1.1rem; height: 1.1rem;
  margin-top: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235A6672' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding-bottom: var(--sp-5); color: var(--text-mute); max-width: 72ch; }
.faq__a > * + * { margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   11. TABLEAU COMPARATIF
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 540px;
}
.table th, .table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table thead th {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-mute);
  border-bottom-color: var(--border-strong);
}
.table td.num, .table th.num { font-variant-numeric: tabular-nums; }
.table tbody tr:hover { background: var(--bg-sunken); }

/* --------------------------------------------------------------------------
   12. NOTE / ENCADRÉ
   -------------------------------------------------------------------------- */
.note {
  border-left: 3px solid var(--signal);
  background: var(--signal-soft);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-sm);
}
.note--warn { border-left-color: var(--alert); background: var(--alert-soft); }
.note--alert { border-left-color: var(--alert); background: var(--alert-soft); }
.note__title { font-family: var(--font-display); font-weight: 600; margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------------------
   13. EN-TÊTE & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 4.25rem;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo__mark { color: var(--signal); }
.logo:hover { color: var(--ink); }

.nav { display: none; gap: var(--sp-5); align-items: center; }
@media (min-width: 1000px) { .nav { display: flex; } }
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-mute);
  text-decoration: none;
  padding-block: var(--sp-2);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  font-size: var(--text-sm);
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding-block: var(--sp-4);
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: var(--sp-3) 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   14. FIL D'ARIANE
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: var(--text-sm); color: var(--text-mute); padding-block: var(--sp-4); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.breadcrumb li + li::before { content: '/'; margin-right: var(--sp-2); color: var(--ink-faint); }
.breadcrumb a { color: var(--text-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--signal-dark); text-decoration: underline; }

/* --------------------------------------------------------------------------
   15. FORMULAIRE
   -------------------------------------------------------------------------- */
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--text-sm); font-weight: 600; font-family: var(--font-display); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.75em 0.9em;
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: var(--text-base);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.field__hint { font-size: var(--text-xs); color: var(--text-mute); }
.field textarea { resize: vertical; min-height: 7rem; }

/* Choix radio en cartes — utilisé par le diagnostic */
.choice { display: grid; gap: var(--sp-3); }
.choice__item { position: relative; }
.choice__item input {
  position: absolute; opacity: 0;
  width: 1px; height: 1px;
}
.choice__item label {
  display: block;
  padding: var(--sp-4);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.choice__item label:hover { border-color: var(--border-strong); }
.choice__item input:checked + label {
  border-color: var(--signal);
  background: var(--signal-soft);
}
.choice__item input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   16. PIED DE PAGE
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: #9CACC0;
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--text-sm);
}
.footer a { color: #C9D4E2; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer h3 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: #74839A;
  margin-bottom: var(--sp-3);
  font-weight: 600;
}
.footer__grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer__list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid #222E3C;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: #74839A;
}
.footer .logo { color: var(--paper); }

/* --------------------------------------------------------------------------
   17. HERO
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 19ch; }
.hero__lead {
  margin-top: var(--sp-5);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--text-mute);
  max-width: 50ch;
}
.hero__actions { margin-top: var(--sp-6); }
.hero__trust {
  margin-top: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}
.hero__trust span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.hero__trust span::before {
  content: '';
  width: 0.4rem; height: 0.4rem;
  border-radius: var(--radius-full);
  background: var(--signal);
}

/* --------------------------------------------------------------------------
   18. ARTICLE / BLOG
   -------------------------------------------------------------------------- */
.article-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.article-card:hover { border-color: var(--border-strong); transform: translateY(-2px); color: inherit; }
.article-card h3 { font-size: var(--text-md); }
.article-card__meta {
  font-size: var(--text-xs);
  color: var(--text-mute);
  display: flex;
  gap: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-body { max-width: 68ch; }
.article-body > * + * { margin-top: var(--sp-4); }
.article-body h2 { margin-top: var(--sp-7); font-size: var(--text-xl); }
.article-body h3 { margin-top: var(--sp-6); }
.article-body ul, .article-body ol { padding-left: var(--sp-5); }
.article-body li + li { margin-top: var(--sp-2); }
.article-body table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.article-body th, .article-body td {
  text-align: left; padding: var(--sp-3);
  border-bottom: 1px solid var(--border);
}
.article-body th { font-family: var(--font-display); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-mute); }

/* --------------------------------------------------------------------------
   19. UTILITAIRES
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mt-9 { margin-top: var(--sp-9); }
.text-center { text-align: center; }
.center { margin-inline: auto; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* Les exposants ne doivent pas déformer l'interligne des titres */
sup, sub { font-size: 0.62em; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

/* Lien discret vers l'espace client, dans l'en-tête. */
.header__espace {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-mute);
  text-decoration: none;
  white-space: nowrap;
}
.header__espace:hover { color: var(--ink); }
@media (max-width: 880px) { .header__espace { display: none; } }

/* ==========================================================================
   Setter — le bot de qualification de la page d'accueil
   ========================================================================== */

.setter {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: var(--sp-3);
  max-width: calc(100vw - var(--sp-5) * 2);
}

/* --- Le déclencheur ---------------------------------------------------- */
.setter__declencheur {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5) var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-raised);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.setter__declencheur:hover { transform: translateY(-2px); }
.setter[data-etat="ouvert"] .setter__declencheur { display: none; }

.setter__pastille {
  width: 0.7rem; height: 0.7rem; flex: none;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45);
  animation: setter-pouls 2.6s var(--ease) infinite;
}
@keyframes setter-pouls {
  0%   { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
  70%  { box-shadow: 0 0 0 0.6rem rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .setter__pastille { animation: none; }
  .setter__declencheur:hover { transform: none; }
}

.setter__accroche { display: grid; gap: 0.1rem; }
.setter__accroche strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  line-height: 1.25;
}
.setter__accroche span {
  font-size: var(--text-xs);
  color: var(--text-mute);
}

/* --- Le panneau -------------------------------------------------------- */
.setter__panneau {
  width: min(24rem, calc(100vw - var(--sp-5) * 2));
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.setter__panneau[hidden] { display: none; }

.setter__entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--ink);
  color: var(--paper);
}
.setter__titre {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}
.setter__sous { font-size: var(--text-xs); color: #9CACC0; margin-top: 0.15rem; }
.setter__fermer {
  background: none; border: 0; cursor: pointer;
  color: #9CACC0; font-size: 1.5rem; line-height: 1;
  padding: 0 0.2rem;
}
.setter__fermer:hover { color: var(--white); }

.setter__fil {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  max-height: min(24rem, 48vh);
  overflow-y: auto;
}
.setter__bulle {
  max-width: 88%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.setter__bulle--bot {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-bottom-left-radius: var(--radius-sm);
  justify-self: start;
}
.setter__bulle--visiteur {
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: var(--radius-sm);
  justify-self: end;
}
.setter__bulle--attente { color: var(--text-mute); letter-spacing: 0.2em; }

.setter__confirme {
  font-size: var(--text-xs);
  color: var(--signal-dark);
  background: var(--signal-soft);
  padding: var(--sp-3);
  border-radius: var(--radius);
}

.setter__suggestions {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  padding: 0 var(--sp-5) var(--sp-4);
}
.setter__suggestions[hidden] { display: none; }
.setter__suggestions button {
  font: inherit;
  font-size: var(--text-xs);
  padding: 0.35rem var(--sp-3);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.setter__suggestions button:hover { border-color: var(--action); color: var(--action-dark); }

.setter__saisie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
}
.setter__saisie[hidden] { display: none; }
.setter__saisie input {
  font: inherit;
  font-size: var(--text-sm);
  padding: var(--sp-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  min-width: 0;
}
.setter__saisie input:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }

.setter__mention {
  padding: 0 var(--sp-4) var(--sp-4);
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--text-mute);
}
.setter__mention a { color: var(--text-mute); }

@media (max-width: 560px) {
  .setter { right: var(--sp-3); bottom: var(--sp-3); left: var(--sp-3); justify-items: stretch; }
  .setter__panneau { width: 100%; }
  .setter__accroche span { display: none; }
}
