/* =========================================================================
   CLARRY — SYSTÈME
   Aucune couleur en dur : tout vient de tokens.css.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::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: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

body {
  /* Le tiroir de nav mobile est parqué hors écran à droite
     (translateX(100%)) : sans ce clip, il crée un défilement latéral
     parasite sur téléphone. `clip` plutôt que `hidden` — il ne crée pas
     de conteneur de défilement, donc le header sticky continue de coller. */
  overflow-x: clip;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--c-ink-2);
  background: var(--c-paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  /* Grain de papier : trame très fine, donne de la matière au fond uni */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(22,19,15,.035) 1px, transparent 0);
  background-size: 22px 22px;
}

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-ink);
  font-weight: var(--w-semi);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: var(--t-h4); font-family: var(--f-body); font-weight: var(--w-semi); letter-spacing: 0; }
p  { text-wrap: pretty; }
strong { color: var(--c-ink); font-weight: var(--w-semi); }

a { color: var(--c-accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-ink); }

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-ink-2); }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); letter-spacing: .06em; text-transform: uppercase; font-weight: var(--w-semi); }

/* Œil du grand livre : l'eyebrow de section, filet + petites capitales */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase;
  font-weight: var(--w-semi); color: var(--c-ink-3);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--c-line-strong);
}

/* Mot souligné à la main — accent éditorial sur les titres */
.underline-hand {
  background-image: linear-gradient(var(--c-accent), var(--c-accent));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 3px;
  padding-bottom: .05em;
}

/* ---------- Accessibilité ---------- */
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: var(--r-sm); }
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--c-ink); color: var(--c-on-dark);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Mise en page ---------- */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap-narrow { width: min(860px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-paper-2); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark-2); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-on-dark); }
.section--dark .eyebrow { color: var(--c-on-dark-2); }
.section--dark .eyebrow::before { background: var(--c-on-dark-2); }

.section-head { max-width: 62ch; margin-bottom: var(--sp-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: var(--sp-4); font-size: var(--t-lead); }

.grid { display: grid; gap: var(--sp-5); }
.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(220px, 1fr)); }

/* Filet de séparation, comme une réglure de registre */
.rule { height: var(--bw); background: var(--c-line); border: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-weight: var(--w-semi); font-size: var(--t-body);
  padding: .8em 1.5em; border-radius: var(--r-pill);
  border: var(--bw) solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease),
              background-color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--c-accent-hi); color: var(--c-on-accent); box-shadow: var(--sh-accent); }
.btn--ghost { border-color: var(--c-line-strong); color: var(--c-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); background: var(--c-paper-2); }
.btn--light { background: var(--c-accent-dark); color: var(--c-on-accent-dark); }
.btn--light:hover { background: var(--c-accent); color: var(--c-on-accent); }
.btn--lg { padding: .95em 1.9em; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* Lien fléché : la flèche avance au survol */
.link-arrow { font-weight: var(--w-semi); text-decoration: none; display: inline-flex; gap: var(--sp-2); align-items: center; }
.link-arrow.small { font-size: var(--t-small); }
.link-arrow::after { content: "→"; transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--t-micro); font-weight: var(--w-semi);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .4em .8em; border-radius: var(--r-pill);
  background: var(--c-accent-wash); color: var(--c-accent-ink);
}
.badge--ok { background: color-mix(in srgb, var(--c-ok) 12%, transparent); color: var(--c-ok-ink); }
.badge--ko { background: color-mix(in srgb, var(--c-ko) 12%, transparent); color: var(--c-ko-ink); }
.badge--outline { background: transparent; border: var(--bw) solid var(--c-line-strong); color: var(--c-ink-3); }

/* =========================================================================
   HEADER + MEGA-MENU
   ========================================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--c-paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: var(--bw) solid transparent;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--c-line); box-shadow: var(--sh-sm); }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-6);
  /* Ancre des mega-menus : ils se calent sur la largeur de contenu,
     jamais sur le bouton — sinon un panneau large sort de l'écran
     entre 1025 et 1200 px. */
  position: relative;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.48em;
  font-family: var(--f-display); font-weight: var(--w-bold);
  font-size: 1.5rem; letter-spacing: -0.03em; color: var(--c-ink);
  text-decoration: none; line-height: 1;
}
/* 24/08/2026 : la pastille passe à gauche du mot et devient un vrai rond.
   C'était auparavant le point typographique de Fraunces, placé à droite —
   donc impossible à grossir sans déformer le mot.
   Proportions relevées dans l'application (`.brand .dot` de app/css/clarry.css) :
   diamètre 0.57 em et écart 0.48 em, ratios constants de ses clamp().
   En revanche la TYPOGRAPHIE DU MOT reste celle du site — Fraunces, minuscule,
   graisse et interlettrage du site — et non celle de l'app (« Clarry »,
   capitale, weight 680). Arbitré par Marc le 24/08/2026.
   Dimensionnée en em : elle suit la taille du logo, donc plus petite dans le
   pied de page sans réglage supplémentaire. */
.logo__dot {
  flex: none; width: 0.57em; height: 0.57em;
  border-radius: 50%; background: var(--c-accent);
}

