/* site.css — mise en page du site Synergetik (charte V7.1 « Blue Trust »).
   Couleurs, polices, tailles, espacements, rayon et focus : tokens.css, source unique
   (framework/templates/design-system/), copié tel quel à la construction.
   Ce fichier ne définit aucune couleur : il n'utilise que les jetons (et leurs mélanges).
   Règles visuelles : framework/templates/design-system/DESIGN.md — dont le relief du
   2026-09-30 (§ 7) : sections alternées, surfaces teintées, mots d'accent, effets légers. */

/* ---------- Polices hébergées avec le site (aucune requête vers un autre domaine) ---------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Mesures propres au site (les jetons de la charte restent la source) ---------- */
:root {
  --space-16: 64px;          /* respiration des grandes sections — ajout local, comme le gabarit du 2026-09-23 */
  --gutter: clamp(16px, 4vw, 48px);
  --largeur: 72rem;
  --largeur-texte: 44rem;
  --hauteur-entete: 72px;
  --duree: 0.2s;             /* survols */
  --duree-apparition: 0.7s;  /* apparition au défilement */
  --courbe: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Un élément masqué l'est toujours, quelle que soit sa mise en page (grille, flex).
   Seule exception : les sous-menus, ouverts au survol sur grand écran. */
[hidden]:not(.sous-menu) { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hauteur-entete) + var(--space-4));
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; outline: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.25em; }
li::marker { color: var(--accent-text); }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus-width) solid var(--accent-text); outline-offset: var(--focus-offset); }
strong { font-weight: 700; }
/* Mot d'accent d'un titre (DESIGN.md § 7) : quelques mots, jamais tout le titre. Depuis la V7.2, il
   porte le dégradé signature, du bleu au violet ; sans prise en charge du texte en dégradé, il garde
   l'accent lui-même, #0441dc. Les petits textes accent (liens, étiquettes, numéros) et les repères
   fins prennent --accent-text, éclairci en sombre pour rester lisible (DESIGN.md § 4). Les chiffres
   clés et les prix mis en avant prennent le même dégradé. */
.accent { color: var(--accent); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .accent, .chiffres .valeur, .prix-montant, .offre-prix {
    background-image: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  .bande-marque .chiffres .valeur { background-image: none; color: inherit; }
}
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }

.wrap { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gutter); }
.texte { max-width: var(--largeur-texte); }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-card);
  background: var(--accent); color: var(--ink-on-accent); font-weight: 700; text-decoration: none;
}
.lien-evitement:focus { top: var(--space-4); }

/* Étiquette mono (DESIGN.md § 7) ; les titres de section ont leur propre repère (.section-repere) */
.idx {
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: var(--leading-body);
  color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.idx-accent { color: var(--accent-text); }
.muted { color: var(--muted); }
.petit { font-size: var(--text-sm); }
.note { font-size: var(--text-sm); color: var(--muted); }
.chapo { font-size: var(--text-lg); line-height: 1.5; max-width: 40rem; }

/* Marque de relecture, préversion uniquement */
mark.a-completer {
  background: var(--accent-soft); color: var(--fg); padding: 0 0.25em; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.85em;
}
.bandeau-preversion {
  background: var(--fg); color: var(--bg); text-align: center;
  font-family: var(--font-mono); font-size: var(--text-xs); padding: var(--space-2) var(--gutter);
}

/* ---------- Logo : formes verrouillées, recolorisation seule ---------- */
.lg-ink { fill: var(--fg); }
.lg-sig { fill: var(--accent); }
.logo { display: inline-flex; flex: none; color: inherit; text-decoration: none; }
.logo svg { display: block; height: 28px; width: auto; }

/* ---------- Boutons : un seul primaire par écran (DESIGN.md § 7) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-6);
  border: 1px solid var(--muted); border-radius: var(--radius-card);
  background: transparent; color: var(--fg);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--duree) ease, border-color var(--duree) ease, color var(--duree) ease, transform var(--duree) var(--courbe);
}
.btn:hover { border-color: var(--accent-text); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
/* Le bouton principal porte le dégradé signature (V7.2). */
.btn-primaire { background: var(--accent) var(--degrade); border-color: transparent; color: var(--ink-on-accent); }
.btn-primaire:hover { background: var(--accent-hover) var(--degrade-survol); border-color: transparent; }
.btn-entete { border-color: var(--accent-text); color: var(--accent-text); white-space: nowrap; }
.btn-entete:hover { background: var(--accent) var(--degrade); border-color: transparent; color: var(--ink-on-accent); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.lien-suite { font-weight: 700; text-decoration: none; }
.lien-suite::after { content: "→"; display: inline-block; margin-left: 0.3em; transition: transform var(--duree) var(--courbe); }
.lien-suite:hover { text-decoration: underline; }
.lien-suite:hover::after { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
/* Sur grand écran, l'en-tête laisse deviner la page qui défile dessous. Pas sur téléphone :
   le flou ferait de l'en-tête le repère du menu plein écran, qui est en position fixe. */
@media (min-width: 75.0625rem) {
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .entete {
      background: color-mix(in srgb, var(--bg) 80%, transparent);
      -webkit-backdrop-filter: saturate(1.6) blur(14px);
      backdrop-filter: saturate(1.6) blur(14px);
    }
  }
}
.entete-barre { display: flex; align-items: center; gap: var(--space-4); min-height: var(--hauteur-entete); }
.nav { margin-inline-start: auto; }
.nav-liste { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--space-2); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-lien {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: 44px; padding: 0 var(--space-2);
  border: 0; background: none; color: var(--fg);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav-lien:hover, .nav-lien[aria-current="page"], .nav-lien.actif { color: var(--accent-text); }
.nav-lien[aria-current="page"], .nav-lien.actif { font-weight: 700; }
.nav-deplier {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; min-height: 44px; margin-left: calc(-1 * var(--space-2));
  border: 0; background: none; color: var(--fg); cursor: pointer;
}
.nav-deplier:hover { color: var(--accent-text); }
.chevron { flex: none; width: 10px; height: 10px; transition: transform 0.15s ease; }
[aria-expanded="true"] > .chevron { transform: rotate(180deg); }

.sous-menu {
  position: absolute; top: calc(100% + 8px); left: calc(-1 * var(--space-4)); z-index: 30;
  min-width: 18rem; padding: var(--space-6);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.sous-menu[hidden] { display: none; }
.sous-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
@media (hover: hover) and (min-width: 75.0625rem) {
  .nav-item-sous:hover > .sous-menu[hidden] { display: block; }
}
.sous-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.sous-menu a { display: block; padding: var(--space-1) 0; color: var(--fg); text-decoration: none; font-size: var(--text-sm); }
.sous-menu a:hover, .sous-menu a[aria-current="page"] { color: var(--accent-text); }
.sous-menu a[aria-current="page"] { font-weight: 700; }
.sous-menu-offres { min-width: 38rem; }
.sous-menu-tout { font-weight: 700; margin-bottom: var(--space-4); }
.sous-menu-groupes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.sous-menu-groupe .idx { display: block; margin-bottom: var(--space-2); }
.sous-menu-maitrise a span:not(.lien-externe, .sans-bloc) { display: block; color: var(--muted); font-size: var(--text-xs); line-height: 1.4; }
/* Lien vers un autre site de Synergetik (Routéo, A50) : une flèche discrète après le nom. */
.lien-externe { display: inline; margin-left: 0.3em; color: var(--accent-text); font-size: 0.85em; }

/* Réglages de l'en-tête : langue (FR | EN) et thème (clair | sombre), deux pastilles
   compactes au même dessin (A17) — le choix affiché est plein, l'autre est discret. */
.nav { display: flex; align-items: center; gap: 12px; }
.nav-liste, .nav-reglages { flex: none; }
.nav-reglages { display: flex; align-items: center; gap: var(--space-2); }
.bascule {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: var(--radius-card);
  background: var(--surface);
  background: color-mix(in srgb, var(--border) 55%, var(--surface));
}
.bascule-choix {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 28px; padding: 0 6px;
  border: 0; border-radius: calc(var(--radius-card) - 3px); background: transparent; color: var(--muted);
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.bascule-choix:not([aria-current="true"]):not([aria-pressed="true"]):hover { color: var(--fg); }
.bascule-choix[aria-current="true"], .bascule-choix[aria-pressed="true"] { background: var(--fg); color: var(--bg); cursor: default; }
.bascule-choix svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.menu-mobile {
  display: none; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--muted); border-radius: var(--radius-card);
  background: transparent; color: var(--fg);
  font-family: var(--font-mono); font-size: var(--text-xs); cursor: pointer;
}
.menu-mobile-icone { display: grid; gap: 4px; width: 16px; }
.menu-mobile-icone span { display: block; height: 2px; background: currentColor; border-radius: 1px; }
.menu-mobile[aria-expanded="true"] .menu-mobile-icone span:nth-child(2) { opacity: 0; }

@media (max-width: 75rem) {
  :root { --hauteur-entete: 64px; }
  .entete-barre { gap: var(--space-4); }
  .logo svg { height: 24px; }
  .menu-mobile { display: inline-flex; }
  .btn-entete { margin-inline-start: auto; padding: 0 var(--space-4); }
  .nav {
    display: none; position: fixed; inset: var(--hauteur-entete) 0 0 0; z-index: 25;
    margin: 0; overflow-y: auto; background: var(--bg); padding: var(--space-6) var(--gutter) var(--space-12);
  }
  .js .nav.ouvert { display: block; }
  .nav-liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .nav-lien { flex: 1; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; min-height: 56px; padding: 0; }
  .nav-deplier { width: 56px; min-height: 56px; margin: 0; }
  .sous-menu, .sous-menu-offres {
    position: static; min-width: 0; width: 100%; padding: 0 0 var(--space-6);
    border: 0; background: none;
  }
  .sous-menu-groupes { grid-template-columns: 1fr; gap: var(--space-4); }
  .sous-menu a { font-size: var(--text-md); padding: var(--space-2) 0; }
  /* Dans le menu du téléphone, les deux pastilles se placent sous les entrées. */
  .nav-reglages { padding-top: var(--space-6); gap: var(--space-4); }
  html.menu-ouvert { overflow: hidden; }
}
@media (max-width: 30rem) {
  .btn-entete { font-size: var(--text-xs); padding: 0 var(--space-2); }
  /* Texte masqué à l'écran mais lu par les lecteurs d'écran : le bouton garde son nom. */
  .menu-mobile-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-mobile { padding: 0 var(--space-2); }
}

/* ---------- Fil d'Ariane ---------- */
.fil { padding-top: var(--space-6); }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.fil li { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.fil li + li::before { content: "/"; margin-right: var(--space-2); color: var(--border); }
.fil a { color: var(--muted); }
.fil a:hover { color: var(--accent-text); }

/* ---------- Sections ---------- */
/* Les sections alternent deux fonds (DESIGN.md § 7) : la première après l'en-tête de page
   est teintée, la suivante neutre, et ainsi de suite ; la teinte sépare, sans filet. */
.section { --fond: var(--bg); background: var(--fond); }
main > .section:nth-of-type(odd) { --fond: var(--bg-alt); }
/* Texte long (pages légales) : toujours sur le fond neutre, plus reposant à lire. */
main > .section.section-texte { --fond: var(--bg); }
.section > .wrap { padding-block: var(--space-16); display: grid; gap: var(--space-8); }
/* Titre de section (DESIGN.md § 7) : repère à gauche — filet, petit titre, numéro —, titre à droite. */
.section-tete { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--space-4) var(--space-12); align-items: start; }
.section-tete > .section-titre:only-child { grid-column: 1 / -1; }
/* Le filet s'aligne sur le haut des capitales du titre, et non sur le haut de sa boîte :
   avec Instrument Sans et un interligne de 1,12, les capitales commencent à 0,197 fois
   la taille du titre sous le haut de la boîte (mesuré le 2026-09-30). */
.section-repere { position: relative; display: grid; gap: var(--space-2); margin-top: calc(var(--text-2xl) * 0.197); padding-top: var(--space-4); }
/* Le filet du repère : un trait de 2 px, tracé de gauche à droite quand la section apparaît. */
.section-repere::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--degrade); transform-origin: left center; }
.section-nom { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.4; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.section-numero { font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.4; letter-spacing: 0.12em; color: var(--violet-text); font-variant-numeric: tabular-nums; }
.section-titre { display: grid; gap: var(--space-2); max-width: var(--largeur-texte); }
.section-tete h2 { font-size: var(--text-2xl); }
.section-tete p { color: var(--muted); }
.section-tete .chapo { color: var(--fg); }
.corps { display: grid; gap: var(--space-4); max-width: var(--largeur-texte); }

.corps h3 { font-size: var(--text-lg); margin-top: var(--space-4); }
@media (max-width: 48rem) {
  /* Sur téléphone, le repère passe au-dessus du titre, petit titre et numéro sur une ligne. */
  .section-tete { grid-template-columns: minmax(0, 1fr); }
  .section-repere { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-4); max-width: 16rem; margin-top: 0; }
}
@media (max-width: 40rem) {
  .section > .wrap { padding-block: var(--space-12); }
  .section-tete h2 { font-size: var(--text-xl); }
}

/* En-tête de page (hors accueil) */
.entete-page > .wrap { padding-block: var(--space-12) var(--space-16); display: grid; gap: var(--space-6); }
.entete-page h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 22ch; }
.entete-page .chapo { color: var(--fg); }
.entete-page-reponse { font-size: var(--text-lg); line-height: 1.5; max-width: 40rem; border-left: 2px solid var(--accent-text); padding-left: var(--space-4); }

.entete-page-simple > .wrap { padding-block: var(--space-12) var(--space-8); }

/* Repères d'une offre (prix, délai, périmètre) */
/* Un bandeau en surface : prix, délai, périmètre côte à côte, séparés d'un filet. */
.reperes {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); width: fit-content; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.reperes div { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-6); }
.reperes div + div { border-left: 1px solid var(--border); }
.reperes dt { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.reperes dd { font-weight: 700; }
.reperes div:first-child dd { color: var(--accent-text); }
@media (max-width: 48rem) {
  .reperes { grid-template-columns: 1fr; width: 100%; }
  .reperes div + div { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Accueil ---------- */
.hero > .wrap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-12); align-items: center; padding-block: var(--space-16);
}
.hero-texte { display: grid; gap: var(--space-6); }
.hero h1 { font-size: var(--text-hero); }
.hero .chapo { max-width: 36ch; }
.reassurance { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 60rem) {
  .hero > .wrap { grid-template-columns: 1fr; padding-block: var(--space-12); }
}

/* ---------- Cartes et grilles ---------- */
.carte {
  display: grid; gap: var(--space-2); align-content: start;
  padding: var(--space-6);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
}
.carte h3, .carte h4 { font-size: var(--text-lg); }
.carte h3 a, .carte h4 a { color: var(--fg); text-decoration: none; }
.carte h3 a:hover, .carte h4 a:hover { color: var(--accent-text); text-decoration: underline; }
.carte .unite { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.carte-pied { margin-top: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.carte-prix { font-weight: 700; }
.carte-lien { position: relative; transition: border-color var(--duree) ease, transform var(--duree) var(--courbe), background-color var(--duree) ease; }
.carte-lien:hover { border-color: var(--accent-text); transform: translateY(-3px); }
/* Carte cliquable : une flèche discrète, qui avance au survol. */
.carte-lien::after {
  content: "→"; position: absolute; top: var(--space-6); right: var(--space-6);
  color: var(--accent-text); font-weight: 700; line-height: 1;
  opacity: 0; transform: translateX(-6px); transition: opacity var(--duree) ease, transform var(--duree) var(--courbe);
}
.carte-lien:hover::after { opacity: 1; transform: none; }
.carte-lien a.etendu::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.grille-2, .grille-3, .grille-4 { display: grid; gap: var(--space-4); }
ul.grille-2, ul.grille-3, ul.grille-4, ol.grille-2, ol.grille-3, ol.grille-4 { list-style: none; margin: 0; padding: 0; }
.h3-carte { font-size: var(--text-lg); }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 60rem) {
  .grille-3, .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .grille-2, .grille-3, .grille-4 { grid-template-columns: 1fr; }
}

/* Liens vers les pages Maîtrise : autant de colonnes que la largeur permet (5 pages, A21),
   en liste légère — un filet, le nom, une ligne de résumé — plutôt qu'en cartes. */
.grille-maitrise { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4) var(--space-6); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.grille-maitrise > li { position: relative; display: grid; gap: var(--space-1); align-content: start; padding-top: var(--space-4); border-top: 1px solid var(--border); transition: border-color var(--duree) ease; }
.grille-maitrise > li:hover { border-top-color: var(--accent-text); }
.grille-maitrise h3 { font-size: var(--text-md); }
.grille-maitrise h3 a { color: var(--fg); text-decoration: none; }
.grille-maitrise h3 a::after { content: "→"; display: inline-block; margin-left: 0.35em; color: var(--accent-text); transition: transform var(--duree) var(--courbe); }
.grille-maitrise li:hover h3 a { color: var(--accent-text); }
.grille-maitrise li:hover h3 a::after { transform: translateX(4px); }
.grille-maitrise a.etendu::before { content: ""; position: absolute; inset: 0; }

/* Accueil, ouverture (A35) : le schéma du Cerveau entreprise et de ses agents, d'après la
   maquette du dirigeant (2026-10-01). Il suit le thème : une carte blanche en clair, la
   surface teintée d'accent en sombre. Charte : aucune couleur hors des jetons, sans halo
   lumineux ni dégradé ni quadrillage (DESIGN.md § 7). */
.constellation { --fond: var(--surface); margin: 0; display: grid; gap: var(--space-4); padding: var(--space-6); background: var(--fond); color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius-card); }
:root[data-theme="dark"] .constellation { --fond: var(--accent-wash); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .constellation { --fond: var(--accent-wash); }
}
.constellation-svg { display: block; width: 100%; height: auto; }
.constellation-legende { display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.constellation-legende strong { color: var(--fg); }
.c-halo { fill: color-mix(in srgb, var(--accent-text) 9%, var(--fond)); }
.c-anneau { fill: none; stroke: color-mix(in srgb, var(--accent-text) 32%, var(--fond)); stroke-width: 1.5; }
.c-anneau-large { stroke: color-mix(in srgb, var(--accent-text) 18%, var(--fond)); }
/* Les liens : des tirets qui avancent — vers le cerveau, entre agents (l'anneau), vers l'extérieur. */
.c-lien { fill: none; stroke: color-mix(in srgb, var(--accent-text) 60%, var(--fond)); stroke-width: 1.5; stroke-dasharray: 5 6; animation: c-flux 1.8s linear infinite; }
.c-lien-anneau { stroke: color-mix(in srgb, var(--accent-text) 45%, var(--fond)); stroke-dasharray: 6 8; animation-name: c-flux-anneau; animation-duration: 3.2s; }
.c-lien-ext { stroke: color-mix(in srgb, var(--fg) 45%, var(--fond)); }
@keyframes c-flux { to { stroke-dashoffset: -22; } }
@keyframes c-flux-anneau { to { stroke-dashoffset: -28; } }
.c-port { fill: var(--fg); }
.c-noyau { fill: var(--fond); stroke: var(--accent-text); stroke-width: 2; }
.c-noyau-anneau { fill: none; stroke: color-mix(in srgb, var(--accent-text) 38%, var(--fond)); stroke-width: 1; }
.c-coeur { fill: var(--accent-text); transform-origin: 260px 236px; animation: c-battement 2.4s ease-in-out infinite alternate; }
@keyframes c-battement { to { transform: scale(1.4); } }
/* Une onde part du cerveau, à intervalle régulier. */
.c-onde { fill: none; stroke: var(--accent-text); stroke-width: 1.5; opacity: 0; transform-origin: 260px 265px; animation: c-onde 3.6s ease-out infinite; }
@keyframes c-onde { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.6); opacity: 0; } }
.c-agent { fill: var(--fond); stroke: var(--accent-text); stroke-width: 2; }
.c-agent-clair { stroke: var(--fg); }
.c-texte { font-family: var(--font-mono); fill: var(--muted); }
/* Le nom du cerveau, dans son cercle, sur deux lignes. */
.c-cerveau { font-size: 13px; letter-spacing: 0.08em; fill: var(--accent-text); }
.c-agent-tag { font-size: 9.5px; letter-spacing: 0.16em; }
.c-agent-nom { font-size: 13px; letter-spacing: 0.06em; fill: var(--fg); }
.c-coin { font-size: 14px; letter-spacing: 0.12em; }
.c-coin-flux { fill: var(--accent-text); }
/* Les signaux : des points qui circulent sur les liens (de --de à --vers), et deux sur l'anneau. */
.c-signal { fill: var(--accent-text); opacity: 0; animation: c-trajet 3.2s var(--courbe) infinite; }
.c-signal-2, .c-signal-4, .c-signal-6, .c-signal-8 { fill: var(--fg); }
@keyframes c-trajet { 0% { transform: var(--de); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: var(--vers); opacity: 0; } }
.c-signal-1 { --de: translate(215px, 220px); --vers: translate(137px, 142px); }
.c-signal-2 { --de: translate(383px, 142px); --vers: translate(305px, 220px); animation-delay: -0.8s; }
.c-signal-3 { --de: translate(305px, 310px); --vers: translate(383px, 388px); animation-delay: -1.6s; }
.c-signal-4 { --de: translate(137px, 388px); --vers: translate(215px, 310px); animation-delay: -2.4s; }
.c-signal-5 { --de: translate(52px, 57px); --vers: translate(83px, 88px); animation-delay: -0.4s; }
.c-signal-6 { --de: translate(437px, 88px); --vers: translate(468px, 57px); animation-delay: -1.2s; }
.c-signal-7 { --de: translate(468px, 473px); --vers: translate(437px, 442px); animation-delay: -2s; }
.c-signal-8 { --de: translate(83px, 442px); --vers: translate(52px, 473px); animation-delay: -2.8s; }
.c-signal-fixe { fill: var(--accent-text); }
.c-signal-clair { fill: var(--fg); }
.c-orbite { transform-origin: 260px 265px; animation: c-tour 28s linear infinite; }
.c-orbite-2 { animation-delay: -14s; }
@keyframes c-tour { to { transform: rotate(360deg); } }
@media (max-width: 40rem) {
  .constellation { padding: var(--space-4) var(--space-2); }
  .constellation-legende { padding-inline: var(--space-2); }
}

