/* ============================================================================
   myCerfa — GABARITS DE PAGES (vitrine · parcours · profil · sommaire)
   ============================================================================

   MODE D'EMPLOI (phase 2 : conversion des autres pages)
   ----------------------------------------------------------------------------
   1. Dans la page, AVANT l'include du header :
          $gabarit = 'vitrine';      // ou 'parcours', 'profil', 'sommaire'
      → header.php charge ce fichier, pose <html class="g-js"> et
        <body class="g-page g-vitrine"> ; footer.php charge assets/js/gabarits.js.
      Les pages SANS $gabarit ne chargent ni ce CSS ni ce JS (rendu inchangé).

   2. En tête du fichier PHP de la page, un commentaire « GABARIT : … » qui liste
      les blocs utilisés (cf. les 4 pages modèles ci-dessous).

   3. Copier la page modèle du gabarit, puis y verser le contenu de la page à
      convertir. Le texte ne change pas : on réorganise, on découpe, on met en
      forme. Les maquettes d'écran restent marquées « Exemple ».

   PAGES MODÈLES
      Vitrine  → fonctionnalites/paiement-don-en-ligne.php
      Parcours → fonctionnalites/promesses-de-dons.php
      Profil   → solutions/associations-cultuelles.php
      Sommaire → solutions/index.php

   PRINCIPES (valables pour tous les composants)
   - Classes préfixées `g-` ; comportements JS déclenchés par des attributs
     `data-g-*` (un module par attribut dans gabarits.js).
   - Sans JS, tout est lisible : rien n'est masqué tant que <html> n'a pas la
     classe `g-js` ; les onglets s'affichent les uns sous les autres ; les
     visuels « collants » s'empilent. `html.g-fallback` (posé si le JS n'a pas
     démarré au bout de 2,5 s) réaffiche tout.
   - `prefers-reduced-motion: reduce` coupe toutes les animations (bloc 6) et
     le JS n'anime rien (compteurs à leur valeur finale, pas de rotation…).
   - Animations en transform / opacity uniquement.
   - Mobile : tout fonctionne à 375 px sans défilement horizontal de la page.
     Les seuls défilements horizontaux sont INTERNES (barre d'onglets, frise).
   - Les blocs existants de site.css (.donform, .schedule, .recon-table,
     .promises-board, .scenario-list, .fee-grid, .cta-band, .dive-list…) se
     réutilisent tels quels à l'intérieur des gabarits.

   ============================================================================
   0. SOCLE COMMUN (tous gabarits)
   ----------------------------------------------------------------------------
   .g-sec                    section (padding standard). Variantes :
                             .g-sec--tint (fond paper-2), .g-sec--tight,
                             .g-sec--ink (fond sombre)
   .g-wrap                   conteneur centré (max 1120 px) ; .g-wrap--narrow (820)
   .g-head                   en-tête de section centré : .g-eyebrow + h2 + p
                             .g-head--left : aligné à gauche
   .g-eyebrow                surtitre en capitales
   .g-crumb                  fil d'Ariane (<nav class="g-crumb" aria-label="Fil d'Ariane">)
   .g-example                étiquette « Exemple » posée sur une maquette
   .g-link                   lien de texte (pine, gras) — remplace les style="" inline

   ⚠️ Ne jamais poser data-g-reveal / data-g-stagger sur le h1 ni sur le texte
      du hero : il serait invisible jusqu'à l'exécution du JS (LCP retardé).
   [data-g-reveal]           apparition au défilement. Valeurs : "" (bas → haut),
                             "left", "right", "zoom". Délai : style="--g-i:2"
                             (×90 ms).
   [data-g-stagger]          sur un parent : ses enfants apparaissent en cascade
                             (le JS numérote --g-i). Ne pas cumuler avec
                             data-g-reveal sur les enfants.
   [data-g-inview]           reçoit seulement la classe .is-in à l'apparition
                             (pour déclencher une animation CSS propre au bloc).
   [data-g-count="N"]        compteur : le texte HTML contient DÉJÀ la valeur
                             finale (lisible sans JS). Options :
                               data-g-steps="2,3,4,6,10"  valeurs successives
                               data-g-decimals="2"
                             Préfixe / unité hors de l'élément :
                             <span data-g-count="100">100</span> %
                             ⚠️ Uniquement des chiffres VRAIS déjà dans la page.
   .g-faq                    FAQ en accordéon :
                               <div class="g-faq">
                                 <details><summary><h3>Question ?</h3></summary>
                                   <div class="g-faq-a"><p>Réponse…</p></div></details>
                               </div>
                             ⚠️ Questions / réponses identiques mot pour mot au
                             FAQPage de seo/<même chemin>.php.

   [data-g-tabs]             onglets ARIA (clavier : ← → Début Fin) :
                               <div class="g-tabs" data-g-tabs>
                                 <div class="g-tablist" role="tablist" aria-label="…" hidden>
                                   <button type="button" role="tab" id="t-a" aria-controls="a">A</button>
                                   <button type="button" role="tab" id="t-b" aria-controls="b">B</button>
                                 </div>
                                 <div class="g-tabpanel" role="tabpanel" id="a" aria-labelledby="t-a">…</div>
                                 <div class="g-tabpanel" role="tabpanel" id="b" aria-labelledby="t-b">…</div>
                               </div>
                             `hidden` sur la tablist : sans JS, pas d'onglets,
                             les panneaux sont empilés. Une ancre (#b, ou l'id
                             d'un élément DANS un panneau) ouvre le bon onglet,
                             au chargement comme au clic sur un lien interne.
                             Habillages : .g-tabs--explorer (vitrine),
                             .g-tabs--switch (interrupteur 2 positions, parcours).

   1. VITRINE (pages fonctionnalités cœur)
   ----------------------------------------------------------------------------
   .g-vhero                  hero partagé : .g-vhero-grid > .g-vhero-txt + .g-stage
   .g-stage [data-g-inview]  scène de maquette animée : .g-stage-main (l'écran)
                             + .g-stage-layers (aria-hidden) > .g-layer > .g-layer-in
                             (cartes flottantes ; positions .g-layer--tl / --tr /
                             --bl / --br ; délai style="--g-i:n").
                             Couches qui apparaissent l'une après l'autre puis
                             flottent. Sous 900 px : couches posées sous l'écran.
   .g-keys                   bandeau sombre de 3 bénéfices chiffrés :
                             .g-key > .g-key-fig ([data-g-count]) + .g-key-cap
                             + h2/h3 + p
   [data-g-scrolly]          scrollytelling : texte en étapes à gauche, visuel
                             collant à droite qui change d'état :
                               <div class="g-scrolly" data-g-scrolly>
                                 <ol class="g-scrolly-steps">
                                   <li class="g-scrolly-step" data-g-step="1">
                                     <h3>…</h3><p>…</p>
                                     <div class="g-scrolly-slot"></div>   ← mobile
                                   </li>…
                                 </ol>
                                 <div class="g-scrolly-stage">
                                   <div class="g-phone"><div class="g-scrolly-states">
                                     <div class="g-scrolly-state g-screen" data-g-state="1" role="img" aria-label="…">…</div>
                                   …</div></div>
                                 </div>
                               </div>
                             Sous 900 px, le JS range chaque état dans le
                             .g-scrolly-slot de son étape (pile simple, plus de
                             sticky). Sans JS : états empilés sous les étapes.
   .g-screen …               mini-écran de téléphone (exemple) : .g-screen-bar,
                             .g-screen-title, .g-row (.is-on), .g-check, .g-btn,
                             .g-ok (confirmation)
   .g-tabs--explorer         explorateur de fonctions en onglets ; chaque
                             panneau : .g-panel > .g-panel-txt + .g-panel-visual
                             (.g-panel--solo : texte seul, liste en 2 colonnes)
   [data-g-progress]         barre de progression de lecture (en haut, fixe) :
                             <div class="g-progress" data-g-progress aria-hidden="true"></div>

   2. PARCOURS (pages de processus)
   ----------------------------------------------------------------------------
   .g-phero                  hero centré sur fond quadrillé + schéma de flux
   .g-flow [data-g-inview]   schéma de flux : <ol class="g-flow"> de
                             .g-flow-node (.g-flow-ic + .g-flow-lab + .g-flow-sub),
                             style="--g-i:n" ; les nœuds s'allument l'un après
                             l'autre, les liaisons se remplissent.
   .g-tally                  chiffres-repères : .g-tally-item > .g-tally-v + .g-tally-k
   .g-tlsec                  section frise : .g-tlsec-head (collant) + .g-timeline
   [data-g-timeline]         frise verticale : la ligne se dessine au défilement,
                             les étapes s'activent (.is-on) en passant le milieu
                             de l'écran :
                               <ol class="g-timeline" data-g-timeline>
                                 <li class="g-tl-item"><div class="g-tl-dot">01</div>
                                   <div class="g-tl-body"><h3>…</h3><p>…</p></div></li>
                               </ol>
   .g-tabs--switch           interrupteur à 2 positions (« Sans / Avec myCerfa »,
                             « Vous relancez / Le donateur règle »…) : même
                             balisage que [data-g-tabs] avec 2 onglets.
                             ⚠️ Les deux listes doivent exister dans la page :
                             ne jamais rédiger un « avant » qui n'y est pas.
   .g-path [data-g-inview]   étapes numérotées reliées par une ligne qui se
                             dessine : <ol class="g-path"><li><div class="g-path-name">
                             <div class="g-path-desc"></li></ol>
   .g-note                   encadré « à savoir » / « ce que myCerfa ne fait pas »

   3. PROFIL (pages solutions / cibles)
   ----------------------------------------------------------------------------
   .g-prhero                 hero éditorial chaud, aligné à gauche
   [data-g-rotate]           mots qui défilent (un tour complet, puis arrêt ;
                             pause au survol) :
                               <p class="g-rotline">
                                 <span class="sr-only">A · B · C</span>
                                 <span class="g-rotator" data-g-rotate aria-hidden="true">
                                   <span>A</span><span>B</span><span>C</span></span></p>
                             Sans JS / mouvement réduit : liste « A · B · C ».
   [data-g-marquee]          bandeau défilant (décoratif : aria-hidden, chaque
                             item doit exister ailleurs dans la page) :
                               <div class="g-marquee" data-g-marquee>
                                 <div class="g-marquee-view" aria-hidden="true">
                                   <ul class="g-marquee-track"><li>…</li></ul></div>
                                 <button type="button" class="g-marquee-btn" data-g-marquee-toggle hidden>Pause</button>
                               </div>
   .g-zz                     sections en zig-zag : .g-zz-row > .g-zz-visual
                             (data-g-reveal="left|right") + .g-zz-txt ; une
                             rangée sur deux est inversée automatiquement.
   [data-g-frieze]           frise horizontale défilable (scroll-snap) :
                               <div class="g-frieze" data-g-frieze>
                                 <ol class="g-frieze-track" tabindex="0" aria-label="…">
                                   <li class="g-frieze-card"><span class="g-frieze-when">…</span>
                                     <p>…</p><a class="g-frieze-fn" href="…">…</a></li>
                                 </ol>
                                 <div class="g-frieze-ctrl" hidden>
                                   <button type="button" data-g-frieze-prev aria-label="Précédent">←</button>
                                   <div class="g-frieze-bar"><span></span></div>
                                   <button type="button" data-g-frieze-next aria-label="Suivant">→</button>
                                 </div></div>

   4. SOMMAIRE (pages hub)
   ----------------------------------------------------------------------------
   .g-shero                  hero éditorial : .g-shero-grid > texte + <nav><ol class="g-sindex">
                             (index numéroté des sous-pages)
   .g-ul [data-g-inview]     souligné animé (sur un <em> du titre, par ex.)
   .g-cards [data-g-stagger] grille de cartes en cascade ; .g-card :
                             [data-g-spot] projecteur qui suit la souris,
                             [data-g-tilt] légère inclinaison 3D (souris fine
                             uniquement). Contenu : .g-card-n, .g-card-ic, h2, p,
                             .g-card-go
   .g-index                  liste éditoriale numérotée 01 → N (ol)
   [data-g-filter]           filtres par puces (si pertinent : blog, aides…) :
                               <div data-g-filter>
                                 <div class="g-chips" role="group" aria-label="Filtrer">
                                   <button type="button" class="g-chip" data-g-filter-value="all" aria-pressed="true">Tout</button>
                                   <button type="button" class="g-chip" data-g-filter-value="x" aria-pressed="false">X</button>
                                 </div>
                                 <p class="sr-only" aria-live="polite" data-g-filter-status></p>
                                 <div class="g-cards"><a class="g-card" data-g-tags="x y">…</a></div>
                               </div>
   ============================================================================ */


