/* =========================================================
   AZURIQ – feuille de style (version blanche)
   Sommaire : 1. Polices  2. Couleurs et réglages  3. Bases
              4. Boutons  5. Menu et logo  6. Accroche  7. Bande défilante
              8. Sections  9. Diagnostic par métier  10. Blocs et étapes
              11. Pourquoi AZURIQ  12. Offre de lancement  13. Contact
              14. Pied de page  15. Pages légales  15 bis. Cartes, listes et pages intérieures
              16. Animations
   ========================================================= */

/* ---------- 1. Polices (rangées dans assets/fonts, aucun appel extérieur) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- 2. Couleurs et réglages : tout se change ici ---------- */
:root {
  /* Fonds : le blanc de la page, puis des gris très clairs */
  --fond:   #ffffff;
  --fond-2: #f7f8fa;
  --fond-3: #f0f2f5;
  --fond-4: #e8ebef;

  /* Filets (les traits fins qui structurent la page) */
  --trait:        #e5e8ec;
  --trait-fort:   #d0d5db;
  --trait-grille: rgba(11, 18, 32, .055);
  --croix:        #a9b0ba;
  --bord-champ:   #878d96;

  /* Textes : noir, gris foncé, gris */
  --texte:   #0b0d12;
  --texte-2: #454b55;
  --texte-3: #626872;

  /* LA couleur de la marque. Changez cette seule ligne pour changer tout l'accent. */
  --accent: #0b5cff;
  --accent-fonce: color-mix(in srgb, var(--accent) 80%, #000);
  --accent-doux:  color-mix(in srgb, var(--accent) 7%, #fff);
  --accent-trait: color-mix(in srgb, var(--accent) 42%, #fff);

  --alerte-texte: #7a4d00; --alerte-fond: #fff5d6; --alerte-trait: #d9a300;   /* les mentions [À COMPLÉTER] */
  --erreur: #b42318; --erreur-fond: #fef3f2; --erreur-trait: #f1aaa3;

  --police-titre: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-texte: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --ombre-petite: 0 1px 2px rgba(11, 18, 32, .06);
  --ombre: 0 1px 2px rgba(11, 18, 32, .05), 0 24px 48px -24px rgba(11, 18, 32, .2);

  --large: 1200px;
  --rayon: 14px;
  --courbe: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- 3. Bases ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--fond); }

body {
  margin: 0;
  font-family: var(--police-texte); font-size: 1rem; line-height: 1.6;
  color: var(--texte-2); background: var(--fond);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0; font-family: var(--police-titre); font-weight: 600; line-height: 1.1;
  letter-spacing: -.03em; color: var(--texte); text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 4.2vw, 2.625rem); line-height: 1.06; letter-spacing: -.04em; }
h3 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.015em; }
p  { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
sup { line-height: 0; }
strong { font-weight: 600; color: var(--texte); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

a { color: var(--accent-fonce); text-decoration-color: var(--accent-trait); text-underline-offset: .2em; transition: text-decoration-color .2s, color .2s; }
a:hover { text-decoration-color: currentColor; }

::selection { color: var(--texte); background: color-mix(in srgb, var(--accent) 22%, #fff); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.conteneur { position: relative; width: min(100% - 40px, var(--large)); margin-inline: auto; }
@media (min-width: 760px) { .conteneur { padding-inline: clamp(28px, 4vw, 56px); } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.lien-evitement {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 8px;
  background: var(--texte); color: #fff; font-weight: 500;
}
.lien-evitement:focus { top: 12px; }

.icone {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
/* Le carré qui porte chaque pictogramme */
.pastille {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px color-mix(in srgb, var(--accent) 45%, transparent), 0 8px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.pastille .icone { width: 22px; height: 22px; stroke-width: 1.9; }

/* Les petites étiquettes en lettres techniques */
.surtitre, .etiquette {
  font-family: var(--police-mono); font-size: .75rem; font-weight: 500; line-height: 1.6;
  letter-spacing: .08em; text-transform: uppercase; color: var(--texte-2); text-wrap: balance;
}
.surtitre::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 1px;
  background: var(--accent); transform: translateY(-1px);
}
.etiquette { padding: 2px 8px; font-size: .6875rem; color: var(--accent-fonce); background: var(--accent-doux); border: 1px solid var(--accent-trait); border-radius: 5px; }

/* Les informations à remplir : volontairement très visibles */
.a-completer {
  display: inline-block; padding: .05em .5em;
  font-family: var(--police-mono); font-size: .8125em; font-weight: 500;
  color: var(--alerte-texte); background: var(--alerte-fond);
  border: 1px dashed var(--alerte-trait); border-radius: 5px;
}

/* ---------- 4. Boutons ---------- */
.bouton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.25em;
  font-family: var(--police-texte); font-size: .9688rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em;
  text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--courbe);
}
.bouton .icone { width: 16px; height: 16px; stroke-width: 2; transition: transform .25s var(--courbe); }
.bouton:hover .icone { transform: translateX(3px); }
.bouton:active { transform: scale(.985); }

.bouton-principal {
  color: #fff; background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px color-mix(in srgb, var(--accent) 40%, transparent);
}
.bouton-principal:hover { color: #fff; background: var(--accent-fonce); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

.bouton-verre, .bouton-secondaire { color: var(--texte); background: #fff; border-color: var(--trait-fort); box-shadow: var(--ombre-petite); }
.bouton-verre:hover, .bouton-secondaire:hover { color: var(--texte); background: var(--fond-2); border-color: #b4bac3; }

.bouton-clair { color: var(--accent-fonce); background: #fff; }   /* sur fond bleu */
.bouton-clair:hover { color: var(--accent-fonce); background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .28); }

.bouton-compact { min-height: 38px; padding: .4em .95em; font-size: .875rem; border-radius: 8px; white-space: nowrap; }
.bouton-large { width: 100%; }
.bouton[disabled] { opacity: .6; cursor: progress; transform: none; }
.bouton[hidden] { display: none; }

/* ---------- 5. Menu et logo ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--trait);
}
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

/* Le trait qui avance en haut de l'écran quand on descend dans la page */
.defilement {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
  transform: scaleX(var(--defile, 0)); transform-origin: left;
}

/* Le logo : le logotype AZURIQ, rangé dans assets/logo.svg */
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--texte); }
.logo:hover { color: var(--texte); }
.logo-image { display: block; width: auto; height: 22px; }
.logo-slogan { display: none; font-size: .8125rem; line-height: 1.2; color: var(--texte-3); }

.menu-bouton {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--texte); background: #fff; border: 1px solid var(--trait-fort); border-radius: 10px; cursor: pointer; box-shadow: var(--ombre-petite);
}
.menu-barres { position: relative; display: block; width: 18px; height: 12px; }
.menu-barres span {
  position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform .25s var(--courbe), opacity .2s, top .25s var(--courbe);
}
.menu-barres span:nth-child(1) { top: 0; }
.menu-barres span:nth-child(2) { top: 5px; }
.menu-barres span:nth-child(3) { top: 10px; }
.menu-bouton[aria-expanded="true"] .menu-barres span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-barres span:nth-child(2) { opacity: 0; }
.menu-bouton[aria-expanded="true"] .menu-barres span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  display: none; flex-direction: column; gap: 2px; padding: 6px 20px 20px;
  background: #fff; border-bottom: 1px solid var(--trait); box-shadow: 0 24px 32px -24px rgba(11, 18, 32, .25);
}
.menu.est-ouvert { display: flex; animation: descend .25s var(--courbe); }
.menu-lien { padding: 14px 0; font-size: .9688rem; font-weight: 500; color: var(--texte-2); text-decoration: none; border-bottom: 1px solid var(--trait); transition: color .2s; }
.menu-lien:hover, .menu-lien.est-courant, .menu-lien[aria-current="page"] { color: var(--texte); }
.menu .bouton { margin-top: 14px; min-height: 48px; }

@media (min-width: 860px) {
  .logo-slogan { display: block; padding-left: 14px; border-left: 1px solid var(--trait-fort); }
  .menu-bouton { display: none; }
  .menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; border: 0; box-shadow: none; }
  .menu.est-ouvert { animation: none; }
  .menu-lien { padding: 8px 0; font-size: .875rem; border: 0; }
  .menu-lien[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
  .menu .bouton { margin-top: 0; min-height: 38px; }
}

/* ---------- 6. Accroche ---------- */
.accroche { position: relative; isolation: isolate; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.accroche-fond { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.accroche-fond::before {   /* une lumière bleue très légère qui vient du haut */
  content: ""; position: absolute; left: 50%; top: -360px; width: min(1200px, 170vw); height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 13%, transparent), transparent);
}
.trame {   /* le quadrillage, qui s'efface vers le bas */
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--trait-grille) 1px, transparent 1px),
    linear-gradient(90deg, var(--trait-grille) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 64% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 64% at 50% 0%, #000 30%, transparent 100%);
}
.faisceau {   /* un trait bleu qui descend le long d'une ligne du quadrillage */
  position: absolute; top: -180px; left: calc(50% - 32px + var(--n, 0) * 64px); width: 1px; height: 180px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  opacity: 0;
}

.accroche-texte { display: flex; flex-direction: column; align-items: center; text-align: center; }
.accroche h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 7.2vw, 4.75rem); font-weight: 600; line-height: 1; letter-spacing: -.05em;
}
.h1-ligne { display: block; padding-bottom: .08em; color: var(--accent); }
.accroche-chapo { margin-top: 24px; max-width: 37em; font-size: clamp(1.0625rem, 2vw, 1.1875rem); line-height: 1.6; }

