/* ==========================================================================
   La feuille de style des quatre pages, version épurée (choisie par l'auteur le 7 novembre 2026,
   étendue aux trois autres pages le 8) : titre centré, bandes de couleur de bord à bord, cartes
   toutes construites pareil, boutons arrondis cerclés de noir. Des effets discrets (ajoutés le 8 novembre
   2026, voir « Les effets » plus bas et effets.js). Aucune bibliothèque, aucune police ni ressource
   extérieure. Clair seulement. Mobile d'abord, un seul point de bascule à 900 px.
   Après chaque modification, changer le numéro dans les quatre pages (epure.css?v=3 → v=4).
   ========================================================================== */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('polices/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations');
}

/* --- Jetons : les couleurs du site, et trois tons doux pour les bandes ------------------------- */
:root {
  color-scheme: only light;
  --encre: #111111;
  --jaune: #FFD640;
  --jaune-pale: #FFF4C9;
  --creme: #FAF7F0;
  --sable: #F1ECE1;
  --grise: #F2F2EE;
  --blanc: #FFFFFF;
  --texte-doux: #55554F;
  --texte-faible: #6E6E68;
  --ligne: #D9D9D3;
  --alerte: #A3261C;
  --rayon: 24px;
}

/* --- Base ------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--creme); }
body {
  margin: 0; background: var(--creme); color: var(--encre);
  font-family: 'Schibsted Grotesk', 'Helvetica Neue', sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }
[id] { scroll-margin-top: 92px; }
.cadre { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.centre { text-align: center; }
.cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.insecable { white-space: nowrap; }
.evitement {
  position: fixed; left: 12px; top: 12px; z-index: 50; padding: 12px 16px; border-radius: 999px;
  background: var(--encre); color: var(--blanc); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s ease;
}
.evitement:focus { transform: none; }

/* --- En-tête : une barre cerclée de noir ------------------------------------------------------- */
/* La page est crème sous l'en-tête, comme le haut de page : pas de bande blanche au-dessus */
.entete { position: sticky; top: 0; z-index: 30; padding: 10px 10px 0; }
.entete-cadre {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1120px; margin: 0 auto; padding: 8px 8px 8px 16px;
  border: 1.5px solid var(--encre); border-radius: 18px; background: var(--creme);
}
.marque { line-height: 0.82; text-decoration: none; display: inline-block; color: var(--encre); }
.marque span { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; }
.marque span + span { display: inline-block; margin-top: 2px; background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 86% / 100% 46%; }
.menu { display: none; }
.entete-actions { display: flex; align-items: center; gap: 8px; }
.tel-entete {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--encre); border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}