/* ============================================================================
   0. SOCLE COMMUN
   ============================================================================ */
.g-page {
  --g-ease: cubic-bezier(.2, .7, .2, 1);
  --g-ease-out: cubic-bezier(.16, 1, .3, 1);
  --g-green-ink: #006e52;      /* vert lisible sur fond clair (le --sky ne l'est pas) */
  --g-sky-soft: #e3f7f0;
  --g-head-h: 84px;            /* hauteur du header collant, pour les ancres et le sticky */
}
.g-page [id] { scroll-margin-top: calc(var(--g-head-h) + 16px); }
/* Les éléments en attente d'apparition latérale (data-g-reveal="left|right") sont
   décalés hors du cadre : `clip` (et non `hidden`) coupe ce débord sans créer de
   conteneur de défilement, donc sans casser les position: sticky. */
.g-page main { overflow-x: clip; }

.g-sec { padding: 88px 40px; position: relative; }
.g-sec--tight { padding-top: 56px; padding-bottom: 56px; }
.g-sec--tint { background: var(--paper-2); }
.g-sec--ink { background: var(--ink); color: var(--white); }
.g-wrap { max-width: 1120px; margin: 0 auto; }
.g-wrap--narrow { max-width: 820px; }

.g-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.g-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }
.g-head p { font-size: 17px; color: var(--ink-soft); }
.g-head--left { text-align: left; margin-left: 0; }
.g-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 14px;
}
.g-crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }
.g-crumb a { color: var(--pine); font-weight: 600; }
.g-link { color: var(--pine); font-weight: 600; }
.g-link:hover { text-decoration: underline; }
.g-example {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--white); border: 1px dashed #c5cede;
  padding: 3px 9px; border-radius: 100px;
}

/* Focus visibles (les boutons des gabarits n'ont pas de style navigateur) */
.g-page :is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px;
}
.g-sec--ink :is(a, button, [tabindex]):focus-visible,
.g-keys :is(a, button):focus-visible { outline-color: var(--apricot); }

/* ---------- Apparitions ---------- */
/* Propriétés individuelles `translate` / `scale` (et non `transform`) : l'apparition
   ne se bat pas avec les transform propres aux composants (inclinaison, survol…). */
html.g-js [data-g-reveal],
html.g-js [data-g-stagger] > * {
  opacity: 0; translate: 0 28px;
  transition: opacity .75s var(--g-ease), translate .75s var(--g-ease-out), scale .75s var(--g-ease-out);
  transition-delay: calc(var(--g-i, 0) * 90ms);
}
html.g-js [data-g-reveal="left"]  { translate: -44px 0; }
html.g-js [data-g-reveal="right"] { translate: 44px 0; }
html.g-js [data-g-reveal="zoom"]  { translate: none; scale: .94; }
html.g-js [data-g-reveal].is-in,
html.g-js [data-g-stagger].is-in > * { opacity: 1; translate: none; scale: none; }
html.g-js.g-fallback [data-g-reveal],
html.g-js.g-fallback [data-g-stagger] > * { opacity: 1; translate: none; scale: none; }

