/* ==========================================================================
   Toiture Vérifiée — design system v2 « Marketplace inversée »
   Fond blanc, encre quasi-noire, accent rouge signal. Structure contrastée
   type marketplace, module vérification, bande urgence sombre.
   Typo : Archivo (titres, graisse lourde) + Instrument Sans (texte).
   ========================================================================== */

:root {
  --fond: #ffffff;
  --encre: #191919;          /* texte principal */
  --encre-2: #3a3f45;        /* texte secondaire */
  --gris: #6a7076;           /* légendes */
  --gris-pale: #e9e7e3;      /* bordures */
  --bande: #f6f4f1;          /* fonds de section alternés */
  --accent: #e8442e;         /* rouge signal — CTA, accents */
  --accent-fonce: #c73520;
  --accent-pale: #fff1ee;
  --sombre: #191919;         /* bandes sombres */
  --ok: #1e7d45;
  --radius: 8px;
  --ombre: 0 8px 24px rgba(25, 25, 25, 0.08);
  --ombre-forte: 0 16px 44px rgba(25, 25, 25, 0.14);
  --police-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --police-texte: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-fonce); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 800;
  line-height: 1.08;
  color: var(--encre);
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h1 em, h2 em { font-style: normal; color: var(--accent); }

p { margin: 0 0 1em; }
.conteneur { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--creme { background: var(--bande); }

/* surtitre de section */
.surtitre {
  display: inline-block;
  font-family: var(--police-titre);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* liseré tuiles (rangée d'écailles) */
.tuiles {
  height: 14px;
  background:
    radial-gradient(circle at 11px -3px, var(--accent) 10px, transparent 11px)
    repeat-x;
  background-size: 22px 14px;
}

/* les sections visées par une ancre s'arrêtent sous l'en-tête collant */
section[id], div[id] { scroll-margin-top: 92px; }
@media (max-width: 999px) { section[id], div[id] { scroll-margin-top: 84px; } }

/* ---------- en-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-pale);
}
.entete .entete__int {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--encre);
}
.marque__logo { width: 36px; height: 36px; flex: none; }
.marque__nom {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.marque__nom small {
  display: block;
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
}
/* Le conteneur est figé à 1140px : au-delà, la nav ne gagne pas de place.
   Ces valeurs sont donc calées pour que la ligne tienne à toute largeur
   desktop, marque + 5 liens + CTA compris. */
.entete__nav { display: flex; gap: 20px; }
.entete__nav a {
  text-decoration: none;
  color: var(--encre-2);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;   /* un libellé ne doit jamais passer sur deux lignes */
}
.entete__nav a:hover { color: var(--accent); }

/* petit desktop : juste au-dessus du burger, on bascule sur le sous-titre court */
@media (min-width: 1000px) and (max-width: 1119px) {
  .entete__nav { gap: 15px; }
  .entete__nav a { font-size: 0.86rem; }
  .marque__nom .sous-long { display: none; }
  .marque__nom .sous-court { display: inline; }
}

/* bouton burger, masqué au-dessus de 900px */
.burger { display: none; }
.entete__cta .cta-court,
.marque__nom .sous-court { display: none; }

/* ---------- en-tête mobile : tout doit tenir sur UNE ligne ---------- */
@media (max-width: 999px) {
  .entete .entete__int { flex-wrap: wrap; gap: 10px; align-items: center;
                         padding-top: 16px; padding-bottom: 16px; }

  .marque { gap: 8px; min-width: 0; align-items: center; }
  .marque__logo { width: 28px; height: 28px; }
  .marque__nom { font-size: 0.88rem; }
  .marque__nom small { font-size: 0.55rem; letter-spacing: 0.06em; }
  .marque__nom .sous-long { display: none; }
  .marque__nom .sous-court { display: inline; }

  /* le CTA passe en libellé court pour tenir sur une ligne */
  .btn.entete__cta { padding: 9px 13px; font-size: 0.82rem; white-space: nowrap; flex: none; }
  .entete__cta .cta-long { display: none; }
  .entete__cta .cta-court { display: inline; }

  /* ordre visuel : logo … CTA burger */
  .btn.entete__cta { order: 2; margin-left: auto; }
  .burger { order: 3; }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4.5px;
    width: 36px;
    height: 34px;
    padding: 0 8px;
    border: 1.5px solid var(--gris-pale);
    border-radius: 7px;
    cursor: pointer;
    background: #ffffff;
    flex: none;
  }
  .burger span {
    display: block;
    height: 2px;
    background: var(--encre);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease;
  }
  #nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  #nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .entete__nav {
    display: none;
    order: 9;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--gris-pale);
    margin-top: 4px;
  }
  #nav-toggle:checked ~ .entete__nav { display: flex; }
  .recherche--menu { max-width: none; margin: 12px 0 6px; }
  .entete__nav a {
    padding: 13px 2px;
    border-bottom: 1px solid var(--gris-pale);
    font-size: 1rem;
  }
  .entete__nav a:last-child { border-bottom: 0; }
}