.nav { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav__item { position: static; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.9375rem; font-weight: var(--w-medium);
  color: var(--c-ink-2); text-decoration: none; border-radius: var(--r-md);
  background: none; border: 0; cursor: pointer;
  transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.nav__link:hover, .nav__item:focus-within > .nav__link,
.nav__link[aria-expanded="true"] { color: var(--c-ink); background: var(--c-paper-2); }
.nav__link[aria-current="page"] { color: var(--c-ink); font-weight: var(--w-semi); }
.nav__chev { width: 10px; height: 10px; transition: transform var(--dur-2) var(--ease); }
.nav__item:hover .nav__chev,
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.header__cta { display: flex; align-items: center; gap: var(--sp-3); margin-left: var(--sp-4); }

/* Le panneau déroulant */
.mega {
  position: absolute; top: calc(100% + 10px); left: 0; right: auto;
  transform: translateY(-6px);
  width: min(620px, 100%);
  background: var(--c-paper);
  border: var(--bw) solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: var(--sp-5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease),
              transform var(--dur-2) var(--ease-out),
              visibility var(--dur-2);
}
.mega--wide { width: min(760px, 100%); }
/* Les entrées de droite s'alignent sur le bord droit du contenu */
.nav__item:nth-of-type(n+3) .mega { left: auto; right: 0; }

/* Un panneau est ouvert dans trois cas :
   · data-open — posé par le JS, qui gère survol, clic et délai de fermeture ;
   · focus-within — navigation au clavier ;
   · :hover SANS JS — filet de sécurité si le script ne se charge pas.
   Le survol n'ouvre plus directement quand le JS pilote (.nav[data-js]) :
   sinon deux panneaux pouvaient se chevaucher pendant la fermeture
   différée de l'un, et celui du dessus interceptait les clics. */
.mega[data-open="true"],
.nav__item:focus-within > .mega,
.nav:not([data-js]) .nav__item:hover > .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
/* Un panneau qui se ferme ne doit plus rien intercepter, même pendant
   son fondu de sortie. */
.nav[data-js] .mega:not([data-open="true"]) { pointer-events: none; }
/* Pont invisible : évite que le menu se ferme en traversant le vide
   entre le bouton et le panneau. Porté par le panneau lui-même, pour
   que .nav__item puisse rester en position: static. */
/* Déborde légèrement sur les côtés pour rattraper les trajectoires en
   diagonale entre le bouton et le panneau. */
.mega::before { content: ""; position: absolute; left: -24px; right: -24px; top: -18px; height: 20px; }

.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
.mega__grid--3 { grid-template-columns: repeat(3, 1fr); }
.mega__col-title {
  grid-column: 1 / -1;
  font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase;
  font-weight: var(--w-semi); color: var(--c-ink-3);
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
}
.mega__link {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-3); border-radius: var(--r-lg);
  text-decoration: none; color: var(--c-ink);
  border: 1px solid transparent;
  /* Retour immédiat au survol : une transition longue donne l'impression
     que le lien ne réagit pas. */
  transition: background-color 110ms var(--ease),
              border-color 110ms var(--ease),
              transform 110ms var(--ease);
}
/* Le survol doit être FRANC : un simple gris à 6 niveaux d'écart du fond
   est imperceptible, et l'utilisateur ne comprend pas que c'est cliquable. */
.mega__link:hover,
.mega__link:focus-visible {
  background: var(--c-accent-wash);
  border-color: color-mix(in srgb, var(--c-accent) 35%, transparent);
  color: var(--c-ink);
  transform: translateX(2px);
}
.mega__link:hover strong { color: var(--c-accent-ink); }

/* ⚠️ Sélecteur volontairement porté à deux classes : `.mega__link span`,
   défini plus bas pour le texte, est plus spécifique que `.mega__ico` seul
   et imposait `display: block`. La pastille n'était donc jamais en grid et
   son contenu restait collé en haut. */
.mega__link .mega__ico {
  flex: 0 0 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--c-accent-wash); color: var(--c-accent-ink);
  transition: background-color 110ms var(--ease), color 110ms var(--ease);
}
/* Icônes SVG sur grille 24×24 : le centrage ne dépend plus des métriques
   d'un glyphe typographique, il est géométrique donc identique partout. */
.mega__ico svg { display: block; width: 19px; height: 19px; }
/* L'icône bascule en ambre plein : c'est le signal le plus lisible. */
.mega__link:hover .mega__ico,
.mega__link:focus-visible .mega__ico {
  background: var(--c-accent); color: var(--c-on-accent);
}
.mega__link strong { display: block; font-size: 0.9375rem; font-weight: var(--w-semi); line-height: 1.3; }
.mega__link span { display: block; font-size: var(--t-small); color: var(--c-ink-3); line-height: 1.4; margin-top: 2px; }

.mega__aside {
  background: var(--c-paper-2); border-radius: var(--r-lg);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
}
.mega__foot {
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: var(--bw) solid var(--c-line);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  font-size: var(--t-small);
}

/* Burger */
.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: var(--bw) solid var(--c-line-strong);
  border-radius: var(--r-md); background: transparent; cursor: pointer;
  place-items: center;
}
.burger__bar { display: block; width: 18px; height: 1.5px; background: var(--c-ink); transition: transform var(--dur-2) var(--ease), opacity var(--dur-1); }
.burger__bar + .burger__bar { margin-top: 4px; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .burger { display: grid; }
  .header__cta { display: none; }
  .nav {
    /* ⚠️ .header porte un backdrop-filter : il devient donc le bloc
       conteneur de ses descendants en position:fixed. Un `bottom: 0`
       se calerait sur le bas du header (72px) et le tiroir aurait une
       hauteur nulle. On impose donc une hauteur explicite. */
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    height: calc(100dvh - var(--header-h));
    z-index: 1;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-paper);
    padding: var(--sp-5) var(--gutter) var(--sp-9);
    overflow-y: auto; margin-left: 0;
    /* Le tiroir ne se gare PAS hors écran : un élément position:fixed
       n'est pas clippé par l'overflow du body, et translateX(100%)
       provoquait un défilement latéral parasite sur téléphone.
       Il occupe donc toujours la largeur de l'écran et n'apparaît
       qu'en fondu, avec un léger glissement. */
    /* Glissement VERTICAL : tout décalage horizontal, même de 10 px,
       rouvrirait un défilement latéral. */
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--dur-2) var(--ease),
                transform var(--dur-3) var(--ease-out),
                visibility var(--dur-3);
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .nav__item { border-bottom: var(--bw) solid var(--c-line); }
  .nav__link { width: 100%; justify-content: space-between; padding: var(--sp-4) 0; font-size: 1.125rem; background: none !important; }
  .nav__item::after { display: none; }
  .mega {
    position: static; transform: none; min-width: 0; opacity: 1; visibility: visible;
    pointer-events: auto; border: 0; box-shadow: none; padding: 0 0 var(--sp-4);
    background: transparent; display: none;
  }
  .nav__item:hover > .mega, .nav__item:focus-within > .mega { transform: none; }
  .mega[data-open="true"] { display: block; transform: none; }
  .mega__grid, .mega__grid--3 { grid-template-columns: 1fr; }
  .mega__aside { display: none; }
  .nav__mobile-cta { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
}
@media (min-width: 1025px) { .nav__mobile-cta { display: none; } }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) var(--section-y); overflow: hidden; }
/* Réglure de grand livre en fond, très pâle */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom, transparent, transparent 43px, var(--c-line) 43px, var(--c-line) 44px);
  mask-image: radial-gradient(ellipse 90% 70% at 70% 40%, #000 10%, transparent 75%);
  opacity: .5;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 980px) { .hero__inner { grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); } }
.hero h1 { font-size: var(--t-hero); }
.hero__lead { margin-top: var(--sp-5); font-size: var(--t-lead); max-width: 46ch; }
.hero__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__reassure { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--t-small); color: var(--c-ink-3); }
.hero__reassure li { display: flex; align-items: center; gap: var(--sp-2); }
.hero__reassure li::before { content: "✓"; color: var(--c-accent-ink); font-weight: var(--w-bold); }

