/* ============================================================
   RAMONAGE OBLIGATOIRE — DA « Le Conduit » (coupe technique verticale)
   Palette verrouillée (OUTILS-DESIGN.md, 12/08/2026) :
     papier  #f7f6f3   fond unique du site (jamais de fond sombre)
     encre   #1a1817   le charbon : matériau du TRAIT, jamais un fond
     braise  #d1540f   accent unique, pas de rampe
     vert    #2e7d4f   sémantique « en règle » seulement
   Typo : Bitter (slab, titres et chiffres) + Source Sans 3 (labeur).
   Interdits : nav pilule, cadratins, marquee, pin, cartes horizontales,
   carte orpheline, textes coupés, fond noir.
   ============================================================ */

:root {
  --papier:   #f7f6f3;
  --papier-2: #efede7;
  --encre:    #1a1817;
  --trait:    #cfccc3;          /* trait discret : grille, filets */
  --braise:   #d1540f;
  --braise-f: #a84109;          /* braise foncée : survol, texte accentué accessible */
  --vert:     #2e7d4f;
  --gris:     #57534d;
  --rail:     72px;             /* gouttière du rail, desktop */
  --titres:   "Bitter", Georgia, serif;
  --labeur:   "Source Sans 3", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--labeur);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--papier);
}

h1, h2, h3, .chiffre { font-family: var(--titres); line-height: 1.15; }

/* ⚠️ `.wrap` porte le padding LATÉRAL, et il est partagé avec d'autres classes
   sur le même élément (`hero wrap`, `section wrap`, `entete-page wrap`…).
   Toute règle qui repasse par le raccourci `padding:` sur une de ces classes
   remet donc les côtés à zéro. Elles étaient toutes écrites `padding: 56px 0 24px`
   et le texte touchait les deux bords de l'écran dès qu'on descendait sous
   1080 px — invisible en desktop, où le centrage du max-width fait illusion.
   Règle : sur ces classes, JAMAIS le raccourci, seulement padding-top/bottom. */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1100px) { .wrap { padding-left: calc(var(--rail) + 12px); } }

a { color: var(--encre); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--braise-f); }

:focus-visible { outline: 3px solid var(--braise); outline-offset: 2px; }

mark { background: none; color: var(--braise-f); }

.saut {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--encre); color: var(--papier); padding: 8px 16px;
}
.saut:focus { left: 8px; }

/* ---------------------------------------------------------- barre */

header .barre {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px;
  padding: 22px 0 14px;
  border-bottom: 2px solid var(--encre);
}
.marque {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--titres); font-weight: 900; font-size: 1.2rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.marque em { font-style: normal; color: var(--braise-f); }
.marque__symbole { flex: none; transform: translateY(4px); }
.sommaire { margin-left: auto; }
.sommaire summary { display: none; }          /* desktop : pas de bouton, les liens suffisent */
header nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .95rem; }
header nav a { text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; padding: 8px 2px; }
header nav a:hover { border-bottom-color: var(--braise); color: var(--encre); }

/* --- sous 880 px : le sommaire se replie, et les liens deviennent une liste --- */
@media (max-width: 879px) {
  header .barre { padding: 16px 0 0; gap: 0; }
  .sommaire { margin-left: 0; width: 100%; margin-top: 14px; }
  .sommaire summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; cursor: pointer; list-style: none;
    padding: 12px 2px; border-top: 1px solid var(--trait);
    font: 700 .82rem var(--labeur); letter-spacing: .12em; text-transform: uppercase;
    color: var(--gris);
  }
  .sommaire summary::-webkit-details-marker { display: none; }   /* la puce native */
  .sommaire summary:focus-visible { outline: 3px solid var(--braise); outline-offset: 2px; }
  .sommaire__chevron { width: 16px; height: 16px; color: var(--braise-f); flex: none;
    transition: transform .18s ease; }
  .sommaire[open] .sommaire__chevron { transform: rotate(180deg); }
  @media (prefers-reduced-motion: reduce) { .sommaire__chevron { transition: none; } }

  /* Des lignes pleines et des cibles tactiles franches : 48 px de haut, pas
     deux liens qui se touchent. C'est le « serré » que le téléphone montrait. */
  header nav { display: block; font-size: 1rem; padding-bottom: 6px; }
  header nav a {
    display: block; padding: 13px 2px; border-bottom: 1px solid var(--trait);
    font-weight: 600;
  }
  header nav a:last-child { border-bottom: none; }
}