/* ---------- Compteurs ---------- */
[data-g-count] { font-variant-numeric: tabular-nums; display: inline-block; }

/* ---------- FAQ accordéon ---------- */
.g-faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; counter-reset: gfaq; }
.g-faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .25s, box-shadow .25s; counter-increment: gfaq;
}
.g-faq details:hover { border-color: #c9d2e3; }
.g-faq details[open] { border-color: var(--pine); box-shadow: var(--shadow-md); }
.g-faq summary {
  cursor: pointer; list-style: none; padding: 20px 22px;
  display: flex; align-items: center; gap: 16px; border-radius: var(--r-lg);
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::before {
  content: counter(gfaq, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--pine);
  background: var(--pine-soft); border-radius: 8px; padding: 4px 8px; flex-shrink: 0;
}
.g-faq summary h3 { font-size: 17px; font-weight: 700; margin: 0; flex: 1; letter-spacing: -.01em; }
.g-faq summary::after {
  content: ""; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  background:
    linear-gradient(var(--pine), var(--pine)) center / 12px 2px no-repeat,
    linear-gradient(var(--pine), var(--pine)) center / 2px 12px no-repeat,
    var(--paper-2);
  transition: transform .35s var(--g-ease-out), background-color .25s;
}
.g-faq details[open] summary::after { transform: rotate(135deg); background-color: var(--apricot-soft); }
.g-faq-a { padding: 0 22px 22px 70px; }
.g-faq-a p { font-size: 15px; color: var(--ink-soft); }
.g-faq-a a { color: var(--pine); font-weight: 600; }
.g-faq details[open] .g-faq-a { animation: g-faq-in .45s var(--g-ease-out); }
@keyframes g-faq-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Onglets (socle) ---------- */
.g-tabs { scroll-margin-top: calc(var(--g-head-h) + 16px); }
.g-tablist { display: flex; position: relative; }
.g-tablist[hidden] { display: none; }
.g-tab {
  font: inherit; font-family: var(--display); font-weight: 700; cursor: pointer;
  background: none; border: none; color: var(--ink-soft); position: relative; z-index: 1;
  transition: color .25s;
}
.g-tab[aria-selected="true"] { color: var(--ink); }
.g-tab-ink {
  position: absolute; left: 0; z-index: 0; pointer-events: none;
  width: var(--g-ink-w, 0); transform: translateX(var(--g-ink-x, 0));
  transition: transform .45s var(--g-ease-out), width .45s var(--g-ease-out);
}
.g-tabpanel[hidden] { display: none; }
.g-tabpanel.is-entering { animation: g-panel-in .5s var(--g-ease-out); }
@keyframes g-panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Sans JS : panneaux empilés et séparés */
.g-tabpanel + .g-tabpanel { margin-top: 56px; }
html.g-js:not(.g-fallback) .g-tabs.is-ready .g-tabpanel + .g-tabpanel { margin-top: 0; }


/* ============================================================================
   1. GABARIT VITRINE
   ============================================================================ */

/* ---------- Barre de progression de lecture ---------- */
.g-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--pine), var(--sky));
  transform-origin: 0 50%; transform: scaleX(var(--g-p, 0)); pointer-events: none;
}
html:not(.g-js) .g-progress { display: none; }

/* ---------- Hero partagé texte / scène ---------- */
.g-vhero {
  padding: 64px 40px 84px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 48% 60% at 85% 30%, rgba(37,64,215,.14) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 70% 85%, rgba(0,179,133,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 100%, var(--apricot-soft) 0%, transparent 70%),
    var(--paper);
}
.g-vhero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  max-width: var(--maxw); margin: 0 auto;
}
.g-vhero h1 { font-size: clamp(36px, 4.4vw, 58px); margin: 16px 0 20px; letter-spacing: -.03em; isolation: isolate; }
.g-vhero h1 em { font-style: normal; color: var(--pine); position: relative; white-space: nowrap; }
.g-vhero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; z-index: -1;
  background: var(--apricot); border-radius: 4px; transform-origin: 0 50%;
}
html.g-js .g-vhero h1 em::after { transform: scaleX(0); transition: transform .9s .35s var(--g-ease-out); }
html.g-js .g-vhero.is-in h1 em::after, html.g-js.g-fallback .g-vhero h1 em::after { transform: scaleX(1); }
.g-vhero-lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 30px; max-width: 540px; }

/* Scène de maquette */
.g-stage { position: relative; padding: 46px 40px; }
.g-stage::before {          /* halo derrière l'écran */
  content: ""; position: absolute; inset: 8% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,64,215,.22), transparent 65%);
  filter: blur(20px); z-index: 0;
}
.g-stage > .g-example { position: absolute; top: 4px; left: 40px; z-index: 3; }
.g-stage-main { position: relative; z-index: 1; }
.g-stage-main .donform { box-shadow: var(--shadow-lg); }
.g-stage .donform-amt { display: block; text-align: center; cursor: default; }
.g-stage .donform-submit { display: block; text-align: center; cursor: default; }
.g-layer { position: absolute; z-index: 2; max-width: 250px; }
.g-layer-in {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
}
.g-layer .g-layer-ic {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 17px; background: var(--pine-soft);
}
.g-layer .g-layer-t { font-family: var(--display); font-weight: 800; font-size: 12.5px; line-height: 1.25; }
.g-layer .g-layer-d { font-size: 11px; color: var(--ink-soft); line-height: 1.35; }
.g-layer--tl { top: 64px; left: -6px; }
.g-layer--tr { top: -8px; right: -4px; }
.g-layer--bl { bottom: 26px; left: -14px; }
.g-layer--br { bottom: 70px; right: -12px; }
html.g-js .g-stage-main { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .8s var(--g-ease), transform .9s var(--g-ease-out); }
html.g-js .g-layer { opacity: 0; transform: translateY(18px) scale(.9); transition: opacity .6s var(--g-ease), transform .7s var(--g-ease-out); transition-delay: calc(.45s + var(--g-i, 0) * .35s); }
html.g-js .g-stage.is-in .g-stage-main,
html.g-js .g-stage.is-in .g-layer,
html.g-js.g-fallback .g-stage-main,
html.g-js.g-fallback .g-layer { opacity: 1; transform: none; }
/* Flottaison : appliquée à un enfant pour ne pas se battre avec l'apparition */
.g-stage.is-in .g-layer > .g-layer-in,
.g-stage.is-in .g-stage-main > * { animation: g-float 6s ease-in-out 1.8s 3 alternate; }
.g-stage.is-in .g-layer:nth-of-type(odd) > .g-layer-in { animation-delay: 2.4s; animation-duration: 5s; }
@keyframes g-float { from { transform: translateY(0); } to { transform: translateY(-9px); } }