/* Révélation en cascade au chargement */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal var(--dur-3) var(--ease-out) forwards; }
.reveal:nth-child(1) { animation-delay: 60ms; }
.reveal:nth-child(2) { animation-delay: 140ms; }
.reveal:nth-child(3) { animation-delay: 220ms; }
.reveal:nth-child(4) { animation-delay: 300ms; }
.reveal:nth-child(5) { animation-delay: 380ms; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* La facture-maquette du hero */
.doc {
  background: #fff; border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--sp-5); transform: rotate(-1.2deg);
  transition: transform var(--dur-3) var(--ease-out);
}
.doc:hover { transform: rotate(0deg) translateY(-4px); }
.doc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: var(--bw) solid var(--c-line); }
.doc__title { font-family: var(--f-display); font-size: 1.35rem; color: var(--c-ink); }
.doc__meta { font-family: var(--f-mono); font-size: var(--t-micro); color: var(--c-ink-3); }
.doc__row { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: var(--bw) solid var(--c-paper-3); font-size: var(--t-small); }
.doc__row span:last-child { font-family: var(--f-mono); color: var(--c-ink); }
.doc__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--sp-4); }
.doc__total b { font-family: var(--f-display); font-size: 1.9rem; color: var(--c-ink); }
.doc__stamp {
  position: absolute; right: -8px; bottom: 28px;
  font-family: var(--f-display); font-weight: var(--w-bold);
  font-size: 1rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-ok-ink); border: 2px solid var(--c-ok);
  padding: .35em .8em; border-radius: var(--r-sm);
  transform: rotate(-8deg); background: var(--c-paper);
  opacity: .92;
}
.doc-wrap { position: relative; }

/* =========================================================================
   ESPACE CLIENT (accueil)
   ========================================================================= */

/* Deux colonnes texte + visuel. Le visuel passe SOUS le texte en mobile. */
.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); }
}

/* Liste à coches ambre. Le marqueur est en ::before absolu : mettre
   display:flex sur un <li> disloquerait le texte en colonnes. */
.ticks { display: grid; gap: var(--sp-3); list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.9em; color: var(--c-ink-2); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  font-weight: var(--w-semi); color: var(--c-accent-ink);
}

.portal-wrap { position: relative; }
.portal {
  background: #fff; border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--sp-5); overflow: hidden;
}
.portal__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--sp-4); padding-bottom: var(--sp-4);
  border-bottom: var(--bw) solid var(--c-line);
}
.portal__title { font-family: var(--f-display); font-size: 1.2rem; color: var(--c-ink); }
.portal__meta { font-size: var(--t-small); color: var(--c-ink-3); margin-top: .15em; }
.portal__avatar {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-accent-wash); color: var(--c-accent-ink);
  font-family: var(--f-mono); font-size: var(--t-micro);
}
.portal__row {
  display: grid; grid-template-columns: 1.6rem 1fr auto;
  gap: var(--sp-3); align-items: center;
  padding: var(--sp-4) 0; border-bottom: var(--bw) solid var(--c-paper-3);
}
.portal__ico {
  width: 1.6rem; height: 1.6rem; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--c-paper-2); color: var(--c-ink-3); font-size: var(--t-micro);
}
.portal__label { font-size: var(--t-small); color: var(--c-ink); display: grid; }
.portal__label em {
  font-style: normal; font-size: var(--t-micro); color: var(--c-ink-3); margin-top: .15em;
}
.portal__notif {
  display: grid; gap: .2em; margin-top: var(--sp-5);
  background: var(--c-accent-wash);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 30%, transparent);
  border-radius: var(--r-md); padding: var(--sp-4);
  font-size: var(--t-small); color: var(--c-ink-2);
}
.portal__notif strong {
  font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-accent-ink);
}

/* ---------- « Incluse dans les trois formules » (section sombre) ---------- */
.claim-free {
  display: grid; gap: .3em; margin-top: var(--sp-5);
  background: color-mix(in srgb, var(--c-accent-dark) 14%, transparent);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent-dark) 42%, transparent);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
  font-size: var(--t-small); color: var(--c-on-dark);
}
.claim-free strong {
  font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-accent-dark);
}

/* =========================================================================
   PAGES MÉTIER — /pour-qui/
   Même règle que partout : l'ambre en aplat et en filet, jamais en texte
   (--c-accent-ink pour tout ce qui se lit).
   ========================================================================= */

/* Bandeau d'introduction, dégradé wash → papier */
.metier-hero {
  background: linear-gradient(180deg, var(--c-accent-wash) 0%, var(--c-paper) 100%);
  border-bottom: var(--bw) solid color-mix(in srgb, var(--c-accent) 22%, transparent);
  padding-block: var(--sp-8) var(--sp-7);
}

/* Chiffres clés du métier, juste sous le hero */
.figures {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: var(--sp-6);
}
.figures__item {
  background: var(--c-white);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 28%, transparent);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: grid; gap: .3em; align-content: start;
}
.figures__item b {
  font-family: var(--f-display); font-size: var(--t-h3);
  color: var(--c-accent-ink); line-height: 1.1;
}
.figures__item span { font-size: var(--t-small); color: var(--c-ink-2); }

/* =========================================================================
   MARQUEUR « COMPRIS DANS LA FORMULE GRATUITE »
   Posé sur les fonctionnalités que la formule Start couvre. Ambre wash +
   --c-accent-ink : jamais d'ambre en texte, et le vert reste réservé aux
   états réellement fonctionnels (encaissé, payé).
   ========================================================================= */
.free-tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--f-body); font-size: var(--t-micro);
  font-weight: var(--w-semi); letter-spacing: .04em; text-transform: uppercase;
  background: var(--c-accent-wash); color: var(--c-accent-ink);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 32%, transparent);
  border-radius: var(--r-pill); padding: .3em .75em;
  white-space: nowrap;
}
.free-tag svg { width: .95em; height: .95em; flex: none; }

/* Sur une carte de la page Fonctionnalités : posé sous le titre */
.card .free-tag { margin-top: calc(var(--sp-2) * -1); justify-self: start; }

/* Dans un hero : aligné avec le sur-titre */
.free-tag--hero { margin-left: var(--sp-3); vertical-align: middle; }

/* Sous-fonction réservée à une formule payante, sur une page par ailleurs
   marquée « gratuit » : sans ce marqueur le badge du hero devient trompeur. */