/* ---------------------------------------------------------- le rail du conduit */

/* ⚠️ LES TROIS SE CACHENT PAR DÉFAUT, pas seulement `.rail`.
   Un <svg> sans width ni height n'est pas « invisible » parce que sa règle vit
   dans une media query : c'est un élément remplacé, il prend 100 % de la
   largeur du parent et sa hauteur suit le ratio du viewBox. `.rail__herisson`
   (28 × 44) faisait donc 412 × 648 px sur un téléphone et poussait tout le hero
   sous la ligne de flottaison — constaté en production le 12/08/2026.
   Le JS, lui, était déjà gardé par matchMedia(min-width: 1100px). */
.rail, .rail__herisson, .rail__suie { display: none; }
@media (min-width: 1100px) {
  .rail {
    display: block; position: fixed; z-index: 5;
    left: calc(var(--rail) / 2); top: 0; bottom: 0; width: 2px;
    background:
      repeating-linear-gradient(to bottom,
        var(--encre) 0, var(--encre) 14px, transparent 14px, transparent 20px);
    opacity: .28;
  }
  .rail__herisson {
    display: block; position: fixed; z-index: 6;
    left: calc(var(--rail) / 2 - 14px); top: 0; width: 28px; height: 44px;
    will-change: transform;
  }
  .rail__suie {
    display: block; position: fixed; z-index: 4;
    left: calc(var(--rail) / 2 - 3px); width: 7px; height: 7px;
    background: var(--encre); border-radius: 50%;
    will-change: transform, opacity;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rail, .rail__herisson, .rail__suie { display: none !important; }
}

/* ---------------------------------------------------------- hero */

.hero { padding-top: 56px; padding-bottom: 24px; display: grid; gap: 40px; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.15fr .85fr; align-items: start; } }

.kicker {
  font-weight: 700; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--braise-f);
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 900;
  letter-spacing: -0.015em; margin: 14px 0 18px;
}
.hero .sous { font-size: 1.15rem; color: var(--gris); max-width: 34em; }

/* les six pictos : tuiles carrées, trait encre, jamais de pilule */
.pictos {
  list-style: none; margin-top: 30px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 460px;
}
@media (max-width: 420px) { .pictos { grid-template-columns: repeat(2, 1fr); } }
.pictos a {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px 12px; text-align: center; text-decoration: none;
  border: 2px solid var(--encre); border-radius: 2px;
  font-weight: 700; font-size: .88rem; line-height: 1.25;
  background: var(--papier);
  transition: transform .15s ease, border-color .15s ease;
}
.pictos a:hover { border-color: var(--braise); color: var(--encre); transform: translateY(-2px); }
.pictos a[aria-pressed="true"] {
  border-color: var(--braise); box-shadow: inset 0 0 0 1px var(--braise);
}
.pictos a[aria-pressed="true"] .picto-svg { color: var(--braise-f); }
.picto-svg { width: 40px; height: 40px; color: var(--encre); }

.hero__coupe { position: relative; min-height: 300px; }
.hero__coupe svg { width: 100%; height: auto; display: block; }
.hero__coupe .skip {
  position: absolute; right: 0; bottom: 0;
  font: 600 .82rem var(--labeur); color: var(--gris);
  background: none; border: none; border-bottom: 1px solid var(--trait);
  cursor: pointer; padding: 2px 0;
}
.hero__coupe .skip:hover { color: var(--braise-f); border-bottom-color: var(--braise); }
@media (prefers-reduced-motion: reduce) { .hero__coupe .skip { display: none; } }

/* ---------------------------------------------------------- verdict (la réponse) */

.reponse { grid-column: 1 / -1; margin-top: 8px; }
.reponse[hidden] { display: none; }