/* ---------- Accueil — visuels (A43) ----------
   Dessins de _includes/accueil.njk. Charte : jetons de couleur seulement, sans ombre ni
   dégradé ; les dessins suivent le thème. Les animations ne démarrent qu'à l'apparition du
   bloc (apparition.js) et s'arrêtent si l'appareil réduit les animations : l'état affiché
   à l'arrêt est toujours l'état final, lisible. */
.apparait:not(.visible) :is(.squad, .organigramme, .couloirs, .graphe-temps, .jauges) *,
.apparait:not(.visible):is(.squad, .organigramme, .couloirs, .graphe-temps, .jauges) * { animation-play-state: paused; }
.glyphe { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glyphe :is(path, rect, circle, line, polyline, polygon, ellipse) { vector-effect: non-scaling-stroke; }

/* 01 — La squad : un espace de travail animé. */
.squad { --fond: var(--surface); margin: 0; }
.squad svg { display: block; width: 100%; height: auto; }
.sq-fenetre { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.sq-barre, .sq-sep, .sq-sol { fill: none; stroke: var(--border); stroke-width: 1.5; }
.sq-point { fill: var(--border); }
.sq-titre { font-family: var(--font-mono); font-size: 14px; fill: var(--muted); }
.sq-en-ligne { fill: var(--accent-text); animation: sq-pouls 2s ease-in-out infinite; }
.sq-tableau { fill: var(--accent-wash); stroke: color-mix(in srgb, var(--accent-text) 25%, var(--border)); }
.sq-col { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--muted); }
.sq-carte { fill: var(--surface); stroke: var(--border); }
.sq-carte-active { stroke: var(--accent-text); stroke-width: 1.5; }
.sq-carte-texte { fill: none; stroke: var(--border); stroke-width: 5; stroke-linecap: round; }
.sq-carte-texte-active { stroke: color-mix(in srgb, var(--accent-text) 45%, var(--surface)); }
.sq-carte-mobile { animation: sq-carte 8s var(--courbe) infinite; }
.sq-forme { fill: var(--surface); stroke: var(--accent-text); stroke-width: 2.5; }
.sq-trait { fill: none; stroke: var(--accent-text); stroke-width: 2.5; stroke-linecap: round; }
.sq-antenne { fill: var(--accent-text); }
.sq-oeil { fill: var(--accent-text); transform-box: fill-box; transform-origin: center; animation: sq-cligne 6s infinite; }
.sq-a2 .sq-oeil { animation-delay: 1.4s; } .sq-a3 .sq-oeil { animation-delay: 2.6s; }
.sq-a4 .sq-oeil { animation-delay: 3.3s; } .sq-a5 .sq-oeil { animation-delay: 0.7s; }
.sq-bureau { fill: color-mix(in srgb, var(--fg) 14%, var(--surface)); }
.sq-pied { fill: none; stroke: color-mix(in srgb, var(--fg) 22%, var(--surface)); stroke-width: 3; stroke-linecap: round; }
.sq-ecran { fill: var(--accent-wash); stroke: var(--accent-text); stroke-width: 2; }
.sq-ligne { fill: none; stroke: var(--accent-text); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 80; animation: sq-tape 3.2s ease-in-out infinite; }
.sq-ligne-2 { animation-delay: 0.5s; } .sq-ligne-3 { animation-delay: 1s; }
.sq-bulle-forme { fill: var(--surface); stroke: var(--accent-text); stroke-width: 2; }
.sq-point-bulle { fill: var(--accent-text); animation: sq-rebond 1.2s ease-in-out infinite; }
.sq-point-bulle:nth-of-type(2) { animation-delay: 0.15s; } .sq-point-bulle:nth-of-type(3) { animation-delay: 0.3s; }
.sq-bulle-1 { animation: sq-bulle-1 8s infinite; } .sq-bulle-2 { animation: sq-bulle-2 8s infinite; }
.sq-doc { fill: var(--accent-wash); stroke: var(--accent-text); stroke-width: 1.5; }
.sq-doc-ligne { stroke: var(--accent-text); stroke-width: 1.5; }
.sq-coche { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sq-bras { transform-origin: 930px 362px; animation: sq-main 8s ease-in-out infinite; }
.sq-bras-trait { fill: none; stroke: var(--accent-text); stroke-width: 9; stroke-linecap: round; }
.sq-main { fill: var(--accent-text); }
.sq-signal { animation: sq-signal 8s infinite; }
.sq-lien { fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-dasharray: 4 5; animation: sq-flux 0.9s linear infinite; }
.sq-alerte { fill: var(--accent); }
.sq-alerte-signe, .sq-toast-signe { fill: none; stroke: var(--ink-on-accent); stroke-width: 3; stroke-linecap: round; }
.sq-toast { animation: sq-toast 8s var(--courbe) infinite; }
.sq-toast-fond { fill: var(--surface); stroke: var(--accent-text); stroke-width: 1.5; }
.sq-toast-icone { fill: var(--accent); }
.sq-toast-titre { font-family: var(--font-body); font-size: 15px; font-weight: 700; fill: var(--fg); }
.sq-toast-texte { font-family: var(--font-body); font-size: 13px; fill: var(--muted); }
.sq-bouton { fill: var(--accent); }
.sq-bouton-texte { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: var(--ink-on-accent); }
.sq-bouton-2 { fill: none; stroke: var(--border); }
.sq-bouton-texte-2 { font-family: var(--font-body); font-size: 12px; fill: var(--muted); }
.sq-valider { transform-box: fill-box; transform-origin: center; animation: sq-clic 8s infinite; }
.sq-etiquette { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; fill: var(--muted); }
@keyframes sq-pouls { 50% { opacity: 0.35; } }
@keyframes sq-cligne { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(0.1); } }
@keyframes sq-tape { 0% { stroke-dashoffset: 80; } 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 80; } }
@keyframes sq-rebond { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
@keyframes sq-carte { 0%, 18% { transform: none; } 28%, 52% { transform: translate(155px, -34px); } 62%, 92% { transform: translate(310px, 34px); } 100% { transform: translate(310px, 34px); opacity: 0; } }
@keyframes sq-bulle-1 { 0%, 42%, 100% { opacity: 1; } 47%, 95% { opacity: 0; } }
@keyframes sq-bulle-2 { 0%, 45% { opacity: 0; } 50%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes sq-main { 0%, 10% { transform: rotate(150deg); } 18%, 60% { transform: rotate(0); } 26% { transform: rotate(-8deg); } 34% { transform: rotate(6deg); } 42% { transform: rotate(-8deg); } 50% { transform: rotate(4deg); } 68%, 100% { transform: rotate(150deg); } }
@keyframes sq-signal { 0%, 14% { opacity: 0; } 20%, 62% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes sq-flux { to { stroke-dashoffset: -18; } }
@keyframes sq-toast { 0%, 22% { opacity: 0; transform: translateY(-10px); } 28%, 70% { opacity: 1; transform: none; } 78%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes sq-clic { 0%, 54%, 62%, 100% { transform: none; } 58% { transform: scale(0.9); } }

/* 02 — Choisir ses agents : quatre étapes, et le temps passé par action. */
.choisir { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-12); align-items: center; }
.etapes-choix { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.etapes-choix li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.etapes-choix li:not(:last-child)::before { content: ""; position: absolute; left: 1.25rem; top: 2.75rem; bottom: calc(-1 * var(--space-6) + 4px); width: 2px; margin-left: -1px; background: color-mix(in srgb, var(--accent-text) 35%, var(--fond, var(--bg))); }
.etape-num { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 2px solid var(--accent-text); border-radius: 50%; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent-text); background: var(--fond, var(--bg)); }
.etapes-choix h3 { font-size: var(--text-lg); }
.etapes-choix p { font-size: var(--text-sm); color: var(--muted); }
.graphe-temps { margin: 0; gap: var(--space-4); padding: var(--space-6); }
.barres { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.barres li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 2.5rem; gap: var(--space-4); align-items: center; font-size: var(--text-sm); }
.barre-nom { color: var(--muted); }
.a-confier .barre-nom { color: var(--fg); font-weight: 700; }
.barre-valeur { font-family: var(--font-mono); font-size: var(--text-xs); text-align: right; color: var(--muted); }
/* La barre : une piste de six heures ; sa longueur, le nombre d'heures (classe duree-N). */
.barre-piste { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); height: 0.9rem; }
.barre { border-radius: 999px; background: color-mix(in srgb, var(--fg) 16%, var(--surface)); transform-origin: left center; animation: barre 1.1s var(--courbe) both; }
.a-confier .barre { background: var(--accent); }
.duree-1 .barre { grid-column: span 1; } .duree-2 .barre { grid-column: span 2; } .duree-3 .barre { grid-column: span 3; }
.duree-4 .barre { grid-column: span 4; } .duree-5 .barre { grid-column: span 5; } .duree-6 .barre { grid-column: span 6; }
.barres li:nth-child(2) .barre { animation-delay: 0.1s; } .barres li:nth-child(3) .barre { animation-delay: 0.2s; }
.barres li:nth-child(4) .barre { animation-delay: 0.3s; } .barres li:nth-child(5) .barre { animation-delay: 0.4s; }
.barres li:nth-child(6) .barre { animation-delay: 0.5s; }
@keyframes barre { from { transform: scaleX(0); } }
.graphe-total { display: flex; align-items: center; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--muted); }
.graphe-total strong { color: var(--fg); font-family: var(--font-display); font-size: var(--text-lg); }
.graphe-cle { width: 0.9rem; height: 0.9rem; border-radius: 999px; background: var(--accent); flex: none; }
@media (max-width: 60rem) { .choisir { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }
@media (max-width: 40rem) {
  .barres li { grid-template-columns: 7.5rem minmax(0, 1fr) 2rem; gap: var(--space-2); }
  .graphe-temps { padding: var(--space-4); }
}

/* 03 — L'organisation : un organigramme qui se trace, puis des signaux qui descendent. */
.organisation { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.organigramme { --fond: var(--bg-alt); margin: 0; }
.organigramme svg { display: block; width: 100%; height: auto; overflow: visible; }
.or-lien { fill: none; stroke: color-mix(in srgb, var(--accent-text) 45%, var(--fond, var(--bg))); stroke-width: 2; stroke-dasharray: 400; animation: or-trace 0.9s var(--courbe) both; }
.or-lien-1 { animation-delay: 0.3s; } .or-lien-2 { animation-delay: 0.9s; } .or-lien-3 { animation-delay: 1.5s; }
.or-signal { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 600; stroke-dashoffset: 8; animation: or-signal 2.8s linear infinite; }
.or-signal-1 { animation-delay: 2.4s; } .or-signal-2 { animation-delay: 2.9s; } .or-signal-3 { animation-delay: 3.4s; }
.or-noeud { fill: var(--surface); stroke: var(--accent-text); stroke-width: 2.5; }
.or-tache { stroke-width: 2; }
.or-glyphe { color: var(--accent-text); }
.or-n { transform-box: fill-box; transform-origin: center; animation: or-apparait 0.6s var(--courbe) both; }
.or-n2 { animation-delay: 0.7s; } .or-n3 { animation-delay: 1.3s; } .or-n4 { animation-delay: 1.9s; }
.or-onde { fill: none; stroke: var(--accent-text); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: or-onde 3.2s ease-out 2s infinite; }
@keyframes or-trace { from { stroke-dashoffset: 400; } }
@keyframes or-signal { from { stroke-dashoffset: 8; } to { stroke-dashoffset: -260; } }
@keyframes or-apparait { from { opacity: 0; transform: scale(0.6); } }
@keyframes or-onde { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
.niveaux-arbre { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.niveaux-arbre li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--space-4); align-items: center; padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.niveaux-arbre li:last-child { border-bottom: 0; padding-bottom: 0; }
.niveau-arbre-signe { display: grid; place-items: center; }
.niveau-arbre-signe .picto { width: 3rem; height: 3rem; }
.niveau-arbre-signe .icone { width: 2.25rem; height: 2.25rem; }
.niveaux-arbre h3 { font-size: var(--text-md); }
.niveaux-arbre h3 a { color: var(--fg); text-decoration: none; }
.niveaux-arbre h3 a::after { content: " →"; color: var(--accent-text); }
.niveaux-arbre h3 a:hover { color: var(--accent-text); }
.niveaux-arbre p { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 60rem) { .organisation { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }

/* 04 — La supervision : trois pistes, un jeton qui passe seul, s'arrête pour une
   validation, ou s'arrête chez la personne qui exécute. */
.couloirs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.couloir { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: var(--space-8); align-items: center; padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.couloir-texte { display: grid; gap: var(--space-1); }
.couloir-texte h3 { font-size: var(--text-lg); }
.couloir-texte p { font-size: var(--text-sm); color: var(--muted); }
.piste { display: block; width: 100%; height: auto; overflow: visible; }
.pi-ligne { fill: none; stroke: var(--border); stroke-width: 2; stroke-dasharray: 6 6; }
.pi-noeud { fill: var(--surface); stroke: var(--accent-text); stroke-width: 2; }
.pi-noeud-humain { stroke: var(--fg); }
.pi-glyphe { color: var(--accent-text); }
.pi-glyphe-humain { color: var(--fg); }
.pi-absent { opacity: 0.3; }
.pi-absent .pi-noeud { stroke-dasharray: 4 4; }
.pi-jeton { fill: var(--accent-text); }
.pi-jeton-humain { fill: var(--fg); }
.pi-coche-fond { fill: var(--accent); }
.pi-coche-trait { fill: none; stroke: var(--ink-on-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pi-action, .pi-personne, .pi-coche { transform-box: fill-box; transform-origin: center; }
.piste-autonome .pi-jeton { animation: pi-direct 5s var(--courbe) infinite; }
.piste-autonome .pi-action { animation: pi-arrivee 5s infinite; }
.piste-validation .pi-jeton { animation: pi-valide 6s var(--courbe) infinite; }
.piste-validation .pi-personne { animation: pi-attente 6s infinite; }
.piste-validation .pi-coche { animation: pi-coche 6s infinite; }
.piste-validation .pi-action { animation: pi-arrivee-tard 6s infinite; }
.piste-preparation .pi-jeton-1 { animation: pi-prepare 6s var(--courbe) infinite; }
.piste-preparation .pi-jeton-2 { animation: pi-execute 6s var(--courbe) infinite; }
.piste-preparation .pi-personne { animation: pi-decide 6s infinite; }
.piste-preparation .pi-action { animation: pi-arrivee-tard 6s infinite; }
@keyframes pi-direct { 0% { transform: none; opacity: 0; } 8% { opacity: 1; } 50% { transform: translateX(376px); opacity: 1; } 56%, 100% { transform: translateX(376px); opacity: 0; } }
@keyframes pi-arrivee { 0%, 48%, 64%, 100% { transform: none; } 54% { transform: scale(1.15); } }
@keyframes pi-valide { 0% { transform: none; opacity: 0; } 6% { opacity: 1; } 28%, 56% { transform: translateX(156px); opacity: 1; } 80% { transform: translateX(376px); opacity: 1; } 86%, 100% { transform: translateX(376px); opacity: 0; } }
@keyframes pi-attente { 0%, 26%, 60%, 100% { transform: none; } 32%, 54% { transform: scale(1.12); } }
@keyframes pi-coche { 0%, 36% { opacity: 0; transform: scale(0.4); } 42%, 66% { opacity: 1; transform: none; } 74%, 100% { opacity: 0; } }
@keyframes pi-arrivee-tard { 0%, 78%, 92%, 100% { transform: none; } 84% { transform: scale(1.15); } }
@keyframes pi-prepare { 0% { transform: none; opacity: 0; } 6% { opacity: 1; } 32% { transform: translateX(156px); opacity: 1; } 38%, 100% { transform: translateX(156px); opacity: 0; } }
@keyframes pi-execute { 0%, 42% { transform: none; opacity: 0; } 48% { opacity: 1; } 80% { transform: translateX(156px); opacity: 1; } 86%, 100% { transform: translateX(156px); opacity: 0; } }
@keyframes pi-decide { 0%, 30%, 84%, 100% { transform: none; } 38%, 78% { transform: scale(1.12); } }
@media (max-width: 48rem) { .couloir { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); } }

/* 05 — Ce qui nous distingue : trois cartes à icône, puis les chiffres. */
.distinctions .carte { gap: var(--space-2); }
.distinctions .icone { width: 2rem; height: 2rem; margin-bottom: var(--space-2); }
.distinctions h3 { font-size: var(--text-lg); }

/* 06 — La longueur d'avance : trois jauges qui se remplissent. */
.jauges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.jauge { display: grid; justify-items: center; align-content: start; gap: var(--space-2); text-align: center; }
.jauge-cercle { position: relative; width: 10rem; height: 10rem; margin-bottom: var(--space-2); }
.jauge-svg { display: block; width: 100%; height: 100%; }
.jauge-fond { fill: none; stroke: color-mix(in srgb, var(--fg) 14%, var(--fond, var(--bg))); stroke-width: 10; }
.jauge-valeur { fill: none; stroke: var(--accent-text); stroke-width: 10; stroke-linecap: round; animation: jauge 1.8s var(--courbe) 0.2s both; }
.jauge-valeur-objectif { stroke: color-mix(in srgb, var(--accent-text) 55%, var(--fond, var(--bg))); }
.jauge-chiffre { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
.jauge p { max-width: 18rem; }
.jauge-note { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
@keyframes jauge { from { stroke-dashoffset: 326.73; } }
@media (max-width: 48rem) { .jauges { grid-template-columns: minmax(0, 1fr); } }

/* 07 — L'appel final de l'accueil : le Diagnostic flash en trois temps. */
.appel-etapes { list-style: none; margin: 0; padding: var(--space-2) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: var(--space-4) var(--space-6); }
@media (max-width: 30rem) { .appel-etapes { grid-template-columns: minmax(0, 1fr); } }
.appel-etapes li { display: grid; gap: var(--space-1); }
.appel-etape-valeur { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--fg); line-height: 1; }
.appel-etapes li span:last-child { font-size: var(--text-sm); color: var(--muted); }

/* Citation de marque */
.citation-marque {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); max-width: 30ch;
}

/* Engagements chiffrés */
.chiffres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--space-4); }
.chiffres li { display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-4); border-top: 1px solid var(--border); }
.chiffres .valeur { font-family: var(--font-display); font-size: clamp(1.75rem, 2.3vw, 2.125rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.chiffres p { font-size: var(--text-sm); color: var(--muted); }

/* Listes */
.liste-simple { display: grid; gap: var(--space-2); }
.liste-pointee { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.liste-pointee li { position: relative; padding-left: var(--space-6); }
.liste-pointee li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 12px; height: 2px; background: var(--accent-text); }
.liste-non li::before { background: var(--muted); }
/* Longue liste de livrables : deux colonnes sur grand écran, pour une lecture plus aérée. */
.liste-colonnes { display: block; columns: 2 20rem; column-gap: var(--space-12); }
.liste-colonnes li { break-inside: avoid; margin-bottom: var(--space-2); }
/* Étapes : une trajectoire verticale — un repère numéroté par étape, relié au suivant. */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: etape; }
.etapes > li { position: relative; counter-increment: etape; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-4); padding-bottom: var(--space-6); }
.etapes > li:last-child { padding-bottom: 0; }
.etapes > li::before {
  content: counter(etape, decimal-leading-zero); position: relative; z-index: 1;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 2px solid var(--accent-text); background: var(--fond, var(--bg));
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; color: var(--accent-text);
}
.etapes > li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.25rem - 1px); top: 2.5rem; bottom: 0; width: 2px;
  background: color-mix(in srgb, var(--accent-text) 30%, var(--fond, var(--bg)));
}
.etapes h3 { font-size: var(--text-lg); margin: 0.4rem 0 var(--space-1); }
.etapes p + p { margin-top: var(--space-2); }

/* Intertitre dans le fil d'une section (après un regroupement) */
.sous-titre { font-size: var(--text-xl); margin-top: var(--space-4); }

/* Grille légère : un filet au-dessus de chaque élément, sans carte — pour les listes
   courtes qui n'ont pas besoin de surface. */
.grille-filets > li { display: grid; gap: var(--space-1); align-content: start; padding-top: var(--space-4); border-top: 2px solid var(--fg); }
.grille-filets h3 { font-size: var(--text-lg); }

/* Étapes présentées en cartes côte à côte (Audit métiers) */
.etape-carte { gap: var(--space-2); }
.etape-carte h3 { font-size: var(--text-lg); }
.etape-carte > p { font-size: var(--text-sm); }
.etape-carte .liste-pointee { margin-top: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); }

/* Cartes du cadre d'une offre : limites, mesure, données */
.carte-cadre { gap: var(--space-4); }
.carte-cadre p, .carte-cadre li { font-size: var(--text-sm); }

/* Encadrés */
.encadre {
  display: grid; gap: var(--space-2);
  padding: var(--space-6); max-width: var(--largeur-texte);
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent-text);
  border-radius: var(--radius-card);
}
.encadre h3 { font-size: var(--text-md); }
/* Encadré mis en avant : surface teintée d'accent, sans filet latéral. */
.encadre-teinte { background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent-text) 28%, var(--border)); }
.encadre p { font-size: var(--text-sm); }
.encadre-large { max-width: none; }
/* Un paragraphe reste un paragraphe, même avec une classe de bloc en grille : ses liens
   restent dans la ligne au lieu de passer chacun sur la leur. */