/* --- Boutons : des pilules cerclées de noir ---------------------------------------------------- */
.pilule {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  border: 1.5px solid var(--encre); border-radius: 999px; background: transparent; color: var(--encre);
  font-family: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.pilule:hover { background: var(--encre); color: var(--blanc); }
.pilule--noire { background: var(--encre); color: var(--blanc); }
.pilule--noire:hover { background: #333331; }
.pilule--petite { display: none; min-height: 40px; padding: 0 18px; font-size: 15px; }
.pilule--petite-carte { min-height: 44px; padding: 0 22px; font-size: 15px; background: var(--blanc); }
.pilule--large { width: 100%; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.lien-fleche { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; font-size: 15px; font-weight: 600; text-decoration: none; }
.lien-fleche::after {
  content: ''; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* --- Bandes : chaque partie a son fond, de bord à bord ----------------------------------------- */
.bande { padding: 72px 0; }
.bande--courte { padding: 48px 0; }
.bande--creme { background: var(--creme); }
.bande--jaune-pale { background: var(--jaune-pale); }
.bande--blanche { background: var(--blanc); }
.bande--grise { background: var(--grise); }
.bande--jaune { background: var(--jaune); }
.bande--noire { background: var(--encre); color: var(--blanc); }
.tete { margin-bottom: 36px; }
.surtitre-section { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-doux); }
.bande--noire .surtitre-section { color: #A3A39E; }
.bande--jaune .surtitre-section { color: var(--encre); }
.titre { margin: 0; font-size: clamp(32px, 8.4vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
.sous-titre { margin: 14px auto 0; max-width: 520px; color: var(--texte-doux); }

/* --- Haut de page : un titre, une phrase, deux boutons ------------------------------------------ */
.ouverture { padding: 56px 0 72px; }
.surtitre { margin: 0; font-size: 14px; font-weight: 500; color: var(--texte-doux); }
h1 { margin: 18px auto 0; max-width: 980px; font-size: clamp(40px, 11.4vw, 46px); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; }
.surligne {
  background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 84% / 100% 44%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.04em;
}
.chapo { margin: 22px auto 0; max-width: 620px; font-size: 19px; line-height: 1.5; color: var(--texte-doux); }
.rassurance { margin: 16px 0 0; font-size: 14px; color: var(--texte-faible); }

/* --- Deux colonnes : qui je suis, le certificat -------------------------------------------------- */
.deux-colonnes { display: grid; gap: 36px; }
.portrait { margin: 0; overflow: hidden; border: 1.5px solid var(--encre); border-radius: 28px; aspect-ratio: 1 / 1; background: var(--blanc); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.deux-colonnes p { margin: 16px 0 0; }
.deux-colonnes .surtitre-section { margin: 0 0 12px; }
.accroche { font-size: 19px; font-weight: 700; line-height: 1.45; }
.accroche--douce { font-weight: 500; color: var(--texte-doux); }
.actions--gauche { align-items: flex-start; }
.orias { font-size: 14px; color: var(--texte-faible); }

/* --- Trois chiffres ------------------------------------------------------------------------------ */
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 auto; padding-top: 0; padding-bottom: 0; list-style: none; text-align: center; }
.chiffres b { display: block; font-size: clamp(34px, 10vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
.chiffres span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--texte-doux); }

/* --- Les situations : trois cartes pareilles, puis les autres en volets --------------------------- */
.cartes-trois { display: grid; gap: 14px; }
.carte-situation { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 24px 28px; border-radius: var(--rayon); text-align: center; }
.carte-situation h3 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.carte-situation p { flex: 1; margin: 0; font-size: 16px; color: var(--texte-doux); }
.carte-situation .pilule { margin-top: 10px; }
.fond-jaune-pale { background: var(--jaune-pale); }
.fond-blanc { background: var(--blanc); }
.fond-sable { background: var(--sable); }
.autres { max-width: 760px; margin: 44px auto 0; }
.autres-titre { margin: 0 0 12px; text-align: center; font-size: 15px; font-weight: 600; color: var(--texte-doux); }
.autres-fin { margin: 22px 0 0; text-align: center; font-size: 15.5px; }
.autres-fin a { font-weight: 600; }

/* Volets (situations et questions), ouverts d'un clic, sans script */
.volet { border-radius: 18px; background: var(--blanc); }
.volet + .volet { margin-top: 10px; }
.volet summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; gap: 14px;
  min-height: 58px; padding: 15px 18px; border-radius: 18px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em;
}
.volet summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 22px; height: 22px; transition: transform 0.25s ease; }
.plus::before, .plus::after { content: ''; position: absolute; left: 5px; top: 10px; width: 12px; height: 2px; border-radius: 2px; background: var(--encre); }
.plus::after { transform: rotate(90deg); }
.volet[open] .plus { transform: rotate(45deg); }
.volet-reponse { padding: 0 18px 18px; }
.volet-reponse p, .volet-reponse li { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--texte-doux); }
.volet-reponse p + p { margin-top: 10px; }
.volet-reponse ul { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 20px; }
.bande--blanche .volet { background: var(--grise); }

/* --- Le certificat ------------------------------------------------------------------------------- */
.coches { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 15.5px; line-height: 1.4; }
.coches li { position: relative; padding-left: 30px; }
.coches li::before {
  content: ''; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 7px;
  background: var(--jaune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.mention { font-size: 14px; color: var(--texte-faible); }
.certificat-image { margin: 0; }
.certificat-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1.5px solid var(--encre); border-radius: 18px; background: var(--blanc); }
.certificat-image figcaption { margin-top: 10px; font-size: 13px; color: var(--texte-faible); }

/* --- Les neuf étapes : neuf cartes pareilles ----------------------------------------------------- */
.etapes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.etapes li { padding: 24px 22px; border-radius: 20px; background: var(--blanc); }
.numero {
  display: inline-block; padding: 0 3px; font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(var(--jaune), var(--jaune)) no-repeat 0 85% / 100% 45%;
}
.etapes h3 { margin: 14px 0 0; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.etapes p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--texte-doux); }

/* --- Concrètement : sans courtier, avec moi ---------------------------------------------------- */
.paires { display: grid; gap: 28px; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.paires p { margin: 0; padding-left: 26px; background-repeat: no-repeat; background-size: 16px; }
.paires .sans {
  font-size: 15px; line-height: 1.45; color: #A3A39E; background-position: 0 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A39E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}
.paires .sans s { text-decoration-thickness: 1.5px; }
.paires .avec {
  margin-top: 8px; font-size: 19px; line-height: 1.35; font-weight: 600; background-position: 0 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD640' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* --- Le prix, sur la bande jaune ---------------------------------------------------------------- */
.zero { margin: 20px 0 0; font-size: clamp(120px, 34vw, 140px); font-weight: 800; line-height: 0.85; letter-spacing: -0.05em; }
.zero-sous { margin: 10px 0 0; font-size: 18px; font-weight: 500; }
.ensuite { max-width: 520px; margin: 36px auto 0; padding: 24px 22px; border-radius: var(--rayon); background: rgba(255, 255, 255, 0.55); }
.ensuite p { margin: 0; }
.ensuite-cle { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ensuite-montant { margin-top: 6px !important; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ensuite-detail { margin-top: 8px !important; font-size: 16px; line-height: 1.5; }
.bande--jaune .actions { align-items: center; }

/* --- Les questions ------------------------------------------------------------------------------- */
.questions { max-width: 800px; margin: 0 auto; }

/* --- Le formulaire ------------------------------------------------------------------------------- */
.formulaire { max-width: 580px; margin: 0 auto; padding: 28px 22px; border: 1.5px solid var(--encre); border-radius: 28px; background: var(--blanc); }
.rappel { margin: 0 0 14px; font-size: 15px; color: var(--texte-doux); }
.rappel:empty { display: none; }
.champs { display: flex; flex-direction: column; gap: 16px; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: 14px; font-weight: 600; }
.champ input, .champ select {
  width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid var(--ligne); border-radius: 14px;
  background: var(--blanc); color: var(--encre); font-family: inherit; font-size: 17px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.champ input::placeholder { color: var(--texte-faible); }
.champ input:focus, .champ select:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 4px rgba(255, 214, 64, 0.65); }
.champ select {
  padding-right: 48px; appearance: none; -webkit-appearance: none;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.champ select:invalid { color: var(--texte-faible); }
/* Vérification en direct (mêmes règles que contact.php) : le champ fautif et son aide en rouge */
.champ.erreur input, .champ.erreur select { border-color: var(--alerte); }
.champ-aide { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--alerte); }
.champ-aide:empty { display: none; }
/* Retour de contact.php quand un champ n'allait pas */
.erreur:not(.champ) { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--jaune); color: var(--encre); font-size: 15px; font-weight: 500; }
.champs .pilule { margin-top: 6px; min-height: 56px; }
.piege { position: absolute; left: -9999px; }
.note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--texte-doux); }

/* Vigilance : sous le formulaire, dans la même bande */
.vigilance { max-width: 580px; margin: 16px auto 0; padding: 22px 22px 22px 76px; border-radius: var(--rayon); background: var(--blanc); position: relative; }
.vigilance::before {
  content: ''; position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 12px;
  background: var(--jaune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / 21px no-repeat;
}
.vigilance-titre { margin: 6px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.vigilance ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--texte-doux); }
.vigilance a, .vigilance b { color: var(--encre); font-weight: 600; }
.vigilance a[href^="tel:"] { white-space: nowrap; }

/* --- Page agents et notaires -------------------------------------------------------------------- */
/* Les trois promesses du haut de page, centrées sous les boutons */
.coches--centre { width: fit-content; max-width: 100%; margin: 28px auto 0; text-align: left; }
/* Les quatre dossiers : des cartes pareilles, deux par ligne sur ordinateur */
.cartes-deux { display: grid; gap: 14px; }
.carte-dossier { padding: 30px 24px; border-radius: var(--rayon); }
.carte-dossier h3 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.carte-dossier p { margin: 10px 0 0; font-size: 16px; color: var(--texte-doux); }
/* « 100+ » et « 1 », sous « Qui je suis » */
.mini-chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.mini-chiffres li { padding: 18px; border-radius: 18px; background: var(--grise); }
.mini-chiffres b { display: block; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.mini-chiffres span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--texte-doux); }
/* Les coordonnées, sur la bande jaune */
.coordonnees { display: grid; gap: 10px; max-width: 580px; margin: 0 auto; }
.coordonnees > div { padding: 18px 22px; border: 1.5px solid var(--encre); border-radius: 20px; background: var(--blanc); }
.coordonnees dt { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-doux); }
.coordonnees dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.coordonnees a { text-decoration: none; }
.tel-grand { font-size: clamp(30px, 9vw, 36px); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }

/* --- Mentions légales et page merci --------------------------------------------------------------- */
.ouverture--courte { padding: 48px 0 56px; }
.ouverture--courte h1 { font-size: clamp(38px, 11vw, 46px); }
.rubriques { max-width: 960px; margin: 0 auto; }
.rubrique { padding: 24px 0; border-top: 1.5px solid var(--ligne); }
.rubrique:first-child { border-top: 0; padding-top: 0; }
.rubrique h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.rubrique-texte p { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: var(--texte-doux); }
.rubrique-texte a { color: var(--encre); }
.appuye { color: var(--encre); font-weight: 700; }

/* --- Pied de page --------------------------------------------------------------------------------- */
.pied { padding: 56px 0 120px; background: var(--encre); color: #B8B8B2; }
.pied--sans-barre { padding-bottom: 56px; }
.pied--court { padding: 28px 0; }
.pied--court p { margin: 0; font-size: 13px; line-height: 1.6; }
.pied--court a { color: var(--blanc); }
.marque--pied span { color: var(--blanc); }
.marque--pied span + span { background: none; color: var(--jaune); }
.liens { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 14px; }
.liens a { display: inline-flex; align-items: center; min-height: 40px; color: var(--blanc); }
.mentions { margin-top: 18px; }
.mentions p { margin: 12px 0 0; font-size: 13px; line-height: 1.65; }
.mentions a { color: var(--blanc); }
.mentions .avertissement { color: var(--blanc); font-size: 14px; font-weight: 700; }

/* Barre du bas, sur téléphone */
.barre {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: flex; gap: 8px; padding: 7px; border: 1.5px solid var(--encre); border-radius: 999px; background: var(--creme);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.14);
}
.barre a {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.barre a:first-child { box-shadow: inset 0 0 0 1.5px var(--encre); }
.barre a:last-child { background: var(--encre); color: var(--blanc); }

/* --- Les effets (ajoutés le 8 novembre 2026) ---------------------------------------------------------
   Rien ne bouge pour qui a demandé moins d'animations dans les réglages de son appareil. Sans script,
   tout s'affiche normalement : seule l'arrivée du haut de page est en CSS pur.
   - le haut de page arrive ligne par ligne, puis le surligneur se trace sous les mots en jaune ;
   - en descendant, titres, cartes et blocs montent et apparaissent l'un après l'autre (effets.js pose
     .apparait, puis .visible quand l'élément entre à l'écran ; --rang règle le décalage) ;
   - les chiffres comptent jusqu'à leur valeur (effets.js), les numéros des étapes se surlignent,
     les phrases « sans courtier » se barrent, le portrait se recadre, le grand « 0 € » s'agrandit ;
   - à la souris, les cartes se soulèvent un peu au survol. */
.chiffres b, .mini-chiffres b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes arriver { from { opacity: 0; transform: translateY(18px); } }
  @keyframes surligner { from { background-size: 0% 44%; } }
  @keyframes recadrer { from { transform: scale(1.08); } }
  @keyframes gonfler { from { opacity: 0; transform: scale(0.86); } }

  /* Le haut de page, ligne par ligne */
  .ouverture .cadre > * { animation: arriver 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .ouverture .cadre > :nth-child(2) { animation-delay: 0.08s; }
  .ouverture .cadre > :nth-child(3) { animation-delay: 0.16s; }
  .ouverture .cadre > :nth-child(4) { animation-delay: 0.24s; }
  .ouverture .cadre > :nth-child(5) { animation-delay: 0.32s; }
  .ouverture .cadre > :nth-child(6) { animation-delay: 0.4s; }
  .ouverture h1 .surligne { animation: surligner 0.8s cubic-bezier(0.6, 0, 0.2, 1) 0.55s backwards; }

  /* En descendant */
  .apparait:not(.visible) { opacity: 0; }
  .apparait.visible { animation: arriver 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--rang, 0) * 90ms); }
  .portrait.apparait.visible img { animation: recadrer 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .zero.apparait.visible { animation-name: gonfler; animation-duration: 0.8s; }
  /* Les numéros des étapes se surlignent quand leur carte arrive */
  .etapes li.apparait .numero { background-size: 0% 45%; transition: background-size 0.6s cubic-bezier(0.6, 0, 0.2, 1); transition-delay: calc(var(--rang, 0) * 90ms + 0.35s); }
  .etapes li.apparait.visible .numero { background-size: 100% 45%; }
  /* Les phrases « sans courtier » se barrent à la main */
  .paires li.apparait .sans s {
    text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 58% / 0% 1.5px;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    transition: background-size 0.7s cubic-bezier(0.6, 0, 0.2, 1); transition-delay: calc(var(--rang, 0) * 90ms + 0.5s);
  }
  .paires li.apparait.visible .sans s { background-size: 100% 1.5px; }

  /* Filet de sécurité (effets.js) : une fois l'effet passé, tout est affiché tel quel, même si le
     navigateur n'a pas fait avancer l'animation */
  .arrivee-finie .ouverture .cadre > *, .arrivee-finie .ouverture h1 .surligne,
  .apparait.visible.fini, .portrait.apparait.fini img { animation: none; }

  /* Au survol, les cartes se soulèvent un peu */
  @media (hover: hover) {
    .carte-situation, .etapes li, .carte-dossier, .mini-chiffres li { transition: translate 0.25s ease; }
    .carte-situation:hover, .etapes li:hover, .carte-dossier:hover, .mini-chiffres li:hover { translate: 0 -4px; }
  }
}

/* À l'impression, tout est visible, même ce qui n'est pas encore apparu à l'écran */
@media print {
  .apparait, .ouverture .cadre > * { opacity: 1 !important; animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plus, .pilule, .evitement { transition: none; }
}

/* ==========================================================================
   Écrans larges
   ========================================================================== */
@media (min-width: 900px) {
  [id] { scroll-margin-top: 100px; }
  .cadre { padding: 0 40px; }
  .entete { padding: 16px 24px 0; }
  .entete-cadre { padding: 10px 10px 10px 24px; }
  .marque span { font-size: 15px; }
  .menu { display: flex; gap: 28px; }
  .menu a { font-size: 15px; font-weight: 500; text-decoration: none; }
  .menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .tel-entete { border-color: transparent; }
  .pilule--petite { display: inline-flex; }

  .bande { padding: 120px 0; }
  .bande--courte { padding: 80px 0; }
  .tete { margin-bottom: 56px; }
  .titre { font-size: 56px; }

  .ouverture { padding: 120px 0 140px; }
  .surtitre { font-size: 15px; }
  h1 { margin-top: 24px; font-size: 96px; line-height: 0.98; }
  .chapo { margin-top: 30px; font-size: 22px; }
  .actions { flex-direction: row; justify-content: center; gap: 14px; margin-top: 40px; }
  .actions--gauche { justify-content: flex-start; }
  .rassurance { margin-top: 20px; font-size: 15px; }

  .deux-colonnes { grid-template-columns: 420px minmax(0, 1fr); gap: 80px; align-items: center; }
  .portrait { aspect-ratio: 4 / 5; }
  .deux-colonnes--image-droite { grid-template-columns: minmax(0, 1fr) 400px; }
  .deux-colonnes .titre { font-size: 48px; }
  .accroche { font-size: 21px; }

  .chiffres { gap: 40px; max-width: 920px; }
  .chiffres b { font-size: 72px; }
  .chiffres span { margin-top: 12px; font-size: 16px; }

  .cartes-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .carte-situation { padding: 40px 32px 34px; }
  .carte-situation h3 { font-size: 23px; }
  .volet summary { padding: 18px 24px; font-size: 18px; }
  .volet-reponse { padding: 0 24px 22px; }
  .volet-reponse p, .volet-reponse li { font-size: 16.5px; }

  .certificat-image img { aspect-ratio: 4 / 5; }

  .etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .etapes li { padding: 30px 28px; }
  .numero { font-size: 40px; }
  .etapes h3 { font-size: 21px; }
  .etapes p { font-size: 16px; }

  .coches--centre { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 32px; width: auto; margin-top: 36px; }
  .cartes-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .carte-dossier { padding: 40px 36px; }
  .carte-dossier h3 { font-size: 23px; }
  .carte-dossier p { font-size: 17px; }
  .coordonnees > div { padding: 22px 28px; }
  .tel-grand { font-size: 44px; }

  .ouverture--courte { padding: 96px 0 104px; }
  .ouverture--courte h1 { font-size: 72px; }
  .rubrique { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 32px 0; }
  .rubrique:first-child { padding-top: 0; }
  .rubrique-texte p:first-child { margin-top: 0; }

  .paires { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .paires .sans { font-size: 16px; }
  .paires .avec { font-size: 21px; }

  .zero { font-size: 220px; }
  .zero-sous { font-size: 20px; }
  .ensuite { padding: 32px; }
  .ensuite-montant { font-size: 44px; }
  .ensuite-detail { font-size: 17px; }

  .formulaire { padding: 44px; }
  .vigilance { padding: 28px 32px 28px 92px; }
  .vigilance::before { left: 28px; top: 28px; width: 44px; height: 44px; background-size: 24px; }

  .pied { padding: 64px 0 56px; }
  .pied--court { padding: 32px 0; }
  .pied-cadre { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
  .mentions { margin-top: 0; }
  .mentions p:first-child { margin-top: 0; }

  .barre { display: none; }
}
