/* hf.css : feuille commune des pages Happyfizz (V1).
   Charte : celle de happyfizz.fr, relevée le 15/11/2026 dans son kit de styles :
   polices Kanit (titres) et Poppins (texte), turquoise #69D6CB, anis #DFDC00, gris #6F6F6E et #424242,
   fond gris #F2F2F2, titres en capitales, boutons rectangulaires, bulles, bandes à bord courbe ou en biais.
   Un écart voulu avec le site : pas de texte blanc ni de texte coloré sur fond clair ou vif.
   Les couleurs vives restent des aplats ; le texte est gris foncé partout (accessibilité, V1-02).
   Contrastes calculés (WCAG) : encre/blanc 10,0 · encre/fond 8,9 · encre/turquoise 5,8 · encre/anis 6,9 ·
   encre/mauve 4,7 · texte-2/blanc 6,5 · texte-2/fond 5,8 · gris-titre/blanc 5,0 (titres, grande taille) ·
   accent/blanc 5,2. Propre à un support : a.css, b.css, c.css, d.css. */

/* ---------- 0. Polices (auto-hébergées, licence OFL : fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/kanit-500.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/kanit-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600.woff2") format("woff2"); }

/* ---------- 1. Jetons ---------- */
:root {
  --encre: #424242;        /* texte courant, titres */
  --texte-2: #5E5E5D;      /* texte secondaire */
  --gris-titre: #6F6F6E;   /* seconde ligne des titres, comme sur happyfizz.fr */
  --fond: #F2F2F2;         /* fond de page, bandes grises */
  --blanc: #FFFFFF;        /* cartes, bandes blanches */
  --bord: #E0E0E0;         /* filets décoratifs */
  --bord-fort: #8A8A89;    /* bordures qui doivent se voir (3,5:1 sur blanc) */
  --accent: #1F7A72;       /* turquoise foncé : remplissages et rares textes d'accent */
  --accent-fonce: #175E58;
  /* Couleurs de la charte : aplats seulement */
  --turq: #69D6CB;
  --anis: #DFDC00;
  --mauve: #CCA8B6;
  --gris: #6F6F6E;
  --turq-pale: #E3F7F5;
  --anis-pale: #F9F8C9;
  --mauve-pale: #F5EDF0;
  /* Couleur par défaut d'un bloc coloré (remplacée par .c-turq, .c-anis, .c-mauve) */
  --c: var(--turq);
  --c-pale: var(--turq-pale);
  --police: "Poppins", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --police-titre: "Kanit", "Poppins", system-ui, "Segoe UI", Arial, sans-serif;
  --rayon: 0px;            /* la charte a des angles droits */
  --rayon-petit: 0px;
  --ombre: 0 10px 30px -18px rgba(0, 0, 0, 0.35);
  --largeur: 1180px;
  --gouttiere: 16px;
  --cible: 44px;
}
@media (min-width: 768px) { :root { --gouttiere: 24px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(.bandeau-demo) { scroll-padding-top: 5rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--police-titre); font-weight: 700; line-height: 1.1; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem); }
h3 { font-size: 1.1875rem; line-height: 1.25; }
p, ul, ol, dl, figure, table { margin: 0; }
ul, ol { padding-left: 1.25rem; }
strong, b { font-weight: 600; }
a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--turq); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--anis); text-decoration-thickness: 3px; }
button { font: inherit; }
[hidden] { display: none !important; }

/* Focus visible partout, au clavier */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }

/* Lien d'évitement « Aller au contenu » */
.lien-evitement {
  position: absolute; left: var(--gouttiere); top: -100px; z-index: 100;
  padding: 0.6rem 1rem; background: var(--blanc); color: var(--encre);
  border: 2px solid var(--encre); font-weight: 600;
}
.lien-evitement:focus { top: 0.5rem; }

/* ---------- 3. En-tête, page, pied ---------- */
.en-tete { position: relative; z-index: 5; background: var(--blanc); box-shadow: 0 2px 14px -8px rgba(0, 0, 0, 0.35); }
.en-tete-contenu {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem; padding-block: 0.6rem;
}
.lien-logo { display: inline-flex; border-radius: 4px; }
.logo { width: auto; height: 56px; }
@media (min-width: 768px) { .logo { height: 72px; } }