.reponse__cadre { border: 2px solid var(--encre); border-radius: 2px; background: #fff; }
.reponse__titre {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--encre);
}
.reponse__titre h2 { font-size: 1.5rem; font-weight: 900; }
.reponse__titre .quoi { color: var(--gris); font-size: .95rem; }

/* bento 4 cases : grille pleine, filets partagés, jamais de carte orpheline */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 880px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.bento > div { padding: 18px 22px 20px; border-top: 1px solid var(--trait); }
.bento > div + div { border-left: 1px solid var(--trait); }
@media (max-width: 879px) {
  .bento > div:nth-child(odd) { border-left: none; }
  .bento > div:first-child, .bento > div:nth-child(2) { border-top: 1px solid var(--trait); }
}
.bento .t { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.bento .v { font-family: var(--titres); font-weight: 700; font-size: 1.12rem; margin: 6px 0 4px; }
.bento .v strong { color: var(--braise-f); }
.bento .a { font-size: .82rem; color: var(--gris); }

.reponse__nuance {
  padding: 16px 22px; border-top: 1px solid var(--encre);
  background: var(--papier);
  display: flex; gap: 14px; align-items: baseline;
}
.reponse__nuance .puce { color: var(--braise-f); font-weight: 900; font-family: var(--titres); }
.reponse__actions { padding: 16px 22px; border-top: 1px solid var(--trait); display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 2px;
  font: 700 1rem var(--labeur); text-decoration: none; cursor: pointer;
  border: 2px solid var(--encre);
}
/* AA : blanc sur braise claire (#d1540f) plafonne à 4,21:1 — sous le seuil 4,5 du texte
   courant, il n'y passe qu'en gros texte ; la braise foncée (#a84109) tient 6,13:1.
   Ratios WCAG 2.2 recalculés le 12/08/2026 (la charte les avait corrigés : le « 3,5 / 5,8 »
   écrit ici au build était faux, la conclusion, elle, était bonne). */
.btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn--braise { background: var(--braise-f); border-color: var(--braise-f); color: #fff; }
.btn--braise:hover { background: #8a3807; border-color: #8a3807; color: #fff; }
.btn--clair { background: transparent; color: var(--encre); }
.btn--clair:hover { border-color: var(--braise); color: var(--encre); }

/* ---------------------------------------------------------- sections */

.section { padding-top: 72px; padding-bottom: 8px; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; margin-bottom: 10px; }
.section .chapo { color: var(--gris); font-size: 1.1rem; max-width: 44em; margin-bottom: 28px; }
.section .chapo a { color: inherit; }

/* les deux grands chiffres du changement de 2023 */
.chiffres { display: grid; gap: 0; border: 2px solid var(--encre); border-radius: 2px; background: #fff; }
@media (min-width: 720px) { .chiffres { grid-template-columns: 1fr 1fr; } }
.chiffres > div { padding: 30px 28px 26px; }
@media (min-width: 720px) { .chiffres > div + div { border-left: 1px solid var(--encre); } }
@media (max-width: 719px)  { .chiffres > div + div { border-top: 1px solid var(--encre); } }
.chiffres .avant {
  font-family: var(--titres); font-weight: 700; font-size: 1.3rem;
  color: var(--gris); text-decoration: line-through; text-decoration-color: var(--braise);
  text-decoration-thickness: 3px;
}
.chiffre { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 900; letter-spacing: -0.02em; }
.chiffre small { font-size: .38em; font-weight: 700; letter-spacing: 0; }
.chiffres p { color: var(--gris); max-width: 34em; }
.chiffres .src { font-size: .85rem; margin-top: 10px; }

/* tableau des combustibles */
.table-scroll { overflow-x: auto; }
table.donnees { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--encre); }
table.donnees th, table.donnees td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--trait); }
table.donnees thead th {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  border-top: none; border-bottom: 2px solid var(--encre);
}
table.donnees td:first-child { font-family: var(--titres); font-weight: 700; white-space: nowrap; }
table.donnees .freq { font-weight: 600; }
table.donnees .art { display: block; font-size: .8rem; color: var(--gris); font-weight: 400; margin-top: 2px; }

/* blocs attestation / qui paie : grille pleine, filets partagés */
.grille-faits { display: grid; border: 2px solid var(--encre); border-radius: 2px; background: #fff; }
@media (min-width: 880px) { .grille-faits { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 560px) and (max-width: 879px) { .grille-faits { grid-template-columns: 1fr 1fr; } }
.grille-faits > div { padding: 22px 24px; border-top: 1px solid var(--trait); }
@media (min-width: 880px) {
  .grille-faits > div { border-left: 1px solid var(--trait); }
  .grille-faits > div:nth-child(3n+1) { border-left: none; }
  .grille-faits > div:nth-child(-n+3) { border-top: none; }
}
@media (min-width: 560px) and (max-width: 879px) {
  .grille-faits > div { border-left: 1px solid var(--trait); }
  .grille-faits > div:nth-child(2n+1) { border-left: none; }
  .grille-faits > div:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 559px) { .grille-faits > div:first-child { border-top: none; } }
.grille-faits h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.grille-faits p { font-size: .97rem; color: var(--gris); }
.grille-faits .art { font-size: .82rem; color: var(--gris); display: block; margin-top: 8px; }
.grille-faits .ok { color: var(--vert); font-weight: 700; }

.avert {
  border: 2px solid var(--encre);
  border-radius: 2px; background: var(--papier-2); padding: 18px 22px; margin: 26px 0;
}
.avert strong { font-family: var(--titres); color: var(--braise-f); }

/* ---------------------------------------------------------- annuaire (le foyer) */

.annuaire-grille { display: grid; gap: 36px; }
@media (min-width: 880px) { .annuaire-grille { grid-template-columns: .9fr 1.1fr; align-items: start; } }

.selecteur label { font-weight: 700; display: block; margin-bottom: 8px; }
.selecteur input {
  width: 100%; padding: 13px 16px; font: 600 1.05rem var(--labeur);
  border: 2px solid var(--encre); border-radius: 2px; background: #fff; color: var(--encre);
}
.selecteur input:focus { outline: 3px solid var(--braise); outline-offset: 1px; }
.selecteur .resultats { list-style: none; margin-top: 6px; border: 2px solid var(--encre); border-radius: 2px; background: #fff; }
.selecteur .resultats:empty { display: none; }
.selecteur .resultats a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 16px; text-decoration: none; border-top: 1px solid var(--trait);
}
.selecteur .resultats li:first-child a { border-top: none; }
.selecteur .resultats a:hover { background: var(--papier); }
.selecteur .resultats .code { font-family: var(--titres); font-weight: 700; color: var(--braise-f); }

.carte-fr { width: 100%; height: auto; }
.carte-fr__dep { stroke: var(--encre); stroke-width: 1; transition: fill .15s ease; }
.carte-fr a:hover .carte-fr__dep, .carte-fr a:focus .carte-fr__dep { fill: var(--braise); }

.grille-deps--dom { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.grille-deps--dom a {
  display: inline-flex; align-items: baseline; gap: 8px;
  border: 2px solid var(--encre); border-radius: 2px; padding: 6px 12px;
  text-decoration: none; font-size: .9rem; font-weight: 600; background: #fff;
}
.grille-deps--dom a:hover { border-color: var(--braise); }
.grille-deps--dom .n { font-family: var(--titres); font-weight: 700; color: var(--braise-f); }

/* liste des 101, page /ramoneurs */
.liste-deps { list-style: none; columns: 2; column-gap: 32px; margin-top: 18px; }
@media (min-width: 720px) { .liste-deps { columns: 3; } }
.liste-deps li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--trait); }
.liste-deps a { text-decoration: none; font-weight: 600; }
.liste-deps a:hover { color: var(--braise-f); }
.liste-deps .code { font-family: var(--titres); font-weight: 700; color: var(--braise-f); margin-right: 8px; }

/* ---------------------------------------------------------- sources */

.sources table.donnees td:first-child { white-space: normal; font-family: var(--labeur); font-weight: 600; }
.sources .lu { font-size: .85rem; color: var(--gris); }

/* ---------------------------------------------------------- pages internes */

.entete-page { padding-top: 56px; padding-bottom: 8px; }
.entete-page h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; margin: 12px 0 14px; }
.entete-page .sous { color: var(--gris); font-size: 1.12rem; max-width: 38em; }

.prose { padding-top: 28px; padding-bottom: 56px; max-width: 46em; }
.prose h2 { font-size: 1.35rem; font-weight: 900; margin: 34px 0 10px; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 12px 22px; }

/* fiche départementale */
.fiche-dep .verdict-national { margin-top: 26px; }
.statut-local { display: inline-block; border: 2px solid var(--vert); color: var(--vert);
  font-weight: 700; font-size: .9rem; padding: 4px 12px; border-radius: 2px; }
.statut-local--braise { border-color: var(--braise); color: var(--braise-f); }

/* ---------------------------------------------------------- 404 */

.p404 { padding-top: 80px; padding-bottom: 40px; max-width: 44em; }
.p404 .code-err { font-family: var(--titres); font-weight: 900; font-size: 5rem; color: var(--braise-f); }

/* ---------------------------------------------------------- pied */

footer { margin-top: 88px; border-top: 2px solid var(--encre); background: #fff; }
footer .cols { display: grid; gap: 28px; padding: 36px 0 8px; }
@media (min-width: 720px) { footer .cols { grid-template-columns: repeat(3, 1fr); } }
footer h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
footer ul { list-style: none; }
footer li { padding: 3px 0; }
footer a { text-decoration: none; font-size: .95rem; }
footer a:hover { text-decoration: underline; }
footer .maj { font-size: .85rem; color: var(--gris); padding: 22px 0 30px; max-width: 60em; }

/* ---------------------------------------------------------- reveals (JS) */

.reveal { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------- annuaire départemental */

/* Grille à 4 blocs : 2×2 sur grand écran, jamais 3 + 1 orpheline. */
@media (min-width: 880px) {
  .grille-faits--paire { grid-template-columns: 1fr 1fr; }
  .grille-faits--paire > div { border-left: 1px solid var(--trait); }
  .grille-faits--paire > div:nth-child(3n+1) { border-left: 1px solid var(--trait); }
  .grille-faits--paire > div:nth-child(2n+1) { border-left: none; }
  .grille-faits--paire > div:nth-child(-n+3) { border-top: 1px solid var(--trait); }
  .grille-faits--paire > div:nth-child(-n+2) { border-top: none; }
}

/* Trois blocs : pleine largeur tant qu'on ne tient pas les 3 colonnes,
   pour ne jamais laisser une carte seule sur sa ligne. */
@media (max-width: 879px) { .grille-faits--trois { grid-template-columns: 1fr; }
  .grille-faits--trois > div { border-left: none; }
  .grille-faits--trois > div:first-child { border-top: none; }
  .grille-faits--trois > div:not(:first-child) { border-top: 1px solid var(--trait); } }

/* Liste des professionnels : des lignes pleines, jamais des cartes flottantes. */
.liste-pros { list-style: none; margin-top: 18px; columns: 1; column-gap: 40px; }
@media (min-width: 760px) { .liste-pros { columns: 2; } }
.liste-pros li { break-inside: avoid; border-bottom: 1px solid var(--trait); }
.liste-pros a {
  display: block; padding: 11px 10px; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.liste-pros .n { display: block; font-weight: 600; color: var(--encre); }
.liste-pros .l { display: block; font-size: .87rem; color: var(--gris); margin-top: 2px; }
@media (hover: hover) {
  .liste-pros a:hover { background: var(--papier-2); }
  .liste-pros a:hover .n { color: var(--braise-f); text-decoration: underline; }
}
.liste-pros a:focus-visible { outline: 3px solid var(--braise); outline-offset: 2px; }

/* ---------------------------------------------------------- demande de rappel */

.form-rappel { margin-top: 22px; border: 2px solid var(--encre); border-radius: 2px;
  background: #fff; padding: 26px 24px; }
.form-rappel .champs { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-rappel .champs { grid-template-columns: 1fr 1fr; }
  .form-rappel .champs .large { grid-column: 1 / -1; } }
.form-rappel label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-rappel .obl, .form-rappel .fac {
  font-weight: 400; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  margin-left: 6px;
}
.form-rappel .obl { color: var(--braise-f); }
.form-rappel .fac { color: var(--gris); }
.form-rappel input[type=text], .form-rappel input[type=tel], .form-rappel input[type=email],
.form-rappel select, .form-rappel textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre); background: var(--papier);
  border: 2px solid var(--trait); border-radius: 2px; padding: 11px 12px;
}
.form-rappel textarea { resize: vertical; min-height: 90px; }
.form-rappel :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--braise); outline-offset: 1px; border-color: var(--encre);
}
.form-rappel .accord { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 20px; }
.form-rappel .accord input { margin-top: 4px; width: 18px; height: 18px; flex: none;
  accent-color: var(--braise-f); }
.form-rappel .accord label { font-weight: 400; font-size: .93rem; color: var(--gris); }
/* Piège à robots : hors écran, mais lisible d'un lecteur d'écran qui l'ignorera
   grâce à aria-hidden — jamais display:none, que les robots savent détecter. */
.form-rappel .piege { position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; }

/* Fond blanc et non papier-2 : le tableau de contraste de la charte donne
   vert/papier-2 à 4,3:1, sous le seuil AA du texte courant, et ce titre fait
   17,6 px — trop petit pour l'exemption « grand texte ». Sur blanc, le vert
   tient 5,05:1. Un accusé de réception ne se lit pas à la limite. */
.recu, .erreurs {
  border: 2px solid var(--encre); border-radius: 2px;
  background: #fff; padding: 18px 22px; margin-top: 20px;
}
.recu strong, .erreurs strong {
  font-family: var(--titres); display: block; margin-bottom: 6px; font-size: 1.1rem;
}
.recu strong { color: var(--vert); }
.erreurs strong { color: var(--braise-f); }
.erreurs ul { margin: 8px 0 0 20px; color: var(--gris); }

/* Repère « arrêté local plus strict » dans la liste des 101 départements. */
.liste-deps .marque-local {
  float: right; font-family: var(--titres); font-weight: 700; font-size: .78rem;
  color: var(--braise-f); border: 1px solid var(--braise); border-radius: 2px;
  padding: 0 6px; line-height: 1.5; margin-left: 8px;
}

/* ---------------------------------------------------------- respiration mobile
   Le reproche du 12/08/2026 : « c'est un peu serré ». En cause, pas la largeur —
   le rythme vertical était celui du desktop, appliqué tel quel à un écran trois
   fois plus étroit. On desserre là où ça compte : l'entrée de page, l'espace
   entre les sections, et la longueur de ligne du chapô. La composition, la DA
   et les points de rupture existants ne bougent pas. */
@media (max-width: 879px) {
  .hero { padding-top: 34px; padding-bottom: 20px; gap: 32px; }
  .hero h1 { margin: 12px 0 16px; }
  .hero .sous { font-size: 1.08rem; }
  .pictos { margin-top: 26px; gap: 12px; }

  .entete-page { padding-top: 34px; }
  .section { padding-top: 52px; padding-bottom: 8px; }
  .section .chapo { font-size: 1.05rem; margin-bottom: 24px; }

  /* Deux boutons collés se touchent au pouce : on les sépare franchement. */
  .reponse__actions { gap: 14px; }
  .btn { padding: 13px 20px; }
}

/* ---------------------------------------------------- tableaux, sous 880 px
   Un tableau à 3 ou 4 colonnes ne rentre pas sur un téléphone : il déborde,
   `overflow-x` le fait glisser, et la première colonne part hors écran — l'écran
   entier a l'air décalé (constaté en prod le 12/08/2026, capture à l'appui).
   On ne fait pas glisser : chaque ligne devient un bloc, chaque cellule porte
   son intitulé de colonne (`data-label`, posé dans le HTML). Rien n'est caché,
   rien ne se coupe, et l'ordre de lecture reste celui du tableau. */
@media (max-width: 879px) {
  .table-scroll { overflow-x: visible; }
  table.donnees { display: block; border-width: 2px; }
  table.donnees thead { display: none; }          /* les intitulés passent dans les cellules */
  table.donnees tbody, table.donnees tr, table.donnees td { display: block; width: 100%; }
  table.donnees tr { border-top: 2px solid var(--encre); padding: 6px 0 14px; }
  table.donnees tr:first-child { border-top: none; }
  table.donnees td { border: none; padding: 10px 18px 0; }
  table.donnees td::before {
    content: attr(data-label);
    display: block; margin-bottom: 3px;
    font: 700 .72rem var(--labeur); letter-spacing: .1em; text-transform: uppercase;
    color: var(--gris);
  }
  /* La première cellule est le sujet de la ligne : elle porte le poids. */
  table.donnees td:first-child {
    white-space: normal; font-family: var(--titres); font-size: 1.12rem;
    padding-top: 16px;
  }
  .sources table.donnees td:first-child { font-family: var(--titres); }
  table.donnees .lu { display: block; margin-top: 2px; }
}

/* ---------------------------------------------------------- l'offre et la conversion

   Ce bloc répond à une question que le site ne posait nulle part : « qu'est-ce
   qu'on me propose, au juste ? ». Trois enfants, dans cet ordre de lecture sur
   téléphone : ce qu'on fait (court), le formulaire, puis l'enjeu. On ne fait
   pas lire quatre arguments avant d'atteindre le premier champ. */

.offre { display: grid; gap: 26px; margin-top: 6px; }
/* Sur téléphone, le formulaire passe AVANT l'enjeu : on ne fait pas lire quatre
   arguments avant d'atteindre le premier champ. L'ordre du DOM reste logique
   pour un lecteur d'écran (ce qu'on propose, puis le formulaire, puis pourquoi). */
.offre__dit   { order: 1; }
.offre__form  { order: 2; }
.offre__enjeu { order: 3; }
@media (min-width: 900px) {
  .offre {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "dit form" "enjeu form";
    align-items: start; gap: 30px 40px;
  }
  .offre__dit   { grid-area: dit; }
  .offre__enjeu { grid-area: enjeu; }
  .offre__form  { grid-area: form; }
}
.offre__dit h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 900; }
.offre__phrase { margin-top: 12px; font-size: 1.1rem; color: var(--gris); }
.offre__phrase strong { color: var(--encre); }