/* ---------- Bandeau de bénéfices chiffrés ---------- */
.g-keys {
  max-width: 1120px; margin: 0 auto; background: var(--ink); color: var(--white);
  border-radius: var(--r-xl); display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative; overflow: hidden;
}
.g-keys::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  right: -140px; top: -220px; background: radial-gradient(circle, rgba(37,64,215,.55), transparent 70%);
}
.g-key { padding: 40px 34px 38px; position: relative; }
.g-key + .g-key { border-left: 1px solid #1f3157; }
.g-key-fig {
  font-family: var(--display); font-weight: 800; font-size: clamp(44px, 4.6vw, 62px);
  line-height: 1; color: var(--apricot); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 6px;
}
.g-key-fig small { font-size: .42em; font-weight: 700; color: #ffe58a; letter-spacing: 0; }
.g-key-cap { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8597b8; margin: 10px 0 18px; }
.g-key h2 { font-size: 20px; color: var(--white); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.g-key p { font-size: 14.5px; color: #a6b3cd; }
.g-key p a { color: var(--apricot); font-weight: 600; }

/* ---------- Scrollytelling ---------- */
.g-scrolly {
  display: grid; grid-template-columns: 1fr 380px; gap: 72px;
  max-width: 1060px; margin: 0 auto; align-items: start;
}
.g-scrolly-steps { list-style: none; counter-reset: gst; }
.g-scrolly-step {
  min-height: 58vh; display: flex; flex-direction: column; justify-content: center;
  padding: 28px 0 28px 34px; position: relative; counter-increment: gst;
}
.g-scrolly-step::before {     /* rail */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line);
}
.g-scrolly-step::after {      /* segment actif */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--pine);
  transform-origin: 50% 0; transform: scaleY(0); transition: transform .6s var(--g-ease-out);
}
.g-scrolly-num {
  font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--pine);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.g-scrolly-num::before {
  content: counter(gst, decimal-leading-zero);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1.5px solid var(--line); transition: .4s var(--g-ease);
}
.g-scrolly-step h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.g-scrolly-step p { font-size: 16.5px; color: var(--ink-soft); max-width: 460px; }
html.g-js .g-scrolly.is-ready .g-scrolly-step { opacity: .38; transition: opacity .5s var(--g-ease); }
html.g-js .g-scrolly.is-ready .g-scrolly-step.is-active { opacity: 1; }
.g-scrolly-step.is-active::after { transform: scaleY(1); }
.g-scrolly-step.is-active .g-scrolly-num::before { background: var(--pine); border-color: var(--pine); color: var(--white); }
.g-scrolly-slot:empty { display: none; }

.g-scrolly-stage { position: sticky; top: calc(var(--g-head-h) + 40px); padding-top: 8px; }
.g-scrolly-stage > .g-example { margin-bottom: 12px; }
.g-scrolly-states { position: relative; height: 500px; }
.g-scrolly-state {
  position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .5s var(--g-ease), transform .6s var(--g-ease-out);
}
.g-scrolly-state.is-active { opacity: 1; transform: none; }
.g-scrolly-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.g-scrolly-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: .3s; }
.g-scrolly-dots span.is-active { background: var(--pine); width: 24px; border-radius: 100px; }
/* Sans JS (ou repli) : états empilés, rien de collant */
html:not(.g-js) .g-scrolly-stage, html.g-fallback .g-scrolly-stage { position: static; }
html:not(.g-js) .g-scrolly-states, html.g-fallback .g-scrolly-states { height: auto; display: grid; gap: 16px; }
html:not(.g-js) .g-scrolly-state, html.g-fallback .g-scrolly-state { position: static; opacity: 1; transform: none; }
html:not(.g-js) .g-scrolly-dots, html.g-fallback .g-scrolly-dots { display: none; }

/* Téléphone (cadre) et écrans d'exemple */
.g-phone {
  background: var(--ink); border-radius: 40px; padding: 12px; box-shadow: var(--shadow-lg);
  position: relative; max-width: 330px; margin: 0 auto;
}
.g-phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 20px;
  border-radius: 100px; background: #050d1c; transform: translateX(-50%); z-index: 2;
}
.g-phone .g-scrolly-states { border-radius: 30px; overflow: hidden; background: var(--white); }
.g-screen { background: var(--white); padding: 50px 18px 18px; display: flex; flex-direction: column; gap: 10px; border-radius: 30px; }
.g-screen-bar { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.g-screen-title { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.2; margin-bottom: 4px; }
.g-row {
  display: flex; align-items: center; gap: 10px; padding: 12px; font-size: 13px;
  border: 1.5px solid var(--line); border-radius: 12px;
}
.g-row b { font-family: var(--display); margin-left: auto; white-space: nowrap; }
.g-row small { display: block; font-size: 11px; color: var(--ink-soft); }
.g-row.is-on { border-color: var(--pine); background: var(--pine-soft); }
.g-check {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid #c5cede; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--white);
}
.g-row.is-on .g-check { background: var(--pine); border-color: var(--pine); }
.g-check--round { border-radius: 50%; }
.g-seg { display: flex; background: var(--paper-2); border-radius: 10px; padding: 4px; font-size: 12px; font-weight: 700; }
.g-seg span { flex: 1; text-align: center; padding: 7px 4px; border-radius: 7px; color: var(--ink-soft); }
.g-seg span.is-on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.g-wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-wallets span { background: var(--ink); color: var(--white); border-radius: 10px; padding: 11px 6px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 13px; }
.g-sum { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.g-sum div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 12.5px; }
.g-sum div + div { border-top: 1px solid var(--line); }
.g-sum span { color: var(--ink-soft); }
.g-sum .is-total { background: var(--pine-soft); font-weight: 700; }
.g-sum .is-tax { background: var(--apricot-soft); color: #8a6d12; }
.g-sum .is-tax span { color: #8a6d12; }
.g-btn { margin-top: auto; background: var(--pine); color: var(--white); border-radius: 12px; padding: 14px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 14px; }
.g-ok { text-align: center; padding: 20px 0 6px; }
.g-ok-ic {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--g-sky-soft); color: var(--g-green-ink); font-size: 34px; font-weight: 800;
}
.g-scrolly-state.is-active .g-ok-ic { animation: g-pop .6s var(--g-ease-out); }
@keyframes g-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
.g-ok-t { font-family: var(--display); font-weight: 800; font-size: 20px; }
.g-ok-d { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.g-receipt {
  border: 1.5px dashed #c5cede; border-radius: 12px; padding: 12px; text-align: center;
  font-size: 12px; color: var(--ink-soft);
}
.g-receipt b { display: block; font-family: var(--display); color: var(--ink); font-size: 15px; margin-top: 2px; }

/* ---------- Explorateur de fonctions (onglets) ---------- */
.g-tabs--explorer .g-tablist {
  gap: 4px; padding: 6px; margin: 0 auto 40px; width: fit-content; max-width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  overflow-x: auto; scrollbar-width: none;
}
.g-tabs--explorer .g-tablist::-webkit-scrollbar { display: none; }
.g-tabs--explorer .g-tab { padding: 11px 18px; font-size: 14.5px; border-radius: 11px; white-space: nowrap; }
.g-tabs--explorer .g-tab:hover { color: var(--pine); }
.g-tabs--explorer .g-tab[aria-selected="true"] { color: var(--white); }
.g-tabs--explorer .g-tab-ink { top: 6px; bottom: 6px; border-radius: 11px; background: var(--pine); box-shadow: 0 6px 18px rgba(37,64,215,.3); }
.g-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 48px; box-shadow: var(--shadow-sm);
}
.g-panel-txt h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 16px; }
.g-panel-txt > p { font-size: 16px; color: var(--ink-soft); margin-bottom: 22px; }
.g-panel-txt .g-eyebrow { color: #b35200; }
.g-panel-visual { background: var(--paper-2); border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line); }
.g-panel--solo { grid-template-columns: 1fr; }
.g-panel--solo .dive-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.g-panel .dive-list a { color: var(--pine); font-weight: 600; }
/* Les puces des listes apparaissent en cascade quand le panneau entre */
html.g-js .g-tabpanel.is-entering .dive-list li { animation: g-li-in .5s var(--g-ease-out) both; }
html.g-js .g-tabpanel.is-entering .dive-list li:nth-child(2) { animation-delay: .05s; }
html.g-js .g-tabpanel.is-entering .dive-list li:nth-child(3) { animation-delay: .1s; }
html.g-js .g-tabpanel.is-entering .dive-list li:nth-child(4) { animation-delay: .15s; }
html.g-js .g-tabpanel.is-entering .dive-list li:nth-child(5) { animation-delay: .2s; }
html.g-js .g-tabpanel.is-entering .dive-list li:nth-child(6) { animation-delay: .25s; }
html.g-js .g-tabpanel.is-entering .dive-list li:nth-child(n+7) { animation-delay: .3s; }
@keyframes g-li-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.g-fees .fee-note { margin-top: 18px; }


/* ============================================================================
   2. GABARIT PARCOURS
   ============================================================================ */
.g-phero {
  padding: 64px 40px 72px; text-align: center; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, #d5dcea 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--paper);
}
.g-phero::after {              /* fondu du quadrillage vers le bas */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 20%, transparent 30%, var(--paper) 85%);
}
.g-phero > * { position: relative; z-index: 1; }
.g-phero h1 { font-size: clamp(34px, 4.2vw, 54px); max-width: 820px; margin: 14px auto 18px; letter-spacing: -.03em; }
.g-phero h1 em { font-style: normal; color: var(--pine); }
.g-phero-lead { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 28px; }
.g-phero .hero-cta { justify-content: center; }