.page {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
main.page { padding-block: 2rem 3rem; }

.pied { margin-top: 3rem; padding-block: 2rem; background: var(--blanc); border-top: 6px solid var(--turq); }
.pied-contenu { display: flex; flex-direction: column; gap: 1.25rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: 0; padding: 0; }
.pied-liens a { display: inline-flex; align-items: center; min-height: var(--cible); }
.pied-note { font-size: 0.875rem; color: var(--texte-2); }

/* ---------- 4. Mise en page ---------- */
.pile { display: flex; flex-direction: column; gap: 1rem; }
.pile-large { display: flex; flex-direction: column; gap: 2.25rem; }
.pile > *, .pile-large > * { min-width: 0; }
.rangee { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.grille { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grille-large { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grille > * { min-width: 0; }

/* Bandes : sections sur toute la largeur, comme sur happyfizz.fr (blanc, gris en biais, couleur à bord courbe) */
.bande { position: relative; background: var(--blanc); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.25rem); }
.bande-grise {
  background: var(--fond);
  padding-block: calc(clamp(2.5rem, 2rem + 2.5vw, 4.25rem) + 2.2vw);
  clip-path: polygon(0 2.2vw, 100% 0, 100% calc(100% - 2.2vw), 0 100%);
}
.bande-couleur { background: var(--c); overflow: hidden; border-radius: 0 0 50% 50% / 0 0 clamp(1.5rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem); }

/* Titre de section : première ligne soulignée d'un aplat, seconde ligne grise, petite barre turquoise */
.titre { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1em; }
.titre .t1 { background: linear-gradient(var(--anis), var(--anis)) no-repeat 0 92% / 100% 38%; padding-inline: 0.08em; }
.titre.c-turq .t1 { background-image: linear-gradient(var(--turq), var(--turq)); }
.titre .t2 { color: var(--gris-titre); }
.titre::after { content: ""; width: 3rem; height: 6px; margin-top: 0.55rem; background: var(--turq); }
.titre.c-turq::after { background: var(--anis); }

/* Bulles : le motif du logo. Un conteneur .bulles et des <span> vides, placés par chaque feuille. */
.bulles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bulles span { position: absolute; border-radius: 50%; background: var(--blanc); opacity: 0.45; }

/* Ouverture de page : bande de couleur, grand titre dont la seconde ligne est posée sur un bloc foncé */
.heros { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(3rem, 2.5rem + 3vw, 5.5rem); }
.heros-contenu { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
.heros-contenu > * { min-width: 0; }
@media (min-width: 900px) { .heros-deux { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; } }
.heros h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1; }
.heros .etiquette { color: var(--encre); }
.titre-suite { display: block; width: fit-content; margin-top: 0.18em; padding: 0.06em 0.22em 0.1em; background: var(--encre); color: var(--blanc); }
.heros-chapo { font-size: 1.125rem; max-width: 34rem; }
.heros .bulles span:nth-child(1) { width: 9rem; height: 9rem; left: -3rem; top: -3rem; }
.heros .bulles span:nth-child(2) { width: 3.5rem; height: 3.5rem; left: 7rem; top: 1.25rem; opacity: 0.6; }
.heros .bulles span:nth-child(3) { width: 1.75rem; height: 1.75rem; left: 12rem; top: 4.5rem; }
.heros .bulles span:nth-child(4) { width: 6rem; height: 6rem; left: 42%; bottom: -1.5rem; opacity: 0.3; }
.heros .bulles span:nth-child(5) { width: 2.25rem; height: 2.25rem; left: 50%; top: 2rem; opacity: 0.55; }
.heros .bulles span:nth-child(6) { width: 12rem; height: 12rem; right: -4rem; bottom: -3rem; opacity: 0.28; }
.heros .bulles span:nth-child(7) { width: 1.5rem; height: 1.5rem; right: 9rem; top: 1.5rem; background: var(--mauve); opacity: 0.95; }
/* Photo dans son cadre blanc décalé (comme sur happyfizz.fr) */
.photo-cadre { position: relative; justify-self: center; width: min(100%, 30rem); }
.photo-cadre::before { content: ""; position: absolute; inset: -1.1rem 1.4rem 1.4rem -1.1rem; border: 6px solid var(--blanc); }
.photo-cadre img { position: relative; width: 100%; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.6); }
@media (max-width: 899px) { .photo-cadre { width: min(88%, 24rem); margin-top: 0.5rem; } }
/* Le prénom du consultant, lu dans le lien : une étiquette blanche bien visible */
.heros [data-consultant] { background: var(--blanc); font-size: 1rem; padding: 0.5rem 1.1rem; box-shadow: var(--ombre); }

/* ---------- 5. Composants ---------- */
.carte {
  display: flex; flex-direction: column; gap: 0.625rem;
  min-width: 0;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 1.25rem;
}
@media (min-width: 768px) { .carte { padding: 1.5rem; } }
.carte.c-turq, .carte.c-anis, .carte.c-mauve { border-top: 6px solid var(--c); }
.aplat { background: var(--c-pale); }

/* Encadré : bloc d'information sur fond pâle */
.encadre {
  background: var(--c-pale);
  border-left: 6px solid var(--c);
  padding: 1rem 1.25rem;
}

.pastille {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--c-pale);
  color: var(--encre);
  font-size: 0.875rem; font-weight: 600; line-height: 1.4;
}
.pastille.c-turq, .pastille.c-anis, .pastille.c-mauve { background: var(--c); }
.pastille-contour { background: var(--blanc); border: 1px solid var(--bord-fort); }

.etiquette {
  display: block;
  font-family: var(--police-titre);
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--texte-2);
}