.free-tag--pro {
  background: var(--c-paper-2); color: var(--c-ink-3);
  border-color: var(--c-line-strong);
}

/* Sur fond sombre */
.section--dark .free-tag {
  background: color-mix(in srgb, var(--c-accent-dark) 16%, transparent);
  border-color: color-mix(in srgb, var(--c-accent-dark) 45%, transparent);
  color: var(--c-accent-dark);
}

/* Exactement deux colonnes : pour les jeux de 4 cartes, que .grid-2
   (auto-fit) casserait en 3 + 1 orpheline sur grand écran. */
@media (min-width: 860px) { .grid--pairs { grid-template-columns: repeat(2, 1fr); } }

/* Carte d'obligation réglementaire : liseré ambre à gauche */
.rule-card {
  background: var(--c-paper);
  border: var(--bw) solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-md) var(--r-lg) var(--r-lg) var(--r-md);
  padding: var(--sp-5);
  display: grid; gap: var(--sp-3); align-content: start;
}
.section--tint .rule-card { background: var(--c-white); }
.rule-card h3 { font-size: var(--t-h4); font-family: var(--f-body); font-weight: var(--w-semi); }
.rule-card p { font-size: var(--t-small); }
.rule-card__tag {
  justify-self: start;
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--c-accent-wash); color: var(--c-accent-ink);
  border-radius: var(--r-pill); padding: .3em .7em;
}

/* ---------- Bandeau migration (accueil) ---------- */
.migration {
  background: var(--c-accent-wash);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 32%, transparent);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
@media (min-width: 820px) { .migration { padding: var(--sp-7); } }
.migration__body { max-width: 60ch; }
.migration__tag {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-accent-ink); margin-bottom: var(--sp-3);
}
.migration h2 { font-size: var(--t-h2); }
.migration__list {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  list-style: none; padding: 0; margin-top: var(--sp-5);
}
.migration__list li {
  background: var(--c-white);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 26%, transparent);
  border-radius: var(--r-pill);
  padding: .38em .9em;
  font-size: var(--t-small); color: var(--c-ink-2);
}
.migration__note {
  margin-top: var(--sp-5); font-size: var(--t-small); color: var(--c-ink-2);
}
.migration__note strong { color: var(--c-ink); }
.migration .link-arrow { color: var(--c-accent-ink); }
.migration__free {
  display: grid; gap: .25em; margin-top: var(--sp-5);
  background: var(--c-white);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 34%, transparent);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
  font-size: var(--t-small); color: var(--c-ink-2);
}
.migration__free strong {
  font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-accent-ink);
}

/* ---------- Encart agenda, sous le parcours ---------- */
.agenda-note {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--sp-4);
  align-items: start;
  margin-top: var(--sp-7);
  background: var(--c-paper);
  border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.section--tint .agenda-note { background: var(--c-paper); }
.agenda-note__ico {
  width: 2.4rem; height: 2.4rem; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--c-accent-wash); color: var(--c-accent-ink);
}
.agenda-note__ico svg { width: 1.3rem; height: 1.3rem; }
.agenda-note p { font-size: var(--t-small); color: var(--c-ink-2); }
.agenda-note strong { color: var(--c-ink); }
.agenda-note em { font-style: normal; color: var(--c-ink-3); }

/* ---------- Signature de positionnement, au-dessus du H1 ---------- */
.hero__signature {
  font-family: var(--f-display); font-size: var(--t-lead);
  color: var(--c-ink-2); margin-bottom: var(--sp-4);
}
.hero__signature em { font-style: italic; color: var(--c-accent-ink); }

/* ---------- Bandeau de preuve ---------- */
.proof { border-block: var(--bw) solid var(--c-line); padding-block: var(--sp-5); }
.proof__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.proof__stat { display: flex; flex-direction: column; }
.proof__stat b { font-family: var(--f-display); font-size: 1.75rem; color: var(--c-ink); line-height: 1; }
.proof__stat span { font-size: var(--t-small); color: var(--c-ink-3); margin-top: 4px; }

/* ---------- Cartes ---------- */
.card {
  background: var(--c-paper); border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-line-strong); }
.card__ico {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--c-accent-wash);
  color: var(--c-accent-ink); font-size: 1.15rem; margin-bottom: var(--sp-4);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p { font-size: var(--t-small); }
.card--link { text-decoration: none; display: block; color: inherit; }
/* Carte sans titre, qui porte une phrase de clôture plutôt qu'un argument */
.card--quiet {
  background: var(--c-accent-wash);
  border-color: color-mix(in srgb, var(--c-accent) 30%, transparent);
  display: grid; align-content: center;
}


/* Étapes numérotées */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
/* Parcours en 5 temps : 2 lignes sur tablette, une seule sur grand écran. */
@media (min-width: 760px)  { .steps--5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .steps--5 { grid-template-columns: repeat(5, 1fr); } }
/* Étapes empilées : dans une colonne étroite (.split), 4 colonnes seraient illisibles. */
@media (min-width: 760px) { .steps--compact { grid-template-columns: 1fr; gap: var(--sp-4); } }
.step { position: relative; padding-top: var(--sp-5); border-top: 2px solid var(--c-line-strong); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-size: var(--t-small); color: var(--c-coral);
  position: absolute; top: -0.85em; background: var(--c-paper); padding-right: var(--sp-3);
}
.section--tint .step::before { background: var(--c-paper-2); }
.step h3 { margin-bottom: var(--sp-2); font-size: var(--t-h4); font-family: var(--f-body); font-weight: var(--w-semi); }
.step p { font-size: var(--t-small); }

/* =========================================================================
   PARCOURS ANIMÉ (devis → facture → paiement)
   Une ligne de progression se remplit et les étapes s'allument en cascade
   quand la section entre dans l'écran. Le texte vit dans le HTML : si le
   JS ne tourne pas, tout reste lisible (l'état « allumé » est le défaut,
   et .flow[data-armed] est ce qui masque avant l'animation).
   ========================================================================= */
.flow {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  counter-reset: flow;

  /* Rythme de l'animation — un seul endroit à régler.
     --flow-gap : écart entre deux étapes qui s'allument.
     La dernière étape finit à 0.10s + 5×gap + durée = 2,85 s (6 étapes),
     à garder sous le filet de sécurité de 4,5 s posé dans site.js. */
  --flow-gap:  .42s;
  --flow-in:   .65s;
  --flow-rail: 3s;
}

/* Le rail de progression, derrière les pastilles */
.flow::before,
.flow::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: var(--c-line-2);
}
.flow::after { background: var(--c-accent); transform-origin: top center; }