/* Schéma de flux */
.g-flow {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 940px; margin: 56px auto 0; position: relative;
}
.g-flow-node { position: relative; padding: 0 10px; text-align: center; }
.g-flow-node::before, .g-flow-node::after {   /* liaison grise, puis liaison remplie */
  content: ""; position: absolute; top: 33px; left: calc(50% + 40px); right: calc(-50% + 40px);
  height: 3px; border-radius: 3px; background: var(--line);
}
.g-flow-node::after {
  background: linear-gradient(90deg, var(--pine), var(--sky)); transform-origin: 0 50%;
}
.g-flow-node:last-child::before, .g-flow-node:last-child::after { display: none; }
.g-flow-ic {
  width: 68px; height: 68px; border-radius: 22px; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 28px;
  background: var(--pine); color: var(--white); box-shadow: 0 10px 26px rgba(37,64,215,.28);
  position: relative;
}
.g-flow-ic::after {            /* onde lumineuse à l'allumage */
  content: ""; position: absolute; inset: -6px; border-radius: 26px; border: 2px solid var(--pine); opacity: 0;
}
.g-flow-lab { display: block; font-family: var(--display); font-weight: 800; font-size: 17px; }
.g-flow-sub { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
html.g-js .g-flow .g-flow-ic { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line); transition: background .4s, color .4s, box-shadow .4s; transition-delay: calc(.3s + var(--g-i, 0) * .7s); }
html.g-js .g-flow .g-flow-lab, html.g-js .g-flow .g-flow-sub { opacity: .45; transition: opacity .4s; transition-delay: calc(.3s + var(--g-i, 0) * .7s); }
html.g-js .g-flow .g-flow-node::after { transform: scaleX(0); transition: transform .6s var(--g-ease); transition-delay: calc(.55s + var(--g-i, 0) * .7s); }
html.g-js .g-flow.is-in .g-flow-ic,
html.g-js.g-fallback .g-flow .g-flow-ic { background: var(--pine); color: var(--white); box-shadow: 0 10px 26px rgba(37,64,215,.28); }
html.g-js .g-flow.is-in .g-flow-node:last-child .g-flow-ic { background: var(--sky); box-shadow: 0 10px 26px rgba(0,179,133,.3); }
html.g-js .g-flow.is-in .g-flow-lab, html.g-js .g-flow.is-in .g-flow-sub,
html.g-js.g-fallback .g-flow .g-flow-lab, html.g-js.g-fallback .g-flow .g-flow-sub { opacity: 1; }
html.g-js .g-flow.is-in .g-flow-node::after,
html.g-js.g-fallback .g-flow .g-flow-node::after { transform: scaleX(1); }
.g-flow.is-in .g-flow-ic::after { animation: g-ping 1.1s var(--g-ease) both; animation-delay: calc(.3s + var(--g-i, 0) * .7s); }
@keyframes g-ping { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }

/* Chiffres-repères */
.g-tally {
  max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.g-tally-item {
  border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 24px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--white);
}
.g-tally-v {
  font-family: var(--display); font-weight: 800; font-size: 64px; line-height: .9; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px var(--pine);
}
.g-tally-item:hover .g-tally-v { color: var(--pine); transition: color .3s; }
.g-tally-k { font-size: 14px; color: var(--ink-soft); }
.g-tally-k b { color: var(--ink); display: block; margin-top: 2px; }

/* Split texte / visuel du Parcours (sans le look .dive) */
.g-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1080px; margin: 0 auto; }
.g-split h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }
.g-split .g-split-txt > p { font-size: 16px; color: var(--ink-soft); margin-bottom: 20px; }
.g-split .dive-list a { color: var(--pine); font-weight: 600; }