/* Boutons : rectangulaires, en capitales, comme sur happyfizz.fr ; le texte reste foncé */
.bouton, .bouton-contour {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--cible); min-width: var(--cible);
  padding: 0.55rem 1.4rem;
  border: 2px solid var(--encre);
  border-radius: 0;
  font-family: var(--police-titre); font-size: 1.0625rem; font-weight: 700; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.01em;
  text-align: center; text-decoration: none;
  color: var(--encre);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.bouton { background: var(--anis); border-color: var(--anis); box-shadow: 4px 4px 0 var(--encre); }
.bouton:hover { background: var(--turq); border-color: var(--turq); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--encre); }
.bouton-contour { background: var(--blanc); }
.bouton-contour:hover { background: var(--turq-pale); }
/* Dans une colonne (.carte, .pile), boutons et pastilles gardent leur largeur naturelle */
.pastille, .bouton, .bouton-contour { align-self: flex-start; }
.ligne > .pastille, .ligne > .bouton, .ligne > .bouton-contour, .rangee > * { align-self: center; }
.bouton-plein-largeur { width: 100%; align-self: stretch; }

/* Ligne : rendez-vous, documents, contacts */
.lignes { list-style: none; margin: 0; padding: 0; }
.ligne {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--bord);
}
.ligne:last-child { border-bottom: 0; }
.ligne > :first-child { flex: 1 1 14rem; min-width: 0; }

/* Notice : zone role="status" ; vide, elle ne prend pas de place */
.notice {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--turq-pale);
  border-left: 6px solid var(--turq);
  color: var(--encre);
  font-weight: 600;
}
.notice:empty { padding: 0; border: 0; }

/* Bandeau de démonstration, collé en haut de l'écran */
.bandeau-demo {
  position: sticky; top: 0; z-index: 50;
  padding: 0.5rem var(--gouttiere);
  background: var(--encre);
  color: var(--blanc);
  text-align: center;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.35;
}
.bandeau-demo p { margin: 0; }
.bandeau-demo span { display: inline-block; font-weight: 400; }

/* Encadré Qualiopi : même texte et même logo partout */
.encadre-qualiopi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1rem;
  background: var(--blanc);
  border: 1px solid var(--bord);
}
.encadre-qualiopi img { width: 140px; flex: 0 0 auto; }
.encadre-qualiopi p { flex: 1 1 14rem; min-width: 0; font-size: 0.9375rem; }

/* Phases du parcours (V1-03) : l'état est toujours écrit, pas seulement coloré */
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.phase { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem; border: 1px solid var(--bord); border-top: 6px solid var(--bord); background: var(--blanc); box-shadow: var(--ombre); }
.phase.faite { border-top-color: var(--turq); }
.phase.en-cours { border-top-color: var(--anis); background: var(--anis-pale); }
.phase.a-venir { border-style: dashed; border-top-style: solid; }

