/*
  KeepVault — feuille de la page d'accueil de keepvault.eu (proposition du 11/11/2026).
  Chargée APRÈS site.css, sur la seule page d'accueil (body.accueil).

  Charte de l'app (src/theme/tokens.ts) : nuit #050810, surfaces navy900 / navy800,
  texte ice / blueGray, accent cyan #06d6d6, dégradé des boutons de l'app (cyan clair
  vers bleu ciel), lueur indigo de l'en-tête des écrans. Police : Manrope, celle de
  l'app (OFL), servie depuis /fonts (CSP : font-src 'self') ; noms versionnés (.v1) car mis
  en cache un an : un sous-ensemble refait prend le nom suivant (.v2).
  Les onglets reposent sur des boutons radio et :checked. site-v2 (11/11) : le mouvement
  vient de /js/accueil.js (script local, CSP de / et /en/) ; sans script ou avec
  « réduire les animations », la page reste complète et immobile.
*/
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-400.v1.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-600.v1.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-800.v1.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.accueil {
  --indigo: #1e1b5c; /* lueur d'en-tête des écrans de l'app */
  --sky: #38bdf8;
  --cta-start: #5ee7f0;
  --hausse: #4ade80; /* vert des hausses de l'app */
  --ligne: rgba(255, 255, 255, 0.08);
  --ligne-forte: rgba(255, 255, 255, 0.14);
  --gouttiere: clamp(18px, 5vw, 48px);
  --largeur: 1120px;
  padding: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'lnum', 'tnum';
  background:
    radial-gradient(60rem 36rem at 88% -6rem, rgba(30, 27, 92, 0.85), transparent 70%),
    radial-gradient(40rem 30rem at 70% 34rem, rgba(6, 214, 214, 0.1), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
.accueil p,
.accueil li { font-size: 16px; }
.accueil h2 {
  border-top: 0;
  padding-top: 0;
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.accueil h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.accueil a:focus-visible,
.accueil summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Lien d'évitement : visible au premier Tab. */
.evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.evitement:focus { top: 12px; }

/* ---------- En-tête ---------- */
.entete {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 20px var(--gouttiere);
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.entete-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.entete-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.entete-nav a:hover { color: var(--text); }
@media (max-width: 760px) {
  .entete-nav { display: none; }
  .entete .langues { margin-left: auto; }
}

/* ---------- Héros ---------- */
.hero {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px) var(--gouttiere) clamp(56px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  /* Les écrans glissent au chargement : rien ne doit élargir la page sur mobile. */
  overflow-x: clip;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 14px;
}
.actions-centre { justify-content: center; }
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.bouton-plein {
  background: linear-gradient(100deg, var(--cta-start), var(--accent) 45%, var(--sky));
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(6, 214, 214, 0.65);
}
.bouton-plein:hover { filter: brightness(1.06); }
/* Google Play : pas encore de fiche, donc pas de lien (un simple libellé). */
.bouton-bientot {
  border: 1.5px dashed var(--ligne-forte);
  color: var(--muted);
  background: rgba(13, 20, 34, 0.6);
}
.hero-note {
  max-width: 32em;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.hero-note,
.accueil .hero-note { font-size: 14px; }

/* Les deux écrans réunis : le patrimoine devant, le budget derrière.
   site-v2 : la scène a sa propre hauteur (rapport fixe), la légende vient EN DESSOUS,
   dans le flux : aucun écran ne peut plus la recouvrir. */
.hero-ecrans {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.scene {
  position: relative;
  /* hauteur d'un écran (62 % de la largeur, rapport 776/375, cadre compris) plus le décalage du second */
  aspect-ratio: 10 / 14.6;
}
/* Léger décalage au défilement, sur grand écran seulement : sur téléphone, les écrans
   sont sous le texte et remonteraient trop. La légende bouge avec eux. */
@media (min-width: 1081px) {
  .hero-ecrans { transform: translate3d(0, calc(var(--defil, 0) * -0.06px), 0); }
}
.telephone {
  margin: 0;
  padding: 7px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2a3550, #121a2b 40%, #1b2438);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.8);
}
.telephone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 29px;
  background: var(--card);
}
.scene .telephone {
  position: absolute;
  width: 62%;
}
.telephone-avant {
  left: 4%;
  top: 0;
  z-index: 2;
  transform: rotate(-3deg);
}
.telephone-arriere {
  right: 0;
  top: 8%;
  z-index: 1;
  transform: rotate(4deg);
  opacity: 0.92;
}
.legende-ecrans {
  position: relative;
  z-index: 3;
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.accueil .legende-ecrans { font-size: 13px; }

/* L'anneau : le cadran « Patrimoine total » de l'app, en grand, qui tourne lentement derrière les écrans. */
.anneau {
  position: absolute;
  inset: 6% -6% 10% -6%;
  z-index: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(56, 189, 248, 0.0), rgba(56, 189, 248, 0.55) 30%, rgba(6, 214, 214, 0.75) 52%, rgba(94, 231, 240, 0.2) 70%, rgba(30, 27, 92, 0.0) 86%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px), #000 100%, transparent);
  mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px), #000 100%, transparent);
  opacity: 0.55;
  pointer-events: none;
}
.anneau::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  filter: blur(18px);
  opacity: 0.7;
}

/* La pastille qui compte : le total de la capture (données fictives, comme l'écran). */
.pastille {
  position: absolute;
  left: -2%;
  bottom: 14%;
  z-index: 4;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(13, 20, 34, 0.82);
  border: 1px solid rgba(6, 214, 214, 0.28);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.accueil .pastille-libelle { display: block; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.accueil .pastille-valeur { display: block; margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.accueil .pastille-hausse { display: block; margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--hausse); }

/* Invitation à descendre (bas du héros). */
.descendre {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.descendre svg { transition: transform 300ms ease; }
.descendre:hover { color: var(--text); }

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-ecrans { margin: 0 auto 8px; }
}
@media (max-width: 520px) {
  .pastille { left: 0; bottom: 12%; padding: 10px 12px; }
  .accueil .pastille-valeur { font-size: 18px; }
}

/* ---------- Sections communes ---------- */
.benefices,
.demo,
.confiance,
.gratuit,
.faq,
.rappel,
.guides {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gouttiere);
}
.section-intro {
  max-width: 40em;
  margin: 0 0 32px;
  color: var(--muted);
}
.faits {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.faits li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 28px;
  color: var(--text);
}
.faits li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Bénéfices : écran et texte en alternance ---------- */
.benefices > h2 { margin-bottom: clamp(32px, 5vw, 56px); }
.benefice {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(24px, 4vw, 40px) 0;
  border-top: 1px solid var(--ligne);
}
.benefice-inverse { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); }
.benefice-inverse .telephone { order: 2; }
.benefice-texte { max-width: 34em; }
.benefice-texte p { color: var(--muted); margin: 0; }
.telephone-petit { width: 100%; max-width: 260px; }
@media (max-width: 760px) {
  .benefice,
  .benefice-inverse { grid-template-columns: minmax(0, 1fr); }
  .benefice-inverse .telephone { order: 0; }
  .telephone-petit { max-width: 230px; margin: 0 auto; }
}

/* ---------- Aperçu à onglets (radios + :checked) ---------- */
.onglets { position: relative; }
.onglet-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Barre segmentée, comme « Répartition / Performance » dans l'app. */
.onglet-barre {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 32px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--ligne);
}
.onglet-barre label {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.onglet-barre label:hover { color: var(--text); }
#onglet-patrimoine:checked ~ .onglet-barre label[for='onglet-patrimoine'],
#onglet-budget:checked ~ .onglet-barre label[for='onglet-budget'],
#onglet-bilan:checked ~ .onglet-barre label[for='onglet-bilan'] {
  color: var(--accent);
  background: rgba(6, 214, 214, 0.1);
  border-color: rgba(6, 214, 214, 0.35);
}
#onglet-patrimoine:focus-visible ~ .onglet-barre label[for='onglet-patrimoine'],
#onglet-budget:focus-visible ~ .onglet-barre label[for='onglet-budget'],
#onglet-bilan:focus-visible ~ .onglet-barre label[for='onglet-bilan'] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.onglet-panneau {
  display: none;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}
#onglet-patrimoine:checked ~ .panneau-patrimoine,
#onglet-budget:checked ~ .panneau-budget,
#onglet-bilan:checked ~ .panneau-bilan { display: grid; }
.telephone-moyen { width: 100%; max-width: 300px; }
.panneau-texte { max-width: 32em; }
.panneau-texte p { color: var(--muted); }
.accueil .panneau-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ligne);
  font-size: 14px;
}
@media (max-width: 760px) {
  .onglet-barre { display: flex; }
  .onglet-barre label { flex: 1; text-align: center; padding: 10px 8px; }
  .onglet-panneau { grid-template-columns: minmax(0, 1fr); }
  .telephone-moyen { max-width: 250px; margin: 0 auto; }
}

