/* Solaire Révolution — feuille de style unique
   Trois outils seulement : l'échelle typographique, le filet de 1 px, le pas de fond.
   Police auto-hébergée (Archivo, OFL) : aucun appel à un tiers avant consentement. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant SC";
  src: url("../fonts/cormorantsc-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant SC";
  src: url("../fonts/cormorantsc-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* Variante sans petites capitales : pour l'essayer, remplacer « Cormorant SC » par
   « Cormorant Garamond » dans .immersion__phrase, rien d'autre. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Contrail One";
  src: url("../fonts/contrailone.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #13222E;
  --ink-2: #1D3140;
  --ground: #F4EFE6;
  --paper: #FBF8F2;
  --sun: #E9A21B;
  --sun-deep: #7A4A00;
  --rule: #D8CFBF;
  --border-strong: #857A69;
  --muted: #4F5D68;
  --muted-dark: #AEB9C2;
  --vine: #3E5A3A;
  --ok: #3E5A3A;
  --alerte: #8A2D1B;
  --radius: 4px;
  --wrap: 1120px;
  --hdr: 64px;
}
@media (min-width: 900px) { :root { --hdr: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-stretch: 100%;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--sun-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
@media (min-width: 900px) { .wrap { padding-inline: 32px; } }

.saut { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ground); padding: 8px 12px; z-index: 50; }
.saut:focus { left: 12px; top: 12px; }

/* ---------- typographie ---------- */
/* Titres : Contrail One, une seule graisse. On coupe la fausse graisse et la fausse italique :
   sur une police d'affichage, elles se voient tout de suite. */
h1, h2, h3, .etape-form legend, .hdr__nom {
  font-family: "Contrail One", "Archivo", system-ui, sans-serif;
  font-weight: 400; font-stretch: normal; font-synthesis: none;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: .004em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6.4vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.65rem); }
h3 { font-size: 1.36rem; line-height: 1.25; }
p { margin: 0; }
.sur { font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-deep); margin-bottom: 12px; }
.chapo { font-size: 1.2rem; line-height: 1.5; color: var(--ink); max-width: 38em; }
.leg { font-size: .9rem; color: var(--muted); }
.complement {
  margin-top: 14px; max-width: 38em;
  font-size: .95rem; line-height: 1.5; color: var(--muted);
  padding-left: 14px; border-left: 3px solid var(--rule);
}
.complement strong { font-weight: 700; color: var(--ink); }
.t-16 { margin-top: 16px; } .t-24 { margin-top: 24px; } .t-32 { margin-top: 32px; } .t-48 { margin-top: 48px; }

/* ---------- mise en relief des mots ----------
   Le gras porte ce qui décide (les chiffres, les mots qui engagent), l'italique ce qui nuance.
   Jamais plus d'un mot en relief par ligne : au-delà, plus rien ne ressort. */