.accroche-boutons { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 520px) { .accroche-boutons { width: 100%; } .accroche-boutons .bouton { width: 100%; } }

/* La ligne « console » qui s'écrit toute seule */
.console-ligne {
  margin-top: 28px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0 .6em;
  width: min(100%, 300px); min-height: 58px; padding: 6px 14px;
  font-family: var(--police-mono); font-size: .8125rem; line-height: 1.6; color: var(--texte);
  background: #fff; border: 1px solid var(--trait); border-radius: 8px; box-shadow: var(--ombre-petite);
}
.console-invite { color: var(--texte-3); }
.console-invite::before { content: "›"; margin-right: .6em; font-weight: 700; color: var(--accent); }
.curseur { display: inline-block; width: .5em; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--accent); }
@media (min-width: 521px) { .console-ligne { flex-direction: row; width: auto; min-width: 27em; max-width: 100%; min-height: 36px; } }

/* Le panneau des exemples : des onglets, puis 4 étapes qui s'exécutent l'une après l'autre */
.flux {
  position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 72px); text-align: left;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.flux::before {   /* un reflet bleu qui parcourt le bord supérieur */
  content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 22%; height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.flux-barre { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 8px 8px 16px; background: var(--fond-2); border-bottom: 1px solid var(--trait); }
.flux-titre { flex: none; display: flex; align-items: center; font-size: .9375rem; }
/* Sur téléphone, l'étiquette « Exemples » laisse sa place aux onglets (elle reste lue par les lecteurs d'écran) */
@media (max-width: 520px) {
  .flux.a-onglets .flux-barre { padding-left: 8px; }
  .flux.a-onglets .flux-titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Les onglets, fabriqués par le script */
.flux-onglets {
  position: relative; flex: 1; min-width: 0; display: flex; gap: 4px; padding: 3px 24px 3px 3px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.flux-onglets::-webkit-scrollbar { display: none; }
.flux-onglets[hidden] { display: none; }
.flux-onglet {
  flex: none; min-height: 38px; padding: 6px 12px; white-space: nowrap;
  font-family: var(--police-texte); font-size: .875rem; font-weight: 500; color: var(--texte-2);
  background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.flux-onglet:hover { color: var(--texte); background: var(--fond-3); }
.flux-onglet[aria-selected="true"] { color: var(--accent-fonce); background: #fff; border-color: var(--trait-fort); box-shadow: var(--ombre-petite); }
.flux-onglet:focus-visible { outline-offset: -2px; }

.flux-bouton {
  flex: none; margin-left: auto; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  color: var(--texte-2); background: #fff; border: 1px solid var(--trait-fort); border-radius: 8px; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.flux-bouton:hover { color: var(--texte); border-color: #b4bac3; background: var(--fond-2); }
.flux-bouton .icone { width: 15px; height: 15px; stroke-width: 2; }
.flux-bouton[hidden] { display: none; }

/* Sans le script, les exemples s'affichent l'un sous l'autre avec leur titre.
   Avec le script, ils sont empilés au même endroit : la hauteur du panneau ne bouge pas quand on change d'exemple. */
.exemple-titre { padding: 14px 16px; font-size: 1rem; background: var(--fond-2); border-bottom: 1px solid var(--trait); }
.exemple + .exemple { border-top: 1px solid var(--trait); }
.flux.a-onglets .flux-exemples { display: grid; }
.flux.a-onglets .exemple { grid-area: 1 / 1; min-width: 0; border-top: 0; transition: opacity .35s, visibility .35s; }
.flux.a-onglets .exemple-titre { display: none; }
.exemple.est-cache { visibility: hidden; opacity: 0; }

.flux-etapes { display: grid; height: 100%; counter-reset: etape; }
.noeud {
  position: relative; counter-increment: etape;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 16px;
  transition: background-color .4s;
}
.noeud + .noeud { border-top: 1px solid var(--trait); }
.noeud::after {   /* le trait qui se remplit pendant que l'étape s'exécute */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
}
/* Le pictogramme de l'étape : même carré bleu que partout ailleurs sur le site */
.noeud-icone {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px color-mix(in srgb, var(--accent) 45%, transparent), 0 8px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: filter .4s, opacity .4s, transform .4s var(--courbe);
}
.noeud-icone .icone { width: 22px; height: 22px; stroke-width: 1.9; }
.noeud-icone::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1.5px solid var(--accent); opacity: 0; pointer-events: none;
}
.noeud-etat {
  display: flex; gap: .8em;
  font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; line-height: 1.6;
  letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); transition: color .4s;
}
.noeud-etat::before { content: counter(etape, decimal-leading-zero); color: var(--texte); }
.noeud-texte { margin-top: 4px; font-size: .9375rem; line-height: 1.5; }

/* Les petits aperçus sous chaque étape : notification, message, ligne de tableau, boutons, courbe… */
.noeud-apercu { margin-top: 12px; transition: opacity .5s, transform .5s var(--courbe); }
.noeud-apercu > span { max-width: 100%; }
.ap-notif, .ap-mail, .ap-jauge, .ap-barres, .ap-etoiles, .ligne-tableau {
  padding: 8px 10px; border-radius: 9px; font-size: .8125rem; line-height: 1.35; color: var(--texte);
  background: var(--fond-2); border: 1px solid var(--trait);
}
.bulle-sms {
  display: inline-block; padding: 8px 12px; border-radius: 12px 12px 12px 3px;
  font-size: .8125rem; line-height: 1.4; color: var(--texte); background: #fff; border: 1px solid var(--trait-fort); box-shadow: var(--ombre-petite);
}
.bulle-sms u { color: var(--accent-fonce); text-underline-offset: .2em; }
.ligne-tableau { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-family: var(--police-mono); font-size: .75rem; }
.ligne-tableau i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ligne-tableau b { margin-left: auto; padding: 1px 7px; border-radius: 5px; font-weight: 500; color: var(--accent-fonce); border: 1px solid var(--accent-trait); background: var(--accent-doux); }
.ap-notif { display: flex; align-items: center; gap: 10px; }
.ap-notif .icone { width: 30px; height: 30px; padding: 7px; border-radius: 8px; color: var(--accent-fonce); background: var(--accent-doux); stroke-width: 2.2; }
.ap-notif span { display: grid; }
.ap-notif b { font-weight: 600; }
.ap-notif i { font-style: normal; font-size: .75rem; color: var(--texte-3); }
.ap-boutons { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-boutons b, .ap-boutons i { padding: 6px 12px; border-radius: 8px; font-size: .8125rem; font-weight: 500; font-style: normal; line-height: 1.35; }
.ap-boutons b { color: #fff; background: var(--accent); box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.ap-boutons i { color: var(--texte-2); background: #fff; border: 1px solid var(--trait-fort); }
.ap-mail { display: grid; gap: 6px; }
.ap-mail b { font-weight: 600; }
.ap-mail i { display: block; height: 3px; border-radius: 2px; background: var(--trait-fort); }
.ap-mail i:last-child { width: 62%; }
.ap-etoiles { display: inline-flex; gap: 3px; }
.ap-etoiles .icone { width: 17px; height: 17px; fill: #f5a700; stroke: #f5a700; stroke-width: 1.5; }
.ap-jauge { display: grid; gap: 7px; }
.ap-jauge b { display: flex; justify-content: space-between; font-weight: 600; }
.ap-jauge em { font-family: var(--police-mono); font-size: .6875rem; font-style: normal; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-fonce); }
.ap-jauge > span { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--fond-4); }
.ap-jauge span i { display: block; width: 16%; height: 100%; border-radius: inherit; background: var(--accent); }
.ap-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-puces i { padding: 5px 10px; border-radius: 999px; font-family: var(--police-mono); font-size: .75rem; font-style: normal; color: var(--accent-fonce); background: var(--accent-doux); border: 1px solid var(--accent-trait); }
.ap-barres { display: flex; align-items: flex-end; gap: 5px; height: 52px; }
.ap-barres i { flex: 1; height: var(--h, 50%); border-radius: 2px 2px 0 0; background: var(--accent-trait); transform-origin: bottom; }
.ap-barres i:last-child { background: var(--accent); }

@media (min-width: 900px) {
  .flux-etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .noeud { display: block; padding: 24px 22px 28px; }
  .noeud + .noeud { border-top: 0; border-left: 1px solid var(--trait); }
  .noeud > div { margin-top: 18px; }
  .noeud::after { left: 0; right: 0; top: -1px; bottom: auto; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .noeud + .noeud::after { left: -1px; }
}

/* Ces états ne s'appliquent que lorsque l'animation tourne */
.flux.est-animee .noeud-apercu { opacity: 0; transform: translateY(8px); }
.flux.est-animee .noeud.est-active .noeud-apercu, .flux.est-animee .noeud.est-faite .noeud-apercu { opacity: 1; transform: none; }
.flux.est-animee .noeud:not(.est-active):not(.est-faite) .noeud-icone { filter: grayscale(1); opacity: .45; }
.flux.est-animee .noeud.est-active { background: var(--accent-doux); }
.flux.est-animee .noeud.est-active .noeud-icone { transform: scale(1.06); }
.flux.est-animee .noeud.est-active .noeud-etat { color: var(--texte); }
.flux.est-animee .noeud.est-active .noeud-etat::before { color: var(--accent-fonce); }
.flux.est-animee .noeud.est-faite::after { transform: none; }
.flux.est-animee .noeud.est-active::after { animation: remplit-y 2.6s linear forwards; }
.flux.est-animee .noeud.est-active:last-child::after { animation-duration: 4.2s; }
@media (min-width: 900px) { .flux.est-animee .noeud.est-active::after { animation-name: remplit-x; } }
.flux.est-animee.est-en-pause .noeud.est-active::after { animation: none; transform: none; }
.flux.est-animee:not(.est-en-pause) .noeud.est-active .noeud-icone::after { animation: onde 1.6s ease-out infinite; }
/* Les aperçus s'animent à leur tour quand leur étape démarre */
.flux.est-animee .noeud.est-active .ap-barres i { animation: pousse .7s var(--courbe) backwards; animation-delay: calc(var(--b, 0) * 70ms + .25s); }
.flux.est-animee .noeud.est-active .ap-jauge span i { animation: vide 1.4s .35s var(--courbe) backwards; }
.flux.est-animee .noeud.est-active .ap-etoiles .icone { animation: pop .35s var(--courbe) backwards; animation-delay: calc(var(--b, 0) * 90ms + .25s); }
.flux.est-animee .noeud.est-active .ap-puces i { animation: pop .35s var(--courbe) backwards; animation-delay: calc(var(--b, 0) * 120ms + .25s); }

/* ---------- 7. Bande défilante ---------- */
.bande { position: relative; padding-block: 15px; border-block: 1px solid var(--trait); }
.bande-fenetre { overflow: hidden; }
.bande-piste { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; padding-inline: 20px; }
.bande-piste li {
  flex: none; display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--police-mono); font-size: .75rem; line-height: 1.6; letter-spacing: .07em; text-transform: uppercase; color: var(--texte-3);
}
.bande-piste li::after { content: "/"; margin-inline: 18px; color: var(--trait-fort); }
.bande.defile .bande-fenetre {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.bande.defile .bande-piste { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; gap: 0; }

/* ---------- 8. Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--trait); }
.bande + .section { border-top: 0; }
.section-grise { background: var(--fond-2); }   /* une section sur deux est légèrement grisée */
.section-suite { margin-top: clamp(24px, 3vw, 36px); }
.section-entete { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-entete h2, .surtitre + h2 { margin-top: 14px; }
.chapo { margin-top: 14px; font-size: 1.0625rem; }

/* Les deux filets verticaux qui encadrent toute la page, et les petites croix aux intersections */
.pied { position: relative; }
@media (min-width: 760px) {
  .accroche::before, .page-tete::before, .bande::before, .section::before, .pied::before {
    content: ""; position: absolute; inset-block: 0; left: 50%; width: min(100% - 40px, var(--large));
    transform: translateX(-50%); border-inline: 1px solid var(--trait); pointer-events: none;
  }
  .section::after, .pied::after {
    content: ""; position: absolute; top: -6px; left: 50%; width: calc(min(100% - 40px, var(--large)) + 10px); height: 11px;
    transform: translateX(-50%); pointer-events: none;
    background:
      linear-gradient(var(--croix), var(--croix)) left center / 11px 1px no-repeat,
      linear-gradient(var(--croix), var(--croix)) 5px center / 1px 11px no-repeat,
      linear-gradient(var(--croix), var(--croix)) right center / 11px 1px no-repeat,
      linear-gradient(var(--croix), var(--croix)) calc(100% - 5px) center / 1px 11px no-repeat;
  }
}

/* ---------- 9. Diagnostic par métier ---------- */
/* a) Sans JavaScript : de simples cartes */
.metiers { display: grid; gap: 12px; }
.metiers[hidden] { display: none; }
.metier { padding: 20px; background: #fff; border: 1px solid var(--trait); border-radius: 12px; box-shadow: var(--ombre-petite); }
.metier-titre { display: flex; align-items: center; gap: 12px; }
.metier-points { margin-top: 14px; display: grid; gap: 8px; font-size: .9375rem; }
.metier-points li { position: relative; padding-left: 18px; }
.metier-points li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }
.metier-autre { border-style: dashed; border-color: var(--trait-fort); box-shadow: none; }
.metier-autre-texte { margin-block: 12px 16px; font-size: .9375rem; }
@media (min-width: 700px)  { .metiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .metiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* b) Avec JavaScript : le diagnostic en 5 étapes */
.diag {
  position: relative; overflow: hidden; scroll-margin-top: 84px;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.diag-tete { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; background: var(--fond-2); border-bottom: 1px solid var(--trait); }
.diag-voyant { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.diag-nom { font-family: var(--police-mono); font-size: .75rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--texte-2); white-space: nowrap; }
.diag-compteur { margin-left: auto; font-family: var(--police-mono); font-size: .75rem; color: var(--texte-3); white-space: nowrap; }
.diag-compteur b { font-weight: 600; color: var(--texte); }
.diag-barre { position: relative; z-index: 1; height: 2px; margin-top: -1px; }
.diag-barre span {
  display: block; height: 100%; background: var(--accent);
  transform: scaleX(var(--p, .2)); transform-origin: left; transition: transform .6s var(--courbe);
}

.diag-fil { display: none; }
@media (min-width: 760px) {
  .diag-fil { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--fond-2); border-bottom: 1px solid var(--trait); }
  .diag-fil li {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    font-family: var(--police-mono); font-size: .75rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
    color: var(--texte-3); transition: color .3s, background-color .3s;
  }
  .diag-fil li + li { border-left: 1px solid var(--trait); }
  .diag-fil li::before { content: "0" attr(data-rang); transition: color .3s; }
  .diag-fil li.est-faite { color: var(--texte-2); }
  .diag-fil li.est-faite::before { color: var(--accent-fonce); }
  .diag-fil li.est-courante { color: var(--texte); background: #fff; }
  .diag-fil li.est-courante::before { color: var(--accent-fonce); }
}

.diag-corps { display: grid; }
.diag-form { min-width: 0; padding: clamp(20px, 3.4vw, 36px); }
.diag-etape { display: none; }
.diag-etape.est-active { display: block; animation: entre-droite .4s var(--courbe); }
.diag[data-sens="retour"] .diag-etape.est-active { animation-name: entre-gauche; }

.diag-question { font-size: clamp(1.375rem, 3.4vw, 1.75rem); line-height: 1.15; letter-spacing: -.035em; }
.diag-question:focus { outline: none; }
.diag-aide { margin-top: 8px; font-size: .9688rem; }
.diag-groupe { margin-top: 26px; }
.diag-groupe legend {
  padding: 0; margin-bottom: 10px;
  font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3);
}
.diag-erreur, .diag-etat {
  margin-top: 14px; padding: 10px 14px; border-radius: 9px; font-size: .9375rem; font-weight: 500;
  color: var(--erreur); background: var(--erreur-fond); border: 1px solid var(--erreur-trait);
}
.diag-erreur[hidden], .diag-etat[hidden] { display: none; }

/* Les tuiles « métier » */
.tuiles { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tuile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px;
  min-height: 116px; padding: 14px;
  font-size: .9375rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--texte);
  background: #fff; border: 1px solid var(--trait-fort); border-radius: 12px; cursor: pointer; box-shadow: var(--ombre-petite);
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--courbe);
}
.tuile::after, .raison::after {   /* lueur discrète qui suit le doigt ou la souris */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
}
.tuile:hover { border-color: var(--accent-trait); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(11, 18, 32, .3); }
.tuile:hover::after, .raison:hover::after { opacity: 1; }
.tuile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tuile:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tuile.est-choisie { background: var(--accent-doux); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tuile-autre { border-style: dashed; box-shadow: none; }
.tuile-autre .pastille, .metier-autre .pastille { color: var(--texte-2); background: var(--fond-3); box-shadow: inset 0 0 0 1px var(--trait-fort); }
@media (min-width: 620px) { .tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Les réponses à cocher */
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puces-larges { display: grid; gap: 8px; }
@media (min-width: 700px) { .puces-larges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.puce {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 9px 14px;
  font-size: .9375rem; line-height: 1.3; color: var(--texte);
  background: #fff; border: 1px solid var(--trait-fort); border-radius: 10px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.puce:hover { border-color: #aeb5bf; background: var(--fond-2); }
.puce input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.puce-coche {
  flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px;
  background: #fff; border: 1px solid var(--bord-champ); transition: background-color .2s, border-color .2s;
}
.puce input[type="radio"] + .puce-coche { border-radius: 50%; }
.puce-coche svg {
  width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .25s .05s ease-out;
}
.puce input:checked + .puce-coche { background: var(--accent); border-color: var(--accent); }
.puce input:checked + .puce-coche svg { stroke-dashoffset: 0; }
.puce input:focus-visible + .puce-coche { outline: 2px solid var(--accent); outline-offset: 3px; }
.puce.est-cochee { background: var(--accent-doux); border-color: var(--accent); }
.puce-badge {
  margin-left: auto; flex: none; padding: 1px 7px; border-radius: 5px;
  font-family: var(--police-mono); font-size: .6563rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--texte-2); background: var(--fond-2); border: 1px solid var(--trait-fort);
}
@media (max-width: 520px) { .puce-badge { display: none; } }   /* sur téléphone, le titre « Les plus demandés » suffit */
.diag-etape.est-active .puce, .diag-etape.est-active .tuile { animation: monte .4s var(--courbe) backwards; animation-delay: calc(var(--k, 0) * 24ms + 40ms); }

/* Champs de saisie (diagnostic et formulaire de contact) */
.champ, .champ-nuit { display: grid; gap: 7px; }
.champ-nuit { margin-top: 18px; }
.champ-nuit[hidden] { display: none; }
.champ label, .champ-nuit label { font-size: .875rem; font-weight: 600; color: var(--texte); }
.facultatif { font-weight: 400; color: var(--texte-3); }
.champ input, .champ select, .champ textarea, .champ-nuit input, .champ-nuit textarea {
  width: 100%; min-height: 46px; padding: 10px 13px;
  font: inherit; font-size: 1rem; color: var(--texte);
  background-color: #fff; border: 1px solid var(--bord-champ); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.champ textarea, .champ-nuit textarea { min-height: 108px; resize: vertical; }
.champ select {
  -webkit-appearance: none; appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23454b55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 18px;
}
.champ input::placeholder, .champ textarea::placeholder, .champ-nuit input::placeholder, .champ-nuit textarea::placeholder { color: var(--texte-3); }
.champ input:hover, .champ select:hover, .champ textarea:hover, .champ-nuit input:hover, .champ-nuit textarea:hover { border-color: #5a606a; }
.champ input:focus, .champ select:focus, .champ textarea:focus, .champ-nuit input:focus, .champ-nuit textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.champs-deux { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .champs-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.diag-resume {
  margin-top: 18px; padding: 10px 13px; border-radius: 9px;
  font-family: var(--police-mono); font-size: .8125rem; line-height: 1.6; color: var(--texte);
  background: var(--fond-2); border: 1px solid var(--trait);
}
.diag-mention, .formulaire-mention { font-size: .8125rem; line-height: 1.55; color: var(--texte-3); }
.diag-mention { margin-top: 16px; }
.diag-mention a, .formulaire-mention a { color: var(--texte-2); text-decoration-color: var(--trait-fort); }

.diag-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--trait); }
.diag-nav .bouton-principal { margin-left: auto; }
.diag-nav .bouton .fleche-retour { transform: rotate(180deg); }
.diag-nav .bouton:hover .fleche-retour { transform: rotate(180deg) translateX(3px); }

/* La fiche qui se remplit en direct */
.fiche { display: none; }
@media (min-width: 1000px) {
  .diag-corps { grid-template-columns: minmax(0, 1fr) 300px; }
  .fiche { display: block; padding: 28px 22px; font-size: .875rem; line-height: 1.5; color: var(--texte); background: var(--fond-2); border-left: 1px solid var(--trait); }
}
.fiche-titre {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2);
}
.fiche-titre::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fiche dl { margin: 18px 0 0; }
.fiche dl > div { padding-block: 12px; border-top: 1px solid var(--trait); }
.fiche dt { font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
.fiche dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.fiche dd.est-vide { color: var(--texte-3); }
.fiche dd li { position: relative; padding-left: 14px; animation: monte .35s var(--courbe); }
.fiche dd li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; border-radius: 1px; background: var(--accent); }

/* L'écran de fin */
.diag-fin { grid-column: 1 / -1; padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 40px); text-align: center; animation: monte .5s var(--courbe); }
.diag-fin-rond {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 8px var(--accent-doux);
}
.diag-fin-rond svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.diag-fin-rond path { stroke-dasharray: 1; animation: trace .7s .25s ease-out backwards; }
.diag-fin h3 { font-size: clamp(1.375rem, 3.6vw, 1.75rem); letter-spacing: -.035em; }
.diag-fin h3:focus { outline: none; }
.diag-fin p { margin-top: 12px; }
.diag-fin .diag-resume { max-width: 34rem; margin-inline: auto; text-align: left; }

/* ---------- 10. Blocs et étapes ---------- */
.blocs, .etapes, .raisons {
  position: relative; display: grid; overflow: hidden;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-petite);
}
.bloc, .etape, .raison { position: relative; transition: background-color .3s; }
.bloc:hover, .etape:hover, .raison:hover { background: var(--fond-2); }
.bloc + .bloc, .etape + .etape, .raison + .raison { border-top: 1px solid var(--trait); }

.bloc { padding: 24px; }
.bloc h3 { font-size: 1.125rem; }
.bloc p { margin-top: 10px; font-size: .9688rem; }
.bloc .bloc-note { margin-top: 14px; padding-left: 12px; font-size: .875rem; color: var(--texte-3); border-left: 2px solid var(--accent); }
@media (min-width: 860px) {
  .blocs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bloc + .bloc { border-top: 0; border-left: 1px solid var(--trait); }
}

/* Les petits écrans animés en haut de chaque bloc */
.mini {
  position: relative; overflow: hidden; height: 128px; margin: -24px -24px 22px; border-bottom: 1px solid var(--trait);
  background-color: var(--fond-2);
  background-image: radial-gradient(circle, rgba(11, 18, 32, .11) 1px, transparent 1.5px);
  background-size: 16px 16px; background-position: center;
}
/* a) Facture : du papier vers l'électronique */
.mini-facture { display: flex; align-items: center; justify-content: space-between; padding: 0 13%; }
.mini-feuille { flex: none; display: grid; align-content: center; gap: 6px; width: 38px; height: 50px; padding: 0 8px; border-radius: 5px; background: #fff; border: 1px solid var(--trait-fort); box-shadow: var(--ombre-petite); }
.mini-feuille i { height: 2px; border-radius: 1px; background: var(--trait-fort); }
.mini-feuille i:first-child { width: 60%; background: var(--texte); }
.mini-trajet { position: relative; flex: 1; height: 1px; margin: 0 12px; background: var(--trait-fort); }
.mini-trajet i { position: absolute; top: -2.5px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; animation: trajet 2.4s linear infinite; }
.mini-trajet i:nth-child(2) { animation-delay: .8s; }
.mini-trajet i:nth-child(3) { animation-delay: 1.6s; }
.mini-valide { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--accent); animation: pulse 2.4s ease-out infinite; }
.mini-valide .icone { width: 18px; height: 18px; stroke-width: 2.4; }
/* b) Application : un écran de téléphone dont les cases se cochent l'une après l'autre */
.mini-appli, .mini-tableau { display: grid; place-items: center; }
.mini-ecran { position: relative; display: grid; align-content: center; gap: 11px; width: 74px; height: 108px; padding: 12px 11px 0; border-radius: 13px; background: #fff; border: 1px solid var(--trait-fort); box-shadow: var(--ombre-petite); }
.mini-ecran::before { content: ""; position: absolute; top: 8px; left: 50%; width: 20px; height: 3px; margin-left: -10px; border-radius: 2px; background: var(--trait-fort); }
.mini-ecran i { position: relative; height: 3px; margin-left: 17px; border-radius: 2px; background: var(--trait-fort); }
.mini-ecran i:nth-child(even) { margin-right: 9px; }
.mini-ecran i::before { content: ""; position: absolute; left: -17px; top: -4px; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); border: 1px solid var(--accent); animation: coche 5s var(--courbe) backwards infinite; animation-delay: calc(var(--b, 0) * .5s); }
/* c) Tableau de bord : les barres montent */
.mini-graphe { display: flex; align-items: flex-end; gap: 7px; width: min(64%, 190px); height: 88px; padding: 14px 14px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--trait-fort); box-shadow: var(--ombre-petite); }
.mini-graphe i { flex: 1; height: var(--h, 50%); border-radius: 3px 3px 0 0; background: var(--fond-4); transform-origin: bottom; animation: barre 5s var(--courbe) backwards infinite; animation-delay: calc(var(--b, 0) * .12s); }
.mini-graphe i:last-child { background: var(--accent); }

/* Les trois étapes */
.etape { padding: 26px 24px 30px; }
.etape-num {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--police-mono); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--accent-fonce);
}
.etape-num::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.etape h3 { margin-top: 22px; font-size: 1.1875rem; letter-spacing: -.025em; }
.etape p { margin-top: 8px; font-size: .9688rem; }
.etapes-ligne { display: none; }
@media (min-width: 860px) {
  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .etape { padding: 28px 28px 36px; }
  .etape + .etape { border-top: 0; border-left: 1px solid var(--trait); }
  .etape h3 { margin-top: 44px; }
  .etapes-ligne {   /* le trait qui parcourt les trois étapes */
    display: block; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); transform-origin: left;
  }
}

/* ---------- 11. Pourquoi AZURIQ ---------- */
.raison { overflow: hidden; display: flex; align-items: flex-start; gap: 14px; padding: 24px; }
.raison h3 { font-size: 1.0625rem; }
.raison p { margin-top: 4px; font-size: .9375rem; }
@media (min-width: 640px) {
  .raisons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raison:nth-child(2) { border-top: 0; }
  .raison:nth-child(even) { border-left: 1px solid var(--trait); }
}
@media (min-width: 1060px) {
  .raisons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .raison { flex-direction: column; gap: 22px; padding: 28px 24px 32px; }
  .raison + .raison { border-top: 0; border-left: 1px solid var(--trait); }
}

/* ---------- 12. Offre de lancement ---------- */
.pilotes {
  position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); border-radius: var(--rayon);
  color: #fff; background-color: var(--accent);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .2) 1px, transparent 1.5px),
    linear-gradient(135deg, var(--accent) 30%, var(--accent-fonce));
  background-size: 20px 20px, auto;
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 70%, transparent);
}
.pilotes::before {   /* le faisceau lumineux qui fait le tour du cadre */
  content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--angle), rgba(255, 255, 255, .22) 0 68%, #fff 88%, rgba(255, 255, 255, .22) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.pilotes > * { position: relative; }