/* — Mobile : rail vertical le long des pastilles — */
.flow::before,
.flow::after { left: 21px; top: 12px; bottom: 12px; width: 2px; }
.flow::after { transform: scaleY(0); transition: transform var(--flow-rail) var(--ease-out); }
.flow.is-live::after { transform: scaleY(1); }

.flow__step {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-4);
  align-items: start;
}

.flow__dot {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.9375rem; font-weight: var(--w-medium);
  background: var(--c-paper); color: var(--c-ink-3);
  border: 2px solid var(--c-line-2);
  transition: background-color var(--flow-in) var(--ease),
              border-color var(--flow-in) var(--ease),
              color var(--flow-in) var(--ease),
              transform var(--dur-2) var(--ease-out);
}
.section--tint .flow__dot { background: var(--c-paper-2); }

.flow__body { padding-top: var(--sp-1); }
.flow__body h3 {
  font-family: var(--f-body); font-size: var(--t-h4);
  font-weight: var(--w-semi); margin-bottom: var(--sp-2);
}
.flow__body p { font-size: var(--t-small); max-width: 34ch; }

.flow__state {
  display: inline-flex; align-items: center; margin-top: var(--sp-3);
  font-size: var(--t-micro); font-weight: var(--w-semi);
  letter-spacing: .08em; text-transform: uppercase;
  padding: .32em .75em; border-radius: var(--r-pill);
  background: var(--c-accent-wash); color: var(--c-accent-ink);
}
/* Vert = état réellement atteint (payé, à jour) — jamais décoratif */
.flow__state--ok {
  background: color-mix(in srgb, var(--c-ok) 12%, transparent);
  color: var(--c-ok-ink);
}