@media (max-width: 380px) {
  .marque__nom { font-size: 0.8rem; }
  .marque__nom small { font-size: 0.52rem; }
  .btn.entete__cta { padding: 8px 11px; font-size: 0.78rem; }
}

/* très petits écrans (iPhone SE 1re génération) : sous-titre masqué et
   libellés resserrés, pour que le header tienne sur une seule ligne */
@media (max-width: 374px) {
  .conteneur { padding: 0 18px; }
  .entete .entete__int { gap: 6px; }
  .marque__nom small { display: none; }
  .marque__nom { font-size: 0.7rem; }
  .marque__logo { width: 25px; height: 25px; }
  .btn.entete__cta { font-size: 0.7rem; padding: 7px 8px; }
  .burger { width: 32px; height: 30px; padding: 0 7px; gap: 4px; }
  #nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  #nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- barre de recherche de commune ---------- */
.recherche--menu { display: none; }
@media (max-width: 999px) { .recherche--menu { display: block; } }
.barre-villes {
  background: var(--bande);
  border-bottom: 1px solid var(--gris-pale);
}
.barre-villes .conteneur {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.barre-villes__intro {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--encre-2);
  white-space: nowrap;
  margin: 0;
}
.recherche { position: relative; flex: 1 1 auto; max-width: 420px; }
.recherche__champ {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--gris-pale);
  border-radius: 999px;
  font: inherit;
  font-size: 0.94rem;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7076' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
  background-size: 17px;
  color: var(--encre);
}
.recherche__champ:focus { border-color: var(--accent); outline: none; }
.recherche__liste {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1.5px solid var(--gris-pale);
  border-radius: 10px;
  box-shadow: var(--ombre-forte);
  max-height: 300px;
  overflow-y: auto;
}
.recherche__liste a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--encre);
  font-weight: 600;
  font-size: 0.94rem;
}
.recherche__liste a span {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--gris);
  white-space: nowrap;
}
.recherche__liste a:hover,
.recherche__liste a:focus { background: var(--accent-pale); color: var(--accent-fonce); }
.recherche__vide { padding: 11px; font-size: 0.88rem; color: var(--encre-2); }