p.corps, p.encadre { display: block; }

/* Titre de groupe dans une section (Évaluer, Réaliser…) : capitales mono, suivies d'un filet. */
.groupe-titre {
  display: flex; align-items: center; gap: var(--space-4);
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; line-height: 1.4;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text);
}
.groupe-titre::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Tableaux ---------- */
.tableau-conteneur { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tableau caption { text-align: left; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); padding-bottom: var(--space-2); }
.tableau th {
  text-align: left; vertical-align: bottom; padding: var(--space-2) var(--space-4) var(--space-2) 0;
  border-bottom: 1px solid var(--muted);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 400; color: var(--muted);
}
.tableau td { vertical-align: top; padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--border); }
.tableau td:first-child { font-weight: 700; }
.tableau th:last-child, .tableau td:last-child { padding-right: 0; }
.tableau-montants td:last-child, .tableau-montants th:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 45rem) {
  .tableau-empile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau-empile tr { display: grid; gap: var(--space-2); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
  .tableau-empile td { display: grid; gap: var(--space-1); padding: 0; border: 0; }
  .tableau-empile td::before { content: attr(data-label); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 400; color: var(--muted); }
  .tableau-montants td:last-child { text-align: left; }
}

/* ---------- Prix ---------- */
.prix { display: grid; gap: var(--space-6); }
.prix-mention { display: grid; gap: var(--space-2); max-width: var(--largeur-texte); font-size: var(--text-sm); color: var(--muted); }
.prix-mention strong { color: var(--fg); }

/* ---------- Offres — visuels (A44) ----------
   Page Offres, dans l'esprit de l'accueil : l'aiguillage besoin → offre, les unités
   emboîtées, le parcours, les familles, les curseurs du prix, les conditions et le
   paiement. Animations lancées à l'apparition, coupées si l'appareil réduit les
   animations ; à l'arrêt, chaque visuel reste lisible. */
.apparait:not(.visible) :is(.aiguillage, .unites, .parcours, .curseurs, .paiement) *,
.apparait:not(.visible) :is(.aiguillage, .unites, .parcours, .curseurs, .paiement) *::before,
.apparait:not(.visible) :is(.aiguillage, .unites, .parcours, .curseurs, .paiement) *::after,
.apparait:not(.visible):is(.aiguillage, .unites, .parcours, .curseurs, .paiement) *::before,
.apparait:not(.visible):is(.aiguillage, .unites, .parcours, .curseurs, .paiement) *::after,
.apparait:not(.visible):is(.aiguillage, .unites, .parcours, .curseurs, .paiement),
.apparait:not(.visible):is(.aiguillage, .unites, .parcours, .curseurs, .paiement) *,
.apparait:not(.visible):is(.aiguillage, .unites, .parcours, .curseurs, .paiement)::before,
.apparait:not(.visible):is(.aiguillage, .unites, .parcours, .curseurs, .paiement)::after { animation-play-state: paused; }

/* En-tête : le texte, et un escalier de prix dont les marches montent à l'ouverture. */
.entete-offres > .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; column-gap: var(--space-12); }
.entete-offres-texte { display: grid; gap: var(--space-6); align-content: start; }
.marches-prix { margin: 0; }
.marches-prix ol { list-style: none; margin: 0; padding: 0; height: 17rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); align-items: end; }
.marche { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); }
.marche-prix { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.35; color: var(--muted); }
.marche-barre { border-radius: 10px 10px 4px 4px; transform-origin: bottom center; animation: marche 0.9s var(--courbe) both; }
.marche-1 .marche-barre { height: 16%; background: var(--surface); border: 2px solid var(--accent-text); animation-delay: 0.2s; }
.marche-2 .marche-barre { height: 34%; background: color-mix(in srgb, var(--accent) 35%, var(--surface)); animation-delay: 0.35s; }
.marche-3 .marche-barre { height: 55%; background: color-mix(in srgb, var(--accent) 65%, var(--surface)); animation-delay: 0.5s; }
.marche-4 .marche-barre { height: 78%; background: var(--accent); animation-delay: 0.65s; }
.marche-nom { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; line-height: 1.25; color: var(--fg); text-decoration: none; }
.marche-nom:hover { color: var(--accent-text); text-decoration: underline; }
@keyframes marche { from { transform: scaleY(0); } }
@media (max-width: 60rem) {
  .entete-offres > .wrap { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-8); }
  .marches-prix ol { height: 13rem; }
}

