/* Swoop — vitrine statique. Une feuille, aucune police téléchargée, aucun style
   en ligne (la CSP du vhost porte `style-src 'self'`). Couleurs reprises de
   front/lib/app/colors.dart : dégradé bleu-500 → violet-500, gris ardoise. */

:root {
  --bleu: #3b82f6;
  --violet: #8b5cf6;
  --degrade: linear-gradient(135deg, var(--bleu), var(--violet));
  --encre: #0f172a;
  --texte: #334155;
  --doux: #64748b;
  --trait: #e2e8f0;
  --fond: #ffffff;
  --fond-2: #f8fafc;
  --carte: #ffffff;
  --nuit: #0f172a;
  --nuit-2: #1e293b;
  --sur-nuit: #e2e8f0;
  --sur-nuit-doux: #94a3b8;
  --ok-fond: #ecfdf5;
  --ok-encre: #047857;
  --ko-fond: #fef2f2;
  --ko-encre: #b91c1c;
  --rayon: 14px;
  --large: 70rem;
  --police: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --encre: #f1f5f9;
    --texte: #cbd5e1;
    --doux: #94a3b8;
    --trait: #334155;
    --fond: #0b1220;
    --fond-2: #0f172a;
    --carte: #111a2e;
    --nuit: #070d19;
    --nuit-2: #111a2e;
    --ok-fond: #052e1f;
    --ok-encre: #6ee7b7;
    --ko-fond: #3b0d0d;
    --ko-encre: #fca5a5;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 1.0625rem/1.65 var(--police);
}
img { max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 2px;
  border-radius: 6px;
}
h1, h2, h3 { color: var(--encre); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.saut {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 1rem; border-radius: 8px; background: var(--encre); color: var(--fond);
}
.saut:focus { top: 1rem; }

.cadre { max-width: var(--large); margin: 0 auto; padding: 0 1.25rem; }

/* --- En-tête -------------------------------------------------------------- */
.entete { background: var(--nuit); color: var(--sur-nuit); }
.entete .cadre { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.marque {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em;
}
.marque img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.nav a { color: var(--sur-nuit-doux); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: #fff; }
.nav .bouton { color: #fff; }
@media (max-width: 720px) { .nav .lien-nav { display: none; } }

/* --- Boutons -------------------------------------------------------------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem; border: 0; border-radius: 12px;
  background: var(--degrade); color: #fff; font: 600 1rem/1.2 var(--police);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 20px -8px rgba(99, 102, 241, 0.7);
}
.bouton:hover { filter: brightness(1.08); }
.bouton[disabled] { opacity: 0.6; cursor: progress; }
.bouton-petit { padding: 0.55rem 1rem; font-size: 0.92rem; }
.bouton-fantome {
  background: transparent; box-shadow: none; color: var(--sur-nuit);
  border: 1px solid rgba(226, 232, 240, 0.35);
}
.bouton-fantome:hover { background: rgba(255, 255, 255, 0.06); filter: none; }

/* --- Ouverture ------------------------------------------------------------ */
.ouverture {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(50rem 26rem at 0% 110%, rgba(59, 130, 246, 0.28), transparent 60%),
    var(--nuit);
  color: var(--sur-nuit);
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.5rem, 7vw, 7rem);
}
.ouverture .cadre { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) { .ouverture .cadre { grid-template-columns: 1fr; } }
.pastille {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.25rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgba(139, 92, 246, 0.18); color: #ddd6fe;
  font-size: 0.88rem; font-weight: 600;
}
.pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a78bfa; }
.ouverture h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); margin-bottom: 0.4em; }
.ouverture h1 em { font-style: normal; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapo { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--sur-nuit-doux); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 1.5rem; }
.preuves { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--sur-nuit-doux); }
.preuves li::before { content: "✓"; margin-right: 0.45rem; color: #a78bfa; font-weight: 700; }

/* Aperçu : une projection dessinée en SVG, pas une capture d'écran. */
.apercu {
  background: var(--nuit-2); border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px; padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.apercu-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.75rem; }
.apercu-titre { margin: 0; color: #fff; font-weight: 600; font-size: 0.98rem; }
.apercu-note { margin: 0; color: var(--sur-nuit-doux); font-size: 0.8rem; }
.apercu svg { display: block; width: 100%; height: auto; }
.apercu-legende { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--sur-nuit-doux); }
.apercu-legende span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.4rem; vertical-align: 0; }
.leg-a { background: #8b5cf6; }
.leg-b { background: #3b82f6; }
.leg-c { background: #64748b; }

/* --- Sections ------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--fond-2); border-block: 1px solid var(--trait); }
.tete-section { max-width: 44rem; margin: 0 0 2.5rem; }
.surtitre { margin: 0 0 0.6rem; color: var(--violet); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tete-section p:last-child { color: var(--doux); font-size: 1.1rem; margin: 0; }

.grille { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.carte {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.5rem;
}
.carte p { margin: 0; color: var(--doux); }
.icone {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
  border-radius: 12px; background: var(--degrade); color: #fff;
}
.icone svg { width: 22px; height: 22px; }

.etapes { counter-reset: etape; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.etapes li { position: relative; padding: 1.5rem; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--trait); }
.etapes li::before {
  counter-increment: etape; content: "0" counter(etape);
  display: block; margin-bottom: 0.75rem; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.etapes p { margin: 0; color: var(--doux); }

.profils { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.profil { padding: 1.75rem; border-radius: var(--rayon); border: 1px solid var(--trait); background: var(--carte); }
.profil ul { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--doux); }
.profil li { margin: 0.3rem 0; }

/* --- Suivi du budget ----------------------------------------------------- */
.budget { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .budget { grid-template-columns: 1fr; } }
.budget-chapo { color: var(--doux); font-size: 1.1rem; }
.budget-points { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.budget-points li { position: relative; padding-left: 1.9rem; color: var(--doux); }
.budget-points li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 6px;
  background: var(--degrade);
}
.budget-points strong { color: var(--encre); }

/* Carte illustrative : du HTML, pas une image ; les largeurs des jauges sont
   ici, par classe (la CSP refuse les attributs `style`). */
.budget-carte {
  margin: 0; padding: 1.4rem;
  background: var(--carte); border: 1px solid var(--trait); border-radius: 18px;
  box-shadow: 0 30px 70px -40px rgba(15, 23, 42, 0.45);
}
.budget-carte-titre { margin: 0; color: var(--encre); font-weight: 700; }
.budget-carte .apercu-note { color: var(--doux); }
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0 0 1.25rem; }
.chiffres div { padding: 0.75rem; border-radius: 12px; background: var(--fond-2); border: 1px solid var(--trait); }
.chiffres dt { font-size: 0.78rem; color: var(--doux); }
.chiffres dd { margin: 0.15rem 0 0; color: var(--encre); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.chiffre-fort dd { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 420px) { .chiffres dd { font-size: 1rem; } }
.enveloppe { margin-bottom: 1.1rem; }
.enveloppe-tete, .categories li { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; font-size: 0.88rem; }
.enveloppe-tete { margin: 0 0 0.4rem; color: var(--encre); font-weight: 600; }
.enveloppe-tete span:last-child, .categories li span:nth-child(2) { color: var(--doux); font-variant-numeric: tabular-nums; font-weight: 500; }
.categories { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.categories li span:first-child { color: var(--texte); }
.jauge { flex: 1 0 100%; height: 8px; border-radius: 99px; background: var(--trait); overflow: hidden; }
.jauge i { display: block; height: 100%; border-radius: inherit; background: var(--degrade); transform-origin: left center; }
.jauge-total { height: 10px; }
.jauge-total i { width: 92%; }
.jauge-logement i, .jauge-assurances i { width: 100%; background: #f59e0b; }
.jauge-alimentation i { width: 87%; }
.jauge-transport i { width: 89%; }
.jauge-loisirs i { width: 80%; }
.jauge-sante i { width: 75%; }
.jauge-abonnements i { width: 80%; }
.sante { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.25rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--trait); font-size: 0.8rem; color: var(--doux); }
.sante li { display: flex; flex-direction: column; gap: 0.1rem; }
.sante-valeur { color: var(--encre); font-weight: 700; font-size: 1rem; }

/* --- Gestion de patrimoine ----------------------------------------------- */
/* Même grille que le budget, carte à gauche sur grand écran. */
.patrimoine { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr 1fr; }
.patrimoine-carte { order: -1; }
@media (max-width: 900px) { .patrimoine { grid-template-columns: 1fr; } .patrimoine-carte { order: 0; } }
.patrimoine-carte {
  margin: 0; padding: 1.4rem;
  background: var(--carte); border: 1px solid var(--trait); border-radius: 18px;
  box-shadow: 0 30px 70px -40px rgba(15, 23, 42, 0.45);
}
.patrimoine-carte .apercu-note { color: var(--doux); }
.repartition { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--trait); }
.repartition i { display: block; height: 100%; transform-origin: left center; }
.repartition .seg-immo { width: 65.5%; }
.repartition .seg-bloque { width: 15.9%; }
.repartition .seg-long { width: 8.3%; }
.repartition .seg-acces { width: 6.2%; }
.repartition .seg-scpi { width: 4.1%; }
.seg-immo { background: var(--violet); }
.seg-bloque { background: var(--bleu); }
.seg-long { background: #f59e0b; }
.seg-acces { background: #10b981; }
.seg-scpi { background: #64748b; }
.segments { margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--texte); }
.segments li { display: flex; align-items: center; gap: 0.5rem; }
.segments small { color: var(--doux); }
.segments li > span:last-child { margin-left: auto; color: var(--doux); font-variant-numeric: tabular-nums; }
.pastille-seg { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.scenarios { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--trait); }
.scenarios .enveloppe-tete .ecart { color: var(--ok-encre); font-weight: 700; }
.scenarios svg { display: block; width: 100%; height: auto; margin-top: 0.25rem; }
.scenarios .axes line { stroke: var(--trait); stroke-width: 1; }
.scenarios .axes line + line { stroke-dasharray: 3 5; }
.trace { fill: none; stroke-width: 3; stroke-linecap: round; }
.trace-a { stroke: var(--doux); stroke-dasharray: 6 6; }
.trace-b { stroke: var(--violet); }
.jalons circle { fill: var(--carte); stroke: var(--violet); stroke-width: 2.5; }
.jalons text { fill: var(--doux); font: 500 10.5px var(--police); }
.legende-scenarios { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: 0.4rem 0 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--doux); }
.leg-trait { display: inline-block; width: 18px; height: 0; margin-right: 0.45rem; vertical-align: middle; border-top: 3px solid var(--violet); }
.leg-trait-a { border-top: 3px dashed var(--doux); }

/* --- Vos données ---------------------------------------------------------- */
.garanties { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .garanties { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .garanties { grid-template-columns: repeat(4, 1fr); } }
.garanties li { padding: 1.25rem; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--trait); }
.garanties p { margin: 0; color: var(--doux); font-size: 0.97rem; }

/* --- Liste d'attente ------------------------------------------------------ */
.attente-bloc {
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(139, 92, 246, 0.35), transparent 60%),
    var(--nuit);
  color: var(--sur-nuit);
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.5rem);
}
.attente-bloc h2 { color: #fff; }
.attente-bloc .surtitre { color: #c4b5fd; }
.attente-bloc > p { color: var(--sur-nuit-doux); max-width: 40rem; }
.attente { margin-top: 1.75rem; max-width: 38rem; }
.attente label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #fff; }
.attente-champ { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.attente input[type="email"] {
  flex: 1 1 16rem; min-width: 0;
  padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4); background: rgba(15, 23, 42, 0.6); color: #fff;
  font: inherit;
}
.attente input[type="email"]::placeholder { color: #64748b; }
fieldset.attente-profil { margin: 1.25rem 0 0; padding: 0; border: 0; }
.attente-profil legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; color: #fff; }
.attente-profil legend small { font-weight: 400; color: var(--sur-nuit-doux); }
.choix { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choix label {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0;
  padding: 0.5rem 0.85rem; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 500; color: var(--sur-nuit); cursor: pointer;
}
.choix input { accent-color: #8b5cf6; margin: 0; }
.choix label:has(input:checked) { border-color: #a78bfa; background: rgba(139, 92, 246, 0.18); }
.attente-note { margin: 1rem 0 0; font-size: 0.9rem; color: var(--sur-nuit-doux); }
.attente-note a { color: #c4b5fd; }
.attente-statut { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: 10px; font-weight: 600; }
.attente-statut[data-etat="ok"] { background: var(--ok-fond); color: var(--ok-encre); }
.attente-statut[data-etat="ko"] { background: var(--ko-fond); color: var(--ko-encre); }
/* Pot de miel : hors écran, jamais `display:none` (certains robots l'ignorent alors). */
.attente-miel { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --- Questions ------------------------------------------------------------ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--trait); padding: 1rem 0; }
.faq summary { cursor: pointer; color: var(--encre); font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0; color: var(--doux); }

/* --- Pages de texte (légal, merci, 404) ----------------------------------- */
.texte { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.texte h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.texte h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.texte .version { color: var(--doux); }
.fil ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.9rem; color: var(--doux); }
.fil li + li::before { content: "›"; margin-right: 0.5rem; }
.fil a { color: var(--doux); }
.texte table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.texte th, .texte td { text-align: left; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--trait); }
.texte th { color: var(--encre); }
.texte dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; }
.texte dt { color: var(--encre); font-weight: 600; }
.texte dd { margin: 0; }
@media (max-width: 640px) {
  .texte dl { grid-template-columns: 1fr; }
  .texte dd { margin-bottom: 0.6rem; }
  .table-defile { overflow-x: auto; }
  .texte table { min-width: 34rem; }
}

/* --- Barre d'appel au défilement ----------------------------------------- */
/* Cachée par l'attribut `hidden` tant que site.js ne l'a pas activée. */
.barre-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 0.7rem 0 calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.92); color: var(--sur-nuit);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform 0.35s ease;
}
.barre-cta.visible { transform: none; }
.barre-cta .cadre { display: flex; align-items: center; gap: 1rem; }
.barre-cta p { margin: 0; font-size: 0.95rem; color: var(--sur-nuit-doux); }
.barre-cta strong { color: #fff; }
.barre-cta .bouton { margin-left: auto; white-space: nowrap; }
.barre-cta-fermer {
  flex: none; width: 2rem; height: 2rem; border: 0; border-radius: 8px; background: transparent;
  color: var(--sur-nuit-doux); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.barre-cta-fermer:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 560px) { .barre-cta-suite { display: none; } }
.js .pied { padding-bottom: 6rem; }

/* --- Animations ------------------------------------------------------------ */
/* Seulement quand site.js a posé `.js` sur <html> et que la personne n'a pas
   demandé moins de mouvement : sans script, tout est visible d'emblée. */
@media (prefers-reduced-motion: no-preference) {
  /* Ouverture : les trois couches de la projection montent l'une après l'autre. */
  /* Origine : l'axe des abscisses (y = 190 sur 220). */
  .couche { transform-box: view-box; transform-origin: 50% 86.4%; animation: monter 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .couche-2 { animation-delay: 0.15s; }
  .couche-3 { animation-delay: 0.3s; }
  @keyframes monter { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
  .pastille::before { animation: pouls 2.4s ease-in-out infinite; }
  @keyframes pouls { 50% { box-shadow: 0 0 0 6px rgba(167, 139, 250, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.55); } }

  /* Apparition au défilement. */
  .js .revele, .js .revele-groupe > * {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1);
  }
  .js .revele.vu, .js .revele-groupe.vu > * { opacity: 1; transform: none; }
  .js .revele-groupe.vu > :nth-child(2) { transition-delay: 0.1s; }
  .js .revele-groupe.vu > :nth-child(3) { transition-delay: 0.2s; }
  .js .revele-groupe.vu > :nth-child(4) { transition-delay: 0.3s; }

  /* Les jauges du budget se remplissent quand la carte arrive à l'écran. */
  .js .budget-carte .jauge i { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) 0.25s; }
  .js .budget-carte.vu .jauge i { transform: none; }
  .js .budget-carte.vu .categories li:nth-child(2) .jauge i { transition-delay: 0.32s; }
  .js .budget-carte.vu .categories li:nth-child(3) .jauge i { transition-delay: 0.39s; }
  .js .budget-carte.vu .categories li:nth-child(4) .jauge i { transition-delay: 0.46s; }
  .js .budget-carte.vu .categories li:nth-child(5) .jauge i { transition-delay: 0.53s; }
  .js .budget-carte.vu .categories li:nth-child(6) .jauge i { transition-delay: 0.6s; }
  .js .budget-carte.vu .categories li:nth-child(7) .jauge i { transition-delay: 0.67s; }

  /* Patrimoine : la répartition se remplit, les scénarios se tracent, puis les jalons. */
  .js .patrimoine-carte .repartition i { transform: scaleX(0); transition: transform 0.9s cubic-bezier(.2, .7, .2, 1) 0.2s; }
  .js .patrimoine-carte.vu .repartition i { transform: none; }
  .js .patrimoine-carte .trace-b { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease 0.5s; }
  .js .patrimoine-carte.vu .trace-b { stroke-dashoffset: 0; }
  .js .patrimoine-carte .trace-a { opacity: 0; transition: opacity 0.8s ease 0.4s; }
  .js .patrimoine-carte.vu .trace-a { opacity: 1; }
  .js .patrimoine-carte .jalons circle { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.3); transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.3, 1.6, .5, 1); }
  .js .patrimoine-carte.vu .jalons circle { opacity: 1; transform: none; }
  .js .patrimoine-carte.vu .jalons circle:nth-of-type(1) { transition-delay: 0.9s; }
  .js .patrimoine-carte.vu .jalons circle:nth-of-type(2) { transition-delay: 1.3s; }
  .js .patrimoine-carte.vu .jalons circle:nth-of-type(3) { transition-delay: 1.8s; }

  .carte, .profil, .etapes li, .garanties li { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
  .carte:hover, .profil:hover, .etapes li:hover, .garanties li:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.45); border-color: rgba(139, 92, 246, 0.45); }
  .js .revele-groupe.vu > :hover { transform: translateY(-3px); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .barre-cta { transition: none; }
}

/* --- Pied ----------------------------------------------------------------- */
.pied { padding: 2.5rem 0; border-top: 1px solid var(--trait); color: var(--doux); font-size: 0.92rem; }
.pied .cadre { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.pied a { color: var(--doux); }
.pied .pousse { margin-left: auto; }