/* ---------- Confiance : la carte à coches de l'écran d'accueil de l'app ---------- */
.confiance-liste {
  margin: 28px 0 20px;
  padding: 8px 24px;
  list-style: none;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.9), rgba(13, 20, 34, 0.9));
  border: 1px solid var(--ligne-forte);
  columns: 2 22rem;
  column-gap: 40px;
}
.confiance-liste li {
  break-inside: avoid;
  position: relative;
  margin: 0;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--ligne);
  color: var(--muted);
}
.confiance-liste li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 1.45em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.confiance-liste strong { display: block; color: var(--text); margin-bottom: 2px; }
.accueil .avertissement { font-size: 14px; color: var(--muted); }

/* ---------- Offre gratuite ---------- */
.gratuit-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin: 28px 0 16px;
}
.gratuit-bloc {
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--ligne);
}
.gratuit-bloc p { color: var(--muted); margin: 0; }
.accueil .gratuit-prix {
  margin: 0 0 8px;
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.accueil .gratuit-note { max-width: 46em; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .gratuit-grille { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 44em; }

/* ---------- Rappel des boutons ---------- */
.rappel { text-align: center; }
.rappel > p { color: var(--muted); margin: 0 auto 24px; }

/* ---------- Guides à venir ---------- */
.guides-liste {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 12px;
}
.guides-liste li {
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px dashed var(--ligne-forte);
  color: var(--muted);
}

/* ---------- Pied de page ---------- */
.pied {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 32px var(--gouttiere) 48px;
  border-top: 1px solid var(--ligne);
}
.pied p { font-size: 14px; color: var(--muted); margin: 0 0 6px; }

/* ---------- « Préviens-moi » (11/11, D-LANDING-1111 ; site-v2) ----------
   « Bientôt sur Google Play » est un lien vers #prevenir : sans script, :target
   ouvre le tiroir ; avec /js/accueil.js, il glisse. Le formulaire poste vers l'Edge
   Function `waitlist`, qui renvoie vers /#merci (ou /inscription#… pour une erreur). */
.prevenir-form {
  max-width: 34rem;
  margin: 14px 0 0;
  padding: 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--ligne-forte);
}
.accueil .prevenir-titre { margin: 0 0 12px; font-weight: 700; color: var(--text); }
.prevenir-libelle { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.prevenir-ligne { display: flex; flex-wrap: wrap; gap: 10px; }
.prevenir-ligne input {
  flex: 1 1 14rem;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1.5px solid var(--ligne-forte);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.prevenir-ligne input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.prevenir-ligne .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.accueil .prevenir-consentement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.prevenir-consentement input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.accueil .prevenir-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
/* Champ piège : hors de la vue et de l'ordre du clavier, rempli par les seuls robots. */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bouton-secondaire {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent) !important;
}

/* Page /inscription : le message ciblé par l'Edge Function s'affiche seul. */
.inscription {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) var(--gouttiere) 64px;
}
.inscription h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.inscription h2#desinscription,
.inscription h2#unsubscribe { margin-top: 56px; font-size: 22px; }
.etat { display: none; margin: 0 0 32px; padding: 20px 22px; border-radius: 18px; }
.etat:target { display: block; }
.etat h2 { margin: 0 0 6px; font-size: 20px; }
.etat p { margin: 0 0 8px; }
.etat-ok { background: var(--note-bg); border: 1px solid var(--note-border); }
.etat-erreur { background: var(--warn-bg); border: 1px solid var(--warn-border); }
.etat-erreur h2 { color: var(--coral); }
.page-inscription .marque img { border-radius: 6px; }
.accueil .prevenir-envoi { margin: 16px 0 0; }
.prevenir-envoi .bouton { border: 0; cursor: pointer; font: inherit; font-weight: 700; }

/* Pages /confirmer et /desinscription : le message « lien incomplet » (attribut hidden géré par /js/lien.js). */
.etat.lien-absent { display: block; }
.etat.lien-absent[hidden] { display: none; }

/* ═════════ site-v2 (11/11/2026) : tiroir « Préviens-moi », navigation de droite, mouvement ═════════ */

/* Les deux boutons restent sur la même ligne, formulaire ouvert ou non ; ils ne
   s'empilent que sur un téléphone étroit. */
.hero .actions { flex-wrap: nowrap; }
.hero .actions .bouton { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 460px) {
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .bouton { justify-content: center; }
}
.bouton-bientot { cursor: pointer; }
.bouton-bientot[aria-expanded='true'] {
  border-style: solid;
  border-color: rgba(6, 214, 214, 0.45);
  color: var(--text);
}
.bouton-bientot svg.chevron { transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.bouton-bientot[aria-expanded='true'] svg.chevron { transform: rotate(180deg); }

/* Le tiroir : il GLISSE vers le bas (hauteur 0fr → 1fr), sans saut. Sans script,
   le lien #prevenir l'ouvre par :target. */
.prevenir-tiroir {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    grid-template-rows 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 520ms;
}
.prevenir-tiroir.ouvert,
.prevenir-tiroir:target:not(.ferme) {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    grid-template-rows 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 420ms ease 80ms,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s;
}
.prevenir-interieur { overflow: hidden; min-height: 0; }
.prevenir-tiroir .prevenir-form { margin: 2px 0 16px; }

/* « Merci » sur l'accueil (retour de la fonction : /#merci). */
.accueil .merci {
  max-width: 34rem;
  margin: 0 0 16px;
  scroll-margin: 120px;
}
.merci:focus { outline: none; }
.merci .coche { display: block; margin: 0 0 8px; }
.merci .coche circle,
.merci .coche path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── Navigation de droite : un point par section, son intitulé, la section courante ── */
.navdroite {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);
}
.navdroite ol {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Le rail : la progression de la lecture le remplit. */
.navdroite ol::before,
.navdroite ol::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--ligne-forte);
}
.navdroite ol::after {
  background: linear-gradient(180deg, var(--cta-start), var(--accent), var(--sky));
  transform-origin: top;
  transform: scaleY(var(--progres, 0));
}
.navdroite li { margin: 0; }
.navdroite a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 36px;
  padding: 0 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.navdroite a::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ligne-forte);
  transition: transform 300ms ease, background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.navdroite .intitule {
  padding: 3px 8px;
  border-radius: 8px;
  transition: color 300ms ease, background-color 300ms ease, transform 300ms ease;
}
.navdroite a:hover,
.navdroite a:focus-visible { color: var(--text); }
.navdroite a:hover::after { border-color: var(--accent); }
.navdroite a.courant { color: var(--text); }
.navdroite a.courant .intitule { background: rgba(13, 20, 34, 0.75); }
.navdroite a.courant::after {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(6, 214, 214, 0.16), 0 0 18px rgba(6, 214, 214, 0.6);
}
/* Écran moyen : les points seuls, l'intitulé au survol ou au clavier (il couvrirait le texte). */
@media (max-width: 1279px) {
  .navdroite .intitule {
    position: absolute;
    right: 26px;
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    white-space: nowrap;
    background: rgba(13, 20, 34, 0.92);
    border: 1px solid var(--ligne-forte);
  }
  .navdroite a:hover .intitule,
  .navdroite a:focus-visible .intitule { opacity: 1; transform: none; }
}
/* Téléphone : la navigation de droite est masquée (elle couvrirait le texte) ;
   une barre de progression fine, en haut de l'écran, la remplace. */
