/* ==========================================================================
   DTE Diagnostics : feuille de style du site dtediag.fr
   Palette : blanc et gris perle, bleu nuit, vert du logo en simple touche, ambre pour les boutons, corail pour les alertes.
   Police : Archivo (variable), servie par le site.
   Sections : 1 base · 2 boutons et formulaires · 3 en-tête · 4 accueil · 5 cartes et listes
              6 pages · 7 contenu · 8 données · 9 pied de page · 10 impression
   ========================================================================== */

/* 1. Base ---------------------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 118%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E1B2E;
  --ink-2: #14233A;
  --ink-3: #1E3150;
  --ink-4: #34507A;
  --text: #1B2A3E;
  --muted: #566679;
  --faint: #8794A8;
  --line: #DCE2EA;
  --line-2: #E8ECF2;
  --pearl: #F3F5F8;
  --pearl-2: #E9EDF3;
  --green: #328C5E;
  --green-d: #25704A;
  --green-bg: #E6F3EC;
  --amber: #F09F12;
  --amber-hover: #FFB32E;
  --amber-bg: #FDF1DB;
  --coral: #EA5D51;
  --coral-d: #B8392F;
  --coral-bg: #FDECEA;
  --todo: #FFE58A;
  --focus: #0E1B2E;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --sh-1: 0 1px 2px rgba(14, 27, 46, .06), 0 6px 18px rgba(14, 27, 46, .07);
  --sh-2: 0 2px 6px rgba(14, 27, 46, .08), 0 24px 56px rgba(14, 27, 46, .22);
  --wrap: 1180px;
  --gutter: 20px;
  --header-h: 64px;
  --module-h: 760px;
  --dpe-a: #319834;
  --dpe-b: #33CC31;
  --dpe-c: #CBFC34;
  --dpe-d: #FBFE06;
  --dpe-e: #FBCC05;
  --dpe-f: #FC9935;
  --dpe-g: #FC0205;
}

@media (min-width: 1024px) {
  :root { --header-h: 108px; --gutter: 28px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 750; font-stretch: 106%; letter-spacing: -.025em; line-height: 1.07; }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.25rem); font-stretch: 103%; }
h3 { font-size: 1.1875rem; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1em; }
p, li, dd { text-wrap: pretty; }
sup { font-size: .65em; line-height: 0; }
strong, b { font-weight: 700; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--green-d); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.cta-band, .section--ink, .site-footer, .topbar { --focus: #F6B84A; }

::selection { background: var(--amber); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }

.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 0; }

.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
main { display: block; min-height: 50vh; }
main:focus { outline: none; }

/* Éléments à compléter (mode brouillon) */
.todo { background: var(--todo); color: #3B2F00; border-radius: 4px; padding: 0 .3em; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.draft-bar { background: var(--todo); color: #3B2F00; font-size: .875rem; }
.draft-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding-block: 8px; }
.draft-bar a { color: #3B2F00; font-weight: 700; }

/* 2. Boutons et formulaires --------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 12px;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn .ico { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hover); color: var(--ink); box-shadow: 0 6px 18px rgba(240, 159, 18, .35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-block { display: flex; width: 100%; }

.link-light { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; text-decoration-color: rgba(255, 255, 255, .5); text-decoration-thickness: 2px; }
.link-light:hover { color: var(--amber); text-decoration-color: var(--amber); }
.link-dark { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; text-decoration-color: rgba(14, 27, 46, .35); text-decoration-thickness: 2px; }
.link-dark:hover { color: var(--green-d); text-decoration-color: var(--green-d); }
.link-dark .ico, .link-light .ico { width: 18px; height: 18px; }

input, select, textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #B9C3D1; border-radius: 10px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { width: 1.15em; height: 1.15em; padding: 0; accent-color: var(--ink); flex: none; margin-top: .25em; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: .875rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 12px 0 0; font-size: .9375rem; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.is-ok { color: var(--green-d); }
.form-msg.is-err { color: var(--coral-d); }

.callback { max-width: 560px; margin: 1.5em 0; padding: 24px; background: var(--pearl); border: 1px solid var(--line); border-radius: var(--r); }
.callback h3 { margin-top: 0; }

.search-form { display: flex; gap: 10px; max-width: 520px; margin: 0 0 2em; }
.search-form .search-field { flex: 1; min-width: 0; width: auto; }
.search-form .search-submit { flex: none; }

/* 3. En-tête ------------------------------------------------------------- */

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
}
/* Administrateur connecté : la barre WordPress (fixe, 32 px, 46 px sur tablette, défilante sur petit mobile) ne doit pas masquer l'en-tête collant. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }

.topbar { display: none; background: var(--ink); color: #C9D3E2; font-size: .8125rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar p { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar .ico { width: 15px; height: 15px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--amber); text-decoration: underline; }
.topbar-r { gap: 18px !important; }
.topbar-badge { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar-badge .ico { color: var(--amber); }

.hbar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; flex: none; border-radius: 6px; }
.brand img { display: block; width: auto; height: 34px; }
.bar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.bar-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.bar-phone:hover { background: var(--pearl); color: var(--ink); }
.bar-phone .ico { width: 22px; height: 22px; }
.bar-phone-t { display: none; }
.bar-cta { display: none; }

/* Bouton du menu (mobile) */
.burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--ink); color: #fff; cursor: pointer; }
.burger-lines { position: relative; display: block; width: 20px; height: 14px; }
.burger-lines i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s, top .2s; }
.burger-lines i:nth-child(1) { top: 0; }
.burger-lines i:nth-child(2) { top: 6px; }
.burger-lines i:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger-lines i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-lines i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
html.menu-open { overflow: hidden; }

