/* Page d'accueil (31/10/2026, maquette docs/maquettes/accueil validée par Laurent). Jetons de tokens.css, polices de
   base.css ; la page défile, contrairement à la carte. */

/* Le document défile (html) ; body ne doit pas être lui-même une boîte à défilement, sinon l'en-tête et le pied
   « collants » ne collent plus. Fond = teinte du panneau des calques de la carte (Laurent, 31/10/2026). */
html { height: auto; overflow: auto; background: var(--surface); }
body.accueil { height: auto; min-height: 100vh; overflow: visible; display: flex; flex-direction: column;
  background: var(--surface); font-size: 16px; line-height: 1.55; }
body.accueil main { flex: 1; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.accueil a { color: inherit; }
.largeur { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.accueil h1, .accueil h2, .accueil h3 { font-family: var(--police-titre); font-weight: 400; line-height: 1.15; margin: 0; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.entete .largeur { display: flex; align-items: center; gap: 22px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; font-family: var(--police-titre); font-size: 22px; text-decoration: none; }
.marque__logo { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.bouton-theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--slate); }
.bouton-theme:hover { color: var(--ink); }
.bouton-theme svg { width: 18px; height: 18px; }
.bouton { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px;
  font: 500 15px var(--police-texte); cursor: pointer; text-decoration: none; white-space: nowrap; }
.accueil .bouton--plein { background: var(--ink); color: var(--bg); }
.accueil .bouton--clair { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.bouton:hover { filter: brightness(1.12); }

/* Ouverture */
.ouverture { padding: 72px 0 64px; }
.ouverture .largeur { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.surtitre { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; min-height: 20px; }
.ouverture h1 { font-size: 52px; letter-spacing: -.01em; }
.ouverture h1 em { font-style: normal; color: var(--slate); }
.chapeau { font-size: 18px; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }

.recherche { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px;
  padding: 7px 7px 7px 22px; box-shadow: var(--ombre-flottante); max-width: 560px; border: 1px solid transparent; }
.recherche:focus-within { border-color: var(--slate); }
.recherche input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--police-texte); color: var(--ink); outline: none; padding: 10px 0; }
.recherche input::placeholder { color: var(--muted); }
.recherche input::-webkit-search-cancel-button { display: none; }
.suggestions { position: absolute; z-index: 6; top: calc(100% + 8px); left: 0; right: 0; text-align: left;
  list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--rayon); box-shadow: var(--ombre); }
.suggestions li { padding: 9px 12px; border-radius: 6px; cursor: pointer; display: flex; gap: 10px; align-items: baseline; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--voile); }
.suggestions .type { color: var(--muted); font-size: 12px; min-width: 58px; }
.suggestions__non-couvert { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 12px; font-style: italic; white-space: nowrap; }

.exemples { font-size: 13px; color: var(--muted); margin-top: 14px; }
.exemples a { text-decoration: underline; text-underline-offset: 3px; margin: 0 10px 0 4px; }
.exemples a:hover { color: var(--ink); }
.preuves { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.preuves span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); margin-right: 8px; vertical-align: 2px; }
.preuves [hidden] { display: none; }

/* Sections */
section.bloc { padding: 72px 0; border-top: 1px solid var(--line); }
section.bloc h2 { font-size: 36px; margin-bottom: 12px; }
.intro { color: var(--muted); max-width: 40em; margin: 0 0 36px; font-size: 17px; }
section.bloc--court { padding: 48px 0; }