/* Frise verticale */
.g-tlsec { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; max-width: 1080px; margin: 0 auto; align-items: start; }
.g-tlsec-head { position: sticky; top: calc(var(--g-head-h) + 48px); }
.g-tlsec-head h2 { font-size: clamp(28px, 3vw, 40px); }
.g-timeline { list-style: none; position: relative; padding-left: 0; }
/* ::before = rail gris, ::after = ligne remplie (scaleY piloté par --g-progress) */
.g-timeline::before, .g-timeline::after {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--line);
}
.g-timeline::after {
  background: linear-gradient(180deg, var(--pine), var(--sky));
  transform-origin: 50% 0; transform: scaleY(var(--g-progress, 1));
}
html.g-js .g-timeline.is-ready::after { transform: scaleY(var(--g-progress, 0)); }
.g-tl-item { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 0 0 40px; position: relative; }
.g-tl-item:last-child { padding-bottom: 0; }
.g-tl-dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--display); font-weight: 800; font-size: 16px;
  background: var(--pine); color: var(--white); border: 3px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--pine);
  transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--g-ease-out);
}
.g-tl-body {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px;
  transition: opacity .5s, transform .6s var(--g-ease-out), box-shadow .4s, border-color .4s;
}
.g-tl-body h3 { font-size: 20px; margin-bottom: 8px; }
.g-tl-body p { font-size: 15px; color: var(--ink-soft); }
.g-tl-body p a { color: var(--pine); font-weight: 600; }
.g-tl-tag {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700;
  color: var(--pine-deep); background: var(--pine-soft); padding: 3px 10px; border-radius: 100px;
}
html.g-js .g-timeline.is-ready .g-tl-dot { background: var(--white); color: var(--ink-soft); box-shadow: 0 0 0 1.5px var(--line); }
html.g-js .g-timeline.is-ready .g-tl-body { opacity: .45; transform: translateX(12px); }
html.g-js .g-timeline.is-ready .g-tl-item.is-on .g-tl-dot { background: var(--pine); color: var(--white); box-shadow: 0 0 0 1.5px var(--pine), 0 8px 20px rgba(37,64,215,.3); transform: scale(1.06); }
html.g-js .g-timeline.is-ready .g-tl-item.is-on .g-tl-body { opacity: 1; transform: none; box-shadow: var(--shadow-md); border-color: #d3daea; }

/* Interrupteur 2 positions */
.g-tabs--switch .g-tablist {
  margin: 0 auto 44px; width: fit-content; max-width: 100%; padding: 6px; border-radius: 100px;
  background: var(--ink); box-shadow: var(--shadow-md);
}
.g-tabs--switch .g-tab { padding: 12px 24px; font-size: 15px; border-radius: 100px; color: #a6b3cd; display: inline-flex; align-items: center; gap: 8px; }
.g-tabs--switch .g-tab:hover { color: var(--white); }
.g-tabs--switch .g-tab[aria-selected="true"] { color: var(--ink); }
.g-tabs--switch .g-tab-ink { top: 6px; bottom: 6px; border-radius: 100px; background: var(--apricot); }
.g-tabs--switch .g-tabpanel.is-entering { animation: g-switch-in .55s var(--g-ease-out); }
.g-tabs--switch .g-tabpanel.is-entering.from-right { animation-name: g-switch-in-r; }
@keyframes g-switch-in { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes g-switch-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

/* Étapes reliées */
.g-path {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 1080px; margin: 0 auto; counter-reset: gpath; position: relative;
}
.g-path::before, .g-path::after {
  content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line);
}
.g-path::after { background: var(--pine); transform-origin: 0 50%; }
html.g-js .g-path::after { transform: scaleX(0); transition: transform 1.6s var(--g-ease); }
html.g-js .g-path.is-in::after, html.g-js.g-fallback .g-path::after { transform: scaleX(1); }
.g-path li { counter-increment: gpath; position: relative; text-align: center; padding: 0 6px; }
.g-path li::before {
  content: counter(gpath, decimal-leading-zero); display: grid; place-items: center;
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; position: relative; z-index: 1;
  background: var(--pine); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 6px var(--paper);
}
html.g-js .g-path li::before { transform: scale(.6); opacity: .3; transition: transform .5s var(--g-ease-out), opacity .4s; transition-delay: calc(var(--g-n, 0) * .4s); }
html.g-js .g-path.is-in li::before, html.g-js.g-fallback .g-path li::before { transform: none; opacity: 1; }
.g-path li:nth-child(2) { --g-n: 1; } .g-path li:nth-child(3) { --g-n: 2; } .g-path li:nth-child(4) { --g-n: 3; }
.g-path li:nth-child(5) { --g-n: 4; } .g-path li:nth-child(6) { --g-n: 5; }
/* Variantes : 3, 5 ou 6 étapes (la ligne part du centre de la 1re étape et finit au centre de la dernière) */
.g-path--3 { grid-template-columns: repeat(3, 1fr); }
.g-path--3::before, .g-path--3::after { left: 16.667%; right: 16.667%; }
.g-path--5 { grid-template-columns: repeat(5, 1fr); }
.g-path--5::before, .g-path--5::after { left: 10%; right: 10%; }
.g-path--6 { grid-template-columns: repeat(6, 1fr); }
.g-path--6::before, .g-path--6::after { left: 8.333%; right: 8.333%; }
.g-path-name { font-family: var(--display); font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.g-path-desc { font-size: 14px; color: var(--ink-soft); }

.g-note {
  font-size: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--apricot); border-radius: var(--r-sm); margin-top: 20px;
}
.g-note a { color: var(--pine); font-weight: 600; }
.g-split .g-split-txt > p.g-note { font-size: 14px; color: var(--ink); margin-bottom: 0; }
.g-subsplit { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; max-width: 1080px; margin: 64px auto 0; }
.g-subsplit h3 { font-size: 22px; margin-bottom: 10px; }
.g-subsplit > div > p { font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }
.g-subsplit .dive-list a { color: var(--pine); font-weight: 600; }


/* ============================================================================
   3. GABARIT PROFIL
   ============================================================================ */
.g-prhero {
  padding: 72px 40px 80px; position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, var(--apricot-soft) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 0% 100%, var(--pine-soft) 0%, transparent 65%),
    var(--paper);
}
.g-prhero-in { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.g-prhero h1 { font-size: clamp(36px, 4.8vw, 64px); max-width: 900px; margin: 8px 0 22px; letter-spacing: -.035em; }
.g-prhero h1 em { font-style: normal; color: var(--pine); }
.g-prhero-lead { font-size: 18.5px; color: var(--ink-soft); max-width: 680px; margin-bottom: 30px; }
.g-prhero-deco {               /* arcs décoratifs */
  position: absolute; right: -200px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%);
  border-radius: 50%; border: 1.5px solid rgba(37,64,215,.10); pointer-events: none;
  box-shadow: 0 0 0 56px rgba(255,210,63,.06), 0 0 0 57.5px rgba(37,64,215,.07), 0 0 0 120px rgba(255,210,63,.04);
}

/* Mots qui défilent */
.g-rotline {
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink-soft); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px;
}
.g-rotline-pre { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6d12; }
/* La grille empile les mots dans une même cellule ; chaque mot porte sa
   propre pastille (justify-self:start) pour que la pastille épouse le mot. */
.g-rotator { display: inline-grid; overflow: hidden; vertical-align: bottom; color: var(--pine); line-height: 1.35; padding: 2px 4px 8px 0; }
.g-rotator > span {
  grid-area: 1 / 1; justify-self: start; white-space: nowrap;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 4px 16px; box-shadow: var(--shadow-sm);
}
/* Sans JS ou mouvement réduit : liste lisible « A · B · C » */
html:not(.g-js) .g-rotator, html.g-fallback .g-rotator { display: inline; background: none; border: 0; box-shadow: none; padding: 0; white-space: normal; }
html:not(.g-js) .g-rotator > span, html.g-fallback .g-rotator > span { display: inline; white-space: normal; background: none; border: 0; box-shadow: none; padding: 0; }
html:not(.g-js) .g-rotator > span + span::before, html.g-fallback .g-rotator > span + span::before { content: " · "; color: var(--ink-soft); }
html.g-js:not(.g-fallback) .g-rotator > span { opacity: 0; transform: translateY(100%); transition: transform .6s var(--g-ease-out), opacity .4s; }
html.g-js:not(.g-fallback) .g-rotator > span.is-current { opacity: 1; transform: none; }
html.g-js:not(.g-fallback) .g-rotator > span.is-leaving { opacity: 0; transform: translateY(-100%); }
.g-rotator.is-static { display: inline; background: none; border: 0; box-shadow: none; padding: 0; }
html.g-js .g-rotator.is-static > span { display: inline; opacity: 1; transform: none; white-space: normal; background: none; border: 0; box-shadow: none; padding: 0; }
.g-rotator.is-static > span + span::before { content: " · "; color: var(--ink-soft); }

/* Bandeau défilant */
.g-marquee { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.g-marquee-view { overflow: hidden; padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.g-marquee-track { list-style: none; display: flex; width: max-content; }
.g-marquee-track li {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 22px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 17px;
}
.g-marquee-track li::after { content: "✦"; color: var(--apricot); font-size: 13px; margin-left: 22px; }
.g-marquee.is-running .g-marquee-track { animation: g-marquee var(--g-dur, 40s) linear infinite; }
.g-marquee.is-paused .g-marquee-track,
.g-marquee.is-running:hover .g-marquee-track { animation-play-state: paused; }
@keyframes g-marquee { to { transform: translateX(-50%); } }
html:not(.g-js) .g-marquee-track, html.g-fallback .g-marquee-track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 10px; padding: 0 20px; }
.g-marquee-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2;
  font: inherit; font-size: 11.5px; font-weight: 700; color: var(--white); cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 100px; padding: 5px 11px;
}
.g-marquee-btn:hover { background: rgba(255,255,255,.22); }
.g-marquee-btn[hidden] { display: none; }