/* variante en pied de page */
.pied .recherche__champ { background-color: #ffffff; }
.pied .barre-villes__intro { color: #d6dade; }

@media (max-width: 720px) {
  .barre-villes .conteneur { flex-direction: column; align-items: stretch; gap: 8px; }
  .barre-villes__intro { font-size: 0.85rem; white-space: normal; }
  .recherche { max-width: none; }
}

/* ---------- boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.btn--plein {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(232, 68, 46, 0.32);
}
.btn--plein:hover {
  background: var(--accent-fonce);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn--contour {
  background: transparent;
  color: var(--encre);
  border: 2px solid var(--encre);
}
.btn--contour:hover { background: var(--encre); color: #ffffff; }
.btn--large { width: 100%; }

/* ---------- héro ---------- */
.hero { position: relative; overflow: hidden; }
.hero__int {
  display: grid;
  gap: 40px;
  padding: 46px 0 24px;
}
@media (min-width: 980px) {
  .hero__int {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    padding: 62px 0 40px;
  }
}
.hero__texte .chapo {
  font-size: 1.12rem;
  color: var(--encre-2);
  max-width: 34em;
}
.hero__points { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; }
.hero__points li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.hero__points .coche { color: var(--accent); font-weight: 800; }

/* stats à barres, façon marketplace */
.stats-barres {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 42px;
  margin: 30px 0 6px;
}
.stat-barre b {
  display: block;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-barre span {
  display: block;
  padding-left: 16px;
  font-size: 0.85rem;
  color: var(--gris);
}

/* toits en silhouette sous le héro */
.skyline { color: #b9c0c6; margin-top: 10px; }

/* illustrations techniques en trait.
   Chaque figure a deux versions : large (horizontale) et compacte (verticale).
   Sur mobile, la version horizontale rendrait le texte illisible. */
.illustration { margin: 30px 0 4px; }
.illustration .illu-compacte { display: none; }
@media (max-width: 700px) {
  .illustration .illu-large { display: none; }
  .illustration .illu-compacte { display: block; }
}
.illustration svg { max-width: 100%; height: auto; display: block; }
.illustration text { font-family: var(--police-texte); }

/* ---------- carte formulaire ---------- */
.carte-devis {
  background: #ffffff;
  border: 1px solid var(--gris-pale);
  border-radius: 12px;
  box-shadow: var(--ombre-forte);
  overflow: hidden;
}
@media (min-width: 980px) { .carte-devis { position: sticky; top: 84px; } }
.carte-devis__tete {
  background: var(--sombre);
  color: #ffffff;
  padding: 18px 24px 14px;
}
.carte-devis__tete h2, .carte-devis__tete h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0 0 2px;
}
.carte-devis__tete p { margin: 0; font-size: 0.88rem; color: #c9cdd1; }
.carte-devis form { padding: 20px 24px 24px; display: grid; gap: 14px; }
.champ label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 5px;
}
.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--gris-pale);
  border-radius: 7px;
  font: inherit;
  font-size: 0.98rem;
  background: #ffffff;
  color: var(--encre);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.champ--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; color: var(--encre-2); }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.carte-devis .note { font-size: 0.78rem; color: var(--gris); margin: 0; text-align: center; }
.form-succes { padding: 34px 24px; text-align: center; display: none; }
.form-succes .picto { font-size: 2rem; color: var(--ok); }

/* ---------- formulaire en deux étapes ---------- */
.etape-form[hidden] { display: none; }
.etapes-jauge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #c9cdd1;
  margin-top: 8px;
}
.etapes-jauge i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  font-style: normal;
}
.etapes-jauge i.faite { background: var(--accent); }
.form-nav { display: flex; gap: 10px; align-items: center; }
.form-nav .btn { flex: 1; }
.retour {
  background: none;
  border: 0;
  padding: 10px 4px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gris);
  cursor: pointer;
  flex: none;
}
.retour:hover { color: var(--encre); }
.recap {
  font-size: 0.85rem;
  color: var(--gris);
  background: var(--bande);
  border-radius: 7px;
  padding: 9px 12px;
  margin: 0;
}
.recap strong { color: var(--encre); font-weight: 600; }

/* ---------- badges confiance ---------- */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 26px 0;
}
.badge {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--gris-pale);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.badge svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.badge strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.badge span { font-size: 0.8rem; color: var(--gris); }