/* 01 — L'aiguillage : un besoin, une flèche parcourue par un point, l'offre et son prix. */
.aiguillage { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.aiguillage-ligne {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 16rem); align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  transition: border-color var(--duree) ease, transform var(--duree) var(--courbe);
}
.aiguillage-ligne:hover { border-color: var(--accent-text); transform: translateX(4px); }
.aiguillage-besoin { display: flex; align-items: center; gap: var(--space-4); }
.aiguillage-besoin .icone { width: 1.5rem; height: 1.5rem; }
.aiguillage-fleche { position: relative; height: 2px; background: color-mix(in srgb, var(--accent-text) 30%, var(--surface)); }
.aiguillage-fleche::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--accent-text); border-right: 2px solid var(--accent-text); transform: translateY(-50%) rotate(45deg); }
.aiguillage-fleche::before { content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent-text); animation: aiguillage 2.6s ease-in-out infinite; }
.aiguillage-ligne:nth-child(2) .aiguillage-fleche::before { animation-delay: 0.3s; }
.aiguillage-ligne:nth-child(3) .aiguillage-fleche::before { animation-delay: 0.6s; }
.aiguillage-ligne:nth-child(4) .aiguillage-fleche::before { animation-delay: 0.9s; }
.aiguillage-ligne:nth-child(5) .aiguillage-fleche::before { animation-delay: 1.2s; }
.aiguillage-ligne:nth-child(6) .aiguillage-fleche::before { animation-delay: 1.5s; }
.aiguillage-ligne:nth-child(7) .aiguillage-fleche::before { animation-delay: 1.8s; }
@keyframes aiguillage { 0% { left: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.aiguillage-offre { display: grid; gap: 2px; color: var(--fg); text-decoration: none; }
.aiguillage-offre::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.aiguillage-offre strong { font-family: var(--font-display); font-size: var(--text-md); color: var(--accent-text); }
.aiguillage-prix { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
@media (max-width: 48rem) {
  .aiguillage-ligne { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-4); }
  .aiguillage-fleche { display: none; }
  .aiguillage-offre { padding-left: calc(1.5rem + var(--space-4)); }
}
/* Page Offres : l'offre d'abord, à gauche, avec son icône et son prix ; à droite, le besoin
   auquel elle répond. */
.aiguillage-offre-d-abord { grid-template-columns: minmax(0, 17rem) 5rem minmax(0, 1fr); }
.aiguillage-offre-d-abord .aiguillage-offre { grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: var(--space-4); align-items: center; }
.aiguillage-offre-d-abord .aiguillage-offre .icone { grid-row: span 2; width: 1.5rem; height: 1.5rem; color: var(--accent-text); }
.aiguillage-offre-d-abord .aiguillage-prix { grid-column: 2; }
@media (max-width: 48rem) {
  .aiguillage-offre-d-abord { grid-template-columns: minmax(0, 1fr); }
  .aiguillage-offre-d-abord .aiguillage-offre { padding-left: 0; }
  .aiguillage-offre-d-abord .aiguillage-besoin { padding-left: calc(1.5rem + var(--space-4)); }
}

/* 01 — Les unités emboîtées : une tâche, son processus, puis le domaine s'allument tour à
   tour ; la légende suit. */
.unites { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.unites-figure { margin: 0; }
.unites-svg { display: block; width: 100%; height: auto; }
.un-domaine { fill: color-mix(in srgb, var(--accent-wash) 70%, var(--fond, var(--bg))); stroke: color-mix(in srgb, var(--accent-text) 30%, var(--border)); stroke-width: 1.5; animation: un-domaine 9s infinite; }
.un-voie { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.un-processus-actif .un-voie { animation: un-voie 9s infinite; }
.un-flux { fill: none; stroke: color-mix(in srgb, var(--accent-text) 40%, var(--surface)); stroke-width: 2; stroke-dasharray: 4 6; animation: un-flux 1s linear infinite; }
.un-tache-cercle { fill: var(--surface); stroke: var(--accent-text); stroke-width: 2; }
.un-coche { fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.un-tache-active .un-tache-cercle { animation: un-tache 9s infinite; }
.un-tache-active .un-coche { animation: un-coche 9s infinite; }
@keyframes un-flux { to { stroke-dashoffset: -20; } }
@keyframes un-tache { 0%, 3%, 33%, 100% { fill: var(--surface); } 6%, 30% { fill: var(--accent); } }
@keyframes un-coche { 0%, 3%, 33%, 100% { stroke: var(--accent-text); } 6%, 30% { stroke: var(--ink-on-accent); } }
@keyframes un-voie { 0%, 30%, 69%, 100% { stroke: var(--border); stroke-width: 1.5; fill: var(--surface); } 36%, 63% { stroke: var(--accent-text); stroke-width: 2.5; fill: var(--accent-wash); } }
@keyframes un-domaine { 0%, 63%, 100% { stroke: color-mix(in srgb, var(--accent-text) 30%, var(--border)); stroke-width: 1.5; } 69%, 96% { stroke: var(--accent-text); stroke-width: 3; } }
.unites-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.unites-legende li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-4); border: 1px solid transparent; border-radius: var(--radius-card); }
.unites-legende li > div { display: grid; gap: var(--space-1); }
.unites-legende h3 { font-size: var(--text-md); }
.unites-legende p { font-size: var(--text-sm); color: var(--muted); }
.unites-legende .lien-suite { font-size: var(--text-sm); }
.unite-1 { animation: un-legende-1 9s infinite; } .unite-2 { animation: un-legende-2 9s infinite; } .unite-3 { animation: un-legende-3 9s infinite; }
@keyframes un-legende-1 { 0%, 3%, 33%, 100% { border-color: transparent; background: transparent; } 6%, 30% { border-color: var(--accent-text); background: var(--surface); } }
@keyframes un-legende-2 { 0%, 33%, 66%, 100% { border-color: transparent; background: transparent; } 36%, 63% { border-color: var(--accent-text); background: var(--surface); } }
@keyframes un-legende-3 { 0%, 66%, 99%, 100% { border-color: transparent; background: transparent; } 69%, 96% { border-color: var(--accent-text); background: var(--surface); } }
.unite-marque { justify-self: center; margin-top: 0.25rem; border: 2px solid var(--accent-text); }
.unite-marque-tache { width: 1rem; height: 1rem; border-radius: 50%; }
.unite-marque-processus { width: 2.25rem; height: 1.1rem; border-radius: 6px; }
.unite-marque-domaine { width: 2.5rem; height: 1.75rem; border-radius: 8px; border-width: 3px; }
.phrase-cle { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); text-align: center; }
@media (max-width: 60rem) { .unites { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }

/* 02 — Le parcours : une ligne et ses arrêts, un point qui avance d'arrêt en arrêt, et la
   Supervision en continu dessous. */
.parcours { display: grid; gap: var(--space-8); }
.ligne-parcours { --rail: 0.6rem; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
/* Le rail s'arrête au dernier arrêt (début de la quatrième colonne). */
.ligne-parcours::before { content: ""; position: absolute; top: var(--rail); left: var(--rail); right: calc(25% - 0.75rem - var(--rail)); height: 3px; margin-top: -1.5px; border-radius: 3px; background: color-mix(in srgb, var(--accent-text) 30%, var(--fond, var(--bg))); }
.ligne-parcours::after { content: ""; position: absolute; top: var(--rail); left: 0; width: calc(2 * var(--rail)); height: calc(2 * var(--rail)); margin-top: calc(-1 * var(--rail)); border-radius: 50%; background: var(--accent); z-index: 1; animation: train 8s ease-in-out infinite; }
@keyframes train {
  0%, 10% { left: 0; opacity: 1; }
  22%, 32% { left: calc((100% + 1rem) * 0.25); }
  44%, 54% { left: calc((100% + 1rem) * 0.5); }
  66%, 80% { left: calc((100% + 1rem) * 0.75); opacity: 1; }
  88% { left: calc((100% + 1rem) * 0.75); opacity: 0; }
  92% { left: 0; opacity: 0; }
  100% { left: 0; opacity: 1; }
}
.arret { position: relative; display: grid; gap: var(--space-2); align-content: start; padding-top: calc(2 * var(--rail) + var(--space-4)); }
.arret-point { position: absolute; top: 0; left: 0; width: calc(2 * var(--rail)); height: calc(2 * var(--rail)); border-radius: 50%; background: var(--fond, var(--bg)); border: 3px solid var(--accent-text); box-sizing: border-box; }
.voie { display: grid; gap: 2px; align-content: start; padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.voie > a { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; color: var(--fg); text-decoration: none; }
.voie > a:hover { color: var(--accent-text); text-decoration: underline; }
.voie > .idx { margin-bottom: var(--space-1); }
.arret:first-child .voie { border-color: var(--accent-text); }
.arret:nth-child(3) .voie { background: color-mix(in srgb, var(--accent-wash) 55%, var(--surface)); }
.arret:nth-child(4) .voie { background: var(--accent-wash); }
.arret-detail { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.parcours-continu { display: grid; gap: var(--space-2); }
.continu-svg { display: block; width: 100%; height: 8px; }
.continu-trait { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 8; vector-effect: non-scaling-stroke; animation: continu 1.2s linear infinite; }
@keyframes continu { to { stroke-dashoffset: -36; } }
.parcours-continu p { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); font-size: var(--text-sm); }
.parcours-continu p a { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; }
@media (max-width: 48rem) {
  .ligne-parcours { grid-template-columns: minmax(0, 1fr); }
  .ligne-parcours::before { top: var(--rail); bottom: var(--rail); right: auto; left: var(--rail); width: 3px; height: auto; margin: 0 0 0 -1.5px; }
  .ligne-parcours::after { top: 0; left: 0; margin: 0; animation-name: train-vertical; }
  .arret { padding: 0 0 0 calc(2 * var(--rail) + var(--space-4)); }
  .arret-point { top: var(--space-4); }
}
@keyframes train-vertical { 0%, 8% { top: 0; opacity: 1; } 80% { top: calc(100% - 1.2rem); opacity: 1; } 90% { opacity: 0; top: calc(100% - 1.2rem); } 95% { top: 0; opacity: 0; } 100% { top: 0; opacity: 1; } }

/* 03 — Les familles d'offres et leurs cartes, prix mis en avant. */
.famille { display: grid; gap: var(--space-4); }
.famille-titre { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 700; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.famille-titre::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.famille-titre .icone { width: 1.5rem; height: 1.5rem; }
.famille-note { font-weight: 400; letter-spacing: 0.08em; text-transform: none; color: var(--muted); }
.familles-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); align-items: start; }
.offre-carte { grid-template-rows: auto auto auto 1fr auto; gap: var(--space-2); }
.offre-unite { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.offre-prix { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; line-height: 1.15; letter-spacing: var(--tracking-tight); color: var(--accent-text); }
.offre-promesse { font-size: var(--text-sm); color: var(--muted); }
.offre-delai { display: flex; align-items: center; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: var(--text-sm); }
.offre-delai .icone { width: 1rem; height: 1rem; }
@media (max-width: 48rem) { .familles-duo { grid-template-columns: minmax(0, 1fr); } }

/* 04 — Les curseurs du prix : chaque facteur va d'une situation simple à une situation
   exigeante ; le curseur parcourt la piste. */
.curseurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-8); }
.curseur { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.curseur h3 { font-size: var(--text-md); }
.curseur-piste { position: relative; height: 6px; margin: var(--space-2) 0; border-radius: 999px; background: color-mix(in srgb, var(--fg) 12%, var(--fond, var(--bg))); }
.curseur-piste::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 50%; border-radius: 999px; background: var(--accent-text); animation: curseur-remplissage 6s ease-in-out infinite; animation-delay: inherit; }
.curseur-pouce { position: absolute; top: 50%; left: calc(50% - 0.6rem); width: 1.2rem; height: 1.2rem; margin-top: -0.6rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent-text); box-sizing: border-box; animation: curseur 6s ease-in-out infinite; animation-delay: inherit; }
.curseur:nth-child(2) .curseur-piste { animation-delay: -1.2s; } .curseur:nth-child(3) .curseur-piste { animation-delay: -2.4s; }
.curseur:nth-child(4) .curseur-piste { animation-delay: -3.6s; } .curseur:nth-child(5) .curseur-piste { animation-delay: -4.8s; }
.curseur:nth-child(6) .curseur-piste { animation-delay: -0.6s; } .curseur:nth-child(7) .curseur-piste { animation-delay: -1.8s; }
.curseur:nth-child(8) .curseur-piste { animation-delay: -3s; } .curseur:nth-child(9) .curseur-piste { animation-delay: -4.2s; }
@keyframes curseur { 0%, 10% { left: 0; } 45%, 60% { left: calc(100% - 1.2rem); } 95%, 100% { left: 0; } }
@keyframes curseur-remplissage { 0%, 10% { width: 0.6rem; } 45%, 60% { width: calc(100% - 0.6rem); } 95%, 100% { width: 0.6rem; } }
.curseur-bornes { display: flex; justify-content: space-between; gap: var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.curseur-bornes span:last-child { text-align: right; }
@media (max-width: 60rem) { .curseurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .curseurs { grid-template-columns: minmax(0, 1fr); } }

/* 05 — Les conditions, en icônes, et le paiement en trois jalons, le dernier lié aux
   indicateurs. */
.conditions .carte { gap: var(--space-4); }
.liste-icones { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.liste-icones li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-2); align-items: start; font-size: var(--text-sm); }
.liste-icones .icone { width: 1.5rem; height: 1.5rem; padding: 3px; border-radius: 50%; background: var(--accent-wash); }
.liste-icones-non .icone { background: color-mix(in srgb, var(--fg) 8%, var(--surface)); color: var(--muted); }
.paiement { display: grid; gap: var(--space-4); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.paiement h3 { font-size: var(--text-xl); }
.jalons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: var(--space-2); }
.jalons li { display: grid; gap: var(--space-2); align-content: start; }
.jalon-barre { height: 0.75rem; border-radius: 999px; background: color-mix(in srgb, var(--accent-text) 35%, var(--surface)); transform-origin: left center; animation: barre 0.8s var(--courbe) both; }
.jalons li:nth-child(2) .jalon-barre { animation-delay: 0.5s; }
.jalons li:nth-child(3) .jalon-barre { animation-delay: 1s; }
.jalon-resultat .jalon-barre { background: var(--accent); }
.jalon-nom { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: 700; }
.jalon-nom .icone { width: 1rem; height: 1rem; }
.jalon-note { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-text); }
@media (max-width: 40rem) { .jalons { grid-template-columns: minmax(0, 1fr); } }

/* 06 — Les questions, en fenêtres teintées comme les processus du catalogue. */
.replis.replis-questions > details { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent-text) 22%, var(--border)); }
.replis.replis-questions > details[open] { border-color: color-mix(in srgb, var(--accent-text) 55%, var(--border)); }

/* ---------- Cerveau entreprise — visuels (A45) ----------
   Page Cerveau entreprise, dans l'esprit de l'accueil et de la page Offres : le noyau et ce
   qui s'y branche, les pertes et leur remède, la pile des livrables, les trois chemins, le
   déroulé, le prix, la preuve. Le Cerveau entreprise y est un noyau à deux couches — la
   mémoire, les règles communes —, jamais un cerveau dessiné (BR-11.08). Animations lancées
   à l'apparition, coupées si l'appareil réduit les animations ; à l'arrêt, chaque visuel
   reste lisible. */
.apparait:not(.visible):is(.pertes, .obtenez, .chemins, .preuve-flux) *,
.apparait:not(.visible):is(.pertes, .obtenez, .chemins, .preuve-flux) *::before,
.apparait:not(.visible):is(.pertes, .obtenez, .chemins, .preuve-flux) *::after { animation-play-state: paused; }

/* Le noyau en petit : deux couches et le cœur, le symbole du Cerveau entreprise dans la page. */
.noyau { display: block; flex: none; }
.noyau-regles { fill: color-mix(in srgb, var(--accent-text) 12%, transparent); stroke: var(--accent-text); stroke-width: 1.5; }
.noyau-memoire { fill: color-mix(in srgb, var(--accent-text) 8%, transparent); stroke: color-mix(in srgb, var(--accent-text) 60%, transparent); stroke-width: 1.5; }
.noyau-coeur { fill: var(--accent-text); }

/* Un trajet : une ligne, sa pointe, et un point qui la parcourt. */
.trajet { position: relative; display: block; height: 2px; background: color-mix(in srgb, var(--accent-text) 30%, var(--fond, var(--bg))); }
.trajet::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--accent-text); border-right: 2px solid var(--accent-text); transform: translateY(-50%) rotate(45deg); }
.trajet::before { content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent-text); opacity: 0; animation: trajet 2.6s ease-in-out infinite; }
.perte .trajet, .chemin .trajet { background: color-mix(in srgb, var(--accent-text) 30%, var(--surface)); }
@keyframes trajet { 0% { left: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }

/* En-tête à visuel (A45, repris par les pages d'offre et Maîtrise, A46) : le texte, et le
   visuel de la page dans une vitrine. */
.entete-visuel > .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; column-gap: var(--space-12); }
.entete-visuel-texte { display: grid; gap: var(--space-6); align-content: start; }
/* Les repères sur deux lignes : le prix et le délai, puis le périmètre, plus long. */
.entete-visuel .reperes { grid-template-columns: repeat(2, minmax(0, max-content)); }
.entete-visuel .reperes div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); }
.entete-visuel-texte > *, .entete-visuel .vitrine { animation: entree 0.8s var(--courbe) both; }
.entete-visuel-texte > :nth-child(2) { animation-delay: 0.08s; }
.entete-visuel-texte > :nth-child(3) { animation-delay: 0.16s; }
.entete-visuel-texte > :nth-child(4) { animation-delay: 0.24s; }
.entete-visuel-texte > :nth-child(5) { animation-delay: 0.3s; }
.entete-visuel .vitrine { animation-delay: 0.2s; }
@media (max-width: 60rem) { .entete-visuel > .wrap { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-8); } }

/* La vitrine : une carte blanche en clair, la surface teintée d'accent en sombre, comme le
   schéma de l'accueil (A35). */