/* Barre de progression : <progress class="barre" value="3" max="7"> */
.barre {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 12px;
  border: 1px solid var(--bord-fort); border-radius: 999px;
  background: var(--blanc); color: var(--accent); overflow: hidden;
}
.barre::-webkit-progress-bar { background: var(--blanc); border-radius: 999px; }
.barre::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.barre::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

/* Tableau qui défile seul sur petit écran (la page, elle, ne défile pas) */
.tableau-roule { overflow-x: auto; max-width: 100%; border: 1px solid var(--bord); background: var(--blanc); }
.tableau-roule table { width: 100%; min-width: 32rem; border-collapse: collapse; }
.tableau-roule th, .tableau-roule td { padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bord); }
.tableau-roule thead th { background: var(--turq-pale); font-weight: 600; }
.tableau-roule tr:last-child td { border-bottom: 0; }

/* ---------- 6. Couleurs (aplats) ---------- */
.c-turq { --c: var(--turq); --c-pale: var(--turq-pale); }
.c-anis { --c: var(--anis); --c-pale: var(--anis-pale); }
.c-mauve { --c: var(--mauve); --c-pale: var(--mauve-pale); }

/* ---------- 7. Utilitaires ---------- */
.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;
}
.discret { color: var(--texte-2); }
.petit { font-size: 0.875rem; }
.chapo { font-size: 1.0625rem; color: var(--texte-2); max-width: 46rem; }
.largeur-texte { max-width: 46rem; }
.centre { text-align: center; }
.liste-nue { list-style: none; margin: 0; padding: 0; }
.seul-impression { display: none; }

/* ---------- 7 bis. Mouvement commun ----------
   Seulement si le lecteur ne l'a pas réduit. Les apparitions ne cachent un bloc que si anime.js tourne (classe .js-anime). */