.offre__points { list-style: none; margin-top: 18px; }
.offre__points li {
  padding: 11px 0 11px 30px; border-top: 1px solid var(--trait);
  font-size: .98rem; color: var(--gris); position: relative;
}
.offre__points li:first-child { border-top: none; }
.offre__points strong { color: var(--encre); }
/* La coche : deux traits, dessinés comme le reste du site — pas un émoji.
   En ENCRE, pas en vert : le vert de la charte ne dit qu'une chose sur ce site,
   « vous êtes en règle ». L'utiliser pour décorer une liste d'arguments lui
   ferait perdre son sens là où il compte. */
.offre__points li::before {
  content: ""; position: absolute; left: 2px; top: 18px;
  width: 13px; height: 7px; border-left: 2px solid var(--encre);
  border-bottom: 2px solid var(--encre); transform: rotate(-45deg);
}

.offre__enjeu { border: 2px solid var(--encre); border-radius: 2px; background: var(--papier-2); padding: 20px 22px; }
.offre__enjeu-t {
  font: 700 .8rem var(--labeur); letter-spacing: .1em; text-transform: uppercase;
  color: var(--braise-f); margin-bottom: 12px;
}
.offre__enjeu ul { list-style: none; }
.offre__enjeu li {
  padding: 10px 0; border-top: 1px solid var(--trait);
  font-size: .96rem; color: var(--gris);
}
.offre__enjeu li:first-child { border-top: none; }
.offre__enjeu strong { color: var(--encre); font-family: var(--titres); }
.offre__enjeu .art { display: block; font-size: .8rem; margin-top: 3px; }