.vitrine { --fond: var(--surface); margin: 0; display: grid; gap: var(--space-4); padding: var(--space-6); background: var(--fond); color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius-card); }
:root[data-theme="dark"] .vitrine { --fond: var(--accent-wash); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .vitrine { --fond: var(--accent-wash); }
}
.branchement-svg { display: block; width: 100%; height: auto; overflow: visible; }
.vitrine-legende { display: grid; gap: var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.vitrine-etiquette { justify-self: start; }
.vitrine-legende .citation-marque { font-size: var(--text-lg); max-width: none; color: var(--fg); }
.cv-regles { fill: color-mix(in srgb, var(--accent-text) 10%, var(--fond)); stroke: var(--accent-text); stroke-width: 1.5; }
.cv-memoire { fill: color-mix(in srgb, var(--accent-text) 4%, var(--fond)); stroke: color-mix(in srgb, var(--accent-text) 55%, var(--fond)); stroke-width: 1.5; }
.cv-coeur { fill: var(--fond); stroke: var(--accent-text); stroke-width: 2.5; }
.cv-regles, .cv-memoire, .cv-coeur { transform-box: fill-box; transform-origin: center; animation: cv-apparait 0.8s var(--courbe) 0.3s both; }
.cv-memoire { animation-delay: 0.45s; }
.cv-coeur { animation-delay: 0.6s; }
.cv-texte { font-family: var(--font-mono); fill: var(--muted); }
.cv-nom { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; fill: var(--accent-text); }
.cv-arc { font-size: 11.5px; letter-spacing: 0.16em; fill: var(--accent-text); animation: cv-fondu 0.6s ease 0.9s both; }
.cv-arc-detail { font-size: 9.5px; letter-spacing: 0.12em; fill: var(--muted); }
.cv-onde { fill: none; stroke: var(--accent-text); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: cv-onde 3.6s ease-out 2s infinite; }
.cv-orbite { transform-origin: 280px 230px; animation: cv-tour 24s linear infinite; }
.cv-satellite { fill: var(--accent-text); }
/* Les liaisons se tracent du noyau vers les agents, des personnes vers le noyau ; puis des
   signaux les parcourent dans le même sens. */
.cv-lien { fill: none; stroke: color-mix(in srgb, var(--accent-text) 45%, var(--fond)); stroke-width: 2; stroke-dasharray: 100; animation: cv-trace 0.7s var(--courbe) both; }
.cv-lien-1 { animation-delay: 0.9s; } .cv-lien-2 { animation-delay: 1.05s; } .cv-lien-3 { animation-delay: 1.2s; }
.cv-signal { fill: none; stroke: var(--accent-text); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 120; stroke-dashoffset: 14; opacity: 0; animation: cv-signal 3s linear infinite; }
.cv-signal-entree { stroke: var(--fg); }
.cv-signal-entree.cv-signal-1 { animation-delay: 1.8s; } .cv-signal-entree.cv-signal-2 { animation-delay: 2.2s; } .cv-signal-entree.cv-signal-3 { animation-delay: 2.6s; }
.cv-signal-sortie.cv-signal-1 { animation-delay: 3.3s; } .cv-signal-sortie.cv-signal-2 { animation-delay: 3.7s; } .cv-signal-sortie.cv-signal-3 { animation-delay: 4.1s; }
.cv-port { fill: var(--fond); stroke: var(--accent-text); stroke-width: 2; animation: cv-fondu 0.4s ease 1.5s both; }
.cv-cadre { fill: var(--fond); stroke: var(--accent-text); stroke-width: 2; }
.cv-glyphe { color: var(--accent-text); }
.cv-bloc-humain .cv-cadre { stroke: var(--fg); }
.cv-bloc-humain .cv-glyphe { color: var(--fg); }
.cv-bloc-nom { font-size: 12.5px; letter-spacing: 0.04em; fill: var(--fg); }
.cv-bloc-role { font-size: 9.5px; letter-spacing: 0.14em; fill: var(--accent-text); }
.cv-bloc-humain .cv-bloc-role { fill: var(--muted); }
.cv-bloc { animation: cv-fondu 0.6s ease 0.6s both; }
.cv-bloc-2 { animation-delay: 0.75s; } .cv-bloc-3 { animation-delay: 0.9s; }
@keyframes cv-apparait { from { opacity: 0; transform: scale(0.7); } }
@keyframes cv-fondu { from { opacity: 0; } }
@keyframes cv-trace { from { stroke-dashoffset: 100; } }
@keyframes cv-signal { 0% { stroke-dashoffset: 14; opacity: 1; } 70% { stroke-dashoffset: -104; opacity: 1; } 71%, 100% { stroke-dashoffset: -104; opacity: 0; } }
@keyframes cv-onde { from { opacity: 0.5; transform: scale(1); } to { opacity: 0; transform: scale(1.28); } }
@keyframes cv-tour { to { transform: rotate(360deg); } }
/* Sur téléphone, le dessin rapetisse : ses textes grossissent d'autant pour rester lisibles. */
@media (max-width: 40rem) {
  .vitrine { padding: var(--space-4); }
  .vitrine:has(.branchement-svg) { padding-inline: var(--space-2); }
  .vitrine:has(.branchement-svg) .vitrine-legende { padding-inline: var(--space-2); }
  .cv-nom { font-size: 13px; letter-spacing: 0.02em; }
  .cv-arc { font-size: 12.5px; letter-spacing: 0.1em; }
  .cv-arc-detail { font-size: 10.5px; letter-spacing: 0.06em; }
  .cv-bloc-nom { font-size: 14px; letter-spacing: 0; }
  .cv-bloc-role { font-size: 11px; letter-spacing: 0.06em; }
}

/* 01 — Les pertes et leur remède : l'icône de la perte s'efface, un point traverse la
   flèche, le remède s'affirme. */
.pertes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.perte { display: grid; grid-template-columns: minmax(0, 1.5fr) 5rem minmax(0, 1fr); align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.perte-avant { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.perte-avant > div { display: grid; gap: var(--space-1); }
.perte-avant .icone { width: 2.75rem; height: 2.75rem; padding: 0.65rem; border-radius: 50%; background: color-mix(in srgb, var(--fg) 7%, var(--surface)); color: var(--muted); animation: perte 4.5s ease-in-out infinite; }
.perte-avant h3 { font-size: var(--text-md); }
.perte-avant p { font-size: var(--text-sm); color: var(--muted); }
.perte .trajet::before { animation: perte-trajet 4.5s ease-in-out infinite; }
.perte-apres { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; line-height: 1.3; color: var(--accent-text); }
.perte-apres .icone { width: 1.75rem; height: 1.75rem; padding: 0.3rem; border-radius: 50%; background: var(--accent); color: var(--ink-on-accent); animation: perte-remede 4.5s ease-in-out infinite; }
.perte:nth-child(2) .icone, .perte:nth-child(2) .trajet::before { animation-delay: 0.5s; }
.perte:nth-child(3) .icone, .perte:nth-child(3) .trajet::before { animation-delay: 1s; }
@keyframes perte { 0%, 12%, 88%, 100% { opacity: 1; transform: none; } 30%, 70% { opacity: 0.25; transform: translateX(-6px); } }
@keyframes perte-trajet { 0%, 28% { left: 0; opacity: 0; } 34%, 56% { opacity: 1; } 62%, 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes perte-remede { 0%, 58%, 76%, 100% { transform: none; } 66% { transform: scale(1.22); } }
@media (max-width: 48rem) {
  .perte { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-4); }
  .perte .trajet { display: none; }
  .perte-apres { padding-left: calc(2.75rem + var(--space-4)); }
}

/* 02 — Ce que vous obtenez : le socle, le premier domaine posé dessus, le domaine suivant
   qui attend ; à côté, ce qui rend l'ensemble utilisable. */
.obtenez { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.pile { display: grid; gap: var(--space-2); }
.pile-bloc { display: grid; gap: var(--space-2); padding: var(--space-6); border-radius: var(--radius-card); animation: pile-pose 0.7s var(--courbe) both; }
.pile-bloc h3 { font-size: var(--text-lg); }
.pile-bloc p { font-size: var(--text-sm); color: var(--muted); }
.pile-socle { background: var(--accent); color: var(--ink-on-accent); animation-delay: 0.1s; }
.pile-socle .idx { color: color-mix(in srgb, var(--ink-on-accent) 78%, var(--accent)); }
.pile-domaine { margin-inline: var(--space-6); background: var(--accent-wash); border: 2px solid var(--accent-text); animation-delay: 0.6s; }
.pile-suivant { margin-inline: var(--space-12); padding: var(--space-4) var(--space-6); gap: 2px; border: 2px dashed color-mix(in srgb, var(--accent-text) 45%, var(--fond, var(--bg))); animation: pile-pose 0.7s var(--courbe) 1.1s both, pile-flotte 2.8s ease-in-out 1.8s infinite alternate; }
.pile-suivant strong { font-family: var(--font-display); font-size: var(--text-md); }
.pile-note { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.pastilles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pastilles li { padding: 0.15rem 0.7rem; border: 1px solid color-mix(in srgb, var(--ink-on-accent) 45%, var(--accent)); border-radius: 999px; font-size: var(--text-sm); animation: pastille 0.5s var(--courbe) both; }
.pastilles li:nth-child(1) { animation-delay: 0.5s; } .pastilles li:nth-child(2) { animation-delay: 0.58s; } .pastilles li:nth-child(3) { animation-delay: 0.66s; }
.pastilles li:nth-child(4) { animation-delay: 0.74s; } .pastilles li:nth-child(5) { animation-delay: 0.82s; } .pastilles li:nth-child(6) { animation-delay: 0.9s; }
.pastilles li:nth-child(7) { animation-delay: 0.98s; } .pastilles li:nth-child(8) { animation-delay: 1.06s; } .pastilles li:nth-child(9) { animation-delay: 1.14s; }
.pastilles li:nth-child(n+10) { animation-delay: 1.22s; } .pastilles li:nth-child(n+14) { animation-delay: 1.3s; }
@keyframes pile-pose { from { opacity: 0; transform: translateY(-24px); } }
@keyframes pile-flotte { to { transform: translateY(-5px); } }
@keyframes pastille { from { opacity: 0; transform: scale(0.8); } }
.livrables { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.livrables li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.livrables li > div { display: grid; gap: var(--space-1); }
.livrables .icone { width: 2.75rem; height: 2.75rem; padding: 0.65rem; border-radius: 50%; background: var(--accent-wash); }
.livrables h3 { font-size: var(--text-md); }
.livrables p { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 60rem) { .obtenez { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }
@media (max-width: 40rem) {
  .pile-bloc { padding: var(--space-4); }
  .pile-domaine { margin-inline: var(--space-2); }
  .pile-suivant { margin-inline: var(--space-6); }
}

/* 03 — Facultatif : trois chemins, un point qui va de l'un à l'autre. */
.chemins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.chemin { display: grid; gap: var(--space-4); align-content: start; padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.chemin p { font-size: var(--text-sm); color: var(--muted); }
.chemin-trace { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; align-items: center; }
.chemin-noeud { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 2px solid var(--accent-text); border-radius: 50%; background: var(--surface); }
.chemin-noeud:has(.noyau) { border-color: transparent; }
.chemin-noeud .icone { width: 1.6rem; height: 1.6rem; }
.chemin-noeud .noyau { width: 3.5rem; height: 3.5rem; }
.chemin-trace .trajet { margin-inline: var(--space-2); }
.chemin-trace .trajet::before { animation-duration: 3s; }
.chemin-arrivee { animation: chemin-arrivee 3s ease-in-out infinite; }
.chemin:nth-child(2) .chemin-arrivee, .chemin:nth-child(2) .trajet::before { animation-delay: 0.5s; }
.chemin:nth-child(3) .chemin-arrivee, .chemin:nth-child(3) .trajet::before { animation-delay: 1s; }
@keyframes chemin-arrivee { 0%, 82%, 100% { transform: none; } 92% { transform: scale(1.12); } }
@media (max-width: 48rem) { .chemins { grid-template-columns: minmax(0, 1fr); } }

/* 04 — Le déroulé : la ligne du parcours (A44), sans lien ; le test des trois mois en
   avant ; puis les deux conditions de réussite. */
.voie > strong { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; }
.deroule .arret:last-child .voie { border-color: var(--accent-text); }
.conditions-cerveau { display: grid; gap: var(--space-4); }
.condition { gap: var(--space-2); }
.condition .icone { width: 2rem; height: 2rem; margin-bottom: var(--space-2); }
.condition h3 { font-size: var(--text-lg); }
.condition p { font-size: var(--text-sm); color: var(--muted); }

/* 05 — Le prix : le prix de départ en grand, ce qui s'y ajoute, et le curseur de ce qui le
   fait d'abord varier. */
.prix-cerveau { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.prix-principal { gap: var(--space-4); padding: var(--space-8); }
.prix-montant { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: var(--tracking-tight); color: var(--accent-text); }
.prix-montant span { display: block; margin-bottom: var(--space-1); font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.prix-plus { list-style: none; margin: 0; padding: var(--space-4) 0 0; display: grid; gap: var(--space-4); border-top: 1px solid var(--border); }
.prix-plus li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.prix-plus strong { color: var(--fg); }
.prix-plus .icone { width: 1.5rem; height: 1.5rem; }
.prix-variation { display: grid; gap: var(--space-4); }
.prix-variation h3 { font-size: var(--text-lg); }
.prix-variation p { font-size: var(--text-sm); color: var(--muted); }
.curseurs.curseur-unique { grid-template-columns: minmax(0, 1fr); }
.curseur-unique .curseur { padding-top: 0; border-top: 0; }
@media (max-width: 60rem) { .prix-cerveau { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .prix-principal { padding: var(--space-6); } }

/* 06 — La preuve, en bande de marque : nos décisions, nos offres, nos règles et nos
   procédures dans un référentiel unique, sur lequel nos agents s'appuient. */
.preuve-flux { display: grid; grid-template-columns: minmax(0, 1fr) 4rem auto 4rem minmax(0, 1fr); align-items: center; gap: var(--space-4); }
.preuve-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); justify-items: end; }
.preuve-sources li { padding: var(--space-2) var(--space-4); border: 1px solid var(--border); border-radius: 999px; font-size: var(--text-sm); background: color-mix(in srgb, var(--fg) 4%, var(--fond, var(--bg))); animation: preuve-source 4s ease-in-out infinite; }
.preuve-sources li:nth-child(2) { animation-delay: 1s; } .preuve-sources li:nth-child(3) { animation-delay: 2s; } .preuve-sources li:nth-child(4) { animation-delay: 3s; }
.preuve-centre { display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.preuve-centre .noyau { width: 7rem; height: 7rem; animation: preuve-pouls 2.4s ease-in-out infinite alternate; }
.preuve-centre strong, .preuve-agents strong { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.25; }
.preuve-trajet-2::before { animation-delay: 1.3s; }
.preuve-agents { display: grid; gap: var(--space-2); justify-items: start; }
.preuve-agents strong { max-width: 14rem; }
.preuve-robots { display: flex; gap: var(--space-2); }
.preuve-robots .icone { width: 2.75rem; height: 2.75rem; padding: 0.55rem; border: 2px solid var(--accent-text); border-radius: 12px; animation: preuve-robot 3s ease-in-out infinite; }
.preuve-robots .icone:nth-child(2) { animation-delay: 0.4s; } .preuve-robots .icone:nth-child(3) { animation-delay: 0.8s; }
@keyframes preuve-source { 0%, 30%, 100% { border-color: var(--border); } 8%, 22% { border-color: var(--accent-text); } }
@keyframes preuve-pouls { to { transform: scale(1.06); } }
@keyframes preuve-robot { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-4px); } 80% { transform: none; } }
@media (max-width: 48rem) {
  .preuve-flux { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .preuve-sources { grid-template-columns: repeat(2, auto); justify-content: center; justify-items: center; }
  .preuve-trajet { width: 2px; height: 2.5rem; }
  .preuve-trajet::after { top: auto; bottom: 0; right: 50%; transform: translateX(50%) rotate(135deg); }
  .preuve-trajet::before { left: 50%; margin: 0 0 0 -4px; animation-name: trajet-vertical; }
  .preuve-agents { justify-items: center; }
}
@keyframes trajet-vertical { 0% { top: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }

/* ---------- Pages d'offre et Maîtrise — visuels (A46) ----------
   Les sept pages d'offre et les cinq pages Maîtrise, dans l'esprit de l'accueil, de la page
   Offres et du Cerveau entreprise : un visuel d'en-tête par page (_includes/fiches.njk), puis
   des blocs communs — situations, tuiles, livrables, déroulé, mesure, lieux de traitement,
   prix, suites. Animations lancées à l'apparition, coupées si l'appareil réduit les
   animations ; à l'arrêt, chaque visuel reste lisible. */
.apparait:not(.visible):is(.lieux, .cadre-fiche, .prix-fiche, .liste-titree) *,
.apparait:not(.visible):is(.lieux, .cadre-fiche, .prix-fiche, .liste-titree) *::before,
.apparait:not(.visible):is(.lieux, .cadre-fiche, .prix-fiche, .liste-titree) *::after,
.apparait:not(.visible):is(.lieux, .cadre-fiche) { animation-play-state: paused; }

/* Situations et tuiles : une carte, une icône dans une pastille, un texte court. */
.situations, .tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--space-4); }
.tuiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tuiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tuiles-5 { grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); }
.situation, .tuile { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.situation > .icone, .tuile > .icone:first-child { width: 2.75rem; height: 2.75rem; padding: 0.65rem; margin-bottom: var(--space-2); border-radius: 50%; background: var(--accent-wash); }
.situation p { font-size: var(--text-md); line-height: 1.45; }
.tuile h3 { font-size: var(--text-lg); }
.tuile p { font-size: var(--text-sm); color: var(--muted); }
.tuile-puce { display: inline-flex; align-items: center; gap: var(--space-1); justify-self: start; margin-top: var(--space-2); padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--accent-wash); color: var(--accent-text); font-family: var(--font-mono); font-size: var(--text-xs); }
.tuile-puce .icone { width: 0.95rem; height: 0.95rem; }
@media (max-width: 60rem) { .tuiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .tuiles-3, .tuiles-2 { grid-template-columns: minmax(0, 1fr); } }

/* Livrables sur deux colonnes ; listes à icônes titrées, sur plusieurs colonnes. */
.livrables-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-12); }
@media (max-width: 48rem) { .livrables-grille { grid-template-columns: minmax(0, 1fr); } }
.liste-titree { display: grid; gap: var(--space-4); }
.liste-titree .liste-icones { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--space-2) var(--space-8); }
.liste-titree .liste-icones li { grid-template-columns: 1.5rem minmax(0, 1fr); font-size: var(--text-sm); }

/* Le déroulé en trois arrêts : la ligne du parcours (A44) sur trois colonnes. */
@media (min-width: 48.0625rem) {
  .ligne-parcours.ligne-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ligne-parcours.ligne-3::before { right: calc(100% / 3 - 0.67rem - var(--rail)); }
  .ligne-parcours.ligne-3::after { animation-name: train-3; }
}
@keyframes train-3 {
  0%, 12% { left: 0; opacity: 1; }
  32%, 44% { left: calc((100% + 1rem) / 3); }
  64%, 80% { left: calc((100% + 1rem) * 2 / 3); opacity: 1; }
  88% { left: calc((100% + 1rem) * 2 / 3); opacity: 0; }
  92% { left: 0; opacity: 0; }
  100% { left: 0; opacity: 1; }
}

/* Le cadre : la mesure (deux barres, avant et après) et les limites, côte à côte. */
.cadre-fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.mesure, .carte-liste { gap: var(--space-4); }
.mesure h3, .carte-liste h3 { font-size: var(--text-lg); }
.mesure > p { font-size: var(--text-sm); color: var(--muted); }
.mesure-vis { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-4); align-items: center; }
.mesure-nom { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.mesure-piste { display: block; height: 0.9rem; }
.mesure-barre { display: block; height: 100%; border-radius: 999px; transform-origin: left center; animation: barre 1.1s var(--courbe) both; }
.mesure-avant { width: 100%; background: color-mix(in srgb, var(--fg) 16%, var(--surface)); }
.mesure-apres { width: 42%; background: var(--accent); animation-delay: 0.5s; }
.mesure-prepare .mesure-apres { width: 70%; background: transparent; border: 2px dashed var(--accent-text); box-sizing: border-box; }
.carte-liste .liste-icones li { font-size: var(--text-sm); }
@media (max-width: 48rem) { .cadre-fiche { grid-template-columns: minmax(0, 1fr); } }

/* Les lieux de traitement : l'Europe, la France, chez vous — trois zones emboîtées qui
   s'allument tour à tour. */
.lieux { display: grid; }
.lieu { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-6) var(--space-6); border: 2px solid color-mix(in srgb, var(--accent-text) 22%, var(--border)); border-radius: var(--radius-card); }
.lieu-1 { background: color-mix(in srgb, var(--accent-wash) 45%, var(--fond, var(--bg))); animation: lieu-1 9s infinite; }
.lieu-2 { margin-top: var(--space-2); background: var(--accent-wash); animation: lieu-2 9s infinite; }
.lieu-3 { margin-top: var(--space-2); background: var(--surface); animation: lieu-3 9s infinite; }
.lieu-ailleurs { border-style: dashed; }
.lieu-ailleurs > :is(.lieu-tete, .lieu-texte) { opacity: 0.7; }
.lieu-tete { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.lieu-tete .icone { width: 1.5rem; height: 1.5rem; }
.lieu-nom { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; }
.lieu-etat { margin-left: auto; padding: 0.15rem 0.65rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.lieu-etat-inclus { background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); }
.lieu-texte { max-width: 40rem; font-size: var(--text-sm); color: var(--muted); }
@keyframes lieu-1 { 0%, 30%, 100% { border-color: color-mix(in srgb, var(--accent-text) 22%, var(--border)); } 6%, 26% { border-color: var(--accent-text); } }
@keyframes lieu-2 { 0%, 33%, 63%, 100% { border-color: color-mix(in srgb, var(--accent-text) 22%, var(--border)); } 39%, 59% { border-color: var(--accent-text); } }
@keyframes lieu-3 { 0%, 66%, 96%, 100% { border-color: color-mix(in srgb, var(--accent-text) 22%, var(--border)); } 72%, 92% { border-color: var(--accent-text); } }
@media (max-width: 40rem) { .lieu { padding: var(--space-4); } }
.lieux-compact .lieu { padding: var(--space-4); }
.lieux-compact .lieu-3 { padding-block: var(--space-6); }

/* Le prix : la carte du prix (A45) et la grille à côté. */
.prix-fiche { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-8); align-items: start; }
.prix-grille:empty { display: none; }
.prix-fiche:has(.prix-grille:empty) { grid-template-columns: minmax(0, 36rem); }
@media (max-width: 60rem) { .prix-fiche { grid-template-columns: minmax(0, 1fr); } }

/* Suites sans lien (« vous repartez avec cette réponse ») : le texte reste neutre. */
.aiguillage-offre-texte strong { color: var(--fg); }

/* Disponibilité par offre (Souveraineté) : une puce par niveau. */
.puce { display: inline-block; padding: 0.15rem 0.65rem; border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
.puce-inclus { background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); }
.puce-option { border-color: var(--accent-text); color: var(--accent-text); }
.puce-etude { border-style: dashed; border-color: var(--accent-text); color: var(--accent-text); }

/* Deux colonnes : un texte, et un graphique ou un encadré. */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-12); align-items: center; }
@media (max-width: 60rem) { .duo { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }
/* Délais en semaines (Audit métiers) : une piste de quatre semaines, en demi-semaines. */
.barres-semaines .barre-piste { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.barres-semaines li { grid-template-columns: 6.5rem minmax(0, 1fr) 7.5rem; }
.barres-semaines .barre-valeur { font-size: var(--text-xs); }
.duree-7 .barre { grid-column: span 7; } .duree-8 .barre { grid-column: span 8; }
.barres-semaines li:nth-child(n) .barre-nom { font-weight: 400; color: var(--muted); }
@media (max-width: 40rem) { .barres-semaines li { grid-template-columns: 5.5rem minmax(0, 1fr) 6rem; } }
/* Une icône en tête de carte ou d'encadré. */
.carte > .icone:first-child, .encadre > .icone:first-child { width: 2rem; height: 2rem; margin-bottom: var(--space-2); }
.encadre:has(> .icone:first-child) { display: grid; gap: var(--space-2); }
/* Paliers de la Supervision : la pile (A45) sur quatre étages. */
.pile-haut { margin-inline: 2.75rem; animation-delay: 0.85s; }
.pile-4 .pile-suivant { margin-inline: 4rem; }
.pile-texte { font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 40rem) { .pile-haut { margin-inline: var(--space-4); } .pile-4 .pile-suivant { margin-inline: var(--space-6); } }

/* ----- Visuels d'en-tête ----- */
/* Un document qui se remplit : lignes, puis coches. Aussi pour l'inventaire, le tableau de
   bord et la demande de validation. */
.doc, .inv, .tb { display: grid; gap: var(--space-4); }
.doc-tete { display: flex; align-items: center; gap: var(--space-2); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.doc-tete .icone { width: 1.5rem; height: 1.5rem; }
.doc-tete strong { font-family: var(--font-display); font-size: var(--text-md); line-height: 1.25; }
.doc-badge { margin-left: auto; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--accent); color: var(--ink-on-accent); font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; }
.doc-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.doc-lignes li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) 1.5rem; gap: var(--space-4); align-items: center; padding: var(--space-4); border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--accent-text) 4%, var(--fond)); font-size: var(--text-sm); animation: doc-ligne 0.6s var(--courbe) both; }
.doc-lignes li > .icone:first-child { width: 1.5rem; height: 1.5rem; }
.doc-lignes li > .icone:last-child { width: 1.5rem; height: 1.5rem; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--ink-on-accent); animation: doc-coche 0.4s var(--courbe) both; }
.doc-lignes li:nth-child(1) { animation-delay: 0.4s; } .doc-lignes li:nth-child(1) > .icone:last-child { animation-delay: 0.8s; }
.doc-lignes li:nth-child(2) { animation-delay: 0.7s; } .doc-lignes li:nth-child(2) > .icone:last-child { animation-delay: 1.1s; }
.doc-lignes li:nth-child(3) { animation-delay: 1s; } .doc-lignes li:nth-child(3) > .icone:last-child { animation-delay: 1.4s; }
.doc-lignes li:nth-child(4) { animation-delay: 1.3s; } .doc-lignes li:nth-child(4) > .icone:last-child { animation-delay: 1.7s; }
.doc-lignes li:nth-child(5) { animation-delay: 1.6s; } .doc-lignes li:nth-child(5) > .icone:last-child { animation-delay: 2s; }
@keyframes doc-ligne { from { opacity: 0; transform: translateY(8px); } }
@keyframes doc-coche { from { opacity: 0; transform: scale(0.4); } }