/* — État « armé » : avant le passage dans l'écran — */
.flow[data-armed] .flow__step { opacity: 0; transform: translateY(14px); }
.flow[data-armed].is-live .flow__step {
  animation: flowIn var(--flow-in) var(--ease-out) forwards;
}
.flow[data-armed].is-live .flow__step:nth-child(1) { animation-delay: calc(.10s + 0 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(2) { animation-delay: calc(.10s + 1 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(3) { animation-delay: calc(.10s + 2 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(4) { animation-delay: calc(.10s + 3 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(5) { animation-delay: calc(.10s + 4 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(6) { animation-delay: calc(.10s + 5 * var(--flow-gap)); }
@keyframes flowIn { to { opacity: 1; transform: none; } }

/* La pastille s'allume quand son étape arrive */
.flow.is-live .flow__dot {
  background: var(--c-accent); border-color: var(--c-accent);
  color: var(--c-on-accent);
}
.flow[data-armed].is-live .flow__step:nth-child(1) .flow__dot { transition-delay: calc(.10s + 0 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(2) .flow__dot { transition-delay: calc(.10s + 1 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(3) .flow__dot { transition-delay: calc(.10s + 2 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(4) .flow__dot { transition-delay: calc(.10s + 3 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(5) .flow__dot { transition-delay: calc(.10s + 4 * var(--flow-gap)); }
.flow[data-armed].is-live .flow__step:nth-child(6) .flow__dot { transition-delay: calc(.10s + 5 * var(--flow-gap)); }

/* Les deux dernières pastilles : vert « encaissé / à jour » */
.flow.is-live .flow__step:nth-child(5) .flow__dot,
.flow.is-live .flow__step:nth-child(6) .flow__dot {
  background: var(--c-ok); border-color: var(--c-ok); color: #fff;
}

/* — Grand écran : le parcours devient horizontal — */
@media (min-width: 1000px) {
  .flow { grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); }
  .flow::before,
  .flow::after {
    left: 22px; right: 22px; top: 21px; bottom: auto;
    width: auto; height: 2px;
    transform-origin: left center;
  }
  .flow::after { transform: scaleX(0); }
  .flow.is-live::after { transform: scaleX(1); }
  .flow__step { grid-template-columns: 1fr; gap: var(--sp-4); }
  .flow__body { padding-top: 0; }
  .flow__body p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flow[data-armed] .flow__step { opacity: 1; transform: none; }
  .flow::after { transition: none; }
}

/* ---------- Témoignages ---------- */
.quote {
  background: var(--c-paper); border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.quote blockquote { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.45; color: var(--c-ink); }
.quote figcaption { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.quote__avatar { width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--c-paper-3); display: grid; place-items: center; font-weight: var(--w-semi); color: var(--c-ink-2); font-size: var(--t-small); }
.quote__who { font-size: var(--t-small); }
.quote__who b { display: block; color: var(--c-ink); }
.quote__who span { color: var(--c-ink-3); }

/* =========================================================================
   TARIFS
   ========================================================================= */
.pricing-toggle {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--c-paper-3); border-radius: var(--r-pill); margin-inline: auto;
}
.pricing-toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: .55em 1.2em; border-radius: var(--r-pill);
  font-size: var(--t-small); font-weight: var(--w-semi); color: var(--c-ink-2);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.pricing-toggle button[aria-pressed="true"] { background: var(--c-paper); color: var(--c-ink); box-shadow: var(--sh-sm); }

.plans { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--c-paper); border: var(--bw) solid var(--c-line);
  border-radius: var(--r-xl); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4); height: 100%;
}
.plan--featured {
  border-color: var(--c-accent); border-width: 2px;
  box-shadow: var(--sh-lg); position: relative;
}
.plan--featured::before {
  content: attr(data-flag);
  position: absolute; top: -12px; left: var(--sp-6);
  background: var(--c-accent); color: var(--c-on-accent);
  font-size: var(--t-micro); font-weight: var(--w-semi);
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35em .9em; border-radius: var(--r-pill);
}
.plan__name { font-family: var(--f-display); font-size: 1.4rem; color: var(--c-ink); }
.plan__pitch { font-size: var(--t-small); color: var(--c-ink-3); min-height: 2.8em; }
.plan__price { display: flex; align-items: baseline; gap: var(--sp-2); }
.plan__price b { font-family: var(--f-display); font-size: 3rem; line-height: 1; color: var(--c-ink); letter-spacing: -0.03em; }
.plan__price span { font-size: var(--t-small); color: var(--c-ink-3); }
.plan__note { font-size: var(--t-micro); color: var(--c-ink-3); }
.plan__features { display: grid; gap: var(--sp-3); font-size: var(--t-small); margin-top: var(--sp-2); }
.plan__features li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.plan__features li::before { content: "✓"; color: var(--c-accent-ink); font-weight: var(--w-bold); flex: 0 0 auto; }
.plan__features li.is-off { color: var(--c-ink-3); }
.plan__features li.is-off::before { content: "—"; color: var(--c-line-strong); }
.plan .btn { margin-top: auto; }

/* Tableau comparatif */
.compare { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.compare th, .compare td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: var(--bw) solid var(--c-line); }
.compare thead th { font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); font-weight: var(--w-semi); }
.compare tbody th { font-weight: var(--w-medium); color: var(--c-ink-2); }
.compare td { text-align: center; }
.compare td:first-child { text-align: left; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Comparatif des formules (/tarifs/) ---------- */
.compare--plans { min-width: 34rem; }
.compare--plans thead th { text-align: center; vertical-align: bottom; }
.compare--plans thead th:first-child { text-align: left; }
.compare--plans .th-price {
  display: block; margin-top: .3em;
  font-family: var(--f-mono); font-size: var(--t-small);
  letter-spacing: 0; text-transform: none; color: var(--c-ink);
}
/* En-tête de rubrique : pas une ligne de données, pas de bordure basse */
.compare--plans .row-group th {
  padding-top: var(--sp-6); border-bottom: none;
  font-family: var(--f-body); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-accent-ink); font-weight: var(--w-semi);
}
.compare--plans tbody tr:first-child th { padding-top: var(--sp-3); }
/* La conformité 2026 est l'argument central : on la souligne */
.compare--plans .row-hi th, .compare--plans .row-hi td { background: var(--c-accent-wash); }
.compare--plans .row-hi th { color: var(--c-ink); font-weight: var(--w-semi); }
.compare--plans td.y { color: var(--c-ok-ink); font-weight: var(--w-semi); }
.compare--plans td.n { color: var(--c-ink-3); }

/* =========================================================================
   PAGE CONTACT
   ========================================================================= */
.contact-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--sp-7); }
}
.contact-side { display: grid; gap: var(--sp-4); }
.contact-h {
  font-family: var(--f-body); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-accent-ink); margin-bottom: var(--sp-4);
}
.contact-mail {
  font-family: var(--f-mono); font-size: var(--t-body);
  color: var(--c-accent-ink); word-break: break-all;
}

/* Le select et le textarea reprennent l'habillage des champs .wl__field,
   qui ne visait au départ que les <input>. */
.wl__field select,
.wl__field textarea {
  width: 100%; padding: .8em 1em; font: inherit; color: var(--c-ink);
  border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-md);
  background: var(--c-paper);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.wl__field textarea { resize: vertical; min-height: 8em; line-height: var(--lh-body); }
.wl__field select:focus,
.wl__field textarea:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 22%, transparent);
}
.wl__field textarea[aria-invalid="true"] { border-color: var(--c-ko); }
.wl__field textarea::placeholder { color: var(--c-ink-3); }

/* ---------- Rappel des 3 prix sur l'accueil ---------- */
.price-row {
  display: grid; gap: var(--sp-4);
  margin: var(--sp-6) auto var(--sp-6); max-width: 60rem;
}
@media (min-width: 780px) { .price-row { grid-template-columns: repeat(3, 1fr); } }
.price-row__item {
  background: var(--c-paper); border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: grid; gap: var(--sp-2); align-content: start; text-align: center;
}
.price-row__item--hi { border-color: var(--c-accent); border-width: 2px; }
.price-row__item b {
  font-family: var(--f-body); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-ink);
}
.price-row__item span { font-family: var(--f-display); font-size: var(--t-h3); color: var(--c-ink); }
.price-row__item span small {
  font-family: var(--f-body); font-size: var(--t-small);
  font-weight: var(--w-normal); color: var(--c-ink-3);
}
.price-row__item em { font-style: normal; font-size: var(--t-small); color: var(--c-ink-3); }

/* ---------- Bandeau « conformité 2026 incluse » ---------- */
.claim2026 {
  background: var(--c-accent-wash);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 32%, transparent);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-7);
  display: grid; gap: var(--sp-2);
}
.claim2026__tag {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-ink);
}
.claim2026__title {
  font-family: var(--f-display); font-size: var(--t-h4); color: var(--c-ink);
  max-width: 46ch;
}
.claim2026__text { font-size: var(--t-small); color: var(--c-ink-2); max-width: 68ch; }
.claim2026__text .link-arrow { margin-left: .35em; color: var(--c-accent-ink); }
@media (min-width: 820px) {
  .claim2026 { padding: var(--sp-6) var(--sp-7); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; }
.faq details { border-bottom: var(--bw) solid var(--c-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-5) var(--sp-6) var(--sp-5) 0;
  font-family: var(--f-display); font-size: var(--t-h4); color: var(--c-ink);
  position: relative; transition: color var(--dur-1) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--f-body); font-size: 1.5rem; color: var(--c-ink-3);
  transition: transform var(--dur-2) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--c-accent-ink); }
.faq__body { padding-bottom: var(--sp-5); max-width: var(--wrap-text); }
.faq__body p + p { margin-top: var(--sp-3); }

/* ---------- CTA final ---------- */
.cta-final { background: var(--c-dark); color: var(--c-on-dark-2); border-radius: var(--r-xl); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem); text-align: center; position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 43px, rgba(244,239,228,.06) 43px, rgba(244,239,228,.06) 44px);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { color: var(--c-on-dark); }
.cta-final p { margin: var(--sp-4) auto 0; max-width: 52ch; font-size: var(--t-lead); }
.cta-final .btn-row { margin-top: var(--sp-6); display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--c-paper-2); border-top: var(--bw) solid var(--c-line); padding-block: var(--sp-8) var(--sp-6); }
.footer__grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__brand p { font-size: var(--t-small); color: var(--c-ink-3); margin-top: var(--sp-3); max-width: 34ch; }
.footer h4 { font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: var(--sp-4); }
.footer ul { display: grid; gap: var(--sp-3); }
.footer a { color: var(--c-ink-2); text-decoration: none; font-size: var(--t-small); }
/* 24/08/2026 : `.footer a` (0,1,1) l'emportait sur `.logo` (0,1,0) — la marque
   se retrouvait à la taille du texte courant, comme un lien de menu. */
.footer .logo { font-size: 1.375rem; color: var(--c-ink); }
.footer a:hover { color: var(--c-accent-ink); text-decoration: underline; }
.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: var(--bw) solid var(--c-line);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center;
  font-size: var(--t-micro); color: var(--c-ink-3);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* =========================================================================
   GUIDES — pages de référence
   Contenu long, à jour et sourcé. Lisibilité et repères de confiance
   priment sur l'effet visuel.
   ========================================================================= */

/* Fil d'Ariane */
.crumbs { font-size: var(--t-small); color: var(--c-ink-3); margin-bottom: var(--sp-5); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: var(--sp-2); color: var(--c-line-strong); }
.crumbs a { color: var(--c-ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--c-accent-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--c-ink-2); }

/* En-tête d'un guide */
.guide-head { max-width: 40rem; }
.guide-head h1 { margin-bottom: var(--sp-4); }
.guide-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: var(--bw) solid var(--c-line);
  font-size: var(--t-small); color: var(--c-ink-3);
}
.guide-meta b { color: var(--c-ink-2); font-weight: var(--w-semi); }