@keyframes hf-flotte {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -30px) scale(1.1); }
  100% { transform: translate(-10px, -12px) scale(0.94); }
}
@keyframes hf-balaye { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hf-trait { from { background-size: 0 38%; } to { background-size: 100% 38%; } }
@keyframes hf-barre { from { width: 0; } to { width: 3rem; } }
.bulles span:nth-child(10) { width: 2rem; height: 2rem; left: 62%; top: 18%; opacity: 0.55; }
.bulles span:nth-child(11) { width: 5rem; height: 5rem; left: 78%; top: 55%; opacity: 0.3; }
.bulles span:nth-child(12) { width: 1.25rem; height: 1.25rem; left: 24%; top: 70%; background: var(--anis); opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .bulles { transform: translate(calc(var(--mx, 0) * -36px), calc(var(--my, 0) * -26px)); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .bulles span { animation: hf-flotte 6s ease-in-out infinite alternate; }
  .bulles span:nth-child(2n) { animation-duration: 8s; animation-delay: -2s; }
  .bulles span:nth-child(3n) { animation-duration: 10s; animation-delay: -4s; }
  .bulles span:nth-child(5n) { animation-duration: 7s; animation-delay: -5s; }
  .titre-suite { animation: hf-balaye 0.75s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

  html.js-anime .apparait {
    opacity: 0; transform: translateY(48px) scale(0.96);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delai, 0s);
  }
  html.js-anime .apparait.vu { opacity: 1; transform: none; }
  html.js-anime .titre.apparait .t1 { background-size: 0 38%; transition: background-size 0.8s 0.25s ease-out; }
  html.js-anime .titre.apparait.vu .t1 { background-size: 100% 38%; }
  html.js-anime .titre.apparait::after { width: 0; transition: width 0.6s 0.45s ease-out; }
  html.js-anime .titre.apparait.vu::after { width: 3rem; }

  .carte { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .carte:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.5); }
  .photo-cadre img { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .photo-cadre:hover img { transform: translate(10px, 10px) rotate(1.2deg); }
  .photo-cadre::before { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .photo-cadre:hover::before { transform: translate(-6px, -6px); }
  .pastille { transition: transform 0.2s ease; }
  .pastille:hover { transform: scale(1.06); }
}

/* ---------- 7 ter. Le chemin qui s'éclaircit (.revelation) ----------
   Cinq étapes, des bulles de plus en plus grandes reliées par un fil, puis trois jauges.
   Sans JavaScript, ou si le lecteur a réduit les animations : tout est affiché, net et en couleur (--p vaut 1).
   Avec anime.js : --p suit le défilement de 0 à 1 ; les étapes pas encore atteintes (classes e1 à e5 absentes)
   restent grises et floues, puis s'allument une à une ; le fil et les jauges avancent. */
.revelation { --p: 1; margin: 0; display: flex; flex-direction: column; gap: 1.75rem; }
.r-etapes { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.25rem; }
.r-etapes::before, .r-etapes::after { content: ""; position: absolute; z-index: 0; }
.r-etape { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; transition: filter 0.6s ease, opacity 0.6s ease; }
.r-etape strong { font-family: var(--police-titre); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.r-etape .r-detail { color: var(--texte-2); font-size: 0.9375rem; }
.r-bulle {
  position: relative; flex: 0 0 auto; display: grid; place-items: center;
  width: var(--taille); height: var(--taille); border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 6px var(--blanc);
  transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.5s ease;
}
.r1 { --taille: 2.5rem; } .r2 { --taille: 3rem; } .r3 { --taille: 3.5rem; } .r4 { --taille: 4rem; } .r5 { --taille: 5rem; }
.r-fin strong { font-size: 1.5rem; }
.r-etoile { width: 55%; height: 55%; fill: var(--encre); transition: transform 0.6s 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
/* Téléphone : les étapes en colonne, le fil vertical à gauche */
@media (max-width: 799px) {
  .r-etape { display: grid; grid-template-columns: 5rem minmax(0, 1fr); column-gap: 0.75rem; align-items: center; }
  .r-etape .r-bulle { grid-row: 1 / span 2; justify-self: center; }
  .r-etapes::before, .r-etapes::after { left: calc(2.5rem - 2px); width: 4px; top: 1rem; }
  .r-etapes::before { bottom: 2rem; background: var(--fond); }
  .r-etapes::after { height: calc(var(--p) * (100% - 3rem)); background: var(--encre); }
}
/* Ordinateur : les étapes en ligne, les bulles alignées en bas, le fil horizontal */
@media (min-width: 800px) {
  .r-etapes { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
  .r-etape { display: grid; grid-template-rows: 5.5rem auto auto; justify-items: start; row-gap: 0.15rem; }
  .r-etape .r-bulle { align-self: center; }
  .r-etapes::before, .r-etapes::after { height: 4px; top: calc(2.75rem - 2px); left: 1.25rem; }
  /* Le fil va du centre de la 1re bulle au centre de la 5e (5 colonnes, 4 espaces de 1,25rem) */
  .r-etapes::before { right: calc(20% - 3.5rem); background: var(--fond); }
  .r-etapes::after { width: calc(var(--p) * (80% + 2.25rem)); background: var(--encre); }
}
.r-jauges { list-style: none; margin: 0; padding: 1.25rem 1.5rem; display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); background: var(--fond); }
.r-jauges li { display: flex; flex-direction: column; gap: 0.4rem; }
.r-jauges strong { font-family: var(--police-titre); font-size: 1.0625rem; font-weight: 700; }
.r-barre { height: 16px; background: var(--blanc); overflow: hidden; }
.r-barre i { display: block; height: 100%; background: var(--c); }
.r-clarte i { width: calc(clamp(0, var(--p) / 0.7, 1) * 100%); }
.r-confiance i { width: calc(clamp(0, (var(--p) - 0.2) / 0.7, 1) * 100%); }
.r-plan i { width: calc(clamp(0, (var(--p) - 0.55) / 0.45, 1) * 100%); }
.revelation figcaption { font-size: 0.875rem; color: var(--texte-2); }
/* Avec anime.js : une étape pas encore atteinte est grise, petite et floue */
html.js-anime .revelation:not(.e1) .r1, html.js-anime .revelation:not(.e2) .r2, html.js-anime .revelation:not(.e3) .r3,
html.js-anime .revelation:not(.e4) .r4, html.js-anime .revelation:not(.e5) .r5 { filter: blur(3px) grayscale(1); opacity: 0.55; }
html.js-anime .revelation:not(.e1) .r1 .r-bulle, html.js-anime .revelation:not(.e2) .r2 .r-bulle, html.js-anime .revelation:not(.e3) .r3 .r-bulle,
html.js-anime .revelation:not(.e4) .r4 .r-bulle, html.js-anime .revelation:not(.e5) .r5 .r-bulle { transform: scale(0.6); }
html.js-anime .revelation:not(.e5) .r-etoile { transform: scale(0); }
@keyframes r-pouls { 0% { box-shadow: 0 0 0 6px var(--blanc), 0 0 0 6px rgba(223, 220, 0, 0.7); } 100% { box-shadow: 0 0 0 6px var(--blanc), 0 0 0 26px rgba(223, 220, 0, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .revelation.e5 .r5 .r-bulle { animation: r-pouls 2s ease-out infinite; }
}
@media print {
  .revelation { --p: 1; }
  html.js-anime .revelation .r-etape { filter: none !important; opacity: 1 !important; }
  html.js-anime .revelation .r-bulle, html.js-anime .revelation .r-etoile { transform: none !important; }
}

/* ---------- 8. Préférences de l'appareil ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .bouton, .bouton-contour { border-color: ButtonText; box-shadow: none; }
  .notice:not(:empty), .encadre, .bandeau-demo { border: 1px solid CanvasText; }
}

/* ---------- 9. Impression ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  html { scroll-padding-top: 0; }
  body { display: block; background: #FFFFFF; color: #000000; font-size: 10.5pt; line-height: 1.4; }
  .page { max-width: none; padding-inline: 0; }
  main.page { padding-block: 0.5rem 0; }
  .lien-evitement, .bouton, .bouton-contour, .notice, .masque-impression, .bulles,
  [data-demo], [data-copy] { display: none !important; }
  .seul-impression { display: block; }
  html.js-anime .apparait { opacity: 1 !important; transform: none !important; }
  .titre-suite { animation: none; }
  .en-tete { border-bottom: 1px solid #000000; box-shadow: none; }
  .logo { height: 48px; }
  .bandeau-demo { position: static; background: none; color: #000000; border: 1px solid #000000; }
  .bande, .bande-grise, .bande-couleur { background: none; clip-path: none; border-radius: 0; padding-block: 0.4rem; overflow: visible; }
  .carte, .encadre, .phase, .tableau-roule { border-color: #888888; background: none; box-shadow: none; }
  .carte, .encadre, .encadre-qualiopi, .phase, .ligne, tr, img { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .pile-large { gap: 1rem; }
  .grille { gap: 0.5rem; }
  .pied { border-top: 1px solid #888888; }
  a { color: #000000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  a.lien-logo::after { content: none; }
  .tableau-roule { overflow: visible; }
  .tableau-roule table { min-width: 0; }
}

/* ---------- 7 quater. Touches humaines communes ---------- */
/* Trait à la main : un tracé SVG qui se dessine quand son bloc apparaît (ou tout de suite sans anime.js) */
.griffe { overflow: visible; pointer-events: none; }
.griffe path { fill: none; stroke: var(--encre); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* Le chemin : une personne avance le long du fil (position = --p). Sans anime.js elle est à l'arrivée, donc cachée. */
.r-piste { position: relative; }
.r-marcheur {
  position: absolute; z-index: 2; width: 2rem; height: 2rem; border-radius: 50%; background: var(--encre);
  display: grid; place-items: center; box-shadow: 0 0 0 4px var(--blanc);
  opacity: 0; transition: opacity 0.4s ease;
}
.r-marcheur svg { width: 62%; height: 62%; fill: var(--blanc); }
html.js-anime .revelation.e1:not(.e5) .r-marcheur { opacity: 1; }
@media (max-width: 799px) { .r-marcheur { left: calc(2.5rem - 1rem); top: calc(1rem + var(--p) * (100% - 3rem) - 1rem); } }
@media (min-width: 800px) { .r-marcheur { top: calc(2.75rem - 1rem); left: calc(1.25rem + var(--p) * (80% + 2.25rem) - 1rem); } }
/* Visage dessiné au trait, dans une bulle */
.visage { width: 82%; height: 82%; }
.visage .v-plein { fill: var(--encre); }
.visage .v-trait { fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; }
@media print { .r-marcheur, .griffe { display: none; } }

/* Sur une bande de couleur, le soulignement des liens passe en gris foncé (le turquoise ne se verrait pas) */
.bande-couleur a, .c-appel a, .a-contact-bande h2 a { text-decoration-color: var(--encre); }
