/* =========================================================================
   VISITE : la peau des pages intérieures (comme la nouvelle page d'accueil).
   Chargée après home.css, sur toutes les pages qui portent <body class="vz-page">.
   Grands titres qui se lèvent mot à mot, intitulés de section qui arrivent de la gauche, éléments qui arrivent de
   la droite, grands chiffres sans carte (comme « 12 → 1 »), bandeau de mots-clés qui défile.
   Tout est posé par js/visite.js (classe .vz-js) : sans script ou en mouvement réduit, la page reste complète.
   Aucune couleur nouvelle : uniquement les variables du kit (css/base.css).
   ========================================================================= */
.vz-page { --vz-ease: cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ---------------------------------------------------------------- Grands titres */
.vz-page .detail-hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(36px, 6vw, 80px); }
.vz-page .detail-hero h1, .vz-page .fiche-top h1 { font-weight: 700; letter-spacing: -0.04em; line-height: 1.07; text-wrap: balance; }
.vz-page .detail-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); max-width: 24ch; }
.vz-page .fiche-top h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); max-width: 24ch; }
.vz-page .detail-hero h1.vz-grand { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 18ch; letter-spacing: -0.045em; }
.vz-page .detail-lead, .vz-page .section-head p, .vz-page .detail-hero p { text-wrap: balance; }
.vz-page .detail-lead { font-size: 1.1rem; line-height: 1.65; }
.vz-page .section-head h2, .vz-page .detail-grid h2, .vz-page .fiche-section h2:not(.sr-only), .vz-page .cta-banner h2 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.vz-page .section-head h2, .vz-page .fiche-section h2:not(.sr-only) { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.vz-page .detail-grid h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* Chaque mot du titre se lève de dessous une ligne invisible. */
.vz-mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.vz-mot > span { display: inline-block; }
.vz-js .vz-titre .vz-mot > span { transform: translateY(108%); }
.vz-js .vz-titre.is-vu .vz-mot > span { animation: vzMasque 0.95s var(--vz-ease) both; animation-delay: calc(var(--i, 0) * 65ms); }
@keyframes vzMasque { from { transform: translateY(108%); } to { transform: none; } }

/* ---------------------------------------------------------------- Apparitions */
.vz-js [data-anim].vz-gauche, .vz-js [data-anim].vz-droite, .vz-js [data-anim].vz-monte, .vz-js [data-anim].vz-fond { opacity: 0; }
.vz-js [data-anim].vz-gauche.is-vu { animation: vzGauche 1s var(--vz-ease) both; animation-delay: var(--d, 0s); }
.vz-js [data-anim].vz-droite.is-vu { animation: vzDroite 0.9s var(--vz-ease) both; animation-delay: var(--d, 0s); }
.vz-js [data-anim].vz-monte.is-vu { animation: vzMonte 1.1s var(--vz-ease) both; animation-delay: var(--d, 0s); }
.vz-js [data-anim].vz-fond.is-vu { animation: vzFond 0.9s ease both; animation-delay: var(--d, 0s); }
@keyframes vzGauche { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: none; } }
@keyframes vzDroite { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes vzMonte { from { opacity: 0; transform: translateY(70px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes vzFond { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Les grilles déjà animées par main.js (cartes, démos…) arrivent aussi de la droite. */
.vz-page .stagger > * { translate: 56px 0; transition: opacity 0.7s var(--vz-ease), translate 0.7s var(--vz-ease); }
.vz-page .stagger.stagger-in > * { translate: none; transition-delay: calc(var(--stagger-i, 0) * 110ms); }

/* ---------------------------------------------------------------- Grands chiffres, sans carte */
.vz-chiffres { display: grid; grid-template-columns: repeat(var(--vz-n, 4), minmax(0, 1fr)); gap: 40px 32px; max-width: 1100px; margin: clamp(48px, 7vw, 88px) auto; padding: 0; list-style: none; text-align: center; }
.vz-chiffre { display: grid; justify-items: center; align-content: start; gap: 10px; margin: 0; }
.vz-chiffre b { display: inline-flex; align-items: baseline; justify-content: center; gap: 0.08em; font-size: clamp(3.4rem, 7vw, 6.2rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.06em; color: var(--text-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vz-chiffre b small { font-size: 0.42em; font-weight: 700; letter-spacing: -0.02em; }
.vz-chiffre > span { max-width: 22ch; font-size: 1rem; line-height: 1.5; color: var(--text-secondary); text-wrap: balance; }
.vz-chiffres.is-3 { --vz-n: 3; }
.vz-pre { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); }
.vz-chiffre > span strong { color: var(--text-primary); font-weight: 600; }
.vz-chiffres-note { max-width: 70ch; margin: -24px auto 48px; text-align: center; font-size: 0.82rem; color: var(--text-tertiary); }

/* ---------------------------------------------------------------- Mots-clés qui défilent */
.vz-defile { overflow: hidden; white-space: nowrap; margin: clamp(8px, 2vw, 24px) 0; }
.vz-defile-piste { display: inline-flex; gap: 34px; padding-right: 34px; font-size: clamp(1.1rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; color: color-mix(in oklab, var(--text-accent) 34%, var(--surface-page)); animation: vzDefile 38s linear infinite; }
.vz-defile-piste span:nth-child(even) { color: color-mix(in oklab, var(--text-primary) 14%, var(--surface-page)); }
@keyframes vzDefile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Fin de page : la question en grand */
.vz-page .cta-banner { background: none; box-shadow: none; border-radius: 0; padding: clamp(56px, 9vw, 112px) 0 clamp(16px, 3vw, 40px); text-align: center; }
.vz-page .cta-banner h2 { max-width: 20ch; margin: 0 auto; font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: -0.04em; line-height: 1.05; }
.vz-page .cta-banner > p { max-width: 58ch; margin: 22px auto 0; text-wrap: balance; }
.vz-page .cta-banner .btn { margin-top: 30px; }
.vz-page .cta-banner .cta-note { margin-top: 16px; }

/* ---------------------------------------------------------------- Un peu d'air entre les sections */
.vz-page .section-top-sm, .vz-page .section-notop { padding-top: clamp(48px, 7vw, 96px); }
.vz-page .section-head { margin-bottom: clamp(32px, 5vw, 56px); }

@media (max-width: 900px) {
  .vz-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vz-chiffres { gap: 36px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .vz-js [data-anim], .vz-js .vz-titre .vz-mot > span { opacity: 1 !important; transform: none !important; animation: none !important; }
  .vz-defile-piste { animation: none; }
  .vz-page .stagger > * { translate: none; }
}

/* Phrase d'accompagnement sous une rangée de chiffres (texte normal, centré). */
.vz-chiffres-texte { max-width: 62ch; margin: -16px auto clamp(24px, 4vw, 48px); text-align: center; font-size: 1.05rem; line-height: 1.6; color: var(--text-secondary); text-wrap: balance; }

/* Les éléments qui attendent d'arriver (décalés de 80 px sur le côté) ne doivent pas élargir la page : pas de défilement horizontal. */
.vz-page { overflow-x: clip; }
.vz-page main { overflow-x: clip; }
@media (max-width: 560px) {
  .vz-chiffre b { font-size: clamp(2.8rem, 15vw, 3.8rem); }
  .vz-chiffres.is-3 { grid-template-columns: minmax(0, 1fr); }
}

/* Guides : étapes numérotées (liste ordonnée lisible, sans filet). */
.vz-etapes { list-style: none; counter-reset: vz; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.vz-etapes li { counter-increment: vz; position: relative; min-height: 30px; padding-left: 48px; font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); }
.vz-etapes li::before { content: counter(vz); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-round); background: var(--surface-raised); box-shadow: var(--shadow-control); font-size: 0.85rem; font-weight: 600; color: var(--text-accent); font-variant-numeric: tabular-nums; }
.vz-etapes strong { color: var(--text-primary); }
.detail-grid p.text-muted + .feature-list, .detail-grid p.text-muted + .vz-etapes { margin-top: 14px; }
.detail-grid .feature-list + p.text-muted, .detail-grid .vz-etapes + p.text-muted { margin-top: 18px; }
