/* 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; overflow-x: hidden; 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; }
/* Nom sur une seule ligne (08/11/2026, Laurent : « Vérif-Parcelle » se coupait au tiret, « c'est pas joli »). */
.marque .nom-marque { white-space: nowrap; }
.entete .marque { flex: none; }
/* Nom plus long (Vérif-Parcelle) : logo seul jusqu'à 700 px, sinon « Se connecter » sortait de l'écran. */
@media (max-width: 700px) { .entete .marque .nom-marque { display: 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 { flex: none; 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; display: none;
  font-size: 14px; line-height: 1.45; }
/* Fermé, il n'existe pas : posé hors de l'écran, il élargissait la page sur téléphone (06/11/2026). */
.lateral.ouvert { display: block; animation: lateral-entree 250ms var(--courbe); }
@keyframes lateral-entree { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .lateral.ouvert { animation: 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; }
  /* Démonstration (06/11/2026) : l'écran d'abord, les étapes en bandeau à faire glisser dessous (dix tuiles repoussaient
     la démonstration hors de l'écran). */
  .demo { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .demo__ecran { order: -1; }
  .demo__etapes { display: flex; max-height: none !important; overflow: auto hidden; gap: 6px; padding-bottom: 4px;
    scroll-snap-type: x proximity; scrollbar-width: none; }
  .demo__etapes li { flex: none; scroll-snap-align: start; }
  .demo__etapes button { align-items: center; gap: 8px; padding: 8px 12px 8px 8px; white-space: nowrap; }
  .demo__etapes small { display: none; }
  .demo__colonne .demo__actions { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); padding-left: 0; }
  /* Pied de page collant : 100 px d'écran perdus au doigt. Il reste en fin de page. */
  .pied-accueil { position: static; }
  html { scroll-padding-bottom: 0; }
  .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; }
  .demo__etapes strong { font-size: 13px; }
  .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); }
/* Page « Méthode » de l'estimation (05/11/2026). */
.methode { max-width: 860px; }
.methode h1 { margin-bottom: 14px; }
.methode h2 { margin: 40px 0 12px; font-size: 26px; }
.methode p { line-height: 1.6; }
.methode__deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 16px; }
.methode__carte { background: var(--surface-relief); border-radius: 16px; padding: 20px 22px; box-shadow: var(--ombre-bouton); }
.methode__carte h3 { font-size: 20px; margin: 0 0 6px; }
.methode__defile { overflow-x: auto; margin: 10px 0; border-radius: 14px; box-shadow: var(--ombre-bouton); }
.methode__tableau { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface-relief);
  font-variant-numeric: tabular-nums; }
.methode__tableau th, .methode__tableau td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.methode__tableau thead th { font-size: 12px; font-weight: 600; color: var(--muted); vertical-align: bottom; }
.methode__tableau tbody th { text-align: left; font-weight: 500; }
.methode__ligne-forte th, .methode__ligne-forte td { font-weight: 600; }
/* Premier dossier offert (05/11/2026) : trois cartes, la mention sous la recherche. */
.acces--trois { max-width: none; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.acces__carte--offert h3::after { content: "Offert"; 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); }
.acces__note { font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
.offert { font-size: 14px; margin: 14px 0 0; color: var(--ink); }
.offert a { margin-left: 6px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.offert a:hover { color: var(--ink); }
.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% 0; }
@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; } }

/* Toucher (06/11/2026) : réponse immédiate, pas de reflet gris, pas d'effet de survol resté collé après le doigt. */
a, button, summary, input, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .etape-courte:hover, .carte-info:hover, .element:hover, .acces__carte:hover, .passerelle:hover, .principe:hover, .bouton:hover { transform: none; }
  .pied-accueil nav a, .pied-accueil nav button { padding: 8px 0; }
  .exemples a { display: inline-block; padding: 6px 0; }
}