/* ---------- module vérification (cœur de la DA D) ---------- */
.module-verif {
  background: var(--bande);
  border: 1.5px solid var(--gris-pale);
  border-radius: 14px;
  padding: 30px 30px 26px;
  margin-top: 26px;
}
.module-verif ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .module-verif ul { grid-template-columns: 1fr 1fr; gap: 16px 34px; } }
.module-verif li { display: flex; gap: 12px; align-items: flex-start; }
.module-verif .pastille {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.module-verif strong { display: block; }
.module-verif p { margin: 0; font-size: 0.92rem; color: var(--encre-2); }

/* ---------- blocs de chiffres citables ---------- */
.chiffres {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 28px;
}
.chiffre {
  background: #ffffff;
  border: 1.5px solid var(--gris-pale);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 22px 24px 20px;
}
.chiffre b {
  display: block;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.chiffre p { font-size: 0.97rem; margin: 0 0 12px; color: var(--encre); }
.chiffre__src {
  display: block;
  font-size: 0.78rem;
  color: var(--gris);
  border-top: 1px solid var(--gris-pale);
  padding-top: 9px;
}

/* bloc de citation */
.citation {
  background: var(--bande);
  border: 1.5px dashed var(--gris-pale);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 22px;
}
.citation__label {
  font-family: var(--police-titre);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 0 0 9px;
}
.citation__texte { margin: 0; font-size: 0.97rem; line-height: 1.6; }
.citation__texte span { color: var(--accent-fonce); font-size: 0.9rem; word-break: break-all; }

@media (max-width: 560px) {
  .chiffre b { font-size: 2.2rem; }
  .chiffre { padding: 18px 20px 16px; }
}

/* ---------- annuaire des communes ---------- */
.depts {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: 26px;
}
.dept {
  background: #ffffff;
  border: 1.5px solid var(--gris-pale);
  border-radius: 12px;
  padding: 20px 22px 22px;
}
.dept h3 {
  font-size: 1.12rem;
  margin: 0 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.dept__code {
  font-family: var(--police-texte);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border-radius: 5px;
  padding: 2px 7px;
}
.dept__data { font-size: 0.82rem; color: var(--gris); margin: 0 0 12px; }
.dept__villes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dept__villes a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--encre);
  font-weight: 600;
  font-size: 0.95rem;
}
.dept__villes a span { font-weight: 500; font-size: 0.8rem; color: var(--gris); }
.dept__villes a:hover { background: var(--accent-pale); color: var(--accent-fonce); }

/* ---------- capsules de guides ---------- */
.guides {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 28px;
}
.guide {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--gris-pale);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--encre);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s;
}
.guide:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-forte);
  border-color: var(--accent);
  color: var(--encre);
}
.guide__visuel {
  background: var(--bande);
  border-bottom: 1.5px solid var(--gris-pale);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
}
.guide__visuel svg { width: 100%; max-width: 220px; height: auto; }
.guide__corps { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.guide__etiquette {
  font-family: var(--police-titre);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}
.guide h3 { font-size: 1.12rem; margin: 0 0 7px; line-height: 1.2; }
.guide p { font-size: 0.92rem; color: var(--encre-2); margin: 0 0 14px; flex: 1; }
.guide__lire {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}
.guide:hover .guide__lire { color: var(--accent-fonce); }

/* ---------- repère visuel RGE ---------- */
.repere-rge {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #ffffff;
  border: 1.5px solid var(--gris-pale);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0 8px;
}
.repere-rge img { width: 92px; height: auto; flex: none; }
.repere-rge div { min-width: 0; }
.repere-rge strong { display: block; margin-bottom: 5px; }
.repere-rge p { margin: 0; font-size: 0.93rem; color: var(--encre-2); }
.repere-rge .legende { margin-top: 8px; }
@media (max-width: 560px) {
  .repere-rge { flex-direction: column; gap: 14px; align-items: center; text-align: center; }
  .repere-rge img { width: 104px; }
}

/* ---------- tableaux de prix ---------- */
.tableau-enveloppe { overflow-x: auto; margin: 20px 0 8px; border-radius: var(--radius); box-shadow: var(--ombre); border: 1px solid var(--gris-pale); }
table.bareme {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.97rem;
  min-width: 540px;
}
.bareme th {
  background: var(--sombre);
  color: #ffffff;
  text-align: left;
  padding: 13px 16px;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.bareme td { padding: 13px 16px; border-top: 1px solid var(--gris-pale); vertical-align: top; }
.bareme tr:nth-child(even) td { background: #faf9f7; }
.bareme .prix { white-space: nowrap; font-family: var(--police-titre); font-weight: 700; color: var(--accent-fonce); }
.legende { font-size: 0.82rem; color: var(--gris); }

/* ---------- cartes prestations ---------- */
.grille-prestas {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 26px;
}
.presta {
  background: #ffffff;
  border: 1.5px solid var(--gris-pale);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
}
.presta h3 { font-size: 1.12rem; margin-bottom: 6px; }
.presta p { font-size: 0.93rem; color: var(--encre-2); margin: 0 0 8px; }
.presta .fourchette { font-family: var(--police-titre); font-weight: 700; color: var(--accent-fonce); font-size: 0.92rem; }

/* ---------- étapes ---------- */
.etapes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 30px; }
.etape { position: relative; padding-top: 8px; }
.etape .numero {
  font-family: var(--police-titre);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.etape h3 { margin-top: 10px; }
.etape p { color: var(--encre-2); font-size: 0.95rem; }

/* ---------- bande urgence (sombre) ---------- */
.bande-urgence { background: var(--sombre); color: #ffffff; }
.bande-urgence .section { padding: 52px 0; }
.bande-urgence h2 { color: #ffffff; }
.bande-urgence p { color: #c9cdd1; }
.bande-urgence .surtitre { color: #ff8a75; }
.bande-urgence .btn--plein { box-shadow: none; }

/* ---------- quartiers / villes ---------- */
.puces { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.puce {
  background: #ffffff;
  border: 1.5px solid var(--gris-pale);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--encre-2);
}
.puce--lien { text-decoration: none; }
.puce--lien:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- contenu éditorial ---------- */
.prose { max-width: 46em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.encadre {
  background: var(--accent-pale);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.95rem;
}
.encadre strong { color: var(--accent-fonce); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: #ffffff;
  border: 1.5px solid var(--gris-pale);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 52px 17px 20px;
  font-weight: 600;
  position: relative;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq__corps { padding: 0 20px 18px; color: var(--encre-2); font-size: 0.97rem; }

/* ---------- pied de page ---------- */
.pied { background: var(--sombre); color: #b9bec3; margin-top: 72px; }
.pied .tuiles { transform: rotate(180deg); }
.pied__int { display: grid; gap: 30px; padding: 44px 0 30px; }
@media (min-width: 800px) { .pied__int { grid-template-columns: 1.2fr 1fr 1fr; } }
.pied h4 {
  color: #ffffff;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 10px;
}
.pied a { color: #d6dade; text-decoration: none; }
.pied a:hover { color: #ffffff; text-decoration: underline; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.92rem; }
.pied p { font-size: 0.92rem; }
.pied__legal {
  border-top: 1px solid #33373c;
  padding: 18px 0 26px;
  font-size: 0.8rem;
  color: #8d9296;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.pied__legal a { color: #8d9296; }

/* ---------- pages légales ---------- */
.page-simple { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.page-simple h1 { font-size: 2rem; }
.page-simple h2 { font-size: 1.25rem; margin-top: 2em; }
.a-completer { background: #fff3cd; padding: 2px 6px; border-radius: 4px; }

/* ---------- fil d'ariane ---------- */
.ariane { font-size: 0.83rem; color: var(--gris); padding-top: 18px; }
.ariane a { color: var(--gris); text-decoration: none; }
.ariane a:hover { color: var(--accent); }

/* ==========================================================================
   Responsive : ajustements sous 720 px puis sous 420 px
   ========================================================================== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { margin-bottom: 0.6em; }
  h2 { margin-bottom: 0.55em; }
  .prose p { margin-bottom: 1.15em; }
  .tableau-enveloppe { margin: 22px 0 10px; }
  .illustration { margin: 26px 0 6px; }
  .section { padding: 54px 0; }
  .conteneur { padding: 0 22px; }

  .hero__int { gap: 34px; padding: 36px 0 22px; }
  .hero__texte .chapo { font-size: 1.02rem; }

  /* les 3 chiffres passent en colonne serrée plutôt qu'en ligne coupée */
  /* les 3 chiffres tiennent sur une ligne, sans retour */
  .stats-barres { gap: 12px; margin: 22px 0 4px; flex-wrap: nowrap; }
  .stat-barre { flex: 1 1 0; min-width: 0; }
  .stat-barre b { font-size: 1.15rem; border-left-width: 3px; padding-left: 8px; white-space: nowrap; }
  .stat-barre span { font-size: 0.72rem; padding-left: 11px; line-height: 1.3; }

  .badges { gap: 10px; padding: 20px 0; }
  .badge { padding: 15px 16px; }
  .badge svg { width: 22px; height: 22px; }
  .badge strong { font-size: 0.9rem; }

  .carte-devis__tete { padding: 18px 22px 15px; }
  .carte-devis form { padding: 20px 22px 24px; gap: 14px; }

  .module-verif { padding: 26px 22px 22px; border-radius: 11px; }
  .etapes { gap: 26px; }
  .etape .numero { font-size: 2.8rem; }

  .grille-prestas { gap: 14px; }
  .presta { padding: 22px 20px; }

  .faq summary { padding: 17px 48px 17px 19px; font-size: 0.97rem; }
  .faq .faq__corps { padding: 0 19px 18px; }

  .encadre { padding: 18px 20px; }
  .bande-urgence .section { padding: 48px 0; }

  /* vignettes décoratives : illisibles une fois réduites, on les retire */
  .prose > svg[style*="float"] { display: none; }

  .pied__int { gap: 28px; padding: 40px 0 28px; }
  .pied__legal { gap: 6px 16px; }
}

/* Sous 560px, les tableaux de prix passent en blocs empilés : le défilement
   horizontal donnait l'impression que les prix étaient coupés. */
@media (max-width: 560px) {
  .tableau-enveloppe { overflow: visible; border: 0; box-shadow: none; }
  table.bareme { min-width: 0; display: block; background: transparent; }
  .bareme thead { display: none; }
  .bareme tbody { display: block; }
  .bareme tr {
    display: block;
    background: #ffffff;
    border: 1.5px solid var(--gris-pale);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .bareme tr:nth-child(even) td { background: transparent; }
  .bareme td {
    display: block;
    border: 0;
    padding: 0;
    font-size: 0.95rem;
  }
  .bareme td:first-child { font-weight: 600; margin-bottom: 4px; }
  .bareme td:not(:first-child) { color: var(--gris); font-size: 0.88rem; }
  .bareme td.prix {
    font-family: var(--police-titre);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-fonce);
    margin: 2px 0 3px;
  }
  .bareme tr:last-child { border-color: var(--accent); background: var(--accent-pale); }
}

@media (max-width: 420px) {
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.35rem; }

  /* nom et code postal l'un sous l'autre, sinon les champs sont trop étroits */
  .champ--2col { grid-template-columns: 1fr; gap: 12px; }

  .btn { padding: 15px 22px; font-size: 0.96rem; }
  .stats-barres { gap: 10px; }
  .stat-barre b { font-size: 1.05rem; }
  .stat-barre span { font-size: 0.68rem; padding-left: 9px; }
  .puce { font-size: 0.85rem; padding: 6px 13px; }
  .ariane { font-size: 0.78rem; }
  .legende { font-size: 0.78rem; }

}

/* ---------- animations d'entrée ---------- */
@media (prefers-reduced-motion: no-preference) {
  .apparait { animation: montee 0.7s ease both; }
  .apparait--2 { animation-delay: 0.12s; }
  .apparait--3 { animation-delay: 0.24s; }
  @keyframes montee {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}