.pilotes .surtitre { color: #fff; }
.pilotes .surtitre::before { background: #fff; }
.pilotes h2 { margin-top: 14px; max-width: 13em; color: #fff; }
.pilotes-texte { margin-top: 14px; max-width: 30em; font-size: 1.0625rem; color: #fff; }
.pilotes .bouton { margin-top: 28px; }
.pilotes-tel { margin-top: 16px; font-size: .9375rem; color: rgba(255, 255, 255, .88); }
.pilotes-tel a { font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pilotes :focus-visible { outline-color: #fff; }
.pilotes-chiffre {
  position: absolute; right: 16px; bottom: -.14em;
  font-family: var(--police-titre); font-size: clamp(9rem, 28vw, 18rem); font-weight: 600; line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28);
  pointer-events: none; user-select: none;
}
@media (min-width: 760px) {
  .pilotes-chiffre { right: clamp(28px, 6vw, 88px); bottom: auto; top: 50%; margin-top: -.5em; -webkit-text-stroke-color: rgba(255, 255, 255, .45); }
}

/* ---------- 13. Contact ---------- */
.contact-grille { display: grid; gap: 36px; }
.contact-renvoi { margin-top: 18px; font-size: .9688rem; }
.coordonnees { margin-top: 28px; display: grid; border-top: 1px solid var(--trait); }
.coordonnees li { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--trait); color: var(--texte); }
.coordonnees-nom {
  display: block; margin-bottom: 2px;
  font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3);
}
.coordonnees a { font-weight: 600; }

.formulaire {
  display: grid; gap: 18px; padding: clamp(20px, 3.4vw, 32px);
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre);
}
.formulaire[hidden] { display: none; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.recap { padding: 12px 14px; background: var(--accent-doux); border: 1px solid var(--accent-trait); border-radius: 9px; animation: monte .4s var(--courbe); }
.recap[hidden] { display: none; }
.recap-titre { font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-2); }
.recap-liste { margin-top: 6px; display: grid; gap: 4px; font-size: .9375rem; color: var(--texte); }
.recap-retirer {
  margin-top: 8px; padding: 6px 0; font: inherit; font-size: .8125rem; color: var(--texte-2);
  background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.recap-retirer:hover { color: var(--texte); }

.formulaire-etat { padding: 12px 14px; font-size: .9375rem; font-weight: 500; border-radius: 9px; border: 1px solid; animation: monte .4s var(--courbe); }
.formulaire-etat[hidden] { display: none; }
.formulaire-etat[data-type="succes"] { color: var(--texte); background: var(--accent-doux); border-color: var(--accent-trait); }
.formulaire-etat[data-type="erreur"] { color: var(--erreur); background: var(--erreur-fond); border-color: var(--erreur-trait); }
.formulaire-etat[data-type="info"]   { color: var(--texte); background: var(--fond-2); border-color: var(--trait-fort); }

@media (min-width: 900px) { .contact-grille { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

/* ---------- 14. Pied de page ---------- */
.pied { padding-block: 30px; border-top: 1px solid var(--trait); font-size: .875rem; color: var(--texte-3); }
.pied-ligne { display: grid; gap: 18px; }
.pied-logo img { display: block; width: auto; height: 18px; }
.pied-slogan { margin-top: 4px; font-size: .8125rem; }
.pied-contact { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.pied-contact a { font-weight: 500; color: var(--texte); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pied a { padding-block: 6px; color: var(--texte-2); text-decoration: none; }
.pied a:hover { color: var(--texte); }
@media (min-width: 860px) {
  /* Deux rangées : le logo et les liens en haut, la ligne légale en dessous */
  .pied-ligne { grid-template-columns: 1fr auto; align-items: start; gap: 18px 40px; }
  .pied-ligne > div { grid-area: 1 / 1; }
  .pied-liens { grid-area: 1 / 2; justify-content: flex-end; }
  .pied-legal { grid-area: 2 / 1 / 3 / 3; padding-top: 16px; border-top: 1px solid var(--trait); }
}

/* ---------- 15. Pages légales et page de remerciement ---------- */
.page-texte { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.page-texte .conteneur { width: min(100% - 40px, 44rem); padding-inline: 0; }
.page-texte h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.05; letter-spacing: -.045em; }
.page-texte h2 { margin-top: 40px; padding-top: 28px; font-size: 1.25rem; letter-spacing: -.025em; border-top: 1px solid var(--trait); }
.page-texte p, .page-texte ul { margin-top: 14px; }
.page-texte ul { padding-left: 20px; list-style: square; }
.page-texte li { margin-top: 6px; }
.page-texte li::marker { color: var(--accent); }
.page-texte .retour { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: .875rem; font-weight: 500; color: var(--texte-2); text-decoration: none; }
.page-texte .retour:hover { color: var(--texte); }
.page-texte .retour .icone { width: 16px; height: 16px; transform: rotate(180deg); }
.page-merci { text-align: center; }
.page-merci h1 { margin-top: 14px; }
.page-merci .bouton { margin-top: 28px; }

/* ---------- 15 bis. Cartes, listes et pages intérieures ---------- */
/* Les cartes cliquables (solutions, profils d'entreprise) */
.cartes { display: grid; gap: 12px; }
@media (min-width: 640px)  { .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .cartes-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cartes-quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.carte {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px;
  color: inherit; text-decoration: none;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-petite);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--courbe);
}
a.carte:hover { color: inherit; border-color: var(--accent-trait); transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(11, 18, 32, .35); }
.carte .pastille { margin-bottom: 6px; }
.carte h3 { font-size: 1.125rem; }
.carte p { font-size: .9688rem; }
.carte .liste-coche { margin-top: 4px; font-size: .9375rem; }
.carte-etiquette, .encart-titre, .detail-num {
  font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; line-height: 1.6;
  letter-spacing: .09em; text-transform: uppercase; color: var(--texte-3);
}
.carte-lien { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--accent-fonce); }
.carte-lien .icone { width: 15px; height: 15px; stroke-width: 2.2; transition: transform .25s var(--courbe); }
a.carte:hover .carte-lien .icone { transform: translateX(3px); }

/* Les listes : avec coche (ce que nous faisons) ou avec point (constats, exemples) */
.liste-coche, .liste-point { display: grid; gap: 9px; font-size: .9688rem; }
.liste-coche li, .liste-point li { position: relative; padding-left: 26px; }
.liste-coche li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 17px; height: 17px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.liste-point li { padding-left: 20px; }
.liste-point li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 1.5px; background: var(--texte-3); }

/* L'en-tête des pages intérieures */
.page-tete { position: relative; isolation: isolate; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.page-tete h1 { margin-top: 18px; max-width: 15em; font-size: clamp(2.25rem, 5.6vw, 3.75rem); line-height: 1.02; letter-spacing: -.045em; }
.page-tete .chapo { max-width: 40em; margin-top: 20px; font-size: clamp(1.0625rem, 2vw, 1.1875rem); }
.sommaire { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.sommaire a {
  padding: 8px 13px; font-size: .875rem; font-weight: 500; color: var(--texte-2); text-decoration: none;
  background: #fff; border: 1px solid var(--trait-fort); border-radius: 9px; box-shadow: var(--ombre-petite);
  transition: color .2s, border-color .2s;
}
.sommaire a:hover { color: var(--accent-fonce); border-color: var(--accent-trait); }

/* Une solution ou un profil détaillé : le texte à gauche, les listes à droite */
.detail { display: grid; gap: 28px; }
.section[id] { scroll-margin-top: 64px; }
.detail .pastille { margin-bottom: 18px; }
.detail h2 { margin-top: 10px; font-size: clamp(1.625rem, 3.6vw, 2.25rem); }
.detail-texte { margin-top: 14px; font-size: 1.0625rem; }
.detail-pour { margin-top: 20px; padding: 12px 16px; font-size: .9375rem; color: var(--texte); background: var(--accent-doux); border-left: 2px solid var(--accent); border-radius: 0 9px 9px 0; }
.detail-listes { display: grid; gap: 16px; }
.encart { padding: 22px 24px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-petite); }
.encart-titre { margin-bottom: 14px; }
.encart .bloc-note { margin-top: 0; padding-left: 12px; font-size: .9375rem; color: var(--texte-2); border-left: 2px solid var(--accent); }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } }

/* La méthode, étape par étape */
.chemin { display: grid; gap: 16px; }
.pas {
  position: relative; display: grid; gap: 22px; padding: 26px 24px;
  background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-petite);
}
.pas-num { display: flex; align-items: center; gap: 14px; font-family: var(--police-mono); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--accent-fonce); }
.pas-num::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.pas h2 { margin-top: 18px; font-size: clamp(1.375rem, 3vw, 1.75rem); letter-spacing: -.035em; }
.pas-resume { margin-top: 8px; font-size: 1.0625rem; color: var(--texte); }
.pas-colonnes { display: grid; gap: 18px; align-content: start; }
.pas-colonnes h3 { margin-bottom: 6px; font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--texte-3); }
.pas-colonnes p { font-size: .9375rem; }
.pas-colonnes > div { padding-top: 14px; border-top: 1px solid var(--trait); }
@media (min-width: 700px) { .pas-colonnes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 960px) { .pas { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; padding: 36px; } }