/* Navigation : panneau déroulant sur mobile */
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; padding: 8px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(14, 27, 46, .18); }
.nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { position: static; display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--line-2); }
.nav-link { flex: 1; display: flex; align-items: center; min-height: 52px; color: var(--ink); font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.nav-item.is-active > .nav-link { color: var(--green-d); }
.sub-toggle { display: grid; place-items: center; width: 52px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.sub-toggle .ico { width: 22px; height: 22px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.mega { display: none; flex-basis: 100%; padding: 4px 0 14px; }
.has-sub.is-open > .mega { display: block; }
.mega-grid { display: block; }
.mega-col { margin-bottom: 14px; }
.mega-title { margin: 8px 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 9px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.mega li a:hover { color: var(--green-d); text-decoration: underline; }
.mega-foot { margin: 0; font-size: .9375rem; }
.mega-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.nav-extra { margin-top: 14px; list-style: none; }
.nav-tel { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; color: var(--ink); font-weight: 700; text-decoration: none; }

@media (min-width: 1024px) {
  .topbar { display: block; }
  .hbar { min-height: 72px; gap: 28px; }
  .brand img { height: 38px; }
  .burger, .nav-extra { display: none; }
  .nav { display: block; position: static; flex: 1; max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-list { display: flex; align-items: stretch; gap: 2px; height: 72px; }
  .nav-item { border: 0; flex-wrap: nowrap; }
  .nav-link { flex: none; min-height: 0; padding: 0 12px; font-size: .96875rem; font-weight: 650; position: relative; }
  .nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 16px; height: 3px; border-radius: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
  .nav-item:hover > .nav-link::after, .nav-item.is-active > .nav-link::after, .nav-link:focus-visible::after { transform: scaleX(1); }
  /* Bouton de sous-menu à côté du lien, sans chevauchement (cible tactile d'au moins 24 px, WCAG 2.2). */
  .has-sub > .nav-link { padding-right: 0; }
  .has-sub > .nav-link::after { right: 0; }
  .sub-toggle { width: 28px; min-height: 28px; margin-left: 0; }
  .sub-toggle .ico { width: 18px; height: 18px; }
  .mega { position: absolute; left: 0; right: 0; top: 100%; flex-basis: auto; padding: 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px rgba(14, 27, 46, .16); }
  .mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 28px var(--gutter) 24px; }
  .mega-col { margin: 0; }
  .mega-title { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .mega-foot { background: var(--pearl); padding: 14px max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
  .bar-phone { width: auto; padding: 0 12px; }
  .bar-phone-t { display: inline; }
  .bar-cta { display: inline-flex; }
}
@media (min-width: 1024px) and (hover: hover) {
  .has-sub:hover > .mega, .has-sub:focus-within > .mega { display: block; }
  /* Échap : le panneau reste masqué jusqu'à ce que la souris ou le clavier quitte l'élément. */
  .has-sub.is-dismissed > .mega { display: none; }
}
@media (min-width: 1024px) {
  .has-sub.is-open > .mega { display: block; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .bar-phone-t { display: none; }
  .bar-phone { width: 44px; padding: 0; }
}

/* 4. Accueil ------------------------------------------------------------- */

/* Fiche d'un secteur (page de zone) : cartes de chiffres clés */
.zfiche { margin: 1.2em 0 1.6em; }
.zfiche .facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.zfiche .ldata-src { margin: 10px 0 0; }

/* Étiquette de section avec la pointe du logo */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-d); }
.eyebrow::before { content: ""; flex: none; width: 26px; height: 9px; background: currentColor; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); }
.eyebrow--light { color: var(--amber); }

/* Accueil : fond blanc, titre, ligne Google, trois arguments et bouton de devis. Aucun formulaire dans la page : le devis s'ouvre au clic sur le bouton. */
.hero { position: relative; padding: 28px 0 40px; background: #fff; color: var(--text); }
.hero-inner { max-width: calc(1040px + var(--gutter) * 2); text-align: center; }
.hero h1 { margin: 0 0 .7em; text-align: center; }
.hero-checks { display: grid; gap: 14px; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 0; list-style: none; text-align: left; }
.hero-checks li { display: flex; gap: 14px; align-items: center; color: var(--text); font-size: 1.0625rem; line-height: 1.4; }
.hero .tick { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 2px solid var(--amber); border-radius: 8px; background: #fff; color: var(--amber); }
.hero .tick .ico { width: 16px; height: 16px; }
.hero-actions { margin: 0; }
.hero-actions .btn { width: 100%; justify-content: center; }

@media (min-width: 560px) {
  .hero { padding: 48px 0 60px; }
  .hero-actions .btn { width: auto; min-width: 300px; }
}
@media (min-width: 820px) {
  .hero { padding: 64px 0 76px; }
  .hero h1 { font-size: clamp(2.5rem, 1.2rem + 2.7vw, 3.4rem); }
  .hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; width: auto; margin-bottom: 32px; }
}

/* Ligne « Google · note · étoiles · nombre d'avis » (n'apparaît que si la note est renseignée) */
.hero-rating { margin: 0 0 24px; }
.hero-rating-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
a.hero-rating-in:hover .rating-c { text-decoration: underline; }
.rating-src { font-weight: 700; color: var(--muted); }
.rating-n { font-size: 1.125rem; color: var(--ink); }
.hero-rating .stars .ico { width: 20px; height: 20px; }
.hero-rating-todo { margin: 0 0 24px; text-align: center; }

/* Étoiles : cinq étoiles grises, cinq étoiles ambre rognées à la largeur de la note */
.stars { position: relative; display: inline-block; flex: none; white-space: nowrap; line-height: 0; }
.stars .ico { width: 18px; height: 18px; vertical-align: top; }
.stars-bg { display: block; color: #CBD3DF; }
.stars-fg { position: absolute; left: 0; top: 0; display: block; overflow: hidden; color: var(--amber); }

/* Module de devis (cadre intégré) */
.module { display: flex; flex-direction: column; overflow: hidden; background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.module-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 18px; background: var(--pearl); border-bottom: 1px solid var(--line); }
.module-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--ink); }
.module-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green-d); font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.module-badge .ico { width: 15px; height: 15px; }
.module-frame { position: relative; height: var(--module-h); background: #fff; }
.module-iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.module-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: .9375rem; }
.module-missing { margin: 0; padding: 24px; }
.module-foot { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); background: #fff; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.module-foot:empty { display: none; }
.module-foot a { color: var(--ink); font-weight: 600; }
/* Dans le corps d'une page (devis, contact), les règles de texte courant ne doivent pas déformer le cadre. */
.prose .module .module-title, .prose .module .module-badge, .prose .module .module-foot, .prose .module .module-loading { margin: 0; }
.prose .module { max-width: 900px; margin: 1.2em auto 1.8em; }

/* Bande de réassurance */
.trust { background: #fff; border-block: 1px solid var(--line-2); }
.trust-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px 24px; margin: 0; padding: 22px 0; list-style: none; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--green-bg); color: var(--green-d); }
.trust-ico .ico { width: 22px; height: 22px; }
.trust-txt { display: block; line-height: 1.25; }
.trust-txt strong { display: block; font-size: .9375rem; color: var(--ink); }
.trust-txt span { font-size: .8125rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(44px, 6vw, 88px) 0; }
.section--pearl { background: var(--pearl); }
.section--tight { padding: clamp(32px, 4vw, 52px) 0; }
.section--ink { background: var(--ink); color: #D5DEEB; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 0 clamp(24px, 3vw, 40px); }
.section-head h2 { margin-bottom: .35em; }
.section-lead { margin: 0; font-size: 1.125rem; color: var(--muted); }
.section-more { margin: 28px 0 0; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 28px 0 0; }
@media (max-width: 559px) {
  .section-actions { gap: 12px; }
  .section-actions .btn { flex: 1 1 100%; justify-content: center; }
  .section-actions .link-dark { display: inline; }
  .section-actions .link-dark .ico { display: inline-block; vertical-align: -3px; margin-left: 4px; }
}

/* Copropriétés et travaux : deux colonnes */
.projects { display: grid; gap: 44px; }
.project h2 { margin-bottom: .35em; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
.project-lead { max-width: 52ch; margin: 0 0 20px; font-size: 1.0625rem; color: var(--muted); }
.project .cards-compact { grid-template-columns: 1fr; }
.project-more { margin: 20px 0 0; }
@media (min-width: 900px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }

/* Étapes */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 24px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.0625rem; font-weight: 700; }
.step h3 { margin-bottom: 6px; }
@media (min-width: 1024px) { .steps .step h3 { min-height: 2.3em; } }
.step p { margin: 0; color: var(--muted); font-size: .96875rem; line-height: 1.55; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -17px; z-index: 1; width: 14px; height: 22px; background: var(--amber); clip-path: polygon(0 0, 100% 50%, 0 100%); }
}

@media (min-width: 760px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .steps.steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps-note { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 0; padding: 14px 18px; background: var(--pearl); border-radius: var(--r); color: var(--ink-2); font-size: .96875rem; line-height: 1.5; }
.steps-note-ico { display: grid; place-items: center; flex: none; width: 26px; height: 26px; color: var(--green-d); }
.steps-note .ico { width: 22px; height: 22px; }
.steps-note a { color: var(--ink); font-weight: 600; }

/* Prix de départ */
.price-cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.price-card:hover { border-color: var(--ink-4); box-shadow: var(--sh-1); transform: translateY(-2px); color: var(--text); }
.price-card::before { content: ""; position: absolute; left: 24px; top: 0; width: 44px; height: 5px; border-radius: 0 0 4px 4px; background: var(--amber); }
.price-name { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; color: var(--ink); }
.price-from { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.price-n { font-size: 2.5rem; font-weight: 750; font-stretch: 106%; line-height: 1; letter-spacing: -.02em; }
.price-n--text { font-size: 1.75rem; }
.price-ttc { font-size: .875rem; font-weight: 700; color: var(--muted); }
.price-note { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.price-card .card-go { position: absolute; right: 20px; bottom: 20px; }
@media (min-width: 760px) { .price-cards { grid-template-columns: repeat(3, 1fr); } }

/* Arguments */
.why { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.why-item { padding: 0 0 0 0; }
.why-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: var(--ink); color: var(--amber); }
.why-ico .ico { width: 26px; height: 26px; }
.why-item h3 { margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: .96875rem; line-height: 1.6; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; } }
@media (min-width: 1024px) { .why { grid-template-columns: repeat(4, 1fr); } }

/* Chiffres ADEME (section sombre de l'accueil) */
.data-grid { display: grid; gap: 28px; }
.data-copy p { max-width: 54ch; font-size: 1.0625rem; }
.data-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.data-keys { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.data-keys .key { display: flex; align-items: baseline; gap: 16px; padding: 18px 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); }
.data-keys .key-n { flex: none; min-width: 5.2ch; font-size: 2.25rem; font-weight: 750; font-stretch: 106%; line-height: 1; letter-spacing: -.02em; color: #fff; }
.data-keys .key-t { color: #C2CEDF; font-size: .96875rem; line-height: 1.4; }
.data-src { margin: 0; font-size: .8125rem; color: #9FB0C8; }
@media (min-width: 900px) {
  .data-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: center; }
  .data-src { grid-column: 1 / -1; }
}

/* Où nous trouver et appel direct */
.contact-grid { display: grid; gap: 32px; }
.place h2 { margin-bottom: .6em; }
.place-list { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.place-list li { display: flex; align-items: flex-start; gap: 12px; }
.place-list .ico { width: 20px; height: 20px; margin-top: 3px; color: var(--green-d); }
.place-list a { color: var(--ink); font-weight: 600; }
.place-note { max-width: 52ch; color: var(--muted); }
.talk { padding: 28px 26px; border-radius: var(--r-lg); background: var(--ink); color: #D5DEEB; box-shadow: var(--sh-1); --focus: #F6B84A; }
.talk-eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.talk-title { margin: 0 0 8px; font-size: 1.5rem; color: #fff; }
.talk p { max-width: 46ch; }
.talk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 20px 0 0; }
.talk-pro { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9375rem; }
.talk-pro a { color: #fff; font-weight: 600; }
.talk-pro a:hover { color: var(--amber); }
.callback-wrap { margin-top: clamp(28px, 4vw, 48px); }
.callback-wrap .callback { margin: 0 auto; background: #fff; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }

/* Zones */
.zones-grid { display: grid; gap: 32px; }
.zones-grid h3 { margin: 0 0 8px; }
.zones-paris > p { color: var(--muted); font-size: .96875rem; }
.zones-others h3:not(:first-child) { margin-top: 24px; }
/* Villes qui ont leur page, groupées par département (accueil et page Zones) */
.city-groups { display: grid; gap: 22px; margin: 0 0 20px; }
.city-groups .city-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 10px; font-size: 1.0625rem; line-height: 1.3; }
.city-groups .city-group-title a { color: var(--ink); font-weight: 700; text-decoration: none; }
.city-groups .city-group-title a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.city-group-count { color: var(--muted); font-size: .9375rem; font-weight: 400; }
.city-group-count::before { content: "– "; }
.city-group .chips { margin: 0; }
.prose .city-groups { margin-top: 1em; margin-bottom: 1.6em; }
@media (min-width: 900px) { .zones-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 66px; padding: 8px 4px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--sh-1); color: var(--ink); }
.tile-n { font-size: 1.125rem; font-weight: 750; line-height: 1; }
.tile-s { font-size: .75rem; font-weight: 600; opacity: .85; line-height: 1.1; }
.heat-0 { background: #E9EEF4; }
.heat-1 { background: #FBEBC4; }
.heat-2 { background: #F8CF86; }
.heat-3 { background: #F2A56A; }
.heat-4 { background: #E9705F; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(5, 1fr); } .tile { min-height: 72px; } }

.tiles-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 1em; font-size: .75rem; color: var(--muted); }
.tiles-legend-t { flex: 0 0 100%; margin-right: 4px; font-weight: 700; }
.tiles-legend .lg { padding: 3px 8px; border-radius: 6px; color: var(--ink); font-weight: 600; }

/* Avis */
.reviews-wrap { text-align: center; }
.reviews-wrap h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.reviews { display: grid; justify-items: start; gap: 4px; }
.reviews-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; }
.reviews-wrap .reviews { justify-items: center; }
.reviews-wrap .reviews-score { justify-content: center; }
.reviews-n { font-size: 2.5rem; font-weight: 750; font-stretch: 106%; line-height: 1; color: var(--ink); }
.reviews-of { color: var(--muted); font-weight: 600; }
.reviews-c { color: var(--text); }
.reviews p { margin-bottom: .6em; }
.reviews-score .stars { align-self: center; }
.reviews-score .stars .ico { width: 26px; height: 26px; }
/* Avis clients recopiés dans les réglages */
.reviews .review-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 340px)); justify-content: start; gap: 16px; width: 100%; margin: 18px 0 14px; padding: 0; list-style: none; text-align: left; }
.reviews-wrap .review-cards { justify-content: center; }
.reviews .review-card::marker { content: none; }
.reviews .review-card { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.reviews .review-stars { margin: 0; line-height: 0; }
.review-stars .stars .ico { width: 20px; height: 20px; }
.reviews .review-text { margin: 0; padding: 0; border: 0; color: var(--text); font-size: inherit; }
.reviews .review-text p { margin: 0; font-size: .96875rem; line-height: 1.6; }
.reviews .review-author { margin: auto 0 0; padding-top: 4px; font-size: .875rem; font-weight: 700; color: var(--ink); }
.reviews .reviews-todo { margin: 12px 0; }

/* Ils nous font confiance : logos des agences, sur une seule ligne dès 640 px (trois par ligne en dessous) */
.clients-section { padding-bottom: 0; }
.clients-wrap { text-align: center; }
.clients-wrap h2 { margin-bottom: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 22px 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.clients .client { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 0; padding: 0; }
.clients .client::marker { content: none; }
.client img { display: block; width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; }
.client-name { font-size: 1.0625rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--muted); text-align: center; }
.clients-todo { margin: 16px 0 0; }
@media (min-width: 640px) {
  .clients { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 40px); }
  .client img { max-height: 44px; }
}

/* 5. Cartes et listes ---------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--ink-4); box-shadow: var(--sh-1); transform: translateY(-2px); color: var(--text); }
.card-ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: var(--pearl); color: var(--ink); transition: background-color .15s; }
.section--pearl .card-ico { background: var(--pearl); }
.card:hover .card-ico { background: var(--amber); }
.card-ico .ico { width: 24px; height: 24px; }
.card-title { margin: 0 0 6px; padding-right: 26px; font-size: 1.125rem; }
.card-text { margin: 0; color: var(--muted); font-size: .96875rem; line-height: 1.5; }
.card-meta { margin-top: auto; padding-top: 12px; font-size: .8125rem; font-weight: 600; color: var(--ink-3); }
.card-text + .card-meta { margin-top: 12px; }
.card-go { position: absolute; top: 22px; right: 18px; color: var(--faint); transition: color .15s, transform .15s; }
.card-go .ico { width: 20px; height: 20px; }
.card:hover .card-go { color: var(--ink); transform: translateX(3px); }

.cards-3 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.cards-compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cards-compact .card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; padding: 14px 16px; }
.cards-compact .card-ico { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
.cards-compact .card-ico .ico { width: 22px; height: 22px; }
.cards-compact .card-title { grid-column: 2; margin: 0; font-size: 1rem; padding-right: 22px; }
.cards-compact .card-text { grid-column: 2; font-size: .875rem; line-height: 1.4; }
.cards-compact .card-meta { display: none; }
.cards-compact .card-go { top: 16px; right: 14px; }
.cards-compact .card:not(:has(.card-ico)) { grid-template-columns: 1fr; align-content: start; align-items: start; }
.cards-compact .card:not(:has(.card-ico)) .card-title, .cards-compact .card:not(:has(.card-ico)) .card-text { grid-column: 1; }

.cards-situations { grid-template-columns: repeat(2, 1fr); }
.cards-situations .card { padding: 20px 18px; }
@media (max-width: 479px) { .cards-situations { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .cards-situations { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cards-situations { grid-template-columns: repeat(5, 1fr); } }

/* Mobile : cartes de l'accueil en lignes compactes (icône à gauche), pour ne pas allonger la page */
@media (max-width: 559px) {
  .cards-3, .cards-situations { gap: 10px; }
  .cards-3 .card, .cards-situations .card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; padding: 14px 16px; }
  .cards-3 .card-ico, .cards-situations .card-ico { grid-row: 1 / span 3; width: 44px; height: 44px; margin: 0; }
  .cards-3 .card-title, .cards-situations .card-title { grid-column: 2; margin: 0; font-size: 1.0625rem; padding-right: 24px; }
  .cards-3 .card-text, .cards-situations .card-text { grid-column: 2; font-size: .875rem; line-height: 1.4; }
  .cards-3 .card-meta { grid-column: 2; margin: 4px 0 0; padding: 0; font-size: .75rem; }
  .cards-3 .card-go, .cards-situations .card-go { top: 16px; right: 14px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
a.chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }

.posts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.post-card { display: flex; flex-direction: column; height: 100%; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.post-card:hover { border-color: var(--ink-4); box-shadow: var(--sh-1); transform: translateY(-2px); color: var(--text); }
.post-card time { margin-bottom: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-d); }
.post-card h2, .post-card h3, .post-card h4 { margin-bottom: 8px; font-size: 1.1875rem; }
.post-card p { margin: 0 0 14px; color: var(--muted); font-size: .96875rem; line-height: 1.55; }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 700; color: var(--ink); }
.post-more .ico { width: 18px; height: 18px; transition: transform .15s; }
.post-card:hover .post-more .ico { transform: translateX(3px); }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(3, 1fr); } .posts--list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts--list { grid-template-columns: repeat(3, 1fr); } }

.post-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 0; font-size: .875rem; color: var(--muted); }

.pagination { margin: 36px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.pagination a.page-numbers:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Questions fréquentes */
.faq-section h2 { margin-bottom: 18px; }
.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.faq-item[open] { border-color: var(--ink-4); box-shadow: var(--sh-1); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; border-radius: var(--r); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-d); }
.faq-item .ico-plus { width: 22px; height: 22px; color: var(--ink); transition: transform .2s; }
.faq-item[open] .ico-plus { transform: rotate(45deg); }
.faq-a { padding: 0 18px 8px; color: var(--text); }
.faq-a p { margin-bottom: .8em; }
.faq-a ul, .faq-a ol { margin: 0 0 .9em; padding-left: 1.2em; }

/* Bandeau d'appel à l'action */
.cta-band { padding: clamp(36px, 5vw, 60px) 0; background: var(--pearl); }
.cta-band.is-dark { position: relative; overflow: hidden; background: var(--ink); color: #D5DEEB; }
.cta-band.is-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 320px at 95% 0%, rgba(70, 110, 170, .35), transparent 62%); }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.cta-inner h2 { margin-bottom: .3em; font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); }
.cta-band.is-dark h2 { color: #fff; }
.cta-inner p { max-width: 56ch; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-inline { margin: 1.4em 0; }

/* 6. Pages --------------------------------------------------------------- */

.crumbs { margin: 0 0 18px; font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 1px 8px; border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint); transform: rotate(45deg); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.page-head { padding: 22px 0 34px; background: linear-gradient(180deg, var(--pearl) 0%, #fff 100%); border-bottom: 1px solid var(--line-2); }
.page-head-main > :not(.facts) { max-width: 820px; }
.head-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; background: var(--ink); color: var(--amber); }
.head-ico .ico { width: 28px; height: 28px; }
.page-title { margin-bottom: .4em; }
.nobr { display: inline-block; max-width: 100%; }
.page-lead { max-width: 64ch; margin: 0; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.page-head .facts { margin-top: 24px; }
.page-head--merci { background: linear-gradient(180deg, var(--green-bg) 0%, #fff 100%); }
/* Page Devis : l'en-tête se réduit au fil d'Ariane (le titre est dans un h1 masqué), le formulaire monte en haut de page. */
.page-head--devis { padding: 14px 0 10px; background: none; border-bottom: 0; }
.page-head--devis .crumbs { margin: 0; }
body.key-devis .layout { padding-top: 6px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0; }
.fact { padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.fact dt { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 3px 0 0; font-size: .96875rem; font-weight: 600; line-height: 1.4; color: var(--ink); }

.layout { padding-top: 36px; padding-bottom: 56px; }
.layout--aside { display: grid; gap: 36px; }
.entry { min-width: 0; }
@media (min-width: 1024px) {
  .layout--aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
  .aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

.aside { display: grid; gap: 16px; }
.aside-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.aside-quote { background: var(--ink); border-color: var(--ink); color: #D5DEEB; box-shadow: var(--sh-1); --focus: #F6B84A; }
.aside-eyebrow { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.aside-title { margin: 0 0 10px; font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.aside-quote .aside-title { color: #fff; }
.aside-price { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; }
.aside-list { margin: 0 0 18px; padding: 0; list-style: none; }
.aside-list li { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: .9375rem; }
.aside-list .ico { width: 18px; height: 18px; color: var(--amber); }
.aside-phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #fff; font-weight: 700; text-decoration: none; }
.aside-phone:hover { color: var(--amber); }
.aside-links ul { margin: 0; padding: 0; list-style: none; }
.aside-links li + li { border-top: 1px solid var(--line-2); }
.aside-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.aside-links a:hover { color: var(--green-d); }
.aside-links .ico { width: 18px; height: 18px; color: var(--faint); }

.toc { margin: 0 0 32px; padding: 18px 20px; background: var(--pearl); border-radius: var(--r); }
.toc-title { margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { display: grid; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.toc li { display: flex; gap: 12px; margin: 0; padding: 0; font-size: .96875rem; line-height: 1.4; }
.toc li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; border-radius: 1px; background: var(--green); }
.toc a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 3px 0; }
.toc a:hover { color: var(--green-d); text-decoration: underline; }
@media (min-width: 700px) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.related h2 { margin-bottom: 18px; }

/* 7. Contenu rédigé ------------------------------------------------------ */

.prose { max-width: 760px; }
.layout--wide .prose { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.1em 0 .55em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.7em 0 .45em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--green); font-weight: 700; }
.prose ol li::marker { color: var(--ink); }
.prose :where(a):not(.btn, .card, .chip, .post-card, .tile, .price-card, .aside-phone, .more) { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(50, 140, 94, .6); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose :where(a):not(.btn, .card, .chip, .post-card, .tile, .price-card):hover { text-decoration-color: var(--green); }
.prose img { border-radius: var(--r); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--amber); color: var(--ink); font-size: 1.125rem; }
.prose .cards, .prose .chips, .prose .tiles, .prose .town-list { margin-top: 1em; margin-bottom: 1.6em; padding-left: 0; }
.prose .cards li, .prose .chips li, .prose .tiles li { margin: 0; padding: 0; }
.prose .cards li::marker, .prose .chips li::marker { content: none; }

.lead-p { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); }

.steps-list { counter-reset: s; padding-left: 0 !important; list-style: none; display: grid; gap: 12px; }
.steps-list li { position: relative; counter-increment: s; margin: 0; padding: 14px 16px 14px 62px; background: var(--pearl); border-radius: var(--r); }
.steps-list li::before { content: counter(s); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.steps-list li::marker { content: none; }

.checklist { padding-left: 0 !important; list-style: none; }
.checklist li { position: relative; margin: .5em 0; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2325704A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checklist li::marker { content: none; }

.contact-list { padding-left: 0 !important; list-style: none; display: grid; gap: 10px; }
.contact-list li { margin: 0; padding: 12px 16px; background: var(--pearl); border-radius: 12px; }
.contact-list li::marker { content: none; }
.contact-list strong { display: inline-block; min-width: 7.5em; color: var(--muted); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.sources { margin-top: 2em; padding-top: 14px; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.55; color: var(--muted); }
.verified { display: flex; gap: 10px; align-items: flex-start; margin: 2em 0 0; padding: 14px 16px; background: var(--green-bg); border-radius: 12px; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.verified .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--green-d); }
.legal-note { padding: 12px 16px; background: var(--amber-bg); border-radius: 12px; font-size: .9375rem; }
.town-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 24px; padding-left: 0 !important; list-style: none; }
.town-list li { margin: 0; padding: 4px 0; }
.town-list li::marker { content: none; }

/* Tableaux */
.info-wrap, .matrix-wrap, .price-table, .rank-wrap { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.info-table, .matrix, .price-table table, .rank { width: 100%; border-collapse: collapse; font-size: .96875rem; }
.info-table caption { padding: 14px 16px 6px; text-align: left; font-weight: 700; color: var(--ink); }
.info-table th, .info-table td, .matrix th, .matrix td, .price-table th, .price-table td, .rank th, .rank td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.info-table thead th, .matrix thead th, .price-table thead th, .rank thead th { background: var(--pearl); color: var(--ink); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.info-table tbody th, .matrix tbody th, .price-table tbody th, .rank tbody th { font-weight: 700; color: var(--ink); }
.info-table tr:last-child > *, .matrix tr:last-child > *, .price-table tr:last-child > *, .rank tr:last-child > * { border-bottom: 0; }
.info-table small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.price-val { font-weight: 700; color: var(--ink); white-space: nowrap; }
.matrix td { text-align: center; }
.matrix th:first-child, .matrix td.matrix-when { text-align: left; }
.matrix td.matrix-when { min-width: 260px; color: var(--muted); font-size: .9375rem; }
.matrix a { text-decoration: none; }
.matrix a:hover { text-decoration: underline; }
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; vertical-align: middle; }
.mk .ico { width: 15px; height: 15px; }
.mk-yes { background: var(--green); color: #fff; }
.mk-cond { background: var(--amber-bg); color: #8A5A00; box-shadow: inset 0 0 0 1.5px var(--amber); }
.mk-no { color: var(--faint); }
.matrix-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .875rem; color: var(--muted); }
.matrix-legend .mk { width: 22px; height: 22px; margin-left: 8px; }
.matrix-legend .mk:first-child { margin-left: 0; }

/* Calendrier des interdictions de location */
.timeline { position: relative; margin: 1.6em 0 !important; padding: 0 !important; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 24px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--line); }
.tl-item { position: relative; display: flex; gap: 18px; margin: 0 0 18px !important; padding: 0 !important; }
.tl-item::marker { content: none; }
.tl-badge { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.tl-badge .dpe { width: 32px; height: 32px; font-size: 1.1rem; }
.tl-item.is-done .tl-badge { border-color: var(--coral); }
.tl-item.is-next .tl-badge { border-color: var(--amber); }
.tl-item > div { padding-top: 2px; }
.tl-date { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.tl-item p { margin-bottom: 0; }
.tl-state { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--pearl); color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
.is-done .tl-state { background: var(--coral-bg); color: var(--coral-d); }
.is-next .tl-state { background: var(--amber-bg); color: #8A5A00; }

/* Étiquettes du DPE */
.dpe { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 7px; color: var(--ink); font-size: .9375rem; font-weight: 800; line-height: 1; vertical-align: middle; }
.dpe-A { background: var(--dpe-a); }
.dpe-B { background: var(--dpe-b); }
.dpe-C { background: var(--dpe-c); }
.dpe-D { background: var(--dpe-d); }
.dpe-E { background: var(--dpe-e); }
.dpe-F { background: var(--dpe-f); }
.dpe-G { background: var(--dpe-g); color: #fff; }
.dpe-table tbody th { width: 90px; }

/* 8. Chiffres locaux (ADEME) -------------------------------------------- */

.ldata { margin: 2.4em 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.ldata h2 { margin-top: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.ldata-src { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.ldata-keys { display: grid; gap: 10px; margin: 18px 0 22px; }
.ldata .key { padding: 14px 16px; background: var(--pearl); border-radius: 12px; }
.ldata .key-n { display: block; margin-bottom: 4px; font-size: 2rem; font-weight: 750; font-stretch: 106%; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.ldata .key-t { display: block; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.ldata-grid { display: grid; gap: 22px; }
.ldata-fig { margin: 0; }
.ldata-fig--wide { margin-top: 22px; }
.ldata-fig figcaption { margin-bottom: 10px; font-size: .875rem; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .ldata-keys { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ldata-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.bars { display: grid; gap: 7px; margin: 0 !important; padding: 0 !important; list-style: none; }
.bars li { margin: 0; padding: 0; }
.bars li::marker { content: none; }
.bar-row { display: grid; grid-template-columns: minmax(84px, 112px) 1fr minmax(84px, auto); align-items: center; gap: 10px; font-size: .875rem; }
.bar-lab { color: var(--ink); font-weight: 600; }
.bar-track { display: block; height: 12px; border-radius: 6px; background: var(--pearl-2); overflow: hidden; }
.bar { display: block; width: 100%; height: 12px; }
.bar-fill { fill: var(--ink-4); }
.bar-val { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bar-val small { font-weight: 500; color: var(--muted); }
.bars-dpe .bar-row { grid-template-columns: 34px 1fr minmax(84px, auto); }
.bars-dpe .bar-row:nth-child(1) .bar-fill { fill: var(--dpe-a); }
.bars-dpe .bar-row:nth-child(2) .bar-fill { fill: var(--dpe-b); }
.bars-dpe .bar-row:nth-child(3) .bar-fill { fill: var(--dpe-c); }
.bars-dpe .bar-row:nth-child(4) .bar-fill { fill: var(--dpe-d); }
.bars-dpe .bar-row:nth-child(5) .bar-fill { fill: var(--dpe-e); }
.bars-dpe .bar-row:nth-child(6) .bar-fill { fill: var(--dpe-f); }
.bars-dpe .bar-row:nth-child(7) .bar-fill { fill: var(--dpe-g); }
.bars-dpe .dpe { width: 26px; height: 26px; font-size: .8125rem; }

.rank td:first-child { width: 56px; color: var(--muted); font-weight: 700; }
.rank-bar { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.rank-bar .bar { flex: 1; height: 10px; border-radius: 5px; background: var(--pearl-2); }
.rank-bar .bar-fill { fill: var(--coral); }
.rank-bar span { min-width: 4.5em; font-weight: 700; color: var(--ink); text-align: right; }

.sitemap { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sitemap h2 { margin: 0 0 10px; font-size: 1.125rem; }
.sitemap ul { margin: 0; padding: 0; list-style: none; }
.sitemap li { margin: 0; padding: 4px 0; }
.sitemap li::marker { content: none; }

/* 9. Pied de page et barre d'actions mobile ----------------------------- */

.site-footer { margin-top: 0; padding: 56px 0 28px; background: var(--ink); color: #B9C6D8; font-size: .96875rem; }
.foot-grid { display: grid; gap: 36px; }
.foot-logo { display: inline-block; margin-bottom: 16px; }
.foot-logo img { display: block; height: 40px; width: auto; }
.foot-brand p { max-width: 42ch; }
.foot-contact { display: grid; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.foot-contact li { display: flex; align-items: flex-start; gap: 10px; }
.foot-contact .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--amber); }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { color: var(--amber); }
.foot-cta { margin: 20px 0 0; }
.foot-cta .btn { color: var(--ink); text-decoration: none; }
.foot-title { margin: 0 0 12px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { margin: 0; }
.foot-col a { display: inline-block; padding: 5px 0; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem; color: #9FB0C8; }
.foot-bottom p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.foot-legal a { text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr .8fr; gap: 40px; } .foot-brand { grid-column: auto; } }

/* Barre d'actions fixe sur mobile */
.dock { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14, 27, 46, .1); }
  .dock .btn { flex: 1; min-height: 46px; padding: 0 10px; font-size: .96875rem; }
}

/* Page de remerciement chargée dans le cadre du module : version réduite */
html.is-framed .site-header, html.is-framed .site-footer, html.is-framed .dock, html.is-framed .draft-bar, html.is-framed .crumbs, html.is-framed .cta-band { display: none !important; }
html.is-framed body { padding-bottom: 0; }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 10. Impression ------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .dock, .draft-bar, .aside, .module, .cta-band, .toc, .skip, .cta-inline { display: none !important; }
  body { padding: 0; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .page-head { background: none; border: 0; padding: 0; }
  .layout--aside { display: block; }
  .prose { max-width: none; }
}

/* Module : texte de chargement masqué dès que le cadre a répondu */
.module-frame.is-loaded .module-loading { display: none; }