/* Zig-zag */
.g-zz { max-width: 1080px; margin: 0 auto; display: grid; gap: 96px; counter-reset: gzz; }
.g-zz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; counter-increment: gzz; }
.g-zz-row:nth-child(even) .g-zz-visual { order: 2; }
.g-zz-txt { position: relative; }
.g-zz-txt::before {
  content: counter(gzz, decimal-leading-zero); display: block;
  font-family: var(--display); font-weight: 800; font-size: 76px; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px #d6b23a; margin-bottom: 8px;
}
.g-zz-txt h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 14px; }
.g-zz-txt p { font-size: 16.5px; color: var(--ink-soft); max-width: 480px; }
.g-zz-visual { position: relative; isolation: isolate; }
.g-zz-visual::before {
  content: ""; position: absolute; inset: -18px -18px 26px 26px; border-radius: var(--r-xl); z-index: -1;
  background: var(--apricot-soft);
}
.g-zz-row:nth-child(3n+2) .g-zz-visual::before { background: var(--pine-soft); }
.g-zz-row:nth-child(3n) .g-zz-visual::before { background: var(--g-sky-soft); }
.g-zz-visual > * { position: relative; }
/* Mini-maquettes du zig-zag */
.g-mini { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.g-mini-head { background: var(--ink); color: var(--white); padding: 14px 18px; font-family: var(--display); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.g-mini-head .g-example { margin-left: auto; background: rgba(255,255,255,.1); color: #c7d0e8; border-color: rgba(255,255,255,.3); }
.g-mini-body { padding: 18px; display: grid; gap: 10px; }
.g-mini-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.g-mini-row:last-child { border-bottom: 0; padding-bottom: 0; }
.g-mini-row span { color: var(--ink-soft); }
.g-mini-person { display: flex; align-items: center; gap: 12px; }
.g-mini-person .av { width: 44px; height: 44px; border-radius: 50%; background: var(--apricot); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex-shrink: 0; }
.g-mini-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.g-mini-tags span { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 100px; background: var(--paper-2); border: 1px solid var(--line); }
.g-mini-tags span:nth-child(1) { background: var(--pine-soft); border-color: transparent; color: var(--pine-deep); }
.g-mini-tags span:nth-child(2) { background: var(--apricot-soft); border-color: transparent; color: #8a6d12; }
.g-mini-tags span:nth-child(3) { background: var(--g-sky-soft); border-color: transparent; color: var(--g-green-ink); }
html.g-js .g-zz-visual.is-in .progress-fill { animation: g-fill 1.4s var(--g-ease-out) .3s both; }
@keyframes g-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.g-zz-visual .progress-fill { transform-origin: 0 50%; }

/* Frise horizontale */
.g-frieze { max-width: 1180px; margin: 0 auto; position: relative; }
.g-frieze-cap { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a6d12; margin-bottom: 14px; padding: 0 4px; }
.g-frieze-track {
  list-style: none; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 34px 4px 22px; scroll-padding: 4px; overscroll-behavior-x: contain; scrollbar-width: thin;
  position: relative;
  background: linear-gradient(var(--line), var(--line)) 0 13px / 100% 2px no-repeat;
}
.g-frieze-track:focus-visible { outline: 3px solid var(--pine); outline-offset: 4px; border-radius: 12px; }
.g-frieze-card {
  flex: 0 0 280px; scroll-snap-align: start; position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--g-ease-out), box-shadow .35s, border-color .35s;
}
.g-frieze-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3daea; }
.g-frieze-card::before {       /* repère sur la ligne de temps */
  content: ""; position: absolute; top: -27px; left: 22px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--apricot); border: 3px solid var(--paper); box-shadow: 0 0 0 1.5px #d6b23a;
}
.g-frieze-when { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a6d12; }
.g-frieze-card p { font-family: var(--display); font-weight: 700; font-size: 16.5px; line-height: 1.35; flex: 1; }
.g-frieze-fn { font-size: 13.5px; font-weight: 700; color: var(--pine); display: inline-flex; align-items: center; gap: 6px; }
.g-frieze-fn::after { content: "→"; transition: transform .25s; }
.g-frieze-fn:hover::after { transform: translateX(4px); }
.g-frieze-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 0 4px; }
.g-frieze-ctrl[hidden] { display: none; }
.g-frieze-ctrl button {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
  cursor: pointer; font-size: 17px; color: var(--ink); flex-shrink: 0; transition: .2s;
}
.g-frieze-ctrl button:hover:not(:disabled) { border-color: var(--ink); }
.g-frieze-ctrl button:disabled { opacity: .35; cursor: default; }
.g-frieze-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.g-frieze-bar span { display: block; height: 100%; width: 100%; background: var(--apricot); transform-origin: 0 50%; transform: scaleX(var(--g-fp, .2)); transition: transform .2s; }


/* ============================================================================
   4. GABARIT SOMMAIRE
   ============================================================================ */
.g-shero { padding: 72px 40px 56px; background: var(--paper); border-bottom: 1px solid var(--line); }
.g-shero-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: end; }
.g-shero h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -.04em; line-height: 1.02; margin: 6px 0 22px; }
.g-shero-lead { font-size: 18px; color: var(--ink-soft); max-width: 620px; margin-bottom: 28px; }
.g-ul { font-style: normal; color: var(--pine); background: linear-gradient(var(--apricot), var(--apricot)) 0 92% / 100% .16em no-repeat; }
html.g-js .g-ul { background-size: 0 .16em; transition: background-size 1s .4s var(--g-ease-out); }
html.g-js .g-ul.is-in, html.g-js .is-in .g-ul, html.g-js.g-fallback .g-ul { background-size: 100% .16em; }
.g-sindex { list-style: none; border-top: 2px solid var(--ink); counter-reset: gsi; }
.g-sindex-cap { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.g-sindex li { counter-increment: gsi; border-bottom: 1px solid var(--line); }
.g-sindex a {
  display: flex; align-items: center; gap: 14px; padding: 14px 2px;
  font-family: var(--display); font-weight: 700; font-size: 16.5px; transition: color .2s, padding .3s var(--g-ease-out);
}
.g-sindex a::before { content: counter(gsi, decimal-leading-zero); font-size: 12.5px; color: var(--pine); font-weight: 800; }
.g-sindex a::after { content: "→"; margin-left: auto; color: var(--ink-soft); transition: transform .25s; }
.g-sindex a:hover { color: var(--pine); padding-left: 8px; }
.g-sindex a:hover::after { transform: translateX(4px); color: var(--pine); }

/* Cartes projecteur */
.g-cards { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.g-card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; isolation: isolate;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 30px 30px 28px; min-height: 100%; overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: box-shadow .35s, border-color .35s, transform .5s var(--g-ease-out);
}
.g-card.is-tilting { transition: box-shadow .35s, border-color .35s, transform .12s linear; }
.g-card::before {              /* projecteur */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(37,64,215,.11), transparent 45%);
}
.g-card::after {               /* liseré lumineux qui suit la souris */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--pine), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.g-card:hover, .g-card:focus-visible { box-shadow: var(--shadow-lg); border-color: transparent; }
.g-card:hover::before, .g-card:hover::after, .g-card:focus-visible::before { opacity: 1; }
.g-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.g-card-n { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--ink-soft); letter-spacing: .04em; }
.g-card-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; transition: transform .45s var(--g-ease-out); }
.g-card:hover .g-card-ic { transform: scale(1.1) rotate(-6deg); }
.g-card h2 { font-size: 23px; margin-bottom: 12px; }
.g-card p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.g-card-go {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--pine);
  display: flex; align-items: center; justify-content: space-between;
}
.g-card-go::after {
  content: "→"; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pine-soft); transition: transform .35s var(--g-ease-out), background .3s, color .3s;
}
.g-card:hover .g-card-go::after { transform: translateX(4px); background: var(--pine); color: var(--white); }
.g-card[hidden] { display: none; }

/* Liste éditoriale numérotée */
.g-ixsec { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.g-ixsec-txt { position: sticky; top: calc(var(--g-head-h) + 40px); }
.g-ixsec-txt h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.g-ixsec-txt p { font-size: 16px; color: var(--ink-soft); margin-bottom: 14px; }
.g-index { list-style: none; counter-reset: gix; border-top: 2px solid var(--ink); }
.g-index li {
  counter-increment: gix; position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline;
  padding: 20px 8px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.35;
  isolation: isolate;
}
.g-index li::before { content: counter(gix, decimal-leading-zero); font-size: 14px; color: var(--pine); font-weight: 800; }
.g-index li::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--g-ease-out);
}
.g-index li:hover::after { transform: scaleX(1); }

/* Filtres par puces */
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.g-chip {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 9px 16px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink-soft); transition: .2s;
}
.g-chip:hover { border-color: var(--ink); color: var(--ink); }
.g-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
[data-g-filter] .is-filtered-in { animation: g-panel-in .45s var(--g-ease-out); }


/* ============================================================================
   5. RESPONSIVE
   ============================================================================ */