/* Les questions fréquentes */
.faq { overflow: hidden; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-petite); }
.faq details + details { border-top: 1px solid var(--trait); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
  font-weight: 600; color: var(--texte); cursor: pointer; list-style: none; transition: background-color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--police-mono); font-size: 1.25rem; font-weight: 400; line-height: 1; color: var(--accent-fonce); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--fond-2); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq-reponse { max-width: 46em; padding: 0 22px 20px; }

/* ---------- 15 ter. Page Métiers : les cas concrets ---------- */
.sommaire-metiers a { display: inline-flex; align-items: center; gap: 8px; }
.sommaire-metiers .icone { width: 15px; height: 15px; color: var(--accent); }
.metier-grille { display: grid; gap: 28px; }
.metier-tete h2 { margin-top: 10px; font-size: clamp(1.625rem, 3.4vw, 2.125rem); }
.metier-tete .pastille { margin-bottom: 18px; }
.metier-quotidien { margin-top: 12px; font-size: 1.0625rem; }
.metier-actions { margin-top: 22px; }
.metier-retour { display: inline-block; margin-top: 14px; font-size: .875rem; color: var(--texte-3); text-decoration: underline; text-decoration-color: var(--trait-fort); text-underline-offset: 3px; }
.metier-retour:hover { color: var(--accent-fonce); }
.metier-note { padding: 12px 16px; font-size: .9375rem; color: var(--texte); background: var(--accent-doux); border-left: 2px solid var(--accent); border-radius: 0 9px 9px 0; }
.metier .carte-lien { margin-top: 14px; padding-top: 0; }
@media (min-width: 1000px) {
  .metier-grille { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
  .metier-tete { position: sticky; top: 104px; }
}

.cas-liste { display: grid; gap: 16px; }
.cas { overflow: hidden; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-petite); transition: border-color .25s, box-shadow .25s; }
.cas:hover { border-color: var(--accent-trait); box-shadow: var(--ombre); }
.cas-tete { padding: 22px 24px 20px; }
.cas-famille { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 8px; font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-fonce); background: var(--accent-doux); border: 1px solid var(--accent-trait); border-radius: 999px; }
.cas-famille .icone { width: 13px; height: 13px; stroke-width: 2.2; }
.cas h3 { margin-top: 14px; font-size: 1.25rem; letter-spacing: -.02em; }
.cas-situation { margin-top: 10px; padding-left: 14px; color: var(--texte-2); border-left: 2px solid var(--trait-fort); }
.cas-label { display: block; font-family: var(--police-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
.cas-apres { padding: 12px 24px 0; color: var(--accent-fonce); background: var(--fond-2); border-top: 1px solid var(--trait); }
.cas-etapes { display: grid; background: var(--fond-2); }
.cas-etapes li { position: relative; display: flex; gap: 12px; padding: 12px 24px 14px; font-size: .9375rem; line-height: 1.5; }
.cas-etapes li:last-child { padding-bottom: 20px; }
.cas-num { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; font-family: var(--police-mono); font-size: .75rem; font-weight: 600; color: #fff; background: var(--accent); box-shadow: 0 0 0 4px var(--fond-2); position: relative; z-index: 1; }
.cas-etapes li + li::before { content: ""; position: absolute; left: 35.5px; top: -14px; width: 1px; height: 28px; background: var(--accent-trait); }   /* le trait qui relie les étapes */
@media (min-width: 680px) {
  .cas-etapes { position: relative; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cas-etapes::before { content: ""; position: absolute; left: 36px; top: 26px; width: calc(66.667% - 4px); height: 1px; background: var(--accent-trait); }   /* un seul trait, du 1 au 3 */
  .cas-etapes li { flex-direction: column; gap: 10px; padding: 14px 20px 22px 24px; }
  .cas-etapes li + li { padding-left: 20px; }
  .cas-etapes li + li::before { display: none; }
}

/* ---------- 15 quater. La zone d'intervention et sa carte ---------- */
.zone-grille { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .zone-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 64px; } }
.zone-liste { margin-top: 28px; border-top: 1px solid var(--trait); }
.zone-liste div { display: grid; gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.zone-liste dt { font-size: .9375rem; font-weight: 600; }
.zone-liste dd { margin: 0; font-size: .9375rem; color: var(--texte-2); }
@media (min-width: 560px) { .zone-liste div { grid-template-columns: 190px minmax(0, 1fr); } }
.carte-var { margin: 0; overflow: hidden; background: color-mix(in srgb, var(--accent) 6%, #fff); border: 1px solid var(--trait); border-radius: 18px; box-shadow: var(--ombre); }
.carte-var-dessin { display: block; width: 100%; height: auto; }
.carte-var figcaption { padding: 10px 16px; font-family: var(--police-mono); font-size: .6875rem; line-height: 1.5; color: var(--texte-3); background: #fff; border-top: 1px solid var(--trait); }
.carte-terre { fill: #fff; stroke: var(--trait-fort); stroke-width: 1.2; stroke-linejoin: round; }
.carte-anneau { fill: none; stroke: var(--accent); stroke-opacity: .32; stroke-width: 1; stroke-dasharray: 3 5; }
.carte-anneau-nom { font-family: var(--police-mono); font-size: 10px; font-weight: 500; fill: var(--accent-fonce); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.carte-mer { font-family: var(--police-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; fill: var(--texte-3); }
.carte-ville circle { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.carte-ville text { font-family: var(--police-texte); font-size: 12px; font-weight: 500; fill: var(--texte); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.carte-secondaire circle { fill: #fff; stroke: var(--accent); stroke-width: 1.5; }
.carte-secondaire text { font-size: 11px; font-weight: 400; fill: var(--texte-2); }
.carte-base text { font-size: 14px; font-weight: 700; }
.carte-base .carte-onde { fill: var(--accent); stroke: none; opacity: .35; transform-box: fill-box; transform-origin: center; }
@media (max-width: 620px) {
  .carte-secondaire text { display: none; }
  .carte-ville text { font-size: 17px; }
  .carte-base text { font-size: 20px; }
  .carte-anneau-nom { font-size: 14px; }
  .carte-mer { font-size: 13px; }
}

/* ---------- 16. Animations ---------- */
@keyframes monte        { from { opacity: 0; transform: translateY(12px); } }
@keyframes descend      { from { opacity: 0; transform: translateY(-6px); } }
@keyframes entre-droite { from { opacity: 0; transform: translateX(18px); } }
@keyframes entre-gauche { from { opacity: 0; transform: translateX(-18px); } }
@keyframes etire        { from { transform: scaleX(0); } }
@keyframes remplit-x    { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes remplit-y    { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes trace        { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes onde-carte   { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
@keyframes onde         { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
@keyframes clignote     { 50% { opacity: 0; } }
@keyframes pousse       { from { transform: scaleY(0); } }
@keyframes vide         { from { width: 84%; } }
@keyframes pop          { from { opacity: 0; transform: scale(.4); } }
@keyframes tombe        { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: .8; } 80% { opacity: .8; } 100% { opacity: 0; transform: translateY(940px); } }
@keyframes balaie       { 0% { opacity: 0; transform: translateX(-100%); } 10%, 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(455%); } }
@keyframes defile       { to { transform: translateX(-50%); } }
@keyframes tourne       { to { --angle: 360deg; } }
@keyframes pulse        { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); } 70%, to { box-shadow: 0 0 0 10px transparent; } }
@keyframes trajet       { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
@keyframes coche        { 0%, 10% { background: #fff; border-color: var(--trait-fort); } 22%, 88% { background: var(--accent); border-color: var(--accent); } 100% { background: #fff; border-color: var(--trait-fort); } }
@keyframes barre        { 0%, 6% { transform: scaleY(0); } 26%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Mouvements permanents, volontairement discrets */
  .faisceau { animation: tombe var(--t, 8s) linear infinite; animation-delay: var(--r, 0s); }
  .flux::before { animation: balaie 7s linear infinite; }
  .curseur { animation: clignote 1s steps(1) infinite; }
  .pilotes::before { animation: tourne 8s linear infinite; }
  .carte-onde { animation: onde-carte 2.6s ease-out infinite; }
  .bande.defile .bande-piste { animation: defile var(--duree, 48s) linear infinite; }
  .bande.defile:hover .bande-piste { animation-play-state: paused; }

  /* Arrivée de l'accroche, élément après élément */
  .accroche-texte > *, .accroche .flux { animation: monte .7s var(--courbe) backwards; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }

  /* Apparition au défilement (activée par le script) */
  .animations [data-apparait] { opacity: 0; }
  .animations [data-apparait].est-visible { opacity: 1; animation: monte .6s var(--courbe) backwards; animation-delay: calc(var(--d, 0) * 80ms); }
  .animations .etapes-ligne.est-visible { animation: etire 1.6s var(--courbe) backwards; }
}

/* Pour les personnes qui ont demandé moins d'animations à leur appareil */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