strong, b { font-weight: 720; font-stretch: 96%; }
em, i { font-style: italic; font-synthesis: none; }
.chiffre { font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.fond-encre strong { color: #FFFFFF; }
mark, .surligne {
  background: linear-gradient(transparent 62%, rgba(233, 162, 27, .45) 62%);
  color: inherit; padding: 0 .06em;
}

/* ---------- apparition au défilement ----------
   L'état masqué n'existe que si JavaScript a pris la main (classe js-anim) : sans lui,
   toute la page reste lisible. Rien ne bouge si le visiteur a demandé moins d'animations. */
.js-anim .revele { opacity: 0; transform: translateY(14px); }
.js-anim .liste .revele { transform: translateX(-12px); }
.js-anim .revele.vu {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
@media (prefers-reduced-motion: reduce) {
  .js-anim .revele { opacity: 1; transform: none; }
  .js-anim .revele.vu { transition: none; }
}

/* entrée de l'accroche au chargement */
@media (prefers-reduced-motion: no-preference) {
  .accroche__grille > div > * { animation: sr-entre .6s cubic-bezier(.2, .7, .3, 1) backwards; }
  .titre-bloc { animation-delay: .05s; }
  .chapo { animation-delay: .12s; }
  .puces { animation-delay: .2s; }
  .accroche__cta { animation-delay: .28s; }
  .accroche__visuel { animation: sr-entre .7s .1s cubic-bezier(.2, .7, .3, 1) backwards; }
}
@keyframes sr-entre { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 680; font-stretch: 90%; letter-spacing: .01em;
  background: var(--sun); color: var(--ink); border: 2px solid var(--sun); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
}
.btn { transition: background-color .18s ease, color .18s ease, transform .12s ease; }
.btn:hover { background: #F2B53E; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--vide { background: transparent; border-color: var(--ink); }
.btn--vide:hover { background: var(--ink); color: var(--ground); }
.btn--sombre { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn--sombre:hover { background: var(--ink-2); color: var(--ground); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- en-tête ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--rule); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--hdr); }
.hdr__marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hdr__marque img { width: 34px; height: 34px; }
.hdr__nom { letter-spacing: .05em; text-transform: uppercase; font-size: 1.06rem; line-height: 1.05; }
.hdr__nom span { display: block; }
.hdr .btn { min-height: 42px; padding: 8px 14px; font-size: .95rem; }
@media (max-width: 420px) { .hdr .btn { display: none; } }

/* ---------- sections ---------- */
section { padding-block: 64px; }
@media (min-width: 900px) { section { padding-block: 96px; } }
.fond-papier { background: var(--paper); border-block: 1px solid var(--rule); }
.fond-encre { background: var(--ink); color: var(--ground); }
.fond-encre .sur { color: var(--sun); }
.fond-encre .leg { color: var(--muted-dark); }
.fond-encre a:hover { color: var(--sun); }
#form, #eligibilite, #fonctionnement, #questions { scroll-margin-top: calc(var(--hdr) + 16px); }

/* ---------- utilitaires ---------- */
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- bandeau défilant des métiers ----------
   Une ligne toutes les 3 s : la nouvelle entre par la droite, l'ancienne sort par la gauche.
   Les trois segments arrivent l'un après l'autre : l'œil suit la ligne comme on la lit.
   Rien ne bouge si la personne a demandé moins d'animations. */
.defile {
  position: relative;
  height: 1.7em;
  overflow: hidden;
  margin-bottom: 12px;
}
.defile__ligne {
  position: absolute; inset: 0;
  display: flex; flex-wrap: nowrap; align-items: center; gap: .55em;
  opacity: 0;
  pointer-events: none;
  transform: translateX(22px);
  transition: opacity .16s ease, transform .16s ease;   /* sortie rapide : jamais deux lignes lisibles à la fois */
}
.defile__ligne > span { display: inline-block; white-space: nowrap; }
.defile__ligne > span + span::before { content: "·"; margin-right: .55em; opacity: .55; }
.defile__ligne.est-actif {
  opacity: 1; transform: none;
  transition: opacity .42s ease .14s, transform .42s cubic-bezier(.2, .7, .3, 1) .14s;
}
.defile__ligne.sort { opacity: 0; transform: translateX(-22px); }
.defile__ligne.est-actif > span { animation: defile-mot .42s cubic-bezier(.2, .7, .3, 1) both; }
.defile__ligne.est-actif > span:nth-child(2) { animation-delay: .09s; }
.defile__ligne.est-actif > span:nth-child(3) { animation-delay: .18s; }
@keyframes defile-mot { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .defile__ligne { transition: none; transform: none; }
  .defile__ligne.est-actif > span { animation: none; }
}
@media (max-width: 520px) {
  .defile { height: 2.9em; }
  .defile__ligne { flex-wrap: wrap; gap: .2em .55em; align-content: center; }
}

/* ---------- infobulle du titre ---------- */
.titre-bloc { position: relative; }
.astuce__btn {
  display: inline-grid; place-items: center;
  width: 1.55rem; height: 1.55rem; margin-left: .35em; padding: 0;
  vertical-align: .18em;
  font: inherit; font-size: .95rem; font-weight: 700; font-stretch: 100%;
  color: var(--ink); background: var(--sun);
  border: 2px solid var(--sun); border-radius: 999px; cursor: pointer;
}
.astuce__btn:hover { background: #F2B53E; }
.astuce__bulle {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 5;
  max-width: min(340px, 100%);
  padding: 12px 16px;
  font-size: .98rem; font-weight: 600; line-height: 1.35;
  color: var(--ground); background: var(--ink);
  border-radius: var(--radius);
}
.astuce__bulle::before {
  content: ""; position: absolute; left: 18px; top: -7px;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid var(--ink);
}

/* ---------- mise en valeur ---------- */
.souligne {
  font-weight: 620;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: .2em;
  transition: text-decoration-color .6s .25s ease;
}
.vu .souligne, .souligne.vu, html:not(.js-anim) .souligne { text-decoration-color: var(--sun); }
@media (prefers-reduced-motion: reduce) { .souligne { transition: none; } }

/* Souligner un membre de phrase À L'INTÉRIEUR d'un paragraphe.
   Trois dispositifs, trois emplois qu'il ne faut pas mélanger :
     .souligne  LA phrase clé d'une section, une seule, et son trait se dessine à l'arrivée ;
     .cle       le maillon d'un raisonnement, à l'intérieur d'une phrase, trait fixe et plus fin ;
     mark       le surlignage ocre, réservé aux chiffres qu'on vient chercher des yeux.
   Ration : au plus deux .cle par paragraphe, jamais deux sur la même ligne, et jamais un .cle
   sur une phrase qui promet quelque chose — la promesse est en gras, elle engage. */
.cle {
  font-weight: 560;
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: .17em;
  text-decoration-skip-ink: auto;
}
.fond-encre .cle, .immersion .cle { text-decoration-color: var(--sun); color: inherit; }

/* ---------- accroche ---------- */
.accroche { padding-block: 40px 64px; }
.accroche__grille { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .accroche__grille { grid-template-columns: 1.05fr .95fr; gap: 56px; } .accroche { padding-block: 72px 96px; } }
.accroche__visuel { width: 100%; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.puces li { border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px; font-size: .92rem; font-weight: 560; background: var(--paper); transition: border-color .18s ease, background-color .18s ease; }
.puces li:hover { border-color: var(--ink); background: #FFF9EC; }
.accroche__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* ---------- bandes photographiques ----------
   Trois usages : l'en-tête de section (titre posé sur l'image), la bande immersive (une phrase,
   pleine largeur) et la photo de fond d'une section sombre. Toujours un voile dégradé derrière le
   texte : sans lui, le contraste dépend de la photo. */
.entete, .immersion, .fond-photo { position: relative; overflow: hidden; }
.entete__img, .immersion__img, .fond-photo__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
}
/* Noir et blanc réservé aux deux bandes immersives : elles marquent une pause dans la page.
   Les en-têtes de section, le fond des étapes et les médaillons restent en couleur. */
.immersion__img { filter: grayscale(1) contrast(1.04); }
.entete__voile, .immersion__voile, .fond-photo__voile { position: absolute; inset: 0; }
.entete__voile {
  background: linear-gradient(90deg, rgba(19, 34, 46, .92) 0%, rgba(19, 34, 46, .72) 42%, rgba(19, 34, 46, .28) 100%);
}
/* La boîte porte le contraste : le voile peut rester léger et la photo reste lisible. */
.immersion__voile {
  background: linear-gradient(90deg, rgba(19, 34, 46, .58) 0%, rgba(19, 34, 46, .34) 55%, rgba(19, 34, 46, .18) 100%);
}
.fond-photo__voile { background: linear-gradient(180deg, rgba(19, 34, 46, .93), rgba(19, 34, 46, .88)); }
.fond-photo > .wrap { position: relative; }

/* Le bord droit est coupé en biseau : la bande n'est pas un simple bandeau rectangulaire. */
.entete {
  min-height: 200px; display: grid; align-items: end; margin-bottom: 40px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);
}
@media (min-width: 900px) { .entete { clip-path: polygon(0 0, 100% 0, calc(100% - 150px) 100%, 0 100%); } }
@media (min-width: 900px) { .entete { min-height: 300px; margin-bottom: 56px; } }
.entete__txt { position: relative; padding-block: 26px; }
.entete__txt h2 { color: #FFFFFF; text-shadow: 0 2px 18px rgba(19, 34, 46, .55); }
.entete__txt .sur { color: var(--sun); }
section.a-entete { padding-top: 0; }

.immersion { display: grid; align-items: center; padding-block: 88px; min-height: 58vh; }
@media (min-width: 900px) { .immersion { padding-block: 132px; min-height: 64vh; } }
.immersion--basse { min-height: 46vh; }
.immersion__txt { position: relative; color: var(--ground); }
.immersion__boite {
  max-width: 660px;
  padding: 30px 30px 32px;
  background: rgba(19, 34, 46, .9);
  border-left: 5px solid var(--sun);
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(19, 34, 46, .3);
}
@media (min-width: 900px) { .immersion__boite { padding: 40px 44px 42px; } }
.immersion__txt .sur { color: var(--sun); }
/* La phrase des bandes passe en serif : elle se lit comme une citation, pas comme un titre de plus. */
.immersion__phrase {
  font-family: "Cormorant SC", Georgia, "Times New Roman", serif;
  font-weight: 400; font-synthesis: none;
  font-size: clamp(1.45rem, 2.6vw, 1.75rem);
  line-height: 1.32; letter-spacing: .012em; text-wrap: balance;
}
.immersion__phrase strong { color: var(--sun); font-weight: 600; }
.immersion__note { margin-top: 18px; font-size: .92rem; line-height: 1.5; color: var(--muted-dark); }

/* parallaxe : l'image est plus haute que son cadre, on la déplace de quelques pour cent.
   Jamais sur mobile (coût de rendu), jamais si le visiteur a demandé moins d'animations. */
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) {
  .parallaxe .entete__img, .parallaxe .immersion__img, .parallaxe .fond-photo__img {
    height: 144%; top: -22%; will-change: transform;
  }
}

/* ---------- éligibilité ---------- */
.deux { display: grid; gap: 20px; }
@media (min-width: 760px) { .deux { grid-template-columns: 1fr 1fr; gap: 28px; } }
.carte { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.carte--oui { border-top: 4px solid var(--vine); }
.carte--non { border-top: 4px solid var(--border-strong); }
.liste { list-style: none; padding: 0; margin: 16px 0 0; }
.liste li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--rule); }
.liste li:first-child { border-top: 0; }
.liste li::before { position: absolute; left: 0; top: 10px; width: 20px; text-align: center; font-weight: 800; }
.liste--oui li::before { content: "✓"; color: var(--vine); }
.liste--non li::before { content: "✕"; color: var(--muted); }

/* ---------- médaillons photo ----------
   Des ronds de photo posés dans les espaces vides, qui dérivent lentement. Décoratifs :
   masqués aux lecteurs d'écran, inertes au clic, retirés sous 980 px et si on demande moins d'animations. */
.medaillon {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--taille); height: var(--taille);
  border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 0;
  border: 5px solid var(--paper);
  box-shadow: 0 14px 40px rgba(19, 34, 46, .18);
}
.medaillon img { width: 100%; height: 100%; object-fit: cover; }
.a-medaillons { position: relative; overflow: hidden; }
.a-medaillons > .wrap { position: relative; z-index: 1; }
@media (max-width: 1180px) { .medaillon { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .medaillon { animation: sr-derive var(--duree, 15s) ease-in-out infinite alternate; }
}
@keyframes sr-derive {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(var(--dx, 10px), var(--dy, -18px)) rotate(1.5deg); }
}

/* ---------- métiers ---------- */
.metiers { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 640px) { .metiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .metiers { grid-template-columns: repeat(3, 1fr); } }
.metier { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.metier img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--rule); transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
@media (prefers-reduced-motion: no-preference) { .metier:hover img { transform: scale(1.035); } }
.metier__txt { padding: 20px 22px 24px; }
.metier__txt p { margin-top: 10px; }

/* ---------- étapes ---------- */
.etapes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; counter-reset: etape; }
@media (min-width: 900px) { .etapes { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.etapes li { counter-increment: etape; padding: 20px 0; border-top: 1px solid var(--ink-2); }
@media (min-width: 900px) { .etapes li { border-top: 2px solid var(--sun); padding-top: 18px; } }
.etapes li::before { content: counter(etape, decimal-leading-zero); display: block; font-weight: 800; font-stretch: 75%; font-size: 1.9rem; color: var(--sun); line-height: 1; margin-bottom: 10px; }
.etapes p { margin-top: 8px; color: var(--muted-dark); }
.etapes h3 { color: var(--ground); }

/* ---------- flèches entre les étapes ----------
   Elles montrent que chaque étape appelle la suivante : vers le bas en colonne unique,
   vers la droite quand les quatre étapes sont côte à côte. Immobiles si on demande moins d'animations. */
.etapes li { position: relative; }
.fleche { display: block; width: 100%; height: 22px; margin-top: 16px; }
.fleche::after {
  content: ""; display: block; width: 13px; height: 13px; margin: 0 auto;
  border-right: 3px solid var(--sun); border-bottom: 3px solid var(--sun);
  transform: rotate(45deg); opacity: .6;
  animation: fleche-bas 1.9s ease-in-out infinite;
}
@keyframes fleche-bas {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: .45; }
  50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}
@media (min-width: 900px) {
  .fleche { position: absolute; top: 24px; right: -18px; width: 22px; height: 22px; margin: 0; }
  .fleche::after { transform: rotate(-45deg); animation-name: fleche-droite; }
  @keyframes fleche-droite {
    0%, 100% { transform: rotate(-45deg) translate(0, 0); opacity: .45; }
    50%      { transform: rotate(-45deg) translate(3px, -3px); opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) { .fleche::after { animation: none; opacity: .75; } }

/* ---------- tableau ---------- */
.defil { overflow-x: auto; margin-top: 32px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
thead th { font-stretch: 85%; font-weight: 720; background: var(--ground); }
tbody th { font-weight: 620; width: 34%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
td.fort { font-weight: 620; }
td.atout { position: relative; padding-left: 40px; }
td.atout::before {
  content: "✓"; position: absolute; left: 14px; top: 12px;
  display: grid; place-items: center; width: 20px; height: 20px;
  font-size: .78rem; font-weight: 800; line-height: 1;
  color: var(--paper); background: var(--vine); border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .js-anim .revele.vu td.atout::before { animation: sr-coche .45s backwards; }
  .js-anim .revele.vu tr:nth-child(2) td.atout::before { animation-delay: .08s; }
  .js-anim .revele.vu tr:nth-child(3) td.atout::before { animation-delay: .16s; }
  .js-anim .revele.vu tr:nth-child(4) td.atout::before { animation-delay: .24s; }
  .js-anim .revele.vu tr:nth-child(5) td.atout::before { animation-delay: .32s; }
  .js-anim .revele.vu tr:nth-child(6) td.atout::before { animation-delay: .4s; }
  .js-anim .revele.vu tr:nth-child(7) td.atout::before { animation-delay: .48s; }
  .js-anim .revele.vu tr:nth-child(9) td.atout::before { animation-delay: .56s; }
}
@keyframes sr-coche { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* ---------- inclus ---------- */
.grille-inclus { display: grid; gap: 12px; margin-top: 28px; list-style: none; padding: 0; }
@media (min-width: 760px) { .grille-inclus { grid-template-columns: 1fr 1fr; } }
.grille-inclus li { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--sun); border-radius: var(--radius); padding: 14px 16px; }

/* ---------- questions ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 650; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 500; color: var(--sun-deep); }
.faq details[open] summary::after { content: "–"; }
.faq .rep { padding: 0 0 20px; max-width: 46em; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .rep { animation: sr-deplie .32s ease; }
}
@keyframes sr-deplie { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq .rep p + p { margin-top: 10px; }

/* ---------- formulaire ---------- */
.formulaire { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; margin-top: 32px; }
@media (min-width: 900px) { .formulaire { padding: 36px; } }
.progres { display: flex; gap: 6px; margin-bottom: 22px; }
.progres span { flex: 1; height: 5px; border-radius: 3px; background: var(--rule); }
.progres span.fait { background: var(--sun); }
.etape-form { border: 0; margin: 0; padding: 0; min-width: 0; }
.etape-form + .etape-form { margin-top: 36px; }
.js .etape-form + .etape-form { margin-top: 0; }
.etape-form legend { font-size: 1.4rem; padding: 0; margin-bottom: 6px; }
.question { margin-top: 22px; }
.question > .lib, .champ label { display: block; font-weight: 620; margin-bottom: 8px; }
.aide { display: block; font-size: .9rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.choix { display: grid; gap: 8px; }
@media (min-width: 620px) { .choix--2 { grid-template-columns: 1fr 1fr; } }
.choix label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 12px 14px; background: #fff; cursor: pointer; min-height: 48px; }
.choix input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.choix label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #FFF9EC; }
.champs { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 620px) { .champs { grid-template-columns: 1fr 1fr; } .champ--large { grid-column: 1 / -1; } }
.champ input, .champ select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.champ input:focus, .champ select:focus { border-color: var(--ink); }
.accord { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .95rem; }
.accord input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.pot { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.nav-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 28px; }
.message { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--ground); }
.message.visible { display: block; }
.message--refus { border-color: var(--border-strong); background: #F7F1E6; }
.message--erreur { border-color: var(--alerte); color: var(--alerte); background: #FBF0EC; }
.recap { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.recap li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.recap li span:first-child { color: var(--muted); }
.noscript { margin-top: 12px; }

/* ---------- pied ---------- */
.pied { background: var(--ink); color: var(--ground); padding-block: 48px 96px; font-size: .95rem; }
@media (min-width: 900px) { .pied { padding-block: 56px; } }
.pied__grille { display: grid; gap: 28px; }
@media (min-width: 900px) { .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied a { color: var(--ground); }
.pied a:hover { color: var(--sun); }
.pied ul { list-style: none; padding: 0; margin: 10px 0 0; }
.pied li + li { margin-top: 6px; }
.pied .leg { color: var(--muted-dark); }
.pied button.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--ground); text-decoration: underline; cursor: pointer; }

/* ---------- barre mobile ---------- */
.barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--ink); padding: 10px 16px; box-shadow: 0 -6px 18px rgba(19,34,46,.18); }
.barre .btn { width: 100%; }
@media (min-width: 900px) { .barre { display: none; } }
body.traceurs-ouvert .barre, body.form-visible .barre { display: none; }

/* ---------- bandeau traceurs ---------- */
.traceurs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 2px solid var(--ink); padding-block: 16px; box-shadow: 0 -8px 24px rgba(19,34,46,.14); }
.traceurs__in { display: grid; gap: 14px; }
@media (min-width: 900px) { .traceurs__in { grid-template-columns: 1fr auto; align-items: center; gap: 32px; } }
.traceurs__txt p { font-size: .95rem; }
.traceurs__txt .sur { margin-bottom: 4px; }
.traceurs__btn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.traceurs__btn .btn { min-width: 132px; background: var(--ink); border-color: var(--ink); color: var(--ground); }
.traceurs__btn .btn:hover { background: var(--ink-2); color: var(--ground); }
.traceurs__avis { position: fixed; left: 16px; bottom: 16px; z-index: 41; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: var(--radius); font-size: .9rem; max-width: calc(100% - 32px); }

/* ---------- pages légales ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal h3 { margin-top: 24px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