.btn--large { width: 100%; text-align: center; padding: 16px 22px; font-size: 1.08rem; }
.form-rappel__sous { margin-top: 10px; font-size: .88rem; color: var(--gris); text-align: center; }

/* ---------------------------------------------------------- barre d'action mobile

   Un rectangle, pas une pilule flottante. Elle ne s'affiche que sous 880 px et
   uniquement quand le formulaire n'est PAS à l'écran (voir inc/layout.php) :
   une barre qui recouvre le bouton qu'elle annonce coûte des conversions au
   lieu d'en gagner. `[hidden]` reste vrai sans JavaScript. */
.barre-action { display: none; }
@media (max-width: 879px) {
  .barre-action:not([hidden]) {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--papier); border-top: 2px solid var(--encre);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .barre-action .btn { text-align: center; padding: 15px 20px; }
  .barre-action span { text-align: center; font-size: .82rem; color: var(--gris); }
  /* De quoi finir la page sans que la barre mange la dernière ligne. */
  footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: no-preference) {
  .barre-action:not([hidden]) { animation: monte .18s ease-out; }
  @keyframes monte { from { transform: translateY(100%); } to { transform: none; } }
}

/* ---------------------------------------------------------- équipement (affi) */

.encart-produit__cadre {
  border: 2px solid var(--encre); border-radius: 2px; background: #fff;
  padding: 22px 24px 20px;
}
.encart-produit__titre {
  font-family: var(--titres); font-weight: 700; font-size: .95rem;
  color: var(--braise-f); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 14px;
}
.encart-produit__corps { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.encart-produit__corps img {
  width: 132px; height: 132px; object-fit: contain; background: var(--papier);
  border: 1px solid var(--trait); border-radius: 2px; flex: none;
}
.encart-produit__corps > div { flex: 1 1 260px; min-width: 0; }
.encart-produit__marque { font-size: .82rem; color: var(--gris); font-weight: 600; }
.encart-produit__corps h3 { font-family: var(--titres); font-size: 1.15rem; margin: 2px 0 8px; }
.encart-produit__normes { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.norme-ok {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 8px;
  border: 1px solid var(--vert); color: var(--vert); border-radius: 2px;
}
.norme-non {
  display: inline-block; font-size: .78rem; color: var(--gris); font-style: italic;
}
.fiche__declare { font-size: .78rem; color: var(--gris); }
.encart-produit__corps p { margin-bottom: 10px; }
.encart-produit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.encart-produit__avert {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--trait);
  font-size: .85rem; color: var(--gris);
}

.materiel-grille { display: grid; gap: 20px; }
@media (min-width: 700px) { .materiel-grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .materiel-grille { grid-template-columns: repeat(3, 1fr); } }
.materiel-carte {
  border: 2px solid var(--encre); border-radius: 2px; background: #fff; padding: 20px;
  display: flex; flex-direction: column;
}
.materiel-carte img {
  width: 100%; height: 160px; object-fit: contain; background: var(--papier);
  border: 1px solid var(--trait); border-radius: 2px; margin-bottom: 14px;
}
.materiel-carte h3 { font-family: var(--titres); font-size: 1.1rem; margin: 2px 0 8px; }
.materiel-carte p { margin-bottom: 10px; }
.materiel-carte .btn { margin-top: auto; text-align: center; }

/* ---------------------------------------------------------- le voisinage */

.voisins { list-style: none; margin-top: 18px; display: grid; gap: 0;
  border: 2px solid var(--encre); border-radius: 2px; background: #fff; }
@media (min-width: 700px) { .voisins { grid-template-columns: 1fr 1fr; } }
.voisins li { border-top: 1px solid var(--trait); }
@media (min-width: 700px) {
  .voisins li:nth-child(even) { border-left: 1px solid var(--trait); }
  .voisins li:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 699px) { .voisins li:first-child { border-top: none; } }
.voisins a { display: block; padding: 14px 18px; text-decoration: none;
  transition: background-color .15s ease; }
.voisins .n { display: block; font-family: var(--titres); font-weight: 700; }
.voisins .c { font-size: .8rem; color: var(--gris); font-weight: 400; }
.voisins .l { display: block; font-size: .87rem; color: var(--gris); margin-top: 2px; }
@media (hover: hover) {
  .voisins a:hover { background: var(--papier-2); }
  .voisins a:hover .n { color: var(--braise-f); }
}