/* Principes (06/11/2026) : la règle à quatre colonnes de même largeur, plus bas que les règles d'écran étroit, gardait
   quatre colonnes de 75 px sur téléphone et élargissait toute la page. */
@media (max-width: 900px) {
  .principes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principe h3 { white-space: normal; }
}
@media (max-width: 520px) { .principes { grid-template-columns: minmax(0, 1fr); } }

/* « Ouvrir la carte » : jusqu'à 1200 px, l'en-tête n'a plus la place (coupé par le bord sur tablette à l'horizontale) ;
   le bouton flotte en bas de l'écran, sous le pouce, toujours visible (06/11/2026, Laurent : « à aucun moment j'ai le
   bouton pour aller sur la carte »). Le flou de l'en-tête enfermerait un élément fixe : il est retiré à ces largeurs. */
@media (max-width: 1000px) {   /* entre 900 et 1000 px, « Se connecter » sortait de l'écran */
  .nav { display: none; }
  .bouton-theme { margin-left: auto; }
}
@media (max-width: 1200px) {
  .entete { backdrop-filter: none; background: var(--surface); }
  .entete a.bouton--plein[href="/carte"] { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    padding: 14px 26px; box-shadow: var(--ombre-flottante); }
  body:has(input:focus) .entete a.bouton--plein[href="/carte"] { display: none; }   /* clavier ouvert */
  body.accueil { padding-bottom: 76px; }   /* la fin de la page reste lisible au-dessus du bouton */
  @media (max-height: 500px) {   /* téléphone à l'horizontale : dans le coin, il ne couvre pas le milieu de l'écran */
    .entete a.bouton--plein[href="/carte"] { left: auto; right: 16px; transform: none; padding: 9px 16px; font-size: 14px; }
  }
  .pied-accueil { position: static; }      /* le bouton flottant s'y poserait dessus */
  .entete .largeur { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .entete .nav { gap: 12px; }              /* menu plus long de Fonctionnalités : il dépassait à 1024 px */
  html { scroll-padding-bottom: 0; }
}

/* Guides (07/11/2026) : sommaire en cartes, article à la mise en page de la page Méthode. */
.guides__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 24px; }
.guides__carte { display: block; padding: 20px 22px; border-radius: 16px; background: var(--surface-relief); box-shadow: var(--ombre-bouton);
  color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.guides__carte:hover { transform: translateY(-2px); box-shadow: var(--ombre-bouton-survol); }
.guide .guides__carte h2 { margin: 0 0 8px; font-size: 21px; }
/* Un lien de plus dans l'en-tête (Guides) : il restait trop large entre 1 000 et 1 180 px. */
@media (max-width: 1180px) {
  .entete .largeur { gap: 10px; }
  .nav--parties { gap: 0; }
  .nav--parties a { padding: 0 6px; font-size: 12px; }
}
.guides__carte p { margin: 0; color: var(--muted); font-size: 15px; }
.guide__fil { margin: 0 0 12px; font-size: 14px; }
.guide .methode__tableau th, .guide .methode__tableau td { text-align: left; vertical-align: top; }
.guide .methode__tableau tbody th { min-width: 130px; }
@media (max-width: 640px) {
  .guide .methode__tableau { font-size: 13.5px; }
  .guide .methode__tableau th, .guide .methode__tableau td { padding: 8px 7px; }
  .guide .methode__tableau tbody th { min-width: 0; }
}
.guide__action { margin: 34px 0 18px; padding: 20px 22px; border-radius: 16px; background: var(--surface-relief); box-shadow: var(--ombre-bouton); }
.guide__action p { margin: 0 0 14px; }

/* Guides en couleur (07/11/2026, Laurent, proposition A de docs/maquettes/guides-couleur) : une couleur par thème. */
.t-docs    { --guide: #3B6AA8; --guide-pastel: #E4ECF7; }
.t-terrain { --guide: #3F8A57; --guide-pastel: #E1F1E6; }
.t-plu     { --guide: #B86C1A; --guide-pastel: #FAEBD8; }
.t-dpe     { --guide: #1F8A80; --guide-pastel: #DDF2F0; }
.t-argiles { --guide: #BC5A3C; --guide-pastel: #F8E5DE; }
:root[data-theme="sombre"] .t-docs    { --guide: #7FA8E0; --guide-pastel: #243247; }
:root[data-theme="sombre"] .t-terrain { --guide: #72C08C; --guide-pastel: #223A2B; }
:root[data-theme="sombre"] .t-plu     { --guide: #E8A65A; --guide-pastel: #40311D; }
:root[data-theme="sombre"] .t-dpe     { --guide: #5CC6BB; --guide-pastel: #1E3A38; }
:root[data-theme="sombre"] .t-argiles { --guide: #E48F73; --guide-pastel: #432A22; }
.guide__picto { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 15px;
  background: var(--guide-pastel); color: var(--guide); }
.guide__picto svg { width: 28px; height: 28px; }
.guides__carte { position: relative; overflow: hidden; padding-top: 24px; }
.guides__carte::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--guide); }
.guides__suite { display: inline-block; margin-top: 12px; color: var(--guide); font-size: 14px; font-weight: 600; }
.guide__tete { margin-bottom: 26px; padding: 26px 26px 22px; border-radius: 20px; background: var(--guide-pastel); }
.guide__tete .guide__fil { margin-bottom: 12px; }
.guide__tete .guide__fil a { color: var(--ink); opacity: .78; }
.guide__tete .guide__fil a::before { content: "← "; }
.guide__tete .guide__picto { background: var(--surface-relief); }
.guide__tete h1 { margin: 0 0 12px; }
.guide__tete .intro { margin: 0; color: var(--ink); opacity: .78; }
.guide[class*="t-"] h2 { padding-left: 14px; border-left: 4px solid var(--guide); }
.guide[class*="t-"] .coches-fines li { padding-left: 32px; }
.guide[class*="t-"] .coches-fines li::before { content: "✓"; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px;
  border: 0; border-radius: 50%; transform: none; background: var(--guide-pastel); color: var(--guide); font-size: 13px; font-weight: 600; }
.guide[class*="t-"] .methode__tableau thead th { color: var(--guide); }
.guide__retenir { margin: 24px 0; padding: 16px 20px; border-radius: 14px; background: var(--guide-pastel); }
.guide__retenir strong { display: block; margin-bottom: 2px; color: var(--guide); font-weight: 600; }
.guide[class*="t-"] .guide__action { background: var(--guide); color: #fff; box-shadow: none; }
.guide[class*="t-"] .guide__action .bouton { background: #fff; border-color: #fff; color: #1F2124; }
:root[data-theme="sombre"] .guide[class*="t-"] .guide__action { color: #15171A; }
@media (max-width: 560px) { .guide__tete { padding: 20px 18px; } }

/* Renvois vers le site dans un guide, carte de la ville, verdict de l'eau (07/11/2026, Laurent). */
.guide__fonceris { margin: 22px 0; padding: 15px 20px; border-radius: 14px; background: var(--surface-relief); box-shadow: var(--ombre-bouton);
  border-left: 4px solid var(--guide); font-size: 15px; }
.guide__fonceris > strong:first-child { display: block; margin-bottom: 3px; color: var(--guide); font-weight: 600; }
.guide__fonceris ol { margin: 6px 0 0; padding-left: 20px; }
.guide__fonceris li { margin-bottom: 4px; }

/* Pages de commune (07/11/2026, Laurent : « un peu plus sexy ») : une couleur par rubrique, pictogrammes, chiffres en grand.
   Barres et jauges en attributs SVG (largeurs en %), aucun style en ligne. Écrites par `ingestion/pages_communes.py`. */
.t-route { --guide: #5A5FB5; --guide-pastel: #E7E8F7; }
.t-prix  { --guide: #8A4E8F; --guide-pastel: #F2E6F3; }
:root[data-theme="sombre"] .t-route { --guide: #A5A9EA; --guide-pastel: #2C2D4A; }
:root[data-theme="sombre"] .t-prix  { --guide: #D49DD9; --guide-pastel: #3B2A3D; }
.guides__commune { margin-top: 26px; }
.commune__recherche { max-width: 640px; margin-top: 18px; }
.commune__tete { position: relative; margin-bottom: 0; padding-bottom: 62px;
  background: radial-gradient(120% 140% at 100% 0, color-mix(in srgb, var(--guide) 22%, transparent), transparent 60%), var(--guide-pastel); }
.commune__picto { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Chiffres clés : une carte unique posée à cheval sur l'en-tête. */
.commune__cles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: -38px 18px 0; padding: 6px;
  border-radius: 18px; background: var(--surface-relief); box-shadow: var(--ombre-flottante); }
.commune__cle { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 12px 14px; }
.commune__cle + .commune__cle { border-left: 1px solid var(--filet, rgba(120, 110, 95, .18)); }
.commune__cle > .commune__picto { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--guide-pastel); color: var(--guide); }
.commune__cle > div { min-width: 0; }
.commune__cle b { display: block; font: 400 22px/1.15 var(--police-titre); overflow-wrap: anywhere; }
.commune__cle span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.25; }

/* Carte en relief. */
.commune__plan { margin: 22px 0 0; }
.commune__plan a { position: relative; display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--ombre-flottante); }
.commune__plan img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.commune__plan-bouton { position: absolute; right: 14px; bottom: 14px; padding: 8px 15px; border-radius: 999px; background: #fff; color: #1F2124;
  font-size: 14px; font-weight: 600; box-shadow: var(--ombre-bouton); }
.commune__plan figcaption { margin-top: 10px; color: var(--muted); font-size: 13.5px; }

/* Rubriques. */
.commune__theme { margin-top: 42px; }
.guide[class*="t-"] .commune__theme > h2 { display: flex; gap: 12px; align-items: center; margin: 0 0 6px; padding-left: 0; border-left: 0; }
.commune__titre-picto { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--guide); color: #fff; }
:root[data-theme="sombre"] .commune__titre-picto { color: #15171A; }
.commune__chapo { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }

/* Tuiles : pictogramme, chiffre, libellé. */
.commune__tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.commune__tuile, .commune__carte { min-width: 0; background: var(--surface-relief); box-shadow: var(--ombre-bouton); transition: transform .18s ease, box-shadow .18s ease; }
.commune__tuile { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: 16px; }
.commune__tuile-picto { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--guide-pastel); color: var(--guide); }
.commune__tuile > b { font: 400 30px/1.1 var(--police-titre); white-space: nowrap; }
.commune__tuile-nom, .commune__tuile-plus, .commune__lignes { grid-column: 1 / -1; }
.commune__tuile-nom { color: var(--muted); font-size: 14px; line-height: 1.3; }
.commune__tuile-plus { font-size: 13.5px; line-height: 1.3; }
.commune__lignes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.commune__ligne text { font: 700 12px var(--police-texte); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .commune__tuile:hover, .commune__carte:hover, .commune__mesure:hover { transform: translateY(-3px); box-shadow: var(--ombre-flottante); }
  .commune__cle { border-radius: 14px; transition: transform .18s ease, background-color .18s ease; }
  .commune__cle > .commune__picto, .commune__tuile-picto { transition: transform .18s ease; }
  .commune__cle:hover { transform: translateY(-3px); background: var(--guide-pastel); }
  .commune__cle:hover > .commune__picto, .commune__tuile:hover .commune__tuile-picto { transform: scale(1.12); }
  .guide .guide__action { transition: transform .18s ease, box-shadow .18s ease; }
  .guide[class*="t-"] .guide__action:hover { transform: translateY(-3px); box-shadow: var(--ombre-flottante); }
  /* Vignettes des guides (07/11/2026, Laurent). */
  .guide__retenir, .guide__fonceris, .guide .methode__tableau { transition: transform .18s ease, box-shadow .18s ease; }
  .guide__retenir:hover, .guide__fonceris:hover, .guide .methode__tableau:hover { transform: translateY(-3px); box-shadow: var(--ombre-flottante); }
  .guide .methode__tableau tbody tr { transition: background-color .15s ease; }
  .guide .methode__tableau tbody tr:hover { background: var(--guide-pastel); }
  .guide__picto { transition: transform .18s ease; }
  .guide__tete:hover .guide__picto { transform: scale(1.1) rotate(-4deg); }
  .commune__plan a:hover img { transform: scale(1.015); }
}

/* Cartes. */
.commune__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.commune__grille > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.commune__theme.t-prix .commune__grille { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.commune__theme.t-prix .commune__grille > :last-child { grid-column: auto; }
.commune__carte { padding: 18px 20px; border-radius: 16px; }
.commune__carte--theme { border-top: 4px solid var(--guide); }
.commune__carte-tete { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; }
.commune__carte h3 { margin: 0; font: 600 16px/1.25 var(--police-texte); }
.commune__carte p { margin: 0; }
.commune__date { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
.commune__grand { color: var(--guide); font: 400 34px/1.15 var(--police-titre); }
.commune__carte .commune__grand { margin-bottom: 4px; }
.commune__chiffres { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-bottom: 12px; }
.commune__chiffres b { display: block; color: var(--guide); font: 400 32px/1.1 var(--police-titre); }
.commune__chiffres span { color: var(--muted); font-size: 13.5px; }
.commune__type { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; margin-bottom: 8px; font-size: 14px; }
.commune__type svg { grid-column: 1 / -1; display: block; }
.commune__type rect { fill: var(--guide); }
.commune__niveau { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.commune__niveau b { grid-column: 1 / -1; color: var(--muted); font-size: 13px; font-weight: 400; }
.commune__echelle .plein { fill: var(--guide); }
.commune__echelle .vide { fill: var(--guide-pastel); }

/* Barres. */
.commune__barre { display: block; margin: 26px 0 10px; overflow: visible; }
.commune__barre text { font: 700 17px var(--police-texte); pointer-events: none; }
.commune__carte--theme .commune__barre text { font-size: 13px; }
.commune__seg { transition: opacity .15s ease; cursor: default; }
.commune__seg rect { transform-box: fill-box; transform-origin: center; transition: transform .16s ease, filter .16s ease; }
.commune__barre .commune__val { fill: var(--texte, currentColor); font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity .15s ease; }
.commune__barre:hover .commune__seg:not(:hover), .commune__carte:has(.commune__legende span:hover) .commune__seg { opacity: .45; }
.commune__seg:hover rect { transform: scale(1.02, 1.2); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }
.commune__seg:hover .commune__val { opacity: 1; }
.commune__carte:has(.l0:hover) .s0 { opacity: 1; }
.commune__carte:has(.l0:hover) .s0 rect { transform: scale(1.02, 1.2); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }
.commune__carte:has(.l0:hover) .s0 .commune__val { opacity: 1; }
.commune__carte:has(.l1:hover) .s1 { opacity: 1; }
.commune__carte:has(.l1:hover) .s1 rect { transform: scale(1.02, 1.2); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }
.commune__carte:has(.l1:hover) .s1 .commune__val { opacity: 1; }
.commune__carte:has(.l2:hover) .s2 { opacity: 1; }
.commune__carte:has(.l2:hover) .s2 rect { transform: scale(1.02, 1.2); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }
.commune__carte:has(.l2:hover) .s2 .commune__val { opacity: 1; }
.commune__carte:has(.l3:hover) .s3 { opacity: 1; }
.commune__carte:has(.l3:hover) .s3 rect { transform: scale(1.02, 1.2); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }
.commune__carte:has(.l3:hover) .s3 .commune__val { opacity: 1; }
.commune__carte:has(.l4:hover) .s4 { opacity: 1; }
.commune__carte:has(.l4:hover) .s4 rect { transform: scale(1.02, 1.2); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }
.commune__carte:has(.l4:hover) .s4 .commune__val { opacity: 1; }
.commune__carte:has(.l5:hover) .s5 { opacity: 1; }
.commune__carte:has(.l5:hover) .s5 rect { transform: scale(1.02, 1.2); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }
.commune__carte:has(.l5:hover) .s5 .commune__val { opacity: 1; }
.commune__carte:has(.l6:hover) .s6 { opacity: 1; }
.commune__carte:has(.l6:hover) .s6 rect { transform: scale(1.02, 1.2); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .28)); }
.commune__carte:has(.l6:hover) .s6 .commune__val { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes commune-barre { from { clip-path: inset(-30px 100% -30px 0); } to { clip-path: inset(-30px -30px -30px 0); } }
    .commune__barre { animation: commune-barre linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
  }
}
.commune__legende { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13.5px; }
.commune__legende span { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; padding: 1px 6px; margin-left: -6px; border-radius: 7px; transition: background-color .15s ease; }
.commune__legende span:hover { background: var(--guide-pastel); }
.commune__legende b { color: var(--texte, inherit); font-weight: 600; }
.commune__legende + p { margin-top: 10px; }
.commune__explication { margin-top: 12px; font-size: 14.5px; }
.commune__explication summary { width: fit-content; color: var(--guide); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.commune__explication p { margin: 10px 0; }
.commune__explication .methode__tableau { margin: 8px 0; font-size: 13.5px; }
.commune__lettre { display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 7px; font-weight: 700; }
.commune__lettre--A { background: #2E8B57; color: #fff; }
.commune__lettre--B { background: #5DA45E; color: #fff; }
.commune__lettre--C { background: #9CC463; color: #1F2124; }
.commune__lettre--D { background: #E9D35A; color: #1F2124; }
.commune__lettre--E { background: #EFAE4A; color: #1F2124; }
.commune__lettre--F { background: #E27C3C; color: #fff; }
.commune__lettre--G { background: #C9472F; color: #fff; }

/* L'eau du robinet : bleu léger et transparent. */
.commune__eau { --eau-encre: #12395F; --eau-doux: #2F5F8E; --eau-plein: #2C7DC0; --eau-vignette: rgba(255, 255, 255, .62);
  position: relative; overflow: hidden; padding: 24px 26px 58px; border-radius: 20px; color: var(--eau-encre);
  background: linear-gradient(135deg, rgba(44, 134, 207, .26) 0%, rgba(44, 134, 207, .15) 55%, rgba(44, 134, 207, .22) 100%); box-shadow: var(--ombre-bouton); }
:root[data-theme="sombre"] .commune__eau { --eau-encre: #DCEBFA; --eau-doux: #A9CBEC; --eau-plein: #7FB9EC; --eau-vignette: rgba(255, 255, 255, .07); }
.commune__eau p { margin: 0; }
.commune__eau-tete { display: flex; gap: 16px; align-items: center; }
.commune__eau-picto { flex: none; width: 60px; height: 60px; padding: 13px; border-radius: 50%; background: var(--eau-vignette); color: var(--eau-plein); }
.commune__eau .commune__eau-verdict { font: 400 30px/1.15 var(--police-titre); }
.commune__mesures { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin-top: 18px; }
.commune__mesure { display: flex; flex-direction: column; gap: 4px; padding: 13px 15px; border-radius: 14px; background: var(--eau-vignette);
  transition: transform .18s ease, box-shadow .18s ease; }
.commune__mesure span, .commune__mesure small { color: var(--eau-doux); }
.commune__mesure span { font-size: 13.5px; }
.commune__mesure b { font: 400 22px/1.2 var(--police-titre); }
.commune__mesure small { font-size: 12.5px; }
.commune__jauge { display: block; }
.commune__jauge .fond { fill: var(--eau-plein); fill-opacity: .2; }
.commune__jauge .plein { fill: var(--eau-plein); }
.commune__eau .commune__eau-note { position: relative; z-index: 1; margin-top: 14px; color: var(--eau-doux); font-size: 13.5px; }
.commune__vague { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 52px; fill: var(--eau-plein); fill-opacity: .14; }

@media (max-width: 760px) {
  .commune__cles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -38px 8px 0; }
  .commune__cle { padding: 10px 8px; gap: 8px; }
  .commune__cle + .commune__cle { border-left: 0; }
  .commune__cle > .commune__picto { width: 32px; height: 32px; padding: 7px; }
  .commune__cle b { font-size: 19px; }
  .commune__cle span { font-size: 12.5px; }
}
@media (max-width: 640px) {
  .commune__recherche { flex-wrap: wrap; border-radius: 18px; }
  .commune__recherche .bouton { width: 100%; }
  .commune__tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .commune__tuile { padding: 12px; gap: 4px 8px; }
  .commune__tuile-picto { width: 34px; height: 34px; padding: 8px; }
  .commune__tuile > b { font-size: 25px; }
  .commune__tuile-nom { font-size: 13px; }
  .commune__eau { padding: 20px 18px 54px; }
  .commune__eau-picto { width: 50px; height: 50px; padding: 11px; }
  .commune__eau .commune__eau-verdict { font-size: 25px; }
  .commune__plan-bouton { right: 10px; bottom: 10px; padding: 6px 12px; font-size: 13px; }
  .commune__explication .methode__tableau { font-size: 12.5px; }
}

/* Page des villes (07/11/2026, Laurent) : une carte par fiche, rangées par département. */
.villes__bloc { margin-top: 34px; }
.villes__bloc[hidden], .villes__carte[hidden] { display: none; }
.guide[class*="t-"] .villes__bloc > h2 { margin: 0 0 12px; }
.villes__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.villes__carte { display: block; overflow: hidden; border-radius: 16px; background: var(--surface-relief); box-shadow: var(--ombre-bouton); color: var(--ink); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease; }
.villes__carte img { display: block; width: 100%; height: auto; }
.villes__nom { display: block; padding: 12px 16px 14px; font: 400 21px/1.2 var(--police-titre); }
.villes__aucune { margin-top: 26px; }
a.guides__commune { display: block; text-decoration: none; color: inherit; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .villes__carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-flottante); }
}
@media (max-width: 480px) { .villes__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .villes__nom { padding: 10px 12px 12px; font-size: 18px; } }

/* Vérifier un devis ou une installation solaire (07/11/2026, Laurent). */
.verif__formulaire { display: grid; gap: 16px; }
.verif__champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.verif__champ { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.verif__champ[hidden] { display: none; }
.verif__lib { font-size: 14px; font-weight: 600; }
.verif__saisie { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.verif__champ .note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.3; }
.verif input, .verif select { width: 100%; min-width: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink);
  box-shadow: var(--ombre-bouton); font: inherit; }
.verif__choix { display: flex; flex-wrap: wrap; gap: 8px; }
.verif__choix button { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--ombre-bouton); font: inherit; font-size: 14px; cursor: pointer; }
.verif__choix button[aria-pressed="true"] { background: var(--guide); color: #fff; }
:root[data-theme="sombre"] .verif__choix button[aria-pressed="true"] { color: #15171A; }
.verif__formulaire > .bouton { justify-self: start; }
.verif__resultat { display: grid; gap: 14px; margin-top: 18px; }
.verif__resultat p { margin: 0; }
.verif__verdict { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; border-left: 4px solid; }
.verif__verdict strong { font: 400 22px/1.2 var(--police-titre); }
.verif__verdict--ok { border-color: #2F7345; background: #E1F1E6; }
.verif__verdict--doute { border-color: #B86C1A; background: #FAEBD8; }
.verif__verdict--fort { border-color: #BC5A3C; background: #F8E5DE; }
:root[data-theme="sombre"] .verif__verdict--ok { background: #223A2B; }
:root[data-theme="sombre"] .verif__verdict--doute { background: #40311D; }
:root[data-theme="sombre"] .verif__verdict--fort { background: #432A22; }
.verif__chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.verif__chiffres > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface-relief); box-shadow: var(--ombre-bouton); }
.verif__chiffres span, .verif__chiffres small { color: var(--muted); font-size: 13px; }
.verif__chiffres b { font: 400 25px/1.2 var(--police-titre); }
.verif__echelle { position: relative; height: 14px; border-radius: 7px; background: var(--guide-pastel); }
.verif__zone { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--guide); }
.verif__repere { position: absolute; top: -5px; bottom: -5px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.verif__legende { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 13.5px; }
.verif__legende span { display: inline-flex; align-items: center; gap: 6px; }
.verif__pt { width: 12px; height: 12px; border-radius: 4px; background: var(--guide); }
.verif__pt--repere { width: 4px; background: var(--ink); }
.verif__alerte { padding: 12px 14px; border-radius: 12px; background: var(--guide-pastel); }
.verif__pans { margin: 0; padding-left: 20px; font-size: 14.5px; }
.verif__titre { margin: 8px 0 0; font: 400 21px/1.2 var(--police-titre); }
@media (min-width: 641px) { .verif__resultat .methode__tableau th, .verif__resultat .methode__tableau td { white-space: nowrap; } }
@media (max-width: 640px) { .verif__resultat .methode__tableau { font-size: 12.5px; } .verif__resultat .methode__tableau th, .verif__resultat .methode__tableau td { padding: 7px 5px; } }
.verif__part { height: 14px; border-radius: 7px; overflow: hidden; background: var(--guide-pastel); }
.conso-barre__auto { display: block; height: 100%; background: var(--guide); }
.verif__alerte ul { margin-top: 4px; }
.conso__avertissement { padding: 12px 14px; border-radius: 12px; background: var(--voile, rgba(120, 110, 95, .1)); font-size: 13.5px; }

/* Climat du lieu (07/11/2026, Laurent). */
.verif #verif-contenu { display: grid; gap: 14px; }
.climat__graphique { display: block; width: 100%; height: auto; }
.climat__pluie { fill: #2C86CF; fill-opacity: .3; }
.climat__ligne { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.climat__tx { fill: #C9622F; stroke: #C9622F; }
.climat__tn { fill: #2C7DC0; stroke: #2C7DC0; }
.climat__ligne.climat__tx, .climat__ligne.climat__tn { fill: none; }
.climat__mois, .climat__val { fill: var(--muted); font: 13px var(--police-texte); text-anchor: middle; stroke: none; }
.climat__val { font-size: 12px; }
.climat__pt-tx { background: #C9622F; }
.climat__pt-tn { background: #2C7DC0; }
.climat__pt-pluie { background: rgba(44, 134, 207, .35); }
.verif__alerte p { margin: 4px 0; }
.commune__climat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 8px; margin-bottom: 10px; }
.commune__climat > div { padding: 9px 11px; border-radius: 10px; background: var(--guide-pastel); }
.commune__climat span { display: block; color: var(--muted); font-size: 12.5px; }
.commune__climat b { display: block; font: 400 17px/1.2 var(--police-titre); }
.commune__carte--large { grid-column: 1 / -1; }
.climat__graphique--etroit { display: none; }
.climat__legende { margin: 2px 0 10px; }
.climat__pt { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
@media (max-width: 640px) { .commune .climat__graphique--large { display: none; } .commune .climat__graphique--etroit { display: block; } }
.commune__climat > div { text-align: center; }
.verif__chiffres > div { align-items: center; text-align: center; }