/* « En bref » : la réponse tout de suite, avant le développement.
   C'est ce bloc que les moteurs et les assistants citent. */
.brief {
  background: var(--c-accent-wash);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 30%, transparent);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-7);
}
.brief h2 {
  font-family: var(--f-body); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-accent-ink); margin-bottom: var(--sp-4);
}
.brief ul { display: grid; gap: var(--sp-3); }
/* ⚠️ PAS de display:flex sur un <li> qui contient du texte enrichi :
   chaque nœud de texte et chaque <strong> deviendrait une colonne flex
   distincte, et la phrase se disloquerait. Puce en position absolue. */
.brief li {
  position: relative; padding-left: 1.5em;
  font-size: var(--t-body);
}
.brief li::before {
  content: "—"; position: absolute; left: 0; top: 0;
  color: var(--c-accent-ink);
}
.brief strong { color: var(--c-ink); }

/* Sommaire ancré */
.toc {
  border: var(--bw) solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--sp-5); margin-block: var(--sp-7); background: var(--c-paper);
}
.toc h2 {
  font-family: var(--f-body); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-ink-3); margin-bottom: var(--sp-4);
}
.toc ol { counter-reset: toc; display: grid; gap: var(--sp-3); }
.toc li { counter-increment: toc; display: flex; gap: var(--sp-3); font-size: var(--t-small); }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-mono); color: var(--c-ink-3); flex: 0 0 auto;
}
.toc a { color: var(--c-ink-2); text-decoration: none; }
.toc a:hover { color: var(--c-accent-ink); text-decoration: underline; }

/* Mise en page d'un guide : colonne de lecture + colonne latérale utile.
   La colonne de texte reste étroite (confort de lecture), et l'espace
   restant sert à naviguer plutôt qu'à décorer. */
.guide-layout { display: grid; gap: var(--sp-6); }
@media (min-width: 1080px) {
  .guide-layout {
    grid-template-columns: minmax(0, 42rem) minmax(250px, 300px);
    justify-content: space-between;
    gap: var(--sp-8);
    align-items: start;
  }
  .guide-layout .prose { order: 1; }
  .guide-aside {
    order: 2;
    position: sticky;
    top: calc(var(--header-h) + var(--sp-5));
    display: grid; gap: var(--sp-5);
    max-height: calc(100vh - var(--header-h) - var(--sp-7));
    overflow-y: auto;
  }
  /* En colonne latérale, le sommaire n'a plus besoin de marges verticales. */
  .guide-aside .toc { margin-block: 0; }
}

/* Encadré latéral : rappel des chiffres, puis appel à l'action. */
.aside-card {
  border: var(--bw) solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--sp-5); background: var(--c-paper);
  display: grid; gap: var(--sp-3);
}
.aside-card h2 {
  font-family: var(--f-body); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-ink-3);
}
.aside-card dl { display: grid; gap: var(--sp-3); margin: 0; }
.aside-card .row {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  align-items: baseline; font-size: var(--t-small);
  padding-bottom: var(--sp-3); border-bottom: var(--bw) solid var(--c-line);
}
.aside-card .row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.aside-card .row dt { color: var(--c-ink-3); }
.aside-card .row dd {
  margin: 0; font-weight: var(--w-semi); color: var(--c-ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.aside-card--cta { background: var(--c-dark); border-color: var(--c-dark-line); }
.aside-card--cta h2 { color: var(--c-on-dark-2); }
.aside-card--cta p { color: var(--c-on-dark-2); font-size: var(--t-small); }
.aside-card--cta strong { color: var(--c-on-dark); }

/* Corps de guide */
.prose { max-width: 42rem; }
.prose h2 {
  margin-top: var(--sp-8); margin-bottom: var(--sp-4);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + .table-scroll { margin-top: var(--sp-4); }
.prose ul { display: grid; gap: var(--sp-3); }
/* Même raison que .brief li : puce absolue, jamais de flex sur du texte. */
.prose ul li { position: relative; padding-left: 1.2em; }
.prose ul li::before {
  content: "·"; position: absolute; left: .2em; top: 0;
  color: var(--c-accent-ink); font-weight: var(--w-bold);
}
.prose .table-scroll { margin-block: var(--sp-5); }

/* Définition mise en avant — format que les assistants reprennent tel quel */
.definition {
  border-left: 3px solid var(--c-accent);
  background: var(--c-paper-2);
  padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-block: var(--sp-5);
}
.definition dt { font-weight: var(--w-semi); color: var(--c-ink); margin-bottom: var(--sp-2); }
.definition dd { margin: 0; }

/* Avertissement / point de vigilance */
.caution {
  border-left: 3px solid var(--c-warn, #B8860B);
  background: color-mix(in srgb, #B8860B 7%, var(--c-paper));
  padding: var(--sp-4) var(--sp-5); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-block: var(--sp-5); font-size: var(--t-small);
}
.caution strong { display: block; margin-bottom: var(--sp-2); }

/* Sources officielles */
.sources {
  margin-top: var(--sp-8); padding-top: var(--sp-5);
  border-top: var(--bw) solid var(--c-line); font-size: var(--t-small);
}
.sources h2 {
  font-family: var(--f-body); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-3);
  margin-bottom: var(--sp-4);
}
.sources ul { display: grid; gap: var(--sp-2); }
.sources li::before { content: none; }

/* Cartes de la page d'accueil des guides */
.guide-card {
  display: grid; gap: var(--sp-3); align-content: start;
  background: var(--c-paper); border: var(--bw) solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  text-decoration: none; color: inherit;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-line-strong); }
.guide-card h3 { font-size: var(--t-h4); font-family: var(--f-body); font-weight: var(--w-semi); }
.guide-card p { font-size: var(--t-small); }
.guide-card__tag {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-3);
}
.guide-card--soon { opacity: .62; pointer-events: none; }

/* -------------------------------------------------------------------------
   HUB DES GUIDES — /guides/
   Seul l'ambre colore la page. Rappel : jamais d'ambre en TEXTE sur fond
   clair (contraste insuffisant) — les textes et pictos prennent
   --c-accent-ink, l'ambre pur reste réservé aux aplats et aux filets.
   ------------------------------------------------------------------------- */

/* Bandeau d'introduction, dégradé wash → papier */
.guides-hero {
  background: linear-gradient(180deg, var(--c-accent-wash) 0%, var(--c-paper) 100%);
  border-bottom: var(--bw) solid color-mix(in srgb, var(--c-accent) 22%, transparent);
  padding-block: var(--sp-7) var(--sp-8);
}
.guides-hero .crumbs { margin-bottom: var(--sp-5); }

/* Compteur de guides disponibles, sous le chapô */
.guides-count {
  display: inline-flex; align-items: center; gap: .55em;
  margin-top: var(--sp-5);
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-accent-ink);
  background: var(--c-white);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 34%, transparent);
  border-radius: var(--r-pill); padding: .45em .95em;
}
.guides-count b { font-weight: var(--w-semi); }