@media (max-width: 1100px) {
  .g-layer--tl, .g-layer--bl { left: -4px; }
  .g-layer--tr, .g-layer--br { right: -4px; }
}
@media (max-width: 900px) {
  .g-page { --g-head-h: 70px; }
  .g-sec { padding: 64px 20px; }
  .g-sec--tight { padding-top: 44px; padding-bottom: 44px; }
  .g-head { margin-bottom: 36px; }

  /* Vitrine */
  .g-vhero { padding: 44px 20px 56px; }
  .g-vhero-grid { grid-template-columns: 1fr; gap: 28px; }
  .g-vhero h1 em { white-space: normal; }
  .g-stage { padding: 40px 0 0; }
  .g-stage > .g-example { left: 0; }
  .g-layer { position: relative; inset: auto; max-width: none; margin-top: 10px; }
  .g-stage-layers { display: grid; gap: 0; max-width: 340px; margin: 0 auto; }
  .g-keys { grid-template-columns: 1fr; }
  .g-key { padding: 30px 24px; }
  .g-key + .g-key { border-left: 0; border-top: 1px solid #1f3157; }
  .g-scrolly { grid-template-columns: 1fr; gap: 0; }
  .g-scrolly-step { min-height: 0; padding: 22px 0 30px 24px; }
  html.g-js .g-scrolly.is-ready .g-scrolly-step { opacity: 1; }
  .g-scrolly-step::after { transform: scaleY(1); }
  .g-scrolly-step .g-scrolly-num::before { background: var(--pine); border-color: var(--pine); color: var(--white); }
  .g-scrolly-stage { position: static; }
  html.g-js:not(.g-fallback) .g-scrolly.is-ready .g-scrolly-stage { display: none; }
  .g-scrolly-slot { margin-top: 18px; background: var(--ink); border-radius: 30px; padding: 8px; max-width: 320px; }
  .g-scrolly-slot .g-scrolly-state { position: static; opacity: 1; transform: none; }
  .g-scrolly-slot .g-screen { padding-top: 22px; border-radius: 23px; }
  .g-panel { grid-template-columns: 1fr; padding: 26px 20px; gap: 28px; }
  .g-panel--solo .dive-list { grid-template-columns: 1fr; }
  .g-panel-visual { padding: 16px; }
  .g-tabs--explorer .g-tablist { width: auto; margin-bottom: 26px; }
  .g-tabs--explorer .g-tab { padding: 10px 14px; font-size: 14px; }

  /* Parcours */
  .g-phero { padding: 44px 20px 56px; }
  .g-flow { grid-template-columns: 1fr; gap: 0; max-width: 360px; margin-top: 40px; text-align: left; }
  .g-flow-node { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; text-align: left; padding: 0 0 26px; }
  .g-flow-ic { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; margin: 0; grid-row: span 2; }
  .g-flow-node::before, .g-flow-node::after { top: 60px; bottom: 2px; left: 27px; right: auto; width: 3px; height: auto; }
  .g-flow-node::after { transform-origin: 50% 0; }
  html.g-js .g-flow .g-flow-node::after { transform: scaleY(0); }
  html.g-js .g-flow.is-in .g-flow-node::after, html.g-js.g-fallback .g-flow .g-flow-node::after { transform: scaleY(1); }
  .g-flow-sub { margin-top: 0; }
  .g-tally { grid-template-columns: 1fr; }
  .g-tally-v { font-size: 52px; }
  .g-split, .g-subsplit { grid-template-columns: 1fr; gap: 32px; }
  .g-subsplit { margin-top: 44px; }
  .g-tlsec { grid-template-columns: 1fr; gap: 28px; }
  .g-tlsec-head { position: static; }
  .g-tl-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .g-tl-dot { width: 44px; height: 44px; font-size: 14px; }
  .g-timeline::before, .g-timeline::after { left: 21px; }
  .g-tl-body { padding: 18px; }
  .g-tabs--switch .g-tab { padding: 10px 14px; font-size: 13.5px; }
  .g-path { grid-template-columns: 1fr; gap: 22px; text-align: left; }
  .g-path::before, .g-path::after { display: none; }
  .g-path li { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; text-align: left; padding: 0; }
  .g-path li::before { margin: 0; grid-row: span 2; }

  /* Profil */
  .g-prhero { padding: 48px 20px 56px; }
  .g-prhero-deco { display: none; }
  .g-zz { gap: 64px; }
  .g-zz-row { grid-template-columns: 1fr; gap: 36px; }
  .g-zz-row:nth-child(even) .g-zz-visual { order: 0; }
  .g-zz-visual::before { inset: -10px -10px 18px 18px; }
  .g-zz-txt::before { font-size: 56px; }
  .g-frieze-card { flex-basis: 78%; }
  .g-marquee-track li { font-size: 15px; }
  .g-marquee-btn { position: static; transform: none; display: block; margin: 0 auto 12px; }
  .g-marquee-view { padding: 16px 0 12px; }

  /* Sommaire */
  .g-shero { padding: 48px 20px 44px; }
  .g-shero-grid { grid-template-columns: 1fr; gap: 32px; }
  .g-cards { grid-template-columns: 1fr; }
  .g-ixsec { grid-template-columns: 1fr; gap: 28px; }
  .g-ixsec-txt { position: static; }
  .g-index li { grid-template-columns: 44px 1fr; font-size: 16px; padding: 16px 4px; }
  .g-faq-a { padding: 0 18px 20px 18px; }
  .g-faq summary { padding: 16px 18px; gap: 12px; }
  .g-faq summary h3 { font-size: 16px; }
}


/* ============================================================================
   6. MOUVEMENT RÉDUIT — tout est affiché d'emblée, rien ne bouge
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  html.g-js { scroll-behavior: auto; }
  .g-page *, .g-page *::before, .g-page *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  html.g-js [data-g-reveal], html.g-js [data-g-stagger] > * { opacity: 1 !important; translate: none !important; scale: none !important; }
  html.g-js .g-stage-main, html.g-js .g-layer { opacity: 1 !important; transform: none !important; }
  html.g-js .g-vhero h1 em::after { transform: none; }
  html.g-js .g-ul { background-size: 100% .16em; }
  html.g-js .g-flow .g-flow-ic { background: var(--pine); color: var(--white); }
  html.g-js .g-flow .g-flow-lab, html.g-js .g-flow .g-flow-sub { opacity: 1; }
  html.g-js .g-flow .g-flow-node::after { transform: none; }
  html.g-js .g-path::after, html.g-js .g-path li::before { transform: none; opacity: 1; }
  html.g-js .g-timeline.is-ready::after { transform: none; }
  html.g-js .g-timeline.is-ready .g-tl-body { opacity: 1; transform: none; }
  html.g-js .g-timeline.is-ready .g-tl-dot { background: var(--pine); color: var(--white); box-shadow: 0 0 0 1.5px var(--pine); transform: none; }
  .g-marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 10px; padding: 0 20px; }
  .g-marquee-btn { display: none !important; }
  .g-card { transform: none !important; }
  .g-progress { display: none; }
}

/* ==========================================================================
   Correctifs du socle après la phase 2
   ========================================================================== */
/* Un élément [hidden] reste caché même si une classe lui donne display: flex/grid (filtres, onglets). */
.g-page [hidden] { display: none !important; }
/* Puces de filtre inutiles sans JS : affichées seulement quand gabarits.js tourne. */
html:not(.g-js) .g-chips, html.g-js:not(.g-ready) .g-chips { display: none; }
html.g-fallback .g-chips { display: none; }
/* Jauges : remplissage à l'apparition, où que soit la maquette (pas seulement en zig-zag). */
html.g-js [data-g-inview].is-in .progress-fill,
html.g-js [data-g-reveal].is-in .progress-fill { animation: g-fill 1.4s var(--g-ease-out) .3s both; transform-origin: 0 50%; }
@media (prefers-reduced-motion: reduce) {
  html.g-js [data-g-inview].is-in .progress-fill, html.g-js [data-g-reveal].is-in .progress-fill { animation: none; }
}
