/* Feuille de style du site
   Pensée d'abord pour le mobile et pour une lecture confortable (public souvent de plus de 50 ans) :
   grands textes, contrastes forts (AAA pour le texte courant), zones à toucher d'au moins 48 px.
   Chaleureux et sérieux, sans aucun code visuel de l'administration. */

/* Polices hébergées avec le site (licence SIL OFL, voir fonts/) : aucune requête vers un service tiers */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/atkinson-hyperlegible-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  src: url('fonts/atkinson-hyperlegible-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --police-texte: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --police-titres: 'Bricolage Grotesque', var(--police-texte);

  --encre: #1B1340;        /* texte principal : contraste 15:1 sur crème */
  --encre-douce: #3A335E;  /* texte secondaire : contraste 10:1 sur crème */
  --creme: #FFF6E9;
  --blanc: #ffffff;
  --sable: #F3E8D6;        /* fonds secondaires */
  --bord: #DCD1BD;         /* bordures discrètes */
  --violet: #4B2FD0;       /* liens et accents : contraste 7,5:1 sur blanc */
  --violet-pale: #ECE7FF;
  --jaune: #FFE13A;
  --corail: #C2410C;       /* « & » du nom */

  --vert-pale: #DDF4E7;  --vert-bord: #1E7A4F;
  --soleil: #FFF1B8;     --soleil-bord: #9A6B00;
  --peche: #FFE3DA;      --peche-bord: #B3341A;

  --rayon: 22px;        /* cartes arrondies (direction « Chaleureux », chantier 3) */

  /* Couleurs habituelles de l'étiquette DPE */
  --dpe-A: #00A36C;
  --dpe-B: #55B848;
  --dpe-C: #B6D24A;
  --dpe-D: #FFE13A;
  --dpe-E: #FFB627;
  --dpe-F: #FF7A2F;
  --dpe-G: #E8323C;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 19px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--creme);
}

.conteneur { max-width: 760px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--police-titres); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: 2.1rem; margin: 0 0 14px; }
h2 { font-size: 1.5rem; margin: 0 0 12px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }

a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--encre); }

/* Lien « Aller au contenu » (chantier 8) : invisible tant qu'il n'a pas le focus clavier (première touche Tab) */
.evitement {
  position: absolute; left: 12px; top: -200px; z-index: 100;
  background: var(--jaune); color: var(--encre); font-weight: 700;
  padding: 12px 20px; border: 2px solid var(--encre); border-radius: 999px; text-decoration: none;
}
.evitement:focus { top: 12px; }
#contenu:focus { outline: none; }

/* Repère clavier très visible, sur tous les éléments interactifs */
:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--jaune);
  border-radius: 6px;
}

.surligne { background: var(--jaune); padding: 0 6px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- En-tête ---------- */
.entete { padding: 14px 0; border-bottom: 2px solid var(--bord); background: var(--creme); }
.entete .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.marque {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-family: var(--police-titres); font-weight: 800; font-size: 1.15rem;
  color: var(--encre); text-decoration: none;
}
.marque:hover { color: var(--encre); }
.marque img { display: block; }
.esperluette { color: var(--corail); }
.independant {
  margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--encre);
  border: 2px solid var(--encre); padding: 2px 12px; border-radius: 999px; background: var(--jaune);
}