/* Une chaîne d'étapes : des nœuds reliés, un point qui va de l'un à l'autre. */
.chaine { list-style: none; margin: 0; padding: var(--space-4) 0; display: grid; grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr) 3rem minmax(0, 1fr); align-items: start; }
.chaine-4 { grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr) 2rem minmax(0, 1fr) 2rem minmax(0, 1fr); }
.chaine-noeud { display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.chaine-noeud > .icone { width: 4rem; height: 4rem; padding: 1rem; border: 2px solid var(--accent-text); border-radius: 50%; background: var(--fond); animation: chaine-noeud 4.5s infinite; }
.chaine-noeud:last-child > .icone { background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); }
.chaine-noeud strong { font-family: var(--font-display); font-size: var(--text-md); line-height: 1.25; }
.chaine-noeud span { font-size: var(--text-sm); color: var(--muted); }
.chaine-trajet { padding-top: calc(2rem - 1px); }
.chaine-trajet .trajet::before { animation: chaine-trajet 4.5s ease-in-out infinite; }
.chaine-trajet:nth-child(4) .trajet::before { animation-delay: 1.1s; }
.chaine-trajet:nth-child(6) .trajet::before { animation-delay: 2.2s; }
.chaine-noeud:nth-child(3) > .icone { animation-delay: 1s; }
.chaine-noeud:nth-child(5) > .icone { animation-delay: 2.1s; }
.chaine-noeud:nth-child(7) > .icone { animation-delay: 3.2s; }
@keyframes chaine-trajet { 0% { left: 0; opacity: 0; } 4%, 18% { opacity: 1; } 22% { left: calc(100% - 10px); opacity: 0; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes chaine-noeud { 0%, 26%, 100% { transform: none; } 4% { transform: none; } 12% { transform: scale(1.1); } }
@media (max-width: 30rem) {
  .chaine, .chaine-4 { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .chaine-trajet { padding: 0; }
  .chaine-trajet .trajet { width: 2px; height: 1.75rem; }
  .chaine-trajet .trajet::after { top: auto; bottom: 0; right: 50%; transform: translateX(50%) rotate(135deg); }
  .chaine-trajet .trajet::before { left: 50%; margin: 0 0 0 -4px; animation-name: chaine-trajet-v; }
}
@keyframes chaine-trajet-v { 0% { top: 0; opacity: 0; } 4%, 18% { opacity: 1; } 22% { top: calc(100% - 10px); opacity: 0; } 100% { top: calc(100% - 10px); opacity: 0; } }

/* Agent de processus : le cas courant va jusqu'au résultat, le cas particulier passe par une
   personne. Matrice de l'Audit métiers : les processus se placent, le retenu s'allume. */
.fv-svg { display: block; width: 100%; height: auto; overflow: visible; }
.fv-lien { fill: none; stroke: color-mix(in srgb, var(--accent-text) 45%, var(--fond)); stroke-width: 2; }
.fv-lien-exception, .fv-lien-retour { stroke: color-mix(in srgb, var(--fg) 40%, var(--fond)); stroke-dasharray: 5 6; }
.fv-noeud { fill: var(--fond); stroke: var(--accent-text); stroke-width: 2; }
.fv-noeud-fin { fill: var(--accent); stroke: var(--accent); }
.fv-noeud-humain { stroke: var(--fg); }
.fv-glyphe { color: var(--accent-text); }
.fv-fin .fv-glyphe { color: var(--ink-on-accent); }
.fv-humain .fv-glyphe { color: var(--fg); }
.fv-signe { font-family: var(--font-display); font-size: 26px; font-weight: 700; fill: var(--accent-text); }
.fv-texte { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; fill: var(--muted); }
.fv-texte-humain { fill: var(--fg); }
.fv-n { transform-box: fill-box; transform-origin: center; animation: or-apparait 0.6s var(--courbe) both; }
.fv-n:nth-of-type(2) { animation-delay: 0.15s; } .fv-n:nth-of-type(3) { animation-delay: 0.3s; } .fv-n:nth-of-type(4) { animation-delay: 0.45s; }
.fv-n:nth-of-type(5) { animation-delay: 0.6s; } .fv-n:nth-of-type(6) { animation-delay: 0.75s; }
.fv-jeton { fill: none; stroke: var(--accent-text); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0.1 200; opacity: 0; animation: fv-jeton 7s linear 1s infinite; }
.fv-jeton-2 { stroke: var(--fg); animation-delay: 4.5s; }
.fv-humain { animation: or-apparait 0.6s var(--courbe) 0.75s both, fv-humain 7s ease-in-out 4.5s infinite; }
@keyframes fv-jeton { 0% { stroke-dashoffset: 0; opacity: 0; } 4% { opacity: 1; } 46% { opacity: 1; } 50%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes fv-humain { 0%, 20%, 34%, 100% { transform: none; } 27% { transform: scale(1.08); } }
.fm-zone { fill: color-mix(in srgb, var(--accent-text) 7%, var(--fond)); stroke: color-mix(in srgb, var(--accent-text) 35%, var(--fond)); stroke-dasharray: 5 5; }
.fm-axe, .fm-pointe { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fm-disque { fill: var(--fond); stroke: var(--accent-text); stroke-width: 2; }
.fm-retenu .fm-disque { fill: var(--accent); stroke: var(--accent); }
.fm-retenu .fm-nom { fill: var(--fg); font-weight: 700; }
.fm-point { transform-box: fill-box; transform-origin: center; animation: or-apparait 0.6s var(--courbe) both; }
.fm-point-2 { animation-delay: 0.15s; } .fm-point-3 { animation-delay: 0.3s; } .fm-point-4 { animation-delay: 0.45s; }
.fm-point-5 { animation-delay: 0.6s; } .fm-point-6 { animation-delay: 0.75s; }
.fm-point-1 { animation-delay: 1s; }
.fm-onde { fill: none; stroke: var(--accent-text); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: or-onde 2.4s ease-out 1.8s infinite; }
.fm-etiquette { fill: var(--accent-text); font-weight: 700; animation: cv-fondu 0.5s ease 1.4s both; }
/* Sur téléphone, le dessin rapetisse : ses textes grossissent d'autant pour rester lisibles. */
@media (max-width: 40rem) { .fv-texte { font-size: 15px; letter-spacing: 0.03em; } }

/* Agents métiers : un domaine, sa connaissance, ses processus confiés à des agents. */
.dv { display: grid; gap: var(--space-4); padding: var(--space-4); border: 2px solid var(--accent-text); border-radius: var(--radius-card); background: color-mix(in srgb, var(--accent-wash) 60%, var(--fond)); }
.dv-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.dv-nom { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.dv-nom .icone { width: 1.25rem; height: 1.25rem; }
.dv-savoir { padding: var(--space-2) var(--space-4); border-radius: 999px; background: var(--accent); color: var(--ink-on-accent); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; text-align: center; }
.dv-voies { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.dv-voie { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: center; gap: 0.35rem var(--space-4); padding: 0.4rem var(--space-4); border: 1px solid var(--border); border-radius: 12px; background: var(--fond); animation: doc-ligne 0.6s var(--courbe) both; }
.dv-voie:nth-child(1) { animation-delay: 0.4s; } .dv-voie:nth-child(2) { animation-delay: 0.6s; } .dv-voie:nth-child(3) { animation-delay: 0.8s; } .dv-voie:nth-child(4) { animation-delay: 1s; } .dv-voie:nth-child(5) { animation-delay: 1.2s; }
.dv-agent { grid-row: span 2; }
.dv-agent .icone { width: 2.25rem; height: 2.25rem; padding: 0.4rem; border: 2px solid var(--accent-text); border-radius: 10px; }
.dv-voie-nom { font-size: var(--text-sm); font-weight: 700; }
.dv-flux { position: relative; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--accent-text) 18%, var(--fond)); overflow: hidden; }
.dv-flux::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 4px; background: var(--accent-text); animation: dv-flux 2.4s ease-in-out infinite; }
.dv-voie:nth-child(2) .dv-flux::before { animation-delay: 0.6s; } .dv-voie:nth-child(3) .dv-flux::before { animation-delay: 1.2s; }
.dv-voie:nth-child(4) .dv-flux::before { animation-delay: 1.8s; } .dv-voie:nth-child(5) .dv-flux::before { animation-delay: 0.3s; }
@keyframes dv-flux { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

/* Audit des usages IA : un balayage ligne à ligne ; les usages non déclarés ressortent. */
.inv-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.inv-lignes li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: var(--space-2) var(--space-4); align-items: center; padding: var(--space-2) var(--space-4); border: 1px solid var(--border); border-radius: 10px; font-size: var(--text-sm); animation: inv-balayage 6s infinite; }
.inv-lignes .icone { width: 1.25rem; height: 1.25rem; }
.inv-etat { padding: 0.1rem 0.55rem; border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
.inv-cache .inv-etat { background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); animation: inv-trouve 6s infinite; }
.inv-lignes li:nth-child(2), .inv-lignes li:nth-child(2) .inv-etat { animation-delay: 0.6s; }
.inv-lignes li:nth-child(3), .inv-lignes li:nth-child(3) .inv-etat { animation-delay: 1.2s; }
.inv-lignes li:nth-child(4), .inv-lignes li:nth-child(4) .inv-etat { animation-delay: 1.8s; }
.inv-lignes li:nth-child(5), .inv-lignes li:nth-child(5) .inv-etat { animation-delay: 2.4s; }
@keyframes inv-balayage { 0%, 12%, 100% { border-color: var(--border); background: transparent; } 3%, 9% { border-color: var(--accent-text); background: var(--accent-wash); } }
@keyframes inv-trouve { 0%, 4%, 14%, 100% { transform: none; } 9% { transform: scale(1.15); } }

/* Supervision : le pouls de ce qui est en service, et ce que la supervision fait. */
.tb-voyant { width: 0.7rem; height: 0.7rem; flex: none; border-radius: 50%; background: var(--accent-text); animation: sq-pouls 2s ease-in-out infinite; }
.tb-pouls { display: block; width: 100%; height: 4.5rem; }
.tb-ligne { fill: none; stroke: var(--accent-text); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; animation: tb-trace 3.6s linear infinite; }
@keyframes tb-trace { from { stroke-dashoffset: 100; } to { stroke-dashoffset: -100; } }

/* Gouvernance : une demande de validation ; le bouton est pressé, l'action part. */
.val { display: grid; gap: var(--space-2); padding: var(--space-6); border: 1px solid var(--accent-text); border-radius: 14px; background: var(--fond); }
.val-tete { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.val-tete .icone { width: 1.25rem; height: 1.25rem; }
.val-tete strong { font-weight: 400; }
.val-objet { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; line-height: 1.25; }
.val-detail { font-size: var(--text-sm); color: var(--muted); }
.val-actions { display: flex; gap: var(--space-2); padding-top: var(--space-2); }
.val-bouton { padding: 0.45rem 1.1rem; border-radius: 8px; background: var(--accent); color: var(--ink-on-accent); font-size: var(--text-sm); font-weight: 700; animation: val-clic 7s infinite; }
.val-bouton-2 { background: transparent; border: 1px solid var(--border); color: var(--muted); font-weight: 400; animation: none; }
.val-etat { position: relative; display: grid; padding-top: var(--space-4); margin-top: var(--space-2); border-top: 1px solid var(--border); font-size: var(--text-sm); }
.val-attente, .val-fait { grid-area: 1 / 1; display: flex; align-items: center; gap: var(--space-2); }
.val-etat .icone { width: 1.25rem; height: 1.25rem; }
.val-attente { color: var(--muted); animation: val-attente 7s infinite; }
.val-attente .icone { color: var(--fg); }
.val-fait { color: var(--accent-text); font-weight: 700; opacity: 0; animation: val-fait 7s infinite; }
@keyframes val-clic { 0%, 44%, 52%, 100% { transform: none; } 48% { transform: scale(0.92); } }
@keyframes val-attente { 0%, 48% { opacity: 1; } 52%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes val-fait { 0%, 50% { opacity: 0; } 54%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* AI Act : la transparence — l'IA se présente, le contenu généré est signalé. */
.tr { display: grid; gap: var(--space-4); }
.tr-bulle { max-width: 88%; padding: var(--space-2) var(--space-4); border-radius: 14px; font-size: var(--text-sm); animation: doc-ligne 0.6s var(--courbe) both; }
.tr-bulle-client { justify-self: end; border-bottom-right-radius: 4px; background: color-mix(in srgb, var(--fg) 8%, var(--fond)); animation-delay: 0.3s; }
.tr-bulle-ia { justify-self: start; display: grid; gap: var(--space-1); border: 1px solid color-mix(in srgb, var(--accent-text) 35%, var(--border)); border-bottom-left-radius: 4px; background: var(--accent-wash); animation-delay: 1s; }
.tr-mention { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-text); }
.tr-mention .icone { width: 1rem; height: 1rem; }
.tr-contenu { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-4); align-items: center; padding: var(--space-2); border: 1px solid var(--border); border-radius: 14px; animation: doc-ligne 0.6s var(--courbe) 1.7s both; }
.tr-image { display: grid; place-items: center; height: 4.5rem; border-radius: 10px; background: var(--accent-wash); }
.tr-image .icone { width: 2rem; height: 2rem; }
.tr-contenu > div { display: grid; gap: var(--space-1); }
.tr-contenu strong { font-size: var(--text-sm); }

/* ---------- Touches de violet dans les visuels (charte V7.2) ----------
   Le violet marque ce qui touche à la décision et au cœur du système : le Cerveau entreprise, la
   validation humaine, l'offre ou le résultat retenus. Le dégradé signature habille les pastilles et
   les barres mises en avant. Le bleu reste la couleur dominante. */
/* Accueil : le cœur du Cerveau entreprise, l'agent qui lève la main, la validation. */
.c-noyau, .c-onde { stroke: var(--violet); }
.c-cerveau { fill: var(--violet-text); }
.c-coeur, .c-signal-2, .c-signal-4, .c-signal-6, .c-signal-8, .c-signal-clair { fill: var(--violet); }
.sq-a5 .sq-forme, .sq-a5 .sq-trait, .sq-bras-trait, .sq-lien, .sq-toast-fond { stroke: var(--violet); }
.sq-a5 .sq-oeil, .sq-a5 .sq-antenne, .sq-main, .sq-alerte, .sq-toast-icone, .sq-bouton { fill: var(--violet); }
.etapes-choix li:nth-child(even) .etape-num { border-color: var(--violet); color: var(--violet-text); }
.a-confier .barre, .graphe-cle { background: var(--degrade); }
.or-n1 .or-noeud, .or-onde, .or-signal-1 { stroke: var(--violet); }
.or-n1 .or-glyphe { color: var(--violet); }
.pi-coche-fond, .piste-validation .pi-jeton { fill: var(--violet); }
.jauges .jauge:nth-child(2) .jauge-valeur { stroke: color-mix(in srgb, var(--accent-text) 45%, var(--violet)); }
.jauges .jauge:nth-child(3) .jauge-valeur { stroke: var(--violet); }
/* Page Offres : la dernière marche, le point qui avance, les curseurs, le paiement au résultat. */
.marche-3 .marche-barre { background: color-mix(in srgb, #5a2df0 60%, var(--surface)); }
.marche-4 .marche-barre { background: var(--degrade); }
.ligne-parcours::after { background: var(--violet); }
.curseur-piste::before, .jalon-resultat .jalon-barre { background: var(--degrade); }
/* Cerveau entreprise : le cœur, ce qui s'y branche, le socle, les remèdes. */
.cv-coeur { stroke: var(--violet); }
.cv-nom { fill: var(--violet-text); }
.cv-satellite { fill: var(--violet); }
.cv-signal-entree { stroke: var(--violet); }
.noyau-coeur { fill: var(--violet); }
.pile-socle { background: var(--accent) var(--degrade); }
.perte-apres .icone { background: var(--accent) var(--degrade); }
/* Pages d'offre et Maîtrise : pastilles et barres mises en avant, le cas qui passe à une personne,
   le processus retenu, la personne qui décide. */
.doc-badge, .lieu-etat-inclus, .puce-inclus, .inv-cache .inv-etat, .val-bouton:not(.val-bouton-2), .dv-savoir, .chaine-noeud:last-child > .icone, .mesure-apres { background: var(--accent) var(--degrade); border-color: transparent; }
.mesure-prepare .mesure-apres { background: transparent; border-color: var(--violet); }
.fv-jeton-2 { stroke: var(--violet); }
.fm-retenu .fm-disque { fill: var(--violet); stroke: var(--violet); }
.fm-onde { stroke: var(--violet); }
.fm-etiquette { fill: var(--violet-text); }
.tb-voyant { background: var(--violet); }
.tuile-puce { background: color-mix(in srgb, var(--violet) 12%, var(--surface)); color: var(--violet-text); }

/* ---------- Répertoire Agents IA ---------- */
.repertoire-outils { display: grid; gap: var(--space-4); }
/* Deux filtres en cascade : domaine, puis rôle (A22). */
.filtre { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: flex-start; }
.filtre-champ { display: grid; gap: var(--space-1); flex: 1 1 16rem; max-width: 24rem; }
.filtre label { font-weight: 700; }
.filtre select {
  width: 100%; min-height: 48px; padding: var(--space-2) var(--space-8) var(--space-2) var(--space-4);
  border: 1px solid var(--muted); border-radius: var(--radius-card); background: var(--surface); color: var(--fg);
  font-family: var(--font-body); font-size: var(--text-md); appearance: none;
}
.filtre select:disabled { opacity: 0.55; cursor: not-allowed; }
.filtre-aide { font-size: var(--text-xs); color: var(--muted); }
.filtre-etat { flex-basis: 100%; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.filtre[hidden] { display: none; }
/* Icônes des domaines et des rôles (A42) : en traits, couleur d'accent. */
.icone { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--accent-text); }
.domaine-tete h3 { display: flex; align-items: center; gap: var(--space-2); }
.domaine-tete h3 .icone { width: 1.75rem; height: 1.75rem; }
/* Le titre d'un rôle s'aligne sur sa première ligne : le tiret de l'arbre y arrive. */
.role h4 { display: flex; align-items: flex-start; gap: var(--space-2); line-height: 1.5rem; }
.role h4 .icone { width: 1.35rem; height: 1.35rem; margin-top: 0.075rem; }

/* Arborescence tracée dans le répertoire (A42), d'après le schéma du dirigeant : sous l'icône
   d'un domaine, un trait vertical relie ses rôles ; sous l'icône d'un rôle, un trait relie
   ses processus. Chaque élément reçoit un tiret ; le trait s'arrête au dernier (« └ »), un
   cache de la couleur du fond effaçant ce qui dépasse.
   Une branche porte son retrait (--retrait) et l'axe de son trait (--axe, le centre de
   l'icône du dessus). */
.branche { --depart: -1.25rem; --retrait: 2.75rem; --axe: 0.875rem; position: relative; display: grid; gap: var(--space-2); padding-left: var(--retrait); }
.role > .branche { --depart: -0.3rem; --retrait: 1.85rem; --axe: 0.675rem; }
.branche::before { content: ""; position: absolute; left: calc(var(--axe) - 1px); top: var(--depart); bottom: 0; border-left: 2px solid var(--accent-text); }
.branche > .role { position: relative; margin-top: var(--space-6); }
.branche > .encadre { margin-top: var(--space-2); }
.branche > .liste-processus > li { position: relative; }
/* Les tirets : vers l'icône d'un rôle (un écart avant l'icône), vers la fenêtre d'un processus. */
.branche > .role::before, .branche > .liste-processus > li::before {
  content: ""; position: absolute; left: calc(var(--axe) - var(--retrait)); border-top: 2px solid var(--accent-text);
}
.branche > .role::before { top: calc(0.75rem - 1px); width: calc(var(--retrait) - var(--axe) - 6px); }
.branche > .liste-processus > li::before { top: calc(1.875rem - 1px); width: calc(var(--retrait) - var(--axe)); }
/* Le trait s'arrête au tiret du dernier rôle affiché, ou du dernier processus. */
.branche > .role.dernier::after, .branche > .liste-processus > li:last-child::after {
  content: ""; position: absolute; left: calc(var(--axe) - var(--retrait) - 3px); bottom: 0; width: 8px; background: var(--fond);
}
.branche > .role.dernier::after { top: calc(0.75rem + 1px); }
.branche > .liste-processus > li:last-child::after { top: calc(1.875rem + 1px); }
@media (max-width: 40rem) {
  .branche { --retrait: 2.25rem; }
  .role > .branche { --retrait: 1.85rem; }
}
.domaine { display: grid; gap: var(--space-6); padding-top: var(--space-8); border-top: 2px solid var(--fg); }
.domaine[hidden] { display: none; }
.domaine-tete { display: grid; gap: var(--space-2); max-width: var(--largeur-texte); }
.domaine-tete h3 { font-size: var(--text-xl); }
/* Accroche et chapô du domaine : sous son titre, dans la branche de l'arbre (A42). */
.domaine > .branche > .accroche { font-style: italic; max-width: var(--largeur-texte); }
.domaine > .branche > .chapo-domaine { color: var(--muted); font-size: var(--text-sm); max-width: var(--largeur-texte); }
/* Pictogrammes du catalogue (A40) : en traits, couleur d'accent, une pastille pour le niveau d'agent. */
.picto { width: 2.75rem; height: 2.75rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8px; stroke-linecap: round; stroke-linejoin: round; color: var(--accent-text); }
/* Même épaisseur de trait, en pixels, quelle que soit la taille du dessin. */
.picto :is(path, rect, circle) { vector-effect: non-scaling-stroke; }
.picto .plein { fill: currentColor; stroke: none; }
/* Organigrammes : liaisons fines, éléments du bas d'un trait plus léger que l'agent du haut. */
.picto .liaison { stroke-width: 1px; }
.picto .subordonne { stroke-width: 1.4px; }
/* « Comment lire le répertoire » : le texte à gauche ; à droite, le pictogramme et l'offre. */
.niveau { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-6); align-items: center; }
.niveau-texte { display: grid; gap: var(--space-2); }
/* Colonne de largeur fixe : le pictogramme tombe au même endroit sur les quatre cartes,
   qu'il ait une offre ou non (carte « Domaine »). Il est centré dans sa carte : l'offre
   au-dessus, et dessous une zone vide de même hauteur, qui l'équilibre. */
.niveau-signe { --zone-offre: calc(1.4 * var(--text-xs)); display: grid; justify-items: center; gap: var(--space-2); width: 10rem; text-align: center; }
.niveau-signe::after { content: ""; height: var(--zone-offre); }
.niveau .picto { width: 4rem; height: 4rem; }
.niveau-offre-zone { display: flex; align-items: flex-end; justify-content: center; min-height: var(--zone-offre); }
.niveau-offre { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.4; text-decoration: none; }
.niveau-offre::after { content: " →"; }
.niveau-offre:hover { text-decoration: underline; }
@media (max-width: 40rem) {
  .niveau { column-gap: var(--space-4); }
  .niveau-signe { --zone-offre: calc(2 * 1.4 * var(--text-xs)); width: 6.5rem; }
}

.role { display: grid; gap: var(--space-2); }
.role h4 { font-size: var(--text-lg); }
.role .accroche { font-style: italic; color: var(--muted); font-size: var(--text-sm); max-width: var(--largeur-texte); }

/* Processus repliés (A37) : chaque processus dans une fenêtre teintée d'accent, le nom seul ;
   le détail et l'exemple s'ouvrent au clic. Un intitulé « Processus » ouvre chaque liste.
   Le TOP cas d'usage (A38) reprend la même forme, avec son rang et son domaine. */
.liste-processus-titre { margin-top: var(--space-2); }
.liste-processus { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.processus {
  background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent-text) 22%, var(--border));
  border-radius: var(--radius-card); transition: border-color var(--duree) ease;
}
.processus:hover, .processus[open] { border-color: color-mix(in srgb, var(--accent-text) 55%, var(--border)); }
/* Rang (TOP) | nom, et domaine dessous (TOP) | « + » : le signe reste sur la ligne du nom. */
.processus > summary {
  cursor: pointer; list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline; row-gap: var(--space-1); padding: var(--space-4) var(--space-6); font-weight: 700;
}
.processus > summary::-webkit-details-marker { display: none; }
.processus > summary::after { content: "+"; grid-column: 3; grid-row: 1; padding-left: var(--space-4); font-family: var(--font-mono); font-weight: 400; color: var(--accent-text); }
.processus-nom, .processus-etiquette { grid-column: 2; }
.processus[open] > summary::after { content: "−"; }
.processus > summary:hover .processus-nom { color: var(--accent-text); }
.processus-rang { grid-column: 1; margin-right: var(--space-4); font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 400; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.processus-etiquette { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 400; color: var(--muted); white-space: nowrap; }
.processus-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-4) var(--space-8); margin: 0; padding: 0 var(--space-6) var(--space-6); font-size: var(--text-sm); }
.processus-detail dt { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); margin-bottom: var(--space-1); }
.processus-detail dd { margin: 0; }
/* L'exemple de cas d'usage : une carte claire dans la fenêtre teintée, sous le détail. */
.processus-exemple { grid-column: 1 / -1; padding: var(--space-4) var(--space-6); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent-text) 28%, var(--border)); border-radius: var(--radius-card); }
.processus-detail .processus-exemple dt { color: var(--accent-text); }
/* TOP cas d'usage : le domaine et le rôle du chantier, en deux petites fenêtres-liens (A40). */
.processus-reperes { list-style: none; margin: 0; padding: 0 var(--space-6) var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.repere {
  display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  font-size: var(--text-sm); font-weight: 700; color: var(--fg); text-decoration: none;
  transition: border-color var(--duree) ease, color var(--duree) ease;
}
.repere:hover { border-color: var(--accent-text); color: var(--accent-text); }
.repere .picto { width: 1.25rem; height: 1.25rem; stroke-width: 1.5px; }
.repere .icone { width: 1.1rem; height: 1.1rem; }
@media (max-width: 40rem) {
  .processus > summary { padding-inline: var(--space-4); }
  .processus-detail { grid-template-columns: 1fr; padding-inline: var(--space-4); }
  .processus-exemple { padding-inline: var(--space-4); }
  .processus-reperes { padding-inline: var(--space-4); }
}
/* Le TOP cas d'usage ouvre le répertoire : un filet d'accent le distingue des domaines. */
.domaine-top { border-top-color: var(--accent-text); }

/* Replis (secteurs, questions) */
.replis { display: grid; gap: var(--space-2); }
.replis > details { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.replis > details > summary {
  cursor: pointer; list-style: none; padding: var(--space-4) var(--space-6);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-md);
  display: flex; justify-content: space-between; gap: var(--space-4); align-items: center;
}
.replis > details > summary::-webkit-details-marker { display: none; }
.replis > details > summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-text); }
.replis > details[open] > summary::after { content: "−"; }
.replis-contenu { padding: 0 var(--space-6) var(--space-6); display: grid; gap: var(--space-4); }