/* Accueil des particuliers et page des professionnels (03/11/2026, maquette docs/maquettes/presentation). */
.public { display: flex; gap: 2px; background: var(--voile); border-radius: 999px; padding: 3px; font-size: 14px; }
.public a { text-decoration: none; padding: 6px 14px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.public a:hover { color: var(--ink); }
.public a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.etapes-courtes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.etape-courte { display: flex; gap: 16px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; color: var(--muted); font-size: 15px; }
.etape-courte strong { display: block; font-weight: 500; color: var(--ink); font-size: 16px; }
.num { flex: 0 0 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center;
  font-family: var(--police-titre); font-size: 18px; color: var(--ink); }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.carte-info { display: flex; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.carte-info h3 { font-size: 19px; margin-bottom: 4px; }
.carte-info p { margin: 0; color: var(--muted); font-size: 15px; }
.picto { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.picto svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.picto--ecole { background: #7E57C2; } .picto--cadre { background: #4E9A5F; } .picto--prix { background: #4A5560; }
.picto--terrain { background: #7D9178; } .picto--energie { background: #E5A33A; } .picto--face { background: #2F6FD0; }
.picto--borne { background: #00897B; } .picto--mandat { background: #A6574A; } .picto--rapport { background: #1F2124; }
:root[data-theme="sombre"] .picto--rapport { background: #4A5560; }
.picto--eau { background: #1E6FC9; } .picto--feu { background: #D32F2F; } .picto--orange { background: #FB8C00; }
.picto--violet { background: #6C3483; } .picto--brun { background: #8D6E63; } .picto--gris { background: #4A5560; }
.lien-suite { margin: 22px 0 0; }

/* Page des fonctionnalités (03/11/2026) : titre de chaque partie fixe à gauche, cartes et étiquettes à droite. */
.ouverture--simple { padding-bottom: 40px; }
.ouverture--simple .largeur { display: block; }
.ouverture--simple h1 { max-width: 16em; }
.ouverture--simple .chapeau { max-width: 44em; }
.sommaire { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sommaire a { text-decoration: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 9px 16px;
  font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.sommaire a:hover { border-color: var(--ink); }
.sommaire b { font-family: var(--police-titre); font-weight: 400; color: var(--muted); }
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.chiffre { border-top: 2px solid var(--ink); padding-top: 14px; }
.chiffre b { display: block; font-family: var(--police-titre); font-weight: 400; font-size: 34px; line-height: 1.1; }
.chiffre span { color: var(--muted); font-size: 14px; }
.partie { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.partie__tete { position: sticky; top: 96px; }
.partie__num { font-family: var(--police-titre); font-size: 15px; color: var(--muted); margin-bottom: 10px; }
section.bloc .partie__tete h2 { font-size: 34px; }
.partie__tete p { color: var(--muted); margin: 12px 0 0; }
.elements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.element { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 14px; }
.element--large { grid-column: 1 / -1; }
.element h3 { font-size: 18px; margin-bottom: 4px; }
.element p { margin: 0; color: var(--muted); font-size: 14.5px; }
.puces { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.puces li { font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
/* Fonctionnalités (03/11/2026, Laurent) : « Sur la carte » = noms exacts des filtres ; « Dans le dossier » = le reste. */
.puces-titre, .element p.puces-titre { margin: 14px 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); }
.puces-titre + .puces { margin-top: 6px; }
.groupe { grid-column: 1 / -1; font: 500 12px var(--police-texte); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 -2px; }
.groupe:first-child { margin-top: 0; }
.bandeau--seul { margin-top: 0; }

.bandeau { margin-top: 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: var(--ink); color: var(--bg); border-radius: 18px; padding: 32px 36px; }
.bandeau h3 { font-size: 24px; margin-bottom: 8px; }
.bandeau p { margin: 0; opacity: .88; max-width: 40em; }
.accueil .bandeau .bouton { background: var(--bg); color: var(--ink); }
.citation { font-family: var(--police-titre); font-size: 26px; line-height: 1.3; border-left: 3px solid var(--sage);
  padding: 4px 0 4px 20px; }

.acces { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 820px; }
.acces__carte { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.acces__carte--mise { border: 2px solid var(--ink); }
.acces__carte h3 { font-size: 24px; }
.acces__carte .bouton { margin-top: auto; justify-content: center; }
.coches-fines { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; font-size: 15px; }
.coches-fines li { padding-left: 22px; position: relative; }
.coches-fines li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 6px; border: solid var(--sage);
  border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.passerelle { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; background: var(--bg); }
.passerelle strong { display: block; font-family: var(--police-titre); font-weight: 400; font-size: 20px; }
.passerelle span { color: var(--muted); }

/* Démonstration d'un compte connecté (31/10/2026) : étapes à gauche, capture dans une fenêtre à droite. */
.demo { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; align-items: start; }
/* Colonne des étapes à la hauteur de l'image (posée par accueil.js), qui défile sans ascenseur visible : l'étape
   suivante remonte d'un cran quand elle arrive (Laurent, 31/10/2026). */
.demo__etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; overflow-y: auto;
  scrollbar-width: none; overscroll-behavior: contain; }
.demo__etapes::-webkit-scrollbar { display: none; }
.demo__etapes button { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; border: 1px solid transparent;
  background: none; border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--muted);
  transition: background var(--duree) var(--courbe), color var(--duree) var(--courbe); }
.demo__etapes button:hover { background: var(--voile); }
.demo__etapes strong { display: block; font-weight: 500; color: var(--ink); font-size: 15px; }
.demo__etapes small { display: block; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.demo__num { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--police-titre); font-size: 15px; color: var(--ink); }
/* Étape montrée à droite : en sombre. */
.demo__etapes button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: color-mix(in srgb, var(--bg) 78%, transparent); }
.demo__etapes button[aria-selected="true"] strong { color: var(--bg); }
.demo__etapes button[aria-selected="true"] .demo__num { background: var(--bg); color: var(--ink); border-color: var(--bg); }
/* Légende à gauche ; boutons de fin (rapport, compte) et lecture à droite, sur la même ligne : la démo entière tient
   à l'écran, boutons compris (Laurent, 31/10/2026). */
.demo__pied { display: flex; gap: 10px 16px; align-items: flex-start; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
.demo__pied figcaption { margin-top: 0; flex: 1 1 280px; }
.demo__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.demo__actions .bouton { flex-shrink: 0; }
.bouton.petit { padding: 8px 14px; font-size: 14px; }
/* Lien « Démo » de l'en-tête : le titre juste sous l'en-tête, la démo entière à l'écran. */
#demo { scroll-margin-top: -64px; }
.demo__ecran { margin: 0; }
.demo__fenetre { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--ombre-flottante);
  background: var(--bg); }
.demo__barre { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--voile); border-bottom: 1px solid var(--line); }
.demo__barre i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.demo__fenetre img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 900; transition: opacity 250ms var(--courbe); }
.demo__fenetre img.demo__change { opacity: 0; }
.demo__progression { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.demo__progression i { display: block; height: 100%; width: 0; background: var(--slate); }
.demo__progression i.demo__defile { width: 100%; transition: width linear; }
.demo__ecran figcaption { color: var(--muted); font-size: 14px; min-height: 2.8em; }
.demo__fin { display: flex; gap: 8px; flex-wrap: wrap; }
.demo__fin[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .demo__fenetre img { transition: none; } }

#principes .intro { max-width: none; }   /* phrase sur une ligne dès que l'écran le permet (Laurent, 01/11/2026) */
.principes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.principe { padding: 20px 0 0; border-top: 2px solid var(--ink); }
.principe h3 { font-size: 19px; margin-bottom: 8px; white-space: nowrap; }   /* titre sur une ligne (Laurent, 01/11/2026) */
.principe p { margin: 0; color: var(--muted); font-size: 15px; }
#metiers .principe h3 { white-space: normal; }   /* noms de métiers longs */

/* Pied de page toujours visible, comme l'en-tête (Laurent, 31/10/2026). */
.pied-accueil { position: sticky; bottom: 0; z-index: 5; border-top: 1px solid var(--line); padding: 10px 0;
  font-size: 12px; line-height: 1.45; color: var(--muted); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); }
.pied-accueil .largeur { display: flex; align-items: center; gap: 8px 28px; justify-content: space-between; }
.pied-accueil span { max-width: 62em; }
.pied-accueil nav { display: flex; gap: 18px; flex-shrink: 0; }
.pied-accueil nav a, .pied-accueil nav button { color: var(--muted); background: none; border: 0; padding: 0;
  font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pied-accueil nav a:hover, .pied-accueil nav button:hover { color: var(--ink); }
html { scroll-padding-bottom: 64px; }

/* Panneau latéral (Crédits, Confidentialité, État des données) : le même que sur la carte. */
.lateral { position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(380px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--ombre);
  padding: 28px; overflow-y: auto; transform: translateX(100%); transition: transform 250ms var(--courbe);
  font-size: 14px; line-height: 1.45; }
.lateral.ouvert { transform: none; }
.lateral h2 { font-family: var(--police-titre); font-weight: 400; font-size: 20px; margin: 0 0 12px; padding-right: 40px; }
.lateral h3 { font-family: var(--police-titre); font-weight: 400; font-size: 17px; margin: 18px 0 6px; }
.lateral .note { color: var(--muted); font-size: 12px; margin: 8px 0; }
.bouton-fermer { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.bouton-fermer svg { width: 18px; height: 18px; }
.etat-sources { width: 100%; border-collapse: collapse; font-size: 12px; }
.etat-sources td { padding: 4px 6px 4px 0; border-top: 1px solid var(--line); vertical-align: top; }

.message-accueil { position: fixed; z-index: 10; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; box-shadow: var(--ombre-flottante); font-size: 14px; }

@media (max-width: 900px) {
  .ouverture { padding: 48px 0 56px; }
  .ouverture .largeur, .bandeau { grid-template-columns: minmax(0, 1fr); }
  .ouverture h1 { font-size: 38px; }
  .bandeau { padding: 26px; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo__etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none !important; overflow: visible; }
  .demo__etapes small { display: none; }
  .principes { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .bouton-theme { margin-left: auto; }
  .partie { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .partie__tete { position: static; }
  .elements { grid-template-columns: minmax(0, 1fr); }
  .chiffres { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .largeur { padding: 0 16px; }
  .entete .largeur { gap: 12px; }
  .entete .bouton { padding: 9px 12px; font-size: 14px; }
  .marque .nom-marque { display: none; }   /* place du bouton « Se connecter » : le logo seul suffit */
  .marque { font-size: 19px; }
  .ouverture h1 { font-size: 32px; }
  .recherche { padding-left: 16px; }
  .recherche .bouton { padding: 11px 14px; }
  .principes { grid-template-columns: 1fr; }
  .public { font-size: 12.5px; }
  .public a { padding: 5px 8px; }
  .entete .bouton-theme { display: none; }   /* place de la bascule Particuliers / Professionnels */
  #compte { margin-left: auto; }
  .entete .largeur { gap: 8px; }
  /* Onglets de la démonstration : « Choisissez » débordait de l'écran sur quatre colonnes (03/11/2026). */
  .demo__etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo__etapes strong { font-size: 13px; hyphens: auto; overflow-wrap: anywhere; }
  .entete a.bouton--plein[href="/carte"] { display: none; }   /* la bascule Particuliers / Professionnels prend sa place */
  .cartes { grid-template-columns: minmax(0, 1fr); }
  .pied-accueil { font-size: 11px; padding: 8px 0; }
  .pied-accueil .largeur { flex-direction: column; align-items: flex-start; }
}

/* En-tête du panneau latéral (01/11/2026, Laurent) : la croix, le titre et le chapeau (version et avertissement des
   CGU) restent visibles quand on fait défiler le texte jusqu'à la dernière ligne. */
.lateral__tete { position: sticky; top: -28px; z-index: 2; margin: -28px -28px 0; padding: 28px 28px 4px;
  background: var(--surface); }
.lateral__tete:has(#lateral-chapeau:not(:empty)) { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 8px; }
#lateral-chapeau p { margin: 6px 0 0; }
.lateral--calques .lateral__tete { position: static; }   /* panneau des calques : défilement inchangé */

/* ---------- Style « cartes » (03/11/2026, Laurent : « améliore la page d'accueil des particuliers avec le style utilisé
   jusqu'à maintenant », puis « je ne veux pas de bleu, change par un gris clair ») : comme le dossier, des surfaces
   blanches posées par une ombre, sans filet ; accents en gris clair (--accueil-gris), texte foncé dessus. Vaut aussi pour
   les pages Professionnels et Fonctionnalités, qui partagent cette feuille. */
body.accueil { --accueil-gris: #E2DFD8; --accueil-gris-trait: #C9C5BC; }
:root[data-theme="sombre"] body.accueil { --accueil-gris: #34373B; --accueil-gris-trait: #4A4E53; }
.etape-courte, .carte-info, .element, .acces__carte, .passerelle, .principe {
  background: var(--surface-relief); border: 0; box-shadow: var(--ombre-bouton); border-radius: 14px; }
/* Toutes les cartes se soulèvent légèrement au survol (Laurent, 03/11/2026 : l'effet n'était que sur les cartes
   d'information ; accès, principes, métiers, passerelle et cartes claires restaient immobiles). */
.carte-info, .element, .etape-courte, .acces__carte, .principe, .passerelle, .citation-carte {
  transition: box-shadow var(--duree), transform var(--duree); }
.carte-info:hover, .element:hover, .acces__carte:hover, .principe:hover, .passerelle:hover, .citation-carte:hover {
  box-shadow: var(--ombre-bouton-survol); transform: translateY(-2px); }
.acces__carte--mise:hover { box-shadow: 0 0 0 2px var(--accueil-gris-trait), var(--ombre-bouton-survol); }
.num { background: var(--accueil-gris); border-color: var(--accueil-gris); color: var(--ink); font-size: 17px; }
.principe { padding: 18px 14px 20px; border-top: 3px solid var(--accueil-gris-trait); min-width: 0; }
.principe h3 { font-size: 16.5px; }   /* titres sur une ligne (01/11/2026) dans des cartes de même largeur */
.principes { gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.acces__carte--mise { border: 0; box-shadow: 0 0 0 2px var(--accueil-gris-trait), var(--ombre-bouton-survol); }
.acces__carte--mise h3::after { content: "Recommandé"; margin-left: 10px; vertical-align: 4px; font: 600 11px var(--police-texte);
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink); padding: 2px 8px; border-radius: 999px;
  background: var(--accueil-gris); }
.accueil .bouton--clair { background: var(--surface-relief); border: 0; box-shadow: var(--ombre-bouton); }
.accueil .bouton--plein { box-shadow: var(--ombre-bouton); }
.bouton { transition: box-shadow var(--duree), transform var(--duree), filter var(--duree); }
.bouton:hover { transform: translateY(-1px); }
.bouton-theme, .bouton-fermer { background: var(--surface-relief); border: 0; box-shadow: var(--ombre-bouton); }
.public a[aria-current="page"] { background: var(--surface-relief); box-shadow: var(--ombre-bouton); }
.recherche { background: var(--surface-relief); }
.recherche:focus-within { border-color: transparent; box-shadow: var(--ombre-flottante), 0 0 0 3px var(--accueil-gris); }
.suggestions { background: var(--surface-relief); border: 0; box-shadow: var(--ombre-flottante); }
.preuves span::before { background: var(--accueil-gris-trait); }
.sommaire a { background: var(--surface-relief); border: 0; box-shadow: var(--ombre-bouton);
  transition: box-shadow var(--duree), transform var(--duree); }
/* Se soulèvent au survol comme les cartes et les boutons (Laurent, 03/11/2026 : « ces boutons ne bougent pas »). */
.sommaire a:hover { box-shadow: var(--ombre-bouton-survol); transform: translateY(-2px); }
.puces li { border: 0; background: var(--voile); }
/* Chiffres de la page Fonctionnalités (03/11/2026, proposition B) : cartes en relief, chacune avec un petit visuel. */
.chiffres { gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.chiffre { border-top: 0; padding: 20px 20px 18px; background: var(--surface-relief); border-radius: 14px; box-shadow: var(--ombre-bouton);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 176px;
  transition: box-shadow var(--duree), transform var(--duree); }
.chiffre:hover { box-shadow: var(--ombre-bouton-survol); transform: translateY(-2px); }
.chiffre b { font-size: 44px; line-height: 1; }
.chiffre span { display: block; margin-top: 6px; }
.chiffre span strong { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.chiffre__points { display: grid; grid-template-columns: repeat(auto-fill, 7px); gap: 3px; max-width: 157px; }
.chiffre__points i { width: 7px; height: 7px; border-radius: 50%; background: #4E9A5F; }
.chiffre__couches { position: relative; height: 40px; }
.chiffre__couches i { position: absolute; left: 0; width: 70%; height: 18px; border-radius: 4px; transform: skewX(-24deg); opacity: .85; }
.chiffre__couches i:nth-child(1) { top: 0; background: #5B8DC9; }
.chiffre__couches i:nth-child(2) { top: 11px; left: 14px; background: #E5A33A; }
.chiffre__couches i:nth-child(3) { top: 22px; left: 28px; background: #4E9A5F; }
.chiffre__notes { display: flex; gap: 4px; }
.chiffre__notes i { flex: 1; height: 26px; border-radius: 5px; color: #fff; font: 700 13px/26px var(--police-texte); text-align: center; font-style: normal; }
.chiffre__notes i:nth-child(1) { background: #3E8E5E; } .chiffre__notes i:nth-child(2) { background: #8DB255; color: #1F2124; }
.chiffre__notes i:nth-child(3) { background: #E2C044; color: #1F2124; } .chiffre__notes i:nth-child(4) { background: #E08A3C; }
.chiffre__notes i:nth-child(5) { background: #C0452F; }
.chiffre__feuilles { position: relative; height: 46px; }
.chiffre__feuilles i { position: absolute; bottom: 0; width: 34px; height: 44px; border-radius: 3px; background: #fff; box-shadow: var(--ombre-bouton); }
.chiffre__feuilles i:nth-child(1) { left: 0; transform: rotate(-6deg); }
.chiffre__feuilles i:nth-child(2) { left: 26px; transform: rotate(5deg); }
.demo__num { border-color: transparent; background: var(--surface-relief); box-shadow: var(--ombre-bouton); }
.demo__etapes button[aria-selected="true"] { background: var(--accueil-gris); border-color: var(--accueil-gris);
  color: var(--muted); box-shadow: var(--ombre-bouton); }
.demo__etapes button[aria-selected="true"] strong { color: var(--ink); }
.demo__etapes button[aria-selected="true"] .demo__num { background: var(--surface-relief); color: var(--ink); border-color: transparent; }
.demo__fenetre { border: 0; }
.demo__progression i { background: var(--accueil-gris-trait); }
.ouverture h1 em { color: var(--muted); }
.bandeau { box-shadow: var(--ombre-flottante); }

/* ---------- Accueil revu (03/11/2026, maquette docs/maquettes/accueil-revu, Laurent : « professionnel, irréprochable,
   propre, clair ») : le produit montré dès le haut, une seule teinte pour les pictogrammes, le rapport mis en avant. */
.ouverture .largeur { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.ouverture h1 em { font-style: italic; color: var(--ink); }
.accueil .chapeau { max-width: 30em; }
.preuves { gap: 8px 18px; color: var(--ink); font-size: 13.5px; }
.preuves span { white-space: nowrap; }
.preuves span::before { content: "✓"; width: auto; height: auto; border-radius: 0; background: none; margin-right: 7px;
  vertical-align: 0; font-weight: 600; color: var(--muted); }
.apercu { position: relative; margin: 0; }
.apercu:not(.apercu--ecran) .demo__fenetre { border-radius: 14px; }
.apercu--ecran .apercu__badge--notes { bottom: 104px; }   /* au-dessus du menton et du pied */
.apercu img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 900; }
.apercu__badge { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px;
  background: var(--surface-relief); box-shadow: var(--ombre-flottante); font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.apercu__badge small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.apercu__badge--notes { left: -26px; bottom: 48px; }
.apercu__badge--prix { right: -18px; top: 64px; }
.apercu__lettre { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: #3E8E5E;
  color: #fff; font: 700 14px var(--police-texte); }
/* Pictogrammes d'une seule teinte : gris clair, trait foncé (les couleurs de chaque carte faisaient bariolé). */
body.accueil .picto { background: var(--accueil-gris); }
body.accueil .picto svg { stroke: var(--ink); stroke-width: 1.8; }
/* Professionnels : la Synthèse à l'écran, et devant elle le rapport remis au client. */
.apercu--pro { padding: 0 0 70px; }
.apercu--pro:not(.apercu--ecran) .demo__fenetre, .apercu--pro .demo__poste { width: 86%; }
:is(.apercu, .capture--feuilles) .feuille--apercu { position: absolute; right: 0; bottom: 0; width: 34%; height: auto; aspect-ratio: 4 / 5; transform: rotate(2deg); }
.feuille--apercu:hover { transform: rotate(0); }
.feuille--apercu img { position: absolute; inset: 0; }   /* sinon l'image impose sa hauteur à la feuille */
/* Synthèse d'une page : feuille A4 entière, penchée de l'autre côté, un peu en retrait derrière le rapport. */
.apercu .feuille--synthese { right: 27%; bottom: 14px; width: 31%; aspect-ratio: 210 / 297; transform: rotate(-4deg); }
.feuille--synthese img { object-fit: contain; object-position: top; }
.apercu .feuille--synthese:hover, .capture--feuilles .feuille--synthese:hover { transform: rotate(0); z-index: 2; }
/* Page des fonctionnalités : une capture réelle sous le titre de chaque partie (colonne de gauche, qui reste à l'écran),
   et pour « Les documents » les deux feuilles penchées. */
.capture { margin: 22px 0 0; }
/* Captures dans l'écran de la démonstration, à l'échelle de leur petite taille (Laurent, 03/11/2026). */
.capture--ecran .demo__moniteur { padding: 6px 6px 5px; border-radius: 11px 11px 0 0; }
.capture--ecran .demo__menton { height: 18px; border-radius: 0 0 11px 11px; }
.capture--ecran .demo__socle { --col: 17px; --platine: 3px; }
.capture img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 900; }
.capture--feuilles { position: relative; height: 280px; }
.capture--feuilles .feuille--apercu { width: 52%; right: 0; bottom: 10px; }
.capture--feuilles .feuille--synthese { right: auto; left: 0; bottom: 0; width: 46%; aspect-ratio: 210 / 297; transform: rotate(-4deg); }
.citation-carte h3 { font-size: 24px; margin-bottom: 6px; }
.citation-carte p { margin: 0; color: var(--muted); max-width: 40em; }
.citation-carte--seule { margin-top: 0; }

/* ---------- Démonstration de l'accueil (03/11/2026, Laurent : option A de docs/maquettes/demo-accueil « avec le pourtour
   d'un Mac, pas un PC », sans cadre noir) : écran tout-en-un à liseré clair, menton et pied en aluminium, pastille
   « Démonstration », flèche de souris qui va cliquer ; numéros en relief avec un anneau qui se remplit, étapes vues en noir. */
.demo__poste { filter: drop-shadow(0 24px 30px rgba(31, 33, 36, .22)); }
.demo__moniteur { background: #FBFBFC; border-radius: 16px 16px 0 0; padding: 10px 10px 8px; box-shadow: inset 0 0 0 1px #D9DADE; }
.demo__poste .demo__fenetre { border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); overflow: hidden; }
.demo__menton { height: 30px; border-radius: 0 0 16px 16px; background: linear-gradient(#E4E5E8, #CDCED2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; }
/* Pied fin (Laurent : « moins gros ») ; nom distinct de `.demo__pied`, la ligne de la légende et des boutons. */
/* Pied façon iMac (Laurent, 03/11/2026 : proposition B de docs/maquettes/pied-ecran, « 1/3 moins haut ») : col
   d'aluminium qui s'évase vers le bas (`::before`), platine fine posée sur la table (`::after`), aucun logo. */
.demo__socle { --col: 27px; --platine: 5px; position: relative; width: 26%; height: calc(var(--col) + var(--platine));
  margin: 0 auto; }
.demo__socle::before { content: ""; position: absolute; left: 15.4%; right: 15.4%; top: 0; height: var(--col);
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, 0) 30%),
    linear-gradient(90deg, #B9BABE 0%, #DADBDE 14%, #F1F2F4 40%, #E6E7EA 60%, #C9CACE 88%, #B4B5B9 100%); }
.demo__socle::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--col) - 1px);
  height: var(--platine); border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(90deg, #BFC0C4, #E9EAEC 35%, #F4F5F6 50%, #E2E3E6 68%, #BCBDC1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 0 #A9AAAE, 0 5px 8px -4px rgba(31, 33, 36, .35); }
.demo__direct { display: flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: rgba(28, 30, 32, .08); color: #3A3D41; font: 600 11px var(--police-texte); letter-spacing: .05em; }
.demo__direct i { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; animation: demo-clignote 1.2s infinite; }
@keyframes demo-clignote { 50% { opacity: .25; } }
.demo__curseur { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; pointer-events: none;
  transition: left 1.4s cubic-bezier(.4, 0, .2, 1), top 1.4s cubic-bezier(.4, 0, .2, 1); }
.demo__curseur svg { width: 22px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); fill: #fff; stroke: #111; stroke-width: 1.4;
  stroke-linejoin: round; }
.demo__onde { position: absolute; width: 34px; height: 34px; margin: -6px 0 0 -6px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; }
.demo__onde--anime { animation: demo-onde .6s ease-out; }
@keyframes demo-onde { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .demo__curseur, .demo__onde { display: none; }
  .demo__direct i { animation: none; }
}
/* Étapes : pastille en relief, anneau autour de l'étape montrée, étapes vues en noir. */
.demo__num { position: relative; width: 30px; height: 30px; flex: 0 0 30px; background: var(--surface-relief);
  box-shadow: var(--ombre-bouton); border: 0; }
.demo__anneau { position: absolute; inset: 0; width: 30px; height: 30px; transform: rotate(-90deg); display: none; }
.demo__anneau circle { fill: none; stroke-width: 2.6; }
.demo__anneau .fond { stroke: var(--accueil-gris); }
.demo__anneau .plein { stroke: var(--ink); stroke-dasharray: 88; stroke-dashoffset: 0; }
.demo__etapes button[aria-selected="true"] .demo__anneau { display: block; }
.demo__etapes button.demo__en-lecture .demo__anneau .plein { animation: demo-anneau var(--duree-etape, 6000ms) linear forwards; }
@keyframes demo-anneau { from { stroke-dashoffset: 88; } to { stroke-dashoffset: 0; } }
.demo__etapes button.demo__vue .demo__num { background: var(--ink); color: var(--bg); }
.demo__etapes button[aria-selected="true"] { background: var(--surface-relief); border-color: transparent; color: var(--muted);
  box-shadow: var(--ombre-bouton); }
.demo__etapes button[aria-selected="true"] .demo__num { box-shadow: none; background: var(--surface-relief); }
/* Commandes du menton et ligne sous l'écran (03/11/2026, Laurent : « agencer différemment les boutons et le texte »). */
.demo__menton { gap: 12px; }
.demo__lecture { width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid;
  place-items: center; background: #fff; color: #2A2C2F; box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.demo__lecture:hover { background: #F2F2F4; }
.demo__lecture svg { width: 10px; height: 10px; fill: currentColor; }
.demo__lecture .demo__icone-pause, .demo__lecture--pause .demo__icone-lecture { display: none; }
.demo__lecture--pause .demo__icone-pause { display: block; }
.demo__compteur { font: 600 11px var(--police-texte); color: #55585D; letter-spacing: .04em; min-width: 34px; }
/* Curseur de vitesse : fine piste grise, poignée blanche en relief, valeur à droite. */
.demo__vitesse { display: flex; align-items: center; gap: 6px; font: 600 11px var(--police-texte); color: #2A2C2F; }
.demo__vitesse output { min-width: 34px; }
.demo__vitesse input { -webkit-appearance: none; appearance: none; width: 84px; height: 4px; margin: 0; border-radius: 2px;
  background: #A9AAAF; cursor: pointer; }
.demo__vitesse input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.demo__vitesse input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.demo__vitesse input:focus-visible { outline: 2px solid #55585D; outline-offset: 3px; }
.demo__ecran .demo__pied { justify-content: center; text-align: center; margin-top: 16px; }
.demo__ecran .demo__pied figcaption { flex: 0 1 46em; min-width: 0; min-height: 2.9em; }
.demo__colonne { min-width: 0; }
.demo__colonne .demo__actions { justify-content: flex-start; margin-top: 18px; padding-left: 4px; }
/* Boutons l'un au-dessus de l'autre, tous de la largeur du plus long (Laurent, 03/11/2026). */
.actions--empilees, .demo__colonne .demo__actions { display: grid; grid-template-columns: max-content; gap: 10px; }
:is(.actions--empilees, .demo__colonne .demo__actions) .bouton { justify-content: center; text-align: center; }
/* Téléphone : numéro au-dessus du titre (à côté, les titres se coupaient à chaque syllabe). */
@media (max-width: 900px) {
  .demo__etapes button { flex-direction: column; gap: 6px; padding: 10px; }
  .demo__etapes strong { hyphens: manual; overflow-wrap: normal; }
}
/* Menu des parties de la page Fonctionnalités (03/11/2026, proposition E) : pictogramme au-dessus du nom et trait de
   3 px sous la partie à l'écran, comme les onglets du dossier. */
.nav--parties { align-self: stretch; gap: 4px; }
.nav--parties a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 0 12px; font-size: 12.5px; transition: color var(--duree); }
.nav--parties svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round;
  stroke-linejoin: round; }
.nav--parties a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--ink); transform: scaleX(0); transition: transform var(--duree) var(--courbe); }
.nav--parties a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.nav--parties a[aria-current="true"]::after { transform: none; }
.capture--feuilles-grandes { position: relative; height: 440px; }
.capture--feuilles-grandes .feuille--synthese { left: 2%; width: 44%; }
.capture--feuilles-grandes .feuille--apercu:not(.feuille--synthese) { width: 54%; bottom: 20px; }
@media (max-width: 900px) { .capture--feuilles-grandes { height: 340px; } }
@media (max-width: 520px) { .capture--feuilles-grandes { height: 260px; } }
@media (min-width: 901px) { .partie { grid-template-columns: 340px minmax(0, 1fr); } }   /* une colonne en dessous */
.apercu--pro .apercu__badge--prix { right: auto; left: -22px; top: 52px; }
.citation-carte { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--surface-relief); border-radius: 16px; padding: 26px 32px; box-shadow: var(--ombre-bouton); }
.citation-carte .citation { margin: 0; border-left-color: var(--accueil-gris-trait); }
.coches-fines li::before { border-color: var(--muted); }
/* Petits textes gris un peu plus lisibles. */
.accueil .exemples, .accueil .demo__ecran figcaption { color: color-mix(in srgb, var(--muted) 80%, var(--ink)); }
/* Le rapport */
.section-rapport { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.section-rapport .intro { margin-bottom: 0; }
.section-rapport .coches-fines { margin: 20px 0 28px; }
.feuille { display: block; height: 420px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--ombre-flottante);
  transform: rotate(-1.5deg); transition: transform var(--duree) var(--courbe); }
.feuille:hover { transform: rotate(0); }
.feuille img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
@media (max-width: 900px) {
  .ouverture .largeur, .section-rapport { grid-template-columns: minmax(0, 1fr); }
  .apercu__badge--notes { left: 8px; bottom: 12px; }
  .apercu__badge--prix { right: 8px; top: 40px; }
  .feuille { height: 320px; }
}
@media (max-width: 520px) { .apercu__badge { display: none; } }