/* ---------- Menu de navigation ---------- */
.menu { flex-basis: 100%; }
.menu ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.menu a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px;
  border-radius: 999px; border: 2px solid var(--bord); background: var(--blanc);
  color: var(--encre); font-weight: 700; font-size: 1rem; text-decoration: none;
}
.menu a:hover { border-color: var(--violet); color: var(--violet); }
.menu a[aria-current="page"], .menu a[aria-current="true"] { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

/* Téléphone (moins de 700 px) : menu replié derrière le bouton « Menu » (élément <details> juste avant le menu).
   Le contenu de la page, et sur l'accueil le champ de recherche, sont ainsi visibles dès le premier écran. */
.menu-mobile { margin-left: auto; }
.menu-mobile summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; cursor: pointer;
  border-radius: 999px; border: 2px solid var(--encre); background: var(--blanc);
  color: var(--encre); font-weight: 700; font-size: 1rem; list-style: none;
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile summary::after { content: "▾"; font-size: 0.9em; }
.menu-mobile[open] summary { background: var(--encre); color: var(--blanc); }
.menu-mobile[open] summary::after { content: "▴"; }
@media (max-width: 699px) {
  .menu-mobile:not([open]) ~ .menu { display: none; }
  /* En-tête compact (09/11/2026) : logo et nom, badge « Site indépendant » plus petit juste dessous, bouton « Menu » à
     droite sur les deux lignes. Hauteur réduite d'environ 40 % ; le logo reste une zone à toucher de 48 px. */
  .entete { padding: 6px 0; }
  .entete .conteneur { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 0; align-items: center; }
  .marque { grid-column: 1; grid-row: 1; gap: 8px; font-size: 1.05rem; line-height: 1.15; }
  .marque img { width: 34px; height: 34px; }
  .independant { grid-column: 1; grid-row: 2; justify-self: start; margin: -6px 0 2px 42px; font-size: 0.72rem; line-height: 1.45; padding: 0 8px; border-width: 1.5px; }
  .menu-mobile { grid-column: 2; grid-row: 1 / span 2; }
  .menu { grid-column: 1 / -1; padding-bottom: 6px; }
  .accueil { margin-top: 14px; padding: 18px 18px 20px; }
  .accueil .illustration { display: none; } /* décorative : laisse la place au champ de recherche */
  .accueil h1 { font-size: 1.9rem; }
}
@media (min-width: 700px) {
  .menu-mobile { display: none; }
}

/* ---------- Bandeau d'accueil ---------- */
.accueil { margin-top: 20px; padding: 24px 20px; background: var(--violet-pale); border-radius: 28px; }
.accueil h1 { margin-bottom: 10px; }
.accueil-grille { display: grid; gap: 18px; }
.illustration { width: 170px; height: auto; display: block; }
.chapo { font-size: 1.1rem; color: var(--encre-douce); margin-bottom: 0; }

/* ---------- Cartes ---------- */
.carte {
  background: var(--blanc);
  border: 2px solid var(--encre);
  border-radius: var(--rayon);
  padding: 22px 18px;
  margin: 22px 0;
}

/* ---------- Recherche ---------- */
.recherche { border-color: var(--encre); }
.recherche label.titre-champ { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 4px; }
.aide { font-size: 0.95rem; color: var(--encre-douce); margin: 0 0 10px; }
.combo { position: relative; }

input[type="text"] {
  width: 100%; min-height: 56px;
  font: inherit; font-size: 1.05rem;
  padding: 12px 16px;
  border: 2px solid var(--encre);
  border-radius: 999px;            /* champs en pilule */
  padding-left: 22px; padding-right: 22px;
  background: var(--blanc);
  color: var(--encre);
}
input[type="text"]::placeholder { color: #6B6590; } /* contraste 5,4:1 */

.suggestions {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  background: var(--blanc); border: 2px solid var(--encre); border-radius: 18px;
  box-shadow: 0 10px 30px rgba(27, 19, 64, 0.18);
  max-height: 60vh; overflow-y: auto;
}
.suggestions li { padding: 12px 14px; min-height: 48px; border-radius: 8px; cursor: pointer; line-height: 1.35; }
.suggestions li + li { border-top: 1px solid #EEE8DC; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--violet-pale); }
.suggestions .type { display: block; font-size: 0.85rem; color: var(--encre-douce); }

button, .bouton {
  font: inherit; font-weight: 700; font-size: 1.05rem;
  min-height: 52px; padding: 12px 22px;
  border: 2px solid var(--violet); border-radius: 999px;   /* boutons en pilule */
  background: var(--violet); color: var(--blanc); cursor: pointer;
}
button:hover, a.bouton:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.bouton-principal { width: 100%; margin-top: 10px; }
a.bouton { display: inline-flex; align-items: center; text-decoration: none; margin-top: 24px; }

.bouton-lien {
  background: none; border: 0; color: var(--violet); padding: 8px 0; min-height: 48px; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; border-radius: 0; text-align: left;
}
.bouton-lien:hover { background: none; color: var(--encre); }

.par-numero { margin-top: 16px; border-top: 1px solid #EEE8DC; padding-top: 6px; }
.par-numero summary { cursor: pointer; color: var(--violet); font-weight: 700; min-height: 48px; display: flex; align-items: center; gap: 8px; }
.form-numero { margin-top: 6px; }
.form-numero label { display: block; font-size: 1rem; margin-bottom: 6px; }
.ligne { display: flex; flex-direction: column; gap: 10px; }
.ligne input { text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Messages ---------- */
.message { border-radius: 18px; padding: 18px; margin: 16px 0; background: var(--violet-pale); border: 2px solid #C9BEF7; }
.message.alerte { background: var(--soleil); border-color: #E6CF73; }
.message h2, .message h3 { margin-top: 0; }
.message > :last-child { margin-bottom: 0; }
.chargement { color: var(--encre-douce); font-weight: 700; padding: 18px 0; }
.chargement::before {
  content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 10px; border-radius: 50%;
  background: var(--violet); animation: pulse 0.8s ease-in-out infinite alternate; vertical-align: -1px;
}
@keyframes pulse { from { transform: scale(0.6); opacity: 0.5; } to { transform: scale(1.1); opacity: 1; } }

/* ---------- Liste des DPE ---------- */
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.filtres button { background: var(--blanc); color: var(--encre); border-color: var(--encre); padding: 8px 16px; font-weight: 700; font-size: 1rem; min-height: 48px; }
.filtres button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.filtres button:hover { background: var(--violet-pale); color: var(--encre); border-color: var(--violet); }
.filtres button[aria-pressed="true"]:hover { background: var(--encre); color: var(--blanc); }

.filtre-surface { margin: 10px 0 16px; }
.filtre-surface label { display: block; font-weight: 700; margin-bottom: 6px; }
.filtre-surface input { width: 9em; }
.filtre-surface .note { display: block; margin-top: 6px; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { margin-bottom: 10px; }
.choix {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--blanc); color: var(--encre); font-weight: 400; font-size: 1rem;
  border: 2px solid var(--bord); border-radius: 18px; padding: 14px;
}
.choix:hover { background: var(--violet-pale); border-color: var(--violet); color: var(--encre); }
.choix .details { flex: 1; min-width: 0; }
.choix .adresse-ligne { font-weight: 700; }
.choix .infos { color: var(--encre-douce); }
.choix::after { content: '›'; font-size: 1.8rem; line-height: 1; color: var(--encre-douce); }

/* Pastille de classe (listes) */
.pastille {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 10px;
  font-family: var(--police-titres); font-weight: 800; font-size: 1.6rem; color: var(--encre);
}
.classe-A { background: var(--dpe-A); color: var(--blanc); }
.classe-B { background: var(--dpe-B); }
.classe-C { background: var(--dpe-C); }
.classe-D { background: var(--dpe-D); }
.classe-E { background: var(--dpe-E); }
.classe-F { background: var(--dpe-F); }
.classe-G { background: var(--dpe-G); color: var(--blanc); }
.classe-inconnue { background: #CFCADB; }

/* Anciens DPE (expirés) : couleur atténuée */
.pastille.expire { opacity: 0.5; filter: grayscale(0.6); }
.mention-expire { color: var(--peche-bord); }
.badge-expire {
  display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px;
  background: var(--peche); color: #8F2A12; border: 2px solid var(--peche-bord); font-weight: 700; font-size: 0.9rem;
}
.anciens { margin-top: 20px; border-top: 2px dashed var(--bord); padding-top: 12px; }
.anciens summary { cursor: pointer; color: var(--violet); font-weight: 700; min-height: 48px; display: flex; align-items: center; }

/* ---------- Résultat ---------- */
.resultat-adresse { font-weight: 700; margin: 0 0 2px; }
.resultat-sous { color: var(--encre-douce); margin: 0 0 16px; }
/* « Classe énergie X » : fond de couleur, sans bordure (09/11/2026) */
.resultat-titre { font-size: 1.9rem; margin: 0 0 14px; display: inline-block; background: var(--violet-pale); padding: 4px 14px; border-radius: 12px; }
/* Titres et messages qui reçoivent le focus par programme (résultats, étapes) : pas de cadre jaune, ce ne sont pas des
   éléments interactifs ; les liens, boutons et champs gardent leur repère clavier. */
:is(h1, h2, h3, p, div)[tabindex="-1"]:focus, :is(h1, h2, h3, p, div)[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

/* Échelle DPE de A à G, comme sur l'étiquette officielle */
.echelle { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.echelon { display: flex; align-items: center; gap: 10px; }
.echelon .barre {
  display: flex; align-items: center; height: 30px; padding: 0 12px;
  font-family: var(--police-titres); font-weight: 800; font-size: 1.1rem;
  border-radius: 6px 999px 999px 6px;
}
.echelon:nth-child(1) .barre { width: 32%; }
.echelon:nth-child(2) .barre { width: 40%; }
.echelon:nth-child(3) .barre { width: 48%; }
.echelon:nth-child(4) .barre { width: 56%; }
.echelon:nth-child(5) .barre { width: 64%; }
.echelon:nth-child(6) .barre { width: 72%; }
.echelon:nth-child(7) .barre { width: 80%; }
/* Échelons autres que celui du logement : couleur éclaircie (et non plus transparente) et lettre à l'encre, pour un
   contraste AA sur toutes les lettres (09/11/2026). L'échelon du logement garde la couleur officielle : sa lettre, en
   grand et en gras, dépasse le seuil de 3:1 du « grand texte » (blanc sur A et G, encre sur B à F). */
.echelon:not(.actuel) .barre { color: var(--encre); }
.echelon:not(.actuel) .barre.classe-A { background: color-mix(in srgb, var(--dpe-A) 45%, #fff); }
.echelon:not(.actuel) .barre.classe-B { background: color-mix(in srgb, var(--dpe-B) 45%, #fff); }
.echelon:not(.actuel) .barre.classe-C { background: color-mix(in srgb, var(--dpe-C) 45%, #fff); }
.echelon:not(.actuel) .barre.classe-D { background: color-mix(in srgb, var(--dpe-D) 45%, #fff); }
.echelon:not(.actuel) .barre.classe-E { background: color-mix(in srgb, var(--dpe-E) 45%, #fff); }
.echelon:not(.actuel) .barre.classe-F { background: color-mix(in srgb, var(--dpe-F) 45%, #fff); }
.echelon:not(.actuel) .barre.classe-G { background: color-mix(in srgb, var(--dpe-G) 45%, #fff); }
.echelon.actuel .barre { height: 48px; font-size: 1.6rem; opacity: 1; outline: 3px solid var(--encre); outline-offset: 2px; }
.echelon.actuel .repere { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.echelle.expiree .echelon.actuel .barre { filter: grayscale(0.5); }

.caracteristiques { margin: 0; padding: 0; list-style: none; color: var(--encre-douce); font-size: 1rem; }
.caracteristiques li { padding: 10px 0; border-top: 1px solid #EEE8DC; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.caracteristiques li span:last-child { color: var(--encre); font-weight: 700; text-align: right; }

/* Verdict */
.verdict { border-radius: 18px; padding: 18px; margin: 18px 0; border: 2px solid; }
.verdict .verdict-titre { font-size: 1.35rem; margin: 0 0 6px; }
.verdict .verdict-date { font-weight: 700; margin-bottom: 10px; }
.verdict p:last-child { margin-bottom: 0; }
.verdict.libre { background: var(--vert-pale); border-color: var(--vert-bord); }
.verdict.echeance { background: var(--soleil); border-color: var(--soleil-bord); }
.verdict.interdit { background: var(--peche); border-color: var(--peche-bord); }
.verdict .projet { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(27, 19, 64, 0.2); font-size: 1rem; }

.note { font-size: 1rem; color: var(--encre-douce); }
.actions { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }

/* ---------- Frise du calendrier ---------- */
.calendrier { margin: 40px 0 8px; }
.frise { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.frise::before { content: ''; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 4px; background: var(--encre); border-radius: 2px; }
.frise li { position: relative; padding: 0 0 22px 48px; }
.frise li:last-child { padding-bottom: 0; }
.frise .point {
  position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--encre); display: flex; align-items: center; justify-content: center;
  font-family: var(--police-titres); font-weight: 800; font-size: 0.9rem;
}
.frise .quand { display: block; font-family: var(--police-titres); font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.frise .quoi { display: block; color: var(--encre-douce); }
.frise .point-neutre { background: var(--blanc); }

/* ---------- Texte explicatif ---------- */
.explication { margin: 32px 0 48px; }
.explication p { color: var(--encre-douce); }
.explication strong { color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #E4E0F5; font-size: 1rem; margin-top: 48px; }
.arc-en-ciel { display: flex; height: 10px; }
.arc-en-ciel span { flex: 1; }
.pied-colonnes { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; max-width: 1080px; }
.pied h2 { font-family: var(--police-texte); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0 12px; color: var(--jaune); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 14px; line-height: 1.45; }
.pied a { color: var(--blanc); text-decoration-color: rgba(255, 255, 255, 0.5); }
.pied a:hover { color: var(--jaune); text-decoration-color: var(--jaune); }
.pied :focus-visible { outline-color: var(--jaune); box-shadow: none; }
.pied .maj { display: block; font-size: 0.9rem; color: #C9C3E6; margin-top: 2px; }
.marque-claire, .marque-claire:hover { color: var(--blanc); }
.pied-apropos p { margin: 12px 0 0; }
.pied-avertissement { font-size: 0.95rem; color: #C9C3E6; }
.pied-bas {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 1080px; padding-top: 18px; padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.95rem; color: #C9C3E6;
}
.pied-bas p { margin: 0; }
.pied-bas .pied-liens { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied-bas .pied-liens li { margin: 0; }
.pied-bas .pied-liens a { display: inline-block; padding: 13px 0; } /* zone à toucher ≥ 48 px */
.pied-editeur {
  display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline;
  max-width: 1080px; padding-top: 18px; padding-bottom: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2); color: var(--blanc);
}
.pied-editeur p { margin: 0; }
.pied-editeur a { font-weight: 700; }

/* ---------- Signature des contenus éditoriaux et équipe ---------- */
.signature { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 22px; font-size: 1rem; color: var(--encre-douce); }
.signature p { margin: 0; }
.equipe { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
.membre { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 20px; }
.membre img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 2px solid var(--encre); display: block; margin-bottom: 12px; }
.membre-role { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px; background: var(--violet-pale); font-weight: 700; font-size: 0.95rem; color: var(--encre) !important; }
.membre-nom { font-family: var(--police-titres); font-weight: 800; font-size: 1.4rem; margin: 0 0 2px; color: var(--encre) !important; }
.membre-fonction { font-weight: 700; margin: 0 0 10px; }
.liste-etapes { counter-reset: etape; list-style: none; padding: 0; }
.liste-etapes > li { counter-increment: etape; position: relative; padding-left: 56px; margin-bottom: 18px; }
.liste-etapes > li::before {
  content: counter(etape); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--jaune); border: 2px solid var(--encre); color: var(--encre);
  font-family: var(--police-titres); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.fiche-source { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 20px; margin: 16px 0; }
.fiche-source h3 { margin-top: 0; }
.fiche-source dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
.fiche-source dt { font-weight: 700; color: var(--encre); margin-top: 8px; }
.fiche-source dd { margin: 0; color: var(--encre-douce); }

/* ---------- Page de texte (mentions légales) ---------- */
.page-texte { padding-top: 28px; }
.page-texte h2 { margin-top: 36px; }
.page-texte p, .page-texte li { color: var(--encre-douce); }
.page-texte li { margin-bottom: 8px; }
.page-texte a { overflow-wrap: anywhere; } /* adresses web longues : retour à la ligne sur mobile */
.page-texte > section { margin-top: 40px; }
.page-texte > section.message { padding: 22px; }
.badge-maj {
  display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px;
  background: var(--jaune); border: 2px solid var(--jaune); font-weight: 700; font-size: 0.95rem; color: var(--encre);
}
.en-bref { background: var(--violet-pale); border: 2px solid var(--violet); border-radius: var(--rayon); padding: 20px; margin: 22px 0; }
.en-bref h2 { margin-top: 0; font-size: 1.3rem; }
.en-bref ul { margin: 0; padding-left: 22px; }
.en-bref li { color: var(--encre); margin-bottom: 10px; }
.en-bref li:last-child { margin-bottom: 0; }

.tableau-cartes { display: grid; gap: 14px; margin: 20px 0; }
.carte-info { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 20px; }
.carte-info .pictogramme { width: 48px; height: 48px; display: block; margin-bottom: 8px; }
.carte-info-titre { font-weight: 700; color: var(--encre) !important; margin-bottom: 4px; }
.carte-info-chiffre { font-family: var(--police-titres); font-weight: 800; font-size: 2.6rem; line-height: 1.1; color: var(--violet) !important; margin-bottom: 4px; }
.carte-info p:last-child { margin-bottom: 0; }

.frise .point-fait { background: var(--vert-pale); color: var(--vert-bord); }
.frise .point-a-venir { background: var(--blanc); border-style: dashed; }
.page-texte .frise .quoi { color: var(--encre-douce); }

.a-completer {
  background: var(--jaune); color: var(--encre); font-weight: 700;
  padding: 1px 8px; border-radius: 6px; border: 2px dashed var(--encre);
}

/* ---------- Gabarit « article » (chantier 4) ---------- */
.ariane ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; font-size: 0.95rem; }
.ariane li { margin: 0; color: var(--encre-douce); }
.ariane li + li::before { content: "›"; margin: 0 10px; color: var(--encre-douce); }
.ariane a { display: inline-block; padding: 12px 0; } /* zone à toucher ≥ 48 px */
.ariane [aria-current] { display: inline-block; padding: 12px 0; font-weight: 700; color: var(--encre); }

.faq-item { background: var(--blanc); border: 2px solid var(--bord); border-radius: 18px; padding: 18px 20px; margin: 14px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.15rem; }
.faq-item p { margin: 0; }

.voisines { list-style: none; padding: 0; display: grid; gap: 12px; }
.voisines li { margin: 0; background: var(--blanc); border: 2px solid var(--encre); border-radius: 18px; padding: 16px 20px; }
.voisines a { font-weight: 700; font-size: 1.1rem; }
.voisines span { display: block; margin-top: 4px; font-size: 1rem; }

.page-texte > section.simulateur-encart { background: var(--violet-pale); border-color: var(--violet); }
.simulateur-encart a.bouton { margin-top: 4px; }
.note.indicatif { margin-top: 40px; padding: 16px 20px; background: var(--sable); border-radius: 18px; font-size: 1rem; }

.tableau-defile { overflow-x: auto; margin: 16px 0; }
.tableau { width: 100%; border-collapse: collapse; background: var(--blanc); border: 2px solid var(--encre); font-size: 1rem; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--bord); }
.tableau thead th { background: var(--encre); color: var(--blanc); }
.tableau td { color: var(--encre-douce); }
.tableau td:first-child { font-weight: 700; color: var(--encre); }

.classe-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; border-radius: 8px;
  font-family: var(--police-titres); font-weight: 800; color: var(--encre); border: 2px solid var(--encre); vertical-align: middle;
}
.classe-badge.classe-G { color: var(--blanc); }
.sans-coupure { white-space: nowrap; }

/* ---------- Mise en relation (chantier 5) ---------- */
/* Encadré qui propose le formulaire, dans le simulateur et les pages de contenu */
.encart-demande { background: var(--violet-pale); border: 2px solid var(--violet); border-radius: 18px; padding: 18px; margin: 18px 0; }
.encart-demande h3, .encart-demande h2 { margin-top: 0; }
.encart-demande a.bouton { margin-top: 4px; }
/* Liens vers les partenaires (06/11/2026) : sous le résultat du simulateur, encadré plus discret que l'offre du rapport */
.encart-demande.encart-discret { background: transparent; border-style: dashed; }
.nouvel-onglet { font-weight: normal; font-size: 0.85em; }
.mention-partenaire { margin-top: 4px; }
.encart-demande p:last-child { margin-bottom: 0; }
.page-texte > section.encart-demande { padding: 22px; }

.mode-simule { background: var(--sable); border: 2px dashed var(--encre-douce); border-radius: 14px; padding: 10px 14px; font-size: 0.95rem; }
.page-texte p.mode-simule { color: var(--encre); }
.formulaire fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.formulaire fieldset + fieldset { border-top: 1px solid #EEE8DC; padding-top: 18px; }
.formulaire fieldset[hidden] { display: none; }
.formulaire legend { font-family: var(--police-titres); font-weight: 800; font-size: 1.35rem; padding: 0; margin-bottom: 12px; color: var(--encre); }
.groupe-champ { margin-bottom: 18px; }
.titre-champ { display: block; font-weight: 700; margin: 0 0 6px; color: var(--encre) !important; }
.facultatif { font-weight: 400; color: var(--encre-douce); }
.formulaire input[type="tel"], .formulaire input[type="email"], .formulaire select {
  width: 100%; min-height: 56px; font: inherit; font-size: 1.05rem; padding: 12px 22px;
  border: 2px solid var(--encre); border-radius: 999px; background: var(--blanc); color: var(--encre);
}
.formulaire input::placeholder { color: #6B6590; }
.formulaire .champ-court { max-width: 14em; }
.options { display: grid; gap: 8px; }
.option, .case {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; cursor: pointer;
  background: var(--blanc); border: 2px solid var(--bord); border-radius: 16px; color: var(--encre);
}
.option:hover, .case:hover { border-color: var(--violet); }
.option:has(input:checked), .case:has(input:checked) { border-color: var(--violet); background: var(--violet-pale); font-weight: 700; }
.option input, .case input { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--violet); }
.case { align-items: flex-start; }
.case input { margin-top: 2px; }
.en-erreur input[type="text"], .en-erreur input[type="tel"], .en-erreur input[type="email"], .en-erreur .option, .en-erreur .case { border-color: var(--peche-bord); }
.erreur-champ { color: var(--peche-bord) !important; font-weight: 700; margin: 6px 0 0; }
.erreur-champ::before { content: '⚠ '; }
.formulaire #resume-erreurs ul { margin: 0; padding-left: 22px; }
.formulaire #resume-erreurs a { font-weight: 700; }
.zone-envoi { margin-top: 8px; }
.zone-envoi .bouton-principal { margin-top: 0; }
.remuneration { margin: 12px 0 6px; padding: 10px 14px; background: var(--soleil); border-radius: 12px; color: var(--encre) !important; font-size: 1rem; }
.zone-envoi .note { margin-bottom: 0; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.confirmation { border-color: var(--vert-bord); background: var(--vert-pale); }
.confirmation:focus { outline: none; }
.confirmation a.bouton { margin-top: 8px; }
#message-locataire h2 { font-size: 1.25rem; }

/* ---------- Écrans plus larges (tablette, ordinateur) ---------- */
@media (min-width: 700px) {
  body { font-size: 20px; }
  h1 { font-size: 2.8rem; }
  .accueil { margin-top: 28px; padding: 36px 32px; }
  .accueil-grille { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .illustration { width: 220px; order: 2; }
  .carte { padding: 28px; }
  .ligne { flex-direction: row; }
  .ligne input { flex: 1; min-width: 0; }
  .bouton-principal { width: auto; }
  .actions { flex-direction: row; gap: 24px; }
  .caracteristiques li span:last-child { text-align: right; }
  .pied-colonnes { grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
  .equipe { grid-template-columns: 1fr 1fr; }
  .equipe-seul { grid-template-columns: 1fr; } /* une seule personne (relecteur pas encore désigné) : pleine largeur */
  .fiche-source dl { grid-template-columns: 11em 1fr; }
  .fiche-source dt { margin-top: 6px; }
  .fiche-source dd { margin-top: 6px; }
  .pied-bas { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }

  /* Frise horizontale (sauf frises verticales des pages de texte) */
  .frise:not(.frise-verticale) { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .frise:not(.frise-verticale)::before { left: 15px; right: 15px; top: 13px; bottom: auto; width: auto; height: 4px; }
  .frise:not(.frise-verticale) li { padding: 46px 0 0 0; }

  .tableau-cartes { grid-template-columns: 1fr 1fr; }
  .options { grid-template-columns: 1fr 1fr; }
}

/* Respecte le réglage « réduire les animations » du système */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Offre du rapport détaillé (chantier 6) : discrète, sous le résultat ---------- */
.encart-rapport { background: var(--violet-pale); border: 2px solid var(--violet); border-radius: 18px; padding: 18px; margin: 22px 0 8px; }
.encart-rapport h3 { margin-top: 0; }
.encart-rapport ul { margin: 8px 0 12px; padding-left: 1.2em; }
.encart-rapport li { margin-bottom: 4px; }
/* Miniature de la 1re page de l'exemple, sous le titre de l'offre (09/11/2026) */
.exemple-miniature { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; text-decoration: none; color: inherit; }
.exemple-miniature img { width: 84px; height: auto; flex: none; border: 2px solid var(--encre, #1B1340); border-radius: 6px; background: #fff; }
.exemple-miniature .lien-exemple { color: var(--violet); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.exemple-miniature .note { margin: 0; line-height: 1.35; display: inline-block; margin-top: 4px; }
.exemple-miniature .lien-exemple { line-height: 1.25; }
.exemple-miniature:hover .lien-exemple, .exemple-miniature:focus-visible .lien-exemple { text-decoration-thickness: 3px; }
.bouton-secondaire { background: #fff; color: var(--violet); border: 2px solid var(--violet); }
.bouton-secondaire:hover { background: var(--violet-pale); }

/* ---------- Page de commande du rapport (chantier 6) ---------- */
.etapes-commande { list-style: none; padding: 0; margin: 12px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.etapes-commande li { padding: 6px 14px; border: 2px solid var(--encre, #1B1340); border-radius: 999px; background: #fff; font-weight: 600; }
.etapes-commande li.etape-active { background: var(--jaune, #FFE13A); }
.page-commande .carte { margin-bottom: 18px; }
/* Pas de grand vide au-dessus du titre d'une carte (la marge des h2 de .page-texte ne s'applique pas en tête de carte) */
.page-texte .carte > h2:first-child { margin-top: 0; }
/* Résumé de l'achat sous le titre de la page de commande (09/11/2026) */
.resume-achat { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.resume-achat li { position: relative; padding-left: 26px; }
.resume-achat li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 800; }
.resume-achat .resume-prix { padding-left: 0; font-size: 1.35em; flex-basis: 100%; }
.resume-achat .resume-prix::before { content: none; }
/* Sur téléphone : libellés au-dessus des valeurs, alignés à gauche */
@media (max-width: 699px) {
  .caracteristiques-empilees li { display: block; }
  .caracteristiques-empilees li span { display: block; }
  .caracteristiques-empilees li span:last-child { text-align: left; margin-top: 2px; }
}
.prix-rapport { font-size: 1.15em; }
.actions-paiement { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.aide-champ { margin: 0 0 6px; font-size: .95em; }

/* ---------- Pages « DPE par commune et par département » (chantier 7) ---------- */
/* Graphique de répartition des classes : barres en HTML/CSS, sans bibliothèque (le tableau donne les mêmes chiffres) */
.repartition { display: grid; gap: 6px; margin: 18px 0; background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 16px; }
.rep-ligne { display: grid; grid-template-columns: 40px 1fr 7.5em; align-items: center; gap: 10px; }
.rep-lettre { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 32px; border-radius: 8px; font-family: var(--police-titres); font-weight: 800; color: var(--encre); }
.rep-lettre.classe-A, .rep-lettre.classe-B, .rep-lettre.classe-G { color: var(--blanc); }
.rep-piste { background: var(--sable); border-radius: 999px; height: 22px; overflow: hidden; }
.rep-barre { display: block; height: 100%; border-radius: 999px; min-width: 3px; }
.rep-valeur { font-weight: 700; font-size: 1rem; text-align: right; }
.tableau-chiffres caption { text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--encre); }
.tableau-chiffres td, .tableau-chiffres th { white-space: nowrap; }
.tableau-chiffres tbody th { text-align: left; font-weight: 700; color: var(--encre); }
.tableau-chiffres .nb { color: var(--encre-douce); font-size: 0.9rem; }
.tableau-chiffres tr.total th, .tableau-chiffres tr.total td { border-top: 2px solid var(--encre); font-weight: 700; }
.liste-communes { font-size: 1rem; color: var(--encre-douce); }
.deux-colonnes { grid-template-columns: 1fr; }
@media (min-width: 700px) { .deux-colonnes { grid-template-columns: 1fr 1fr; } }
.carte-liste { background: var(--blanc); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 16px 20px; }
.carte-liste h3 { margin-top: 0; }
.carte-liste ol { margin: 0; padding-left: 22px; }
.mini-barre { display: inline-block; width: 80px; height: 12px; background: var(--sable); border-radius: 999px; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.mini-barre span { display: block; height: 100%; background: var(--dpe-F); border-radius: 999px; }

/* Carte du classement des départements (chantier 7) */
.carte-dpe { margin: 1rem 0 1.5rem; }
.carte-dpe svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.carte-dpe path { stroke: rgba(27, 19, 64, .45); stroke-width: 0.6; stroke-linejoin: round; }
.carte-dpe a:hover path, .carte-dpe a:focus path { stroke: #1B1340; stroke-width: 2; }
.carte-dpe a:focus { outline: none; }
.carte-dpe a:focus path { stroke: #FFE13A; stroke-width: 3; }
.carte-legende { list-style: none; padding: 0; margin: .75rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.carte-legende li { display: flex; align-items: center; gap: .5rem; }
.carte-pastille { display: inline-block; width: 1.4em; height: 1.4em; border-radius: 6px; border: 2px solid #1B1340; }

/* Lien du simulateur vers la page « DPE par commune » (chantier 7) */
.lien-stats { margin: 16px 0; padding: 12px 16px; border-left: 6px solid var(--violet); background: var(--violet-pale, #EFEBFF); border-radius: 0 12px 12px 0; }
.lien-stats a { font-weight: 700; }

/* Page de commande (09/11/2026) : bouton de paiement inactif tant que les deux cases ne sont pas cochées */
.insecable { white-space: nowrap; }
button:disabled, button[disabled] { opacity: .55; cursor: not-allowed; }
.infos-achat li + li { margin-top: 8px; }
.version-cgv { margin-top: 32px; }

/* ---------- Tunnel du rapport (page « Le rapport complet », 09/11/2026) ---------- */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tunnel { margin-top: 20px; }
.avancement { margin-bottom: 18px; }
.avancement-texte { font-weight: 700; margin: 0 0 10px; }
.barre-etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.barre-etapes li { border-top: 6px solid #D9D3EE; padding-top: 6px; font-size: .85rem; line-height: 1.25; color: #4A4366; }
.barre-etapes li.faite { border-color: var(--violet); }
.barre-etapes li.en-cours { border-color: var(--encre); color: var(--encre); font-weight: 700; }
.barre-etapes .num { font-weight: 700; }
@media (max-width: 699px) { .barre-etapes .nom { display: none; } }
.etape-tunnel h3 { margin-top: 0; }
.etape-tunnel h3:focus { outline: none; }
.message-tunnel:empty { display: none; }
.sans-vente h3 { margin-top: 0; }
.verdict-resume .verdict-classe { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 0 0 8px; }
.verdict-resume .verdict-titre { font-family: inherit; font-weight: 700; }
.contenu-rapport { margin: 20px 0; }
.extraits { display: grid; gap: 18px; margin: 16px 0; }
@media (min-width: 700px) { .extraits { grid-template-columns: repeat(3, 1fr); } }
.extraits figure { margin: 0; }
.extraits img { display: block; width: 100%; height: auto; border: 2px solid var(--encre); border-radius: 12px; background: #fff; }
.extraits figcaption { font-size: .9rem; margin-top: 6px; }
.pas-dans-liste { margin-top: 16px; }
.encart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }

/* Barre « Obtenir le rapport complet » fixée en bas de l'écran, sur téléphone seulement, une fois le verdict affiché
   (src/app.js). Le bas de la page reçoit une marge de la même hauteur : la barre ne masque jamais le contenu. */
.barre-rapport { display: none; }
@media (max-width: 699px) {
  .barre-rapport {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--creme); border-top: 2px solid var(--encre);
    transition: transform .2s ease;
  }
  .barre-rapport .bouton-principal { margin: 0; }
  .barre-rapport.cachee { transform: translateY(110%); visibility: hidden; }
  body.avec-barre-rapport { padding-bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) { .barre-rapport { transition: none; } }
.bouton-rapport { text-align: center; }
a.bouton.bouton-principal { display: flex; justify-content: center; text-align: center; }
@media (min-width: 700px) { a.bouton.bouton-principal { display: inline-flex; } }

/* Préversion (ENVIRONNEMENT=preversion, HEBERGEMENT.md § 1) : bandeau sur toutes les pages, jamais sur le vrai site */
.bandeau-preversion {
  background: var(--jaune, #FFE13A);
  color: var(--encre, #1B1340);
  border-bottom: 2px solid var(--encre, #1B1340);
  text-align: center;
  font-weight: 700;
  padding: 0.5rem 1rem;
}

/* Boutons « Disponible bientôt » (lancement sans monétisation, 12/11/2026 ; outils/bouton-bientot.mjs et src/app.js).
   Inutilisables mais lisibles : texte encre sur fond blanc (contraste 15:1), bordure en tirets et pendule dessinée en CSS,
   jamais un simple grisé. L'état est annoncé aux lecteurs d'écran par aria-disabled="true". */
.bouton.bouton-bientot, .bouton.bouton-bientot:hover {
  background: var(--blanc); color: var(--encre); border: 2px dashed var(--encre);
  cursor: not-allowed; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.bouton.bouton-bientot::before {
  content: ""; width: 16px; height: 16px; flex: none; border: 2px solid var(--encre); border-radius: 50%;
  background: linear-gradient(var(--encre), var(--encre)) 6px 2px / 2px 6px no-repeat,
              linear-gradient(var(--encre), var(--encre)) 6px 6px / 5px 2px no-repeat;
}
.bouton.bouton-bientot.bouton-principal { width: 100%; }
@media (min-width: 700px) { .bouton.bouton-bientot.bouton-principal { width: auto; } }
.barre-rapport .bouton-bientot { width: 100%; margin: 0; }
.rapport-bientot p:first-child { margin-top: 0; }

/* Bannière et panneau de consentement tarteaucitron.js (12/11/2026 ; src/mesure/cmp-tarteaucitron.js).
   Recommandation de la CNIL : « Tout accepter » et « Tout refuser » au MÊME NIVEAU — même couleur, même taille, même
   police, côte à côte. Le bouton « Personnaliser » reste disponible, en lien secondaire. Polices et couleurs du site. */
html body #tarteaucitronRoot, html body #tarteaucitronRoot * { font-family: var(--police-texte) !important; }
html body #tarteaucitronRoot #tarteaucitronAlertBig {
  background: var(--blanc) !important; color: var(--encre) !important;
  border-top: 3px solid var(--encre) !important; padding: 16px !important; box-sizing: border-box;
}
html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
  color: var(--encre) !important; font-size: 1rem !important; line-height: 1.5 !important; display: block; margin: 0 0 12px !important; text-align: left !important;
}
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPersonalize2,
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronAllDenied2 {
  background: var(--violet) !important; color: var(--blanc) !important; border: 2px solid var(--violet) !important;
  border-radius: 999px !important; font-size: 1.05rem !important; font-weight: 700 !important;
  min-height: 52px !important; padding: 10px 18px !important; margin: 6px 8px 6px 0 !important; opacity: 1 !important;
  line-height: 1.2 !important; box-sizing: border-box !important; min-width: 12em; vertical-align: middle;
}
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPersonalize2:hover,
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronAllDenied2:hover { background: var(--encre) !important; border-color: var(--encre) !important; }
/* Les deux boutons n'affichent pas d'icône (coche verte / croix rouge) : rien ne pousse vers l'un plutôt que l'autre */
html body #tarteaucitronRoot #tarteaucitronAlertBig .tarteaucitronCheck,
html body #tarteaucitronRoot #tarteaucitronAlertBig .tarteaucitronCross { display: none !important; }
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronCloseAlert {
  background: none !important; color: var(--violet) !important; border: 0 !important; text-decoration: underline;
  font-size: 1rem !important; min-height: 48px !important; padding: 8px 4px !important; margin: 4px 16px 0 0 !important;
}
html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPrivacyUrl {
  background: none !important; color: var(--violet) !important; border: 0 !important; text-decoration: underline;
  font-size: 1rem !important; font-weight: 400 !important; min-height: 48px !important; padding: 8px 4px !important; margin: 4px 0 0 !important;
}
html body #tarteaucitronRoot button:focus-visible { outline: 4px solid var(--jaune) !important; outline-offset: 2px; box-shadow: 0 0 0 7px var(--encre) !important; }
@media (max-width: 699px) {
  html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPersonalize2,
  html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronAllDenied2 { width: calc(50% - 9px) !important; min-width: 0; margin: 4px 0 !important; padding: 10px 8px !important; }
  html body #tarteaucitronRoot #tarteaucitronAlertBig button#tarteaucitronPersonalize2 { margin-right: 4px !important; }
  html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert { font-size: 0.95rem !important; margin-bottom: 8px !important; }
  html body #tarteaucitronRoot #tarteaucitronAlertBig { padding: 12px 16px 8px !important; }
}

/* Encart « L'auteur » sous les articles et les pages de commune (12/11/2026, src/_includes/encart-auteur.njk) */
.encart-auteur { border-top: 2px solid var(--bord); margin: 32px 0 8px; padding-top: 16px; }
.encart-auteur h2 { font-size: 1.05rem; margin: 0 0 4px; color: var(--encre-douce); text-transform: none; }
.encart-auteur .auteur-nom { font-weight: 700; margin: 0 0 6px; }
.encart-auteur p { margin: 0 0 8px; }

/* ---------- Vidéo de présentation (13/11/2026) : src/_includes/video-presentation.njk ----------
   Cadre au ratio 16/9 réservé dès le chargement (aucun décalage de mise en page) ; grand bouton de lecture contrasté. */
.video-presentation { margin: 28px 0; }
.video-presentation h2 { margin-bottom: 14px; }
.video-cadre { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 2px solid var(--encre); border-radius: var(--rayon);
  overflow: hidden; background: var(--violet-pale); }
.video-lancer { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; display: block; }
.video-lancer picture, .video-lancer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-bouton { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 10px 26px 10px 18px; border-radius: 999px; background: var(--violet); color: var(--blanc);
  border: 3px solid var(--blanc); box-shadow: 0 6px 22px rgba(27, 19, 64, .35); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.video-lancer:hover .video-bouton { background: var(--encre); }
.video-lancer:focus-visible { outline: none; box-shadow: none; }
.video-lancer:focus-visible .video-bouton { outline: 3px solid var(--encre); outline-offset: 3px; box-shadow: 0 0 0 9px var(--jaune); }
.video-cadre video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--encre); z-index: 2; }
/* Sous-titres agrandis, lisibles sur téléphone */
.video-cadre video::cue { font-family: var(--police-texte); font-size: 1.15em; line-height: 1.35; background: rgba(27, 19, 64, .88); color: #fff; }
@media (min-width: 700px) { .video-cadre video::cue { font-size: 1.3em; } }
.video-transcription { margin-top: 12px; }
.video-transcription summary { cursor: pointer; color: var(--violet); font-weight: 700; min-height: 48px; display: flex; align-items: center; }
.video-transcription p { margin: 0 0 10px; }
@media (max-width: 480px) { .video-bouton { font-size: 0.95rem; min-height: 48px; padding: 4px 18px 4px 12px; bottom: 4%; border-width: 2px; } .video-bouton svg { width: 26px; height: 26px; } }