/* En-tête de famille : pastille ambre + titre + filet dégradé */
.g-cat { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.g-cat__ico {
  flex: none; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  background: var(--c-accent-wash); color: var(--c-accent-ink);
  border: var(--bw) solid color-mix(in srgb, var(--c-accent) 30%, transparent);
  border-radius: var(--r-md);
}
.g-cat__ico svg { width: 1.3rem; height: 1.3rem; }
.g-cat h2 { font-size: var(--t-h3); margin: 0; }
/* max-width : sans elle, le filet suit la largeur restante et sa longueur
   apparente change à chaque titre — le rythme des sections se casse. */
.g-cat__rule {
  flex: 1 1 auto; height: 2px; border-radius: 2px;
  min-width: var(--sp-4); max-width: 240px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
}
.g-cat + .g-cat__lead { margin-bottom: var(--sp-5); color: var(--c-ink-3); }

/* Cartes du hub : filet de couleur au survol, badge de date en wash */
.guide-card--rich { position: relative; overflow: hidden; background: var(--c-white); }
.guide-card--rich::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-coral));
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-2) var(--ease);
}
.guide-card--rich:hover::before,
.guide-card--rich:focus-visible::before { transform: scaleX(1); }

.guide-card--rich .guide-card__tag {
  justify-self: start;
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--c-accent-wash); color: var(--c-accent-ink);
  border-radius: var(--r-pill); padding: .35em .8em;
  text-transform: none; letter-spacing: .02em;
}
.guide-card--rich .guide-card__tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent); flex: none;
}
/* Variante « page produit » : même forme, sans la pastille ambre */
.guide-card--rich .guide-card__tag--alt {
  background: var(--c-paper-2); color: var(--c-ink-3);
  border: var(--bw) solid var(--c-line-2);
}
.guide-card--rich .guide-card__tag--alt::before { background: var(--c-ink-3); }

.guide-card--rich .link-arrow { color: var(--c-accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .guide-card--rich::before { transition: none; }
}

/* =========================================================================
   FORMULAIRE DE LISTE D'ATTENTE
   ========================================================================= */
.wl { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.wl__row { display: grid; gap: var(--sp-4); }
@media (min-width: 620px) { .wl__row { grid-template-columns: 1fr 1fr; } }

.wl__field { display: grid; gap: var(--sp-2); }
.wl__field > span {
  font-size: var(--t-small); font-weight: var(--w-semi); color: var(--c-ink);
}
.wl__field em { font-style: normal; font-weight: var(--w-normal); color: var(--c-ink-3); }
.wl__field input {
  width: 100%; padding: .8em 1em;
  border: var(--bw) solid var(--c-line-strong); border-radius: var(--r-md);
  background: var(--c-paper); color: var(--c-ink);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.wl__field input::placeholder { color: var(--c-ink-3); }
.wl__field input:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 22%, transparent);
}
.wl__field input[aria-invalid="true"] { border-color: var(--c-ko); }

/* Piège à robots : invisible mais pas display:none, que certains détectent. */
.wl__pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wl__note { font-size: var(--t-small); color: var(--c-ink-3); }

.wl__msg { font-size: var(--t-body); font-weight: var(--w-medium); min-height: 1.5em; }
.wl__msg[data-etat="ok"]     { color: var(--c-ok-ink); }
.wl__msg[data-etat="deja"]   { color: var(--c-accent-ink); }
.wl__msg[data-etat="erreur"] { color: var(--c-ko-ink); }

.wl button[disabled] { opacity: .6; cursor: progress; }

/* Variante compacte, sur fond sombre (appel à l'action de l'accueil). */
.wl--dark { max-width: 34rem; margin-inline: auto; margin-top: var(--sp-6); }
.wl__inline { display: grid; gap: var(--sp-3); }
@media (min-width: 560px) {
  .wl__inline { grid-template-columns: 1fr auto; align-items: stretch; }
}
.wl--dark input[type="email"] {
  width: 100%; padding: .8em 1.1em;
  border-radius: var(--r-pill);
  border: var(--bw) solid var(--c-dark-line);
  background: var(--c-dark-2); color: var(--c-on-dark);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.wl--dark input[type="email"]::placeholder { color: var(--c-on-dark-2); }
.wl--dark input[type="email"]:focus {
  outline: none; border-color: var(--c-accent-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent-dark) 25%, transparent);
}
.wl--dark input[aria-invalid="true"] { border-color: var(--c-ko-dark); }
.wl--dark .wl__msg { margin-top: var(--sp-4); }
.wl--dark .wl__msg[data-etat="ok"]     { color: var(--c-ok-dark); }
.wl--dark .wl__msg[data-etat="deja"]   { color: var(--c-accent-dark); }
.wl--dark .wl__msg[data-etat="erreur"] { color: var(--c-ko-dark); }

/* ---------- Bandeau cookies ---------- */
.cookie {
  position: fixed; bottom: var(--sp-4); left: var(--sp-4); right: var(--sp-4);
  max-width: 620px; margin-inline: auto; z-index: 150;
  background: var(--c-paper); border: var(--bw) solid var(--c-line-strong);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--sp-5); display: none; gap: var(--sp-4);
  flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.cookie[data-show="true"] { display: flex; }
.cookie p { font-size: var(--t-small); flex: 1 1 260px; }
.cookie__actions { display: flex; gap: var(--sp-3); }