.progression { display: none; }
@media (max-width: 760px) {
  .navdroite { display: none; }
  .progression {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 20;
    height: 3px;
    background: linear-gradient(90deg, var(--cta-start), var(--accent), var(--sky));
    transform-origin: left;
    transform: scaleX(var(--progres, 0));
    pointer-events: none;
  }
}

/* ── Mouvement : seulement si l'utilisateur ne demande pas de réduire les animations ── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Fond : deux lueurs qui dérivent très lentement (compositeur seulement). */
  .accueil::before {
    content: '';
    position: fixed;
    inset: -20vmax;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(30vmax 22vmax at 30% 30%, rgba(30, 27, 92, 0.55), transparent 70%),
      radial-gradient(26vmax 20vmax at 70% 65%, rgba(6, 214, 214, 0.07), transparent 70%);
    animation: deriver 38s ease-in-out infinite alternate;
  }

  /* Chargement : les écrans se rejoignent, puis flottent ; un reflet passe sur le verre. */
  .telephone-avant { animation: rejoindre-avant 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both, flotter 7s ease-in-out 900ms infinite; }
  .telephone-arriere { animation: rejoindre-arriere 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms both, flotter 8s ease-in-out 1.6s infinite; }
  .scene .telephone { overflow: hidden; }
  .scene .telephone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.13) 48%, rgba(255, 255, 255, 0.02) 54%, transparent 62%);
    transform: translateX(-130%);
    animation: reflet 9s ease-in-out 2.2s infinite;
    pointer-events: none;
  }
  .telephone-arriere::after { animation-delay: 6.5s; }
  .anneau { animation: tourner 48s linear infinite, respirer 7s ease-in-out infinite; }
  .pastille { animation: monter 800ms cubic-bezier(0.2, 0.8, 0.2, 1) 500ms both, flotter 6s ease-in-out 1.4s infinite; }
  .hero h1, .hero-lead, .hero .actions, .hero-note {
    animation: monter 760ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .hero-lead { animation-delay: 90ms; }
  .hero .actions { animation-delay: 180ms; }
  .hero-note { animation-delay: 260ms; }

  /* Au repos (4 s sans geste) : l'invitation à descendre rebondit, le bouton
     Google Play reçoit un reflet, le point courant respire. */
  .repos .descendre svg { animation: rebond 1.6s ease-in-out infinite; }
  .repos .bouton-plein { animation: lueur 2.8s ease-in-out infinite; }
  .repos .navdroite a.courant::after { animation: pouls 2.4s ease-in-out infinite; }

  /* Apparitions au défilement (classe posée par /js/accueil.js ; sans script, tout reste visible). */
  .anime [data-revele] [data-suite] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .anime [data-revele].vu [data-suite] { opacity: 1; transform: none; }
  /* Les écrans des bénéfices arrivent de leur côté, légèrement inclinés. */
  .anime .benefice[data-revele] .telephone {
    opacity: 0;
    transform: translateX(-36px) rotate(-4deg) scale(0.96);
    transition: opacity 800ms ease, transform 1000ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .anime .benefice-inverse[data-revele] .telephone { transform: translateX(36px) rotate(4deg) scale(0.96); }
  .anime .benefice[data-revele].vu .telephone { opacity: 1; transform: none; }
  /* Les coches des listes se dessinent l'une après l'autre. */
  .anime [data-revele] .faits li::before,
  .anime [data-revele] .confiance-liste li::before {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 500ms ease;
    transition-delay: calc(300ms + var(--i, 0) * 90ms);
  }
  .anime [data-revele].vu .faits li::before,
  .anime [data-revele].vu .confiance-liste li::before { clip-path: inset(0 0 0 0); }
  /* Les écrans de l'aperçu changent en fondu glissé. */
  .onglet-panneau .telephone { animation: entrer 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .onglet-panneau .panneau-texte { animation: monter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 60ms both; }
  /* « Merci » : la coche se dessine. */
  .merci:target .coche circle { stroke-dasharray: 76; stroke-dashoffset: 76; animation: tracer 700ms ease-out 150ms forwards; }
  .merci:target .coche path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: tracer 400ms ease-out 700ms forwards; }
  .merci:target { animation: monter 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}

@keyframes rejoindre-avant {
  from { transform: translateX(-24px) rotate(-7deg); }
  to { transform: rotate(-3deg); }
}
@keyframes rejoindre-arriere {
  from { transform: translateX(24px) rotate(8deg); }
  to { transform: rotate(4deg); }
}
@keyframes flotter {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes reflet {
  0%, 62% { transform: translateX(-130%); }
  85%, 100% { transform: translateX(130%); }
}
@keyframes tourner { to { rotate: 360deg; } }
@keyframes respirer {
  0%, 100% { scale: 1; opacity: 0.5; }
  50% { scale: 1.03; opacity: 0.7; }
}
@keyframes monter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes entrer {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes deriver {
  from { transform: translate3d(-3vmax, -2vmax, 0); }
  to { transform: translate3d(4vmax, 3vmax, 0); }
}
@keyframes rebond {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes lueur {
  0%, 100% { box-shadow: 0 10px 30px -12px rgba(6, 214, 214, 0.65); }
  50% { box-shadow: 0 10px 38px -8px rgba(6, 214, 214, 0.95); }
}
@keyframes pouls {
  0%, 100% { box-shadow: 0 0 0 5px rgba(6, 214, 214, 0.16), 0 0 18px rgba(6, 214, 214, 0.6); }
  50% { box-shadow: 0 0 0 9px rgba(6, 214, 214, 0.06), 0 0 26px rgba(6, 214, 214, 0.8); }
}
@keyframes tracer { to { stroke-dashoffset: 0; } }

/* Réduire les animations : tout s'arrête, tout reste visible. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-ecrans { transform: none; }
}