/* ---------- Bande de marque et appel final ----------
   Moments de marque (DESIGN.md § 1 et § 7) : l'élément porte data-theme="dark", donc les
   jetons du thème sombre. Sur un site affiché en sombre, il se distingue par la surface
   teintée d'accent. */
/* Leur fond : le dégradé sombre de la charte (V7.2), du bleu nuit au violet nuit ; --fond reste la
   teinte de base, pour les mélanges des visuels posés dessus. */
main > .section.bande-marque, .appel-final-bloc { --fond: var(--bg); background: var(--fond) var(--degrade-sombre); color: var(--fg); }
:root[data-theme="dark"] :is(.bande-marque, .appel-final-bloc) { --fond: var(--accent-wash); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] :is(.bande-marque, .appel-final-bloc) { --fond: var(--accent-wash); }
}
.bande-marque .chiffres li { border-top-color: color-mix(in srgb, var(--accent-text) 55%, var(--border)); }

.appel-final { background: var(--bg); }
.appel-final > .wrap { padding-block: var(--space-16); }
.appel-final-bloc {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-8); align-items: center;
  padding: var(--space-12);
  border: 1px solid var(--border); border-radius: var(--radius-card);
}
.appel-final h2 { font-size: clamp(var(--text-xl), 3.4vw, 2.625rem); }
.appel-final-texte p { color: var(--muted); }
.appel-final-texte { display: grid; gap: var(--space-4); }
.appel-final-actions { display: grid; gap: var(--space-4); justify-items: start; }
@media (max-width: 48rem) {
  .appel-final-bloc { grid-template-columns: 1fr; padding: var(--space-8) var(--space-6); }
}

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: var(--space-8); max-width: var(--largeur-texte); }
.formulaire fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--space-6); }
.formulaire legend { padding: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: var(--leading-tight); margin-bottom: var(--space-2); }
.etape-intro { color: var(--muted); }
.champ { display: grid; gap: var(--space-2); }
.champ label, .groupe-choix legend, .champ-titre { font-weight: 700; font-family: var(--font-body); font-size: var(--text-md); }
.groupe-choix legend { font-size: var(--text-md); margin-bottom: var(--space-2); }
.facultatif { font-weight: 400; color: var(--muted); font-size: var(--text-sm); }
.obligatoire { color: var(--accent-text); }
.aide { font-size: var(--text-sm); color: var(--muted); }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire input[type="tel"], .formulaire select, .formulaire textarea {
  width: 100%; min-height: 48px; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--muted); border-radius: var(--radius-card);
  background: var(--surface); color: var(--fg);
  font-family: var(--font-body); font-size: var(--text-md); line-height: 1.4;
}
.formulaire textarea { min-height: 8rem; resize: vertical; padding-block: var(--space-4); }
.formulaire select { appearance: none; background-image: none; padding-right: var(--space-8); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: var(--space-4); top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.formulaire input:focus-visible, .formulaire select:focus-visible, .formulaire textarea:focus-visible { outline: var(--focus-width) solid var(--accent-text); outline-offset: var(--focus-offset); border-color: var(--accent-text); }
.formulaire [aria-invalid="true"] { border-color: var(--accent-text); border-width: 2px; }
.message-erreur { font-size: var(--text-sm); font-weight: 700; color: var(--accent-text); }
.message-erreur:empty { display: none; }
.message-erreur::before { content: "À corriger : "; }
:lang(en) .message-erreur::before { content: "Please fix: "; }
.groupe-choix { margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-2); }
.choix { display: grid; gap: var(--space-2); }
.choix-ligne { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.choix label {
  display: flex; gap: var(--space-2); align-items: flex-start;
  padding: var(--space-2) var(--space-4); min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface);
  font-weight: 400; cursor: pointer;
}
.choix label:hover { border-color: var(--accent-text); }
.choix label:has(input:checked) { border-color: var(--accent-text); outline: 1px solid var(--accent-text); outline-offset: -2px; }
.choix input { accent-color: var(--accent); margin: 0.3em 0 0; flex: none; width: 1.1em; height: 1.1em; }
.activite { display: grid; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.activite .choix label { background: var(--bg); }
.activite h3 { font-size: var(--text-md); font-family: var(--font-mono); font-weight: 700; color: var(--accent-text); }
.pot-de-miel { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-pied { display: grid; gap: var(--space-4); }
.formulaire-nav { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; }
.progression { display: grid; gap: var(--space-2); }
.progression-barre { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progression-barre span { display: block; height: 100%; background: var(--accent-text); width: 20%; transition: width 0.2s ease; }
.js .etape[hidden] { display: none; }
.recapitulatif { display: grid; gap: var(--space-4); }
.recapitulatif dl { display: grid; gap: var(--space-2); }
.recapitulatif dt { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.recapitulatif dd { white-space: pre-wrap; margin-bottom: var(--space-2); }
.recapitulatif-bloc { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.recapitulatif-bloc h3 { font-size: var(--text-md); margin-bottom: var(--space-4); }
.alerte-envoi { padding: var(--space-4) var(--space-6); border: 2px solid var(--accent-text); border-radius: var(--radius-card); font-weight: 700; }
.alerte-envoi[hidden] { display: none; }
.confirmation { display: grid; gap: var(--space-6); max-width: var(--largeur-texte); }
.confirmation h2 { font-size: var(--text-2xl); }
.bloc-formulaire { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.bloc-formulaire aside { display: grid; gap: var(--space-6); position: sticky; top: calc(var(--hauteur-entete) + var(--space-6)); }
@media (max-width: 60rem) {
  .bloc-formulaire { grid-template-columns: 1fr; }
  .bloc-formulaire aside { position: static; }
}

/* ---------- Blog ---------- */
.liste-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 60rem) { .liste-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .liste-articles { grid-template-columns: 1fr; } }
.carte-article { gap: var(--space-4); grid-template-rows: auto auto 1fr auto; }
.carte-article h3 { font-size: var(--text-lg); }
/* Le logo d'un article (A49) : son icône, en blanc sur le dégradé signature. */
.logo-article { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--accent) var(--degrade); color: var(--ink-on-accent); }
.logo-article svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo-article-grand { width: 4rem; height: 4rem; border-radius: 16px; }
.logo-article-grand svg { width: 2rem; height: 2rem; }
.carte-article-tete { display: flex; align-items: center; gap: var(--space-4); }
.carte-article-tete .meta { display: grid; gap: 2px; }
.carte-article-tete .meta > * + *::before { content: none; }
.carte-article-pied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.carte-article-pied time { margin-left: auto; }
.public-puce { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; background: color-mix(in srgb, var(--violet) 12%, var(--surface)); color: var(--violet-text); font-family: var(--font-mono); font-size: var(--text-xs); }
.publics { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.carte-article[hidden] { display: none; }
/* Filtres de la grille du blog (A49) : recherche, thèmes, public, nombre d'articles. */
.filtres-blog { display: grid; gap: var(--space-4); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.filtre-blog-titre { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.filtre-blog-recherche, .filtre-blog-groupe { display: grid; gap: var(--space-2); }
.filtre-blog-recherche input { width: 100%; max-width: 32rem; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--fg); font: inherit; }
.filtre-blog-recherche input:focus-visible { border-color: var(--accent-text); }
.filtre-puces { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.filtre-puces a, .filtre-puces button { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-4); border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: var(--text-sm); text-decoration: none; cursor: pointer; }
.filtre-puces a:hover, .filtre-puces button:hover { border-color: var(--accent-text); color: var(--accent-text); }
.filtre-puces a[aria-current], .filtre-puces button[aria-pressed="true"] { border-color: transparent; background: var(--accent) var(--degrade); color: var(--ink-on-accent); font-weight: 700; }
.filtre-puces .compte { font-family: var(--font-mono); font-size: var(--text-xs); opacity: 0.75; }
.filtre-blog-compte { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.lien-bouton { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 40rem) { .filtres-blog { padding: var(--space-4); } }
/* L'article : son logo à côté du titre, l'encadré « En bref », les questions fréquentes. */
.article-titre { display: flex; align-items: flex-start; gap: var(--space-6); }
.article-titre h1 { margin-top: 0.25rem; }
.en-bref { display: grid; gap: var(--space-2); padding: var(--space-6); border-radius: var(--radius-card); background: var(--accent-wash); border-left: 3px solid var(--violet); }
.en-bref p:last-child { font-size: var(--text-md); color: var(--fg); }
.faq-article { display: grid; gap: var(--space-2); margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.faq-article h2 { margin-top: 0; }
.faq-article h3 { font-size: var(--text-md); margin-top: var(--space-4); }
@media (max-width: 40rem) { .article-titre { flex-direction: column; gap: var(--space-4); } .logo-article-grand { width: 3.25rem; height: 3.25rem; } }
.meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.meta > * + *::before { content: "·"; margin-right: var(--space-2); }
.badge-brouillon { display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs); padding: 0 var(--space-2); border: 1px dashed var(--muted); border-radius: var(--radius-card); color: var(--muted); }
.categories { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.categories a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-card); font-size: var(--text-sm); text-decoration: none; color: var(--fg); }
.categories a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.categories a[aria-current="page"] { border-color: var(--accent-text); color: var(--accent-text); font-weight: 700; }
.pagination { display: flex; justify-content: space-between; gap: var(--space-4); }
.article-entete > .wrap { padding-block: var(--space-12) var(--space-8); display: grid; gap: var(--space-4); }
.article-entete h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 26ch; }

/* Texte long (articles, pages légales) */
.prose { max-width: var(--largeur-texte); display: grid; gap: var(--space-4); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-8); }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-4); }
.prose ul, .prose ol { display: grid; gap: var(--space-2); }
.prose blockquote { padding-left: var(--space-4); border-left: 2px solid var(--accent-text); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th { text-align: left; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 400; color: var(--muted); border-bottom: 1px solid var(--muted); padding: var(--space-2) var(--space-4) var(--space-2) 0; }
.prose td { border-bottom: 1px solid var(--border); padding: var(--space-2) var(--space-4) var(--space-2) 0; vertical-align: top; }
.prose > :first-child { margin-top: 0; }
.encart-brouillon { padding: var(--space-4) var(--space-6); border: 1px dashed var(--muted); border-radius: var(--radius-card); font-size: var(--text-sm); color: var(--muted); max-width: var(--largeur-texte); }

/* ---------- Pied de page ---------- */
.pied { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: auto; }
.pied > .wrap { padding-block: var(--space-12) var(--space-8); display: grid; gap: var(--space-12); }
.pied-haut { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.pied-marque { display: grid; gap: var(--space-4); align-content: start; }
.pied-marque .logo svg { height: 32px; }
.pied-signature { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); line-height: 1.3; max-width: 22ch; }
.pied-colonne { display: grid; gap: var(--space-2); align-content: start; }
.pied-colonne h2 { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 400; color: var(--muted); letter-spacing: 0.02em; }
.pied-colonne ul { list-style: none; padding: 0; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.pied-colonne a { color: var(--fg); text-decoration: none; }
.pied-colonne a:hover { color: var(--accent-text); text-decoration: underline; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--muted); }
.pied-bas ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-4); }
.pied-bas a { color: var(--muted); }
.pied-bas a:hover { color: var(--accent-text); }
@media (max-width: 60rem) { .pied-haut { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pied-marque { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .pied-haut { grid-template-columns: 1fr; } }

/* ---------- Page 404 ---------- */
.introuvable > .wrap { padding-block: var(--space-16); display: grid; gap: var(--space-6); max-width: var(--largeur-texte); margin-inline: 0; }

/* ---------- Effets légers ----------
   Ouverture de l'accueil : le texte et le schéma entrent l'un après l'autre (CSS seul).
   Au défilement : assets/js/apparition.js pose .apparait sur les blocs encore sous la ligne
   de flottaison, puis .visible quand ils arrivent à l'écran — un bloc déjà visible au
   chargement n'est jamais masqué, et sans JavaScript tout reste affiché. */
@keyframes entree { from { opacity: 0; transform: translateY(14px); } }
.hero-texte > *, .hero .constellation { animation: entree 0.8s var(--courbe) both; }
.hero-texte > :nth-child(2) { animation-delay: 0.08s; }
.hero-texte > :nth-child(3) { animation-delay: 0.16s; }
.hero-texte > :nth-child(4) { animation-delay: 0.24s; }
.hero-texte > :nth-child(5) { animation-delay: 0.3s; }
.hero .constellation { animation-delay: 0.28s; }

.apparait { opacity: 0; transform: translateY(18px); transition: opacity var(--duree-apparition) var(--courbe), transform var(--duree-apparition) var(--courbe); }
.apparait.visible { opacity: 1; transform: none; }
.apparait:nth-child(2) { transition-delay: 0.07s; }
.apparait:nth-child(3) { transition-delay: 0.14s; }
.apparait:nth-child(4) { transition-delay: 0.21s; }
.apparait:nth-child(5) { transition-delay: 0.28s; }
.apparait:nth-child(n+6) { transition-delay: 0.35s; }
.apparait .section-repere::before { transform: scaleX(0); transition: transform 0.9s var(--courbe) 0.25s; }
.apparait.visible .section-repere::before { transform: none; }

/* ---------- Mouvement réduit et impression ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .apparait { opacity: 1; transform: none; }
  .apparait .section-repere::before { transform: none; }
  /* Schémas de l'accueil et du Cerveau entreprise : sans mouvement, les points et signaux qui circulent n'ont pas de
     place fixe, et les jetons des pistes resteraient au départ : on les retire. */
  .c-signal, .c-onde, .or-signal, .or-onde, .pi-jeton, .cv-signal, .cv-onde, .fv-jeton, .fm-onde { display: none; }
}
@media print {
  .entete, .pied, .appel-final, .bandeau-preversion, .lien-evitement, .menu-mobile, .formulaire-nav { display: none !important; }
  .section, .bande-marque { background: none !important; color: inherit; }
  .apparait { opacity: 1 !important; transform: none !important; }
  a { color: inherit; }
  /* Les fonds ne s'impriment pas : le texte en dégradé reprend une couleur pleine. */
  .accent, .chiffres .valeur, .prix-montant, .offre-prix { background: none !important; color: var(--accent) !important; }
}
