/* Aknel Couverture : feuille unique du site */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Couleurs : ardoise, zinc, chaux et tuile */
  --ardoise: #1b2025;
  --ardoise-2: #252b31;
  --ardoise-3: #323a41;
  --zinc: #8d979f;
  --zinc-clair: #cfd5d9;
  --chaux: #f4f1ec;
  --sable: #e8e1d6;
  --blanc: #ffffff;
  --tuile: #a9482a;
  --tuile-vif: #c65d39;
  --tuile-pale: #f3e2d9;
  --texte: #1b2025;
  --texte-2: #4a535b;
  --texte-inv: #f4f1ec;
  --texte-inv-2: #b9c0c5;
  --ligne: #ddd5c9;
  --ligne-inv: rgba(255, 255, 255, 0.14);

  --titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rythme vertical : trois valeurs */
  --section-gap: clamp(4.5rem, 2.5rem + 6vw, 8rem);
  --section-gap-tight: clamp(3rem, 2rem + 3vw, 4.5rem);
  --page-top: clamp(5rem, 4rem + 3vw, 6.5rem);

  --largeur: 76rem;
  --gouttiere: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --rayon: 0.375rem;
  --rayon-l: 0.75rem;
  --header-h: 4.75rem;
  --ombre: 0 1px 2px rgba(27, 32, 37, 0.06), 0 8px 24px rgba(27, 32, 37, 0.07);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: clamp(1rem, 0.625rem + 0.47vw, 1.1875rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--corps);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--chaux);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
strong { font-weight: 650; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--titre);
  font-stretch: 112%;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.2rem + 5.2vw, 5.4rem); line-height: 1; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.15rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem); font-stretch: 105%; font-weight: 700; line-height: 1.2; margin-bottom: 0.35em; }
::selection { background: var(--tuile); color: var(--blanc); }
:focus-visible { outline: 2px solid var(--tuile-vif); outline-offset: 3px; border-radius: 2px; }

.conteneur { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem;
  background: var(--blanc); color: var(--texte); border-radius: var(--rayon); transition: top 0.2s;
}
.lien-evitement:focus { top: 1rem; }

/* ---------- Boutons (le bouton du header est le modèle) ---------- */
.btn {
  --btn-fond: var(--tuile);
  --btn-texte: var(--blanc);
  --btn-bord: var(--tuile);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font-family: var(--titre); font-stretch: 108%; font-weight: 650; font-size: 0.95rem; line-height: 1.1;
  letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  color: var(--btn-texte); background: var(--btn-fond); border: 1.5px solid var(--btn-bord);
  border-radius: var(--rayon); cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { --btn-fond: #923b20; --btn-bord: #923b20; }
.btn:active { transform: translateY(1px); }
.btn--clair { --btn-fond: transparent; --btn-texte: var(--blanc); --btn-bord: rgba(255, 255, 255, 0.55); }
.btn--clair:hover { --btn-fond: var(--blanc); --btn-texte: var(--ardoise); --btn-bord: var(--blanc); }
.btn--sombre { --btn-fond: transparent; --btn-texte: var(--ardoise); --btn-bord: var(--ardoise); }
.btn--sombre:hover { --btn-fond: var(--ardoise); --btn-texte: var(--blanc); --btn-bord: var(--ardoise); }
a.btn:not([href]), button.btn[aria-disabled="true"] { cursor: default; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(244, 241, 236, 0.96); color: var(--texte); box-shadow: 0 1px 0 var(--ligne);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.js .entete:not(.est-defile):not(.est-ouvert) { background: transparent; color: var(--blanc); box-shadow: none; }
.entete.est-defile, .entete.est-ouvert {
  background: rgba(244, 241, 236, 0.96); color: var(--texte);
  box-shadow: 0 1px 0 var(--ligne);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.entete__barre {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
}
.logo {
  justify-self: start; display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: inherit; line-height: 1;
}
.logo__marque { width: 2.1rem; height: 2.1rem; flex: none; }
.logo__texte { display: flex; flex-direction: column; gap: 0.2rem; }
.logo__nom { font-family: var(--titre); font-stretch: 125%; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.06em; }
.logo__metier { font-family: var(--titre); font-stretch: 112%; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.75; }
.nav { justify-self: center; }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.4rem, 0.5rem + 2vw, 2.6rem); }
.nav__lien {
  position: relative; display: inline-block; padding: 0.4rem 0;
  font-family: var(--titre); font-stretch: 108%; font-weight: 600; font-size: 1rem;
  text-decoration: none; color: inherit; white-space: nowrap;
}
.nav__lien::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tuile-vif);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__lien[href]:hover::after, .nav__lien[aria-current="page"]::after { transform: scaleX(1); }
.nav__lien:not([href]) { cursor: default; }
.entete__actions { justify-self: end; display: flex; align-items: center; gap: 0.75rem; }
.burger {
  display: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  border-radius: var(--rayon);
}
.burger span { display: block; width: 1.4rem; height: 2px; margin: 0.32rem auto; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.est-ouvert .burger span:nth-child(1) { transform: translateY(0.45rem) rotate(45deg); }
.est-ouvert .burger span:nth-child(2) { opacity: 0; }
.est-ouvert .burger span:nth-child(3) { transform: translateY(-0.45rem) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 4rem; }
  .entete__barre { grid-template-columns: 1fr auto; }
  .burger { display: block; }
  .entete__actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; justify-self: stretch;
    background: var(--chaux); color: var(--texte);
    padding: 1.25rem var(--gouttiere) 2rem; box-shadow: 0 12px 24px rgba(27, 32, 37, 0.12);
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .est-ouvert .nav { visibility: visible; opacity: 1; transform: none; }
  .nav__liste { flex-direction: column; gap: 0; }
  .nav__lien { display: block; padding: 0.9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--ligne); }
  .nav__lien::after { display: none; }
  .nav__cta { display: flex; margin-top: 1.25rem; width: 100%; }
}
@media (min-width: 961px) { .nav__cta { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; height: auto;
  display: grid; align-items: start;
  /* Titre à la même hauteur sur toutes les pages */
  padding: calc(var(--header-h) + (100svh - var(--header-h)) * 0.17) 0 2.5rem;
  color: var(--blanc); background: var(--ardoise);
  clip-path: inset(0);
}
.hero__fond { position: fixed; inset: 0; height: 100lvh; z-index: -2; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 24, 28, 0.62) 0%, rgba(20, 24, 28, 0.38) 40%, rgba(20, 24, 28, 0.58) 75%, rgba(20, 24, 28, 0.82) 100%);
}
.hero__contenu { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ariane { position: absolute; top: calc(var(--header-h) + 1.25rem); left: 0; right: 0; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.ariane li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.ariane a { text-decoration: none; }
.ariane a:hover { text-decoration: underline; }
.hero h1 { max-width: 15ch; margin: 0 auto 0.45em; }
.hero__phrase { max-width: 36rem; margin: 0 auto 1.9rem; font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); color: rgba(255, 255, 255, 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.hero__services {
  list-style: none; margin: clamp(2.2rem, 1.5rem + 3vw, 3.6rem) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.8rem;
  font-family: var(--titre); font-stretch: 108%; font-weight: 600; font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}
.hero__services li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__services svg { width: 1.25rem; height: 1.25rem; color: #f0a585; }
.hero--interieur h1 { max-width: 18ch; }

/* Apparition douce du hero */
.js .hero [data-apparition] { opacity: 0; transform: translateY(14px); }
.js .hero.est-pret [data-apparition] {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .hero__fond img { opacity: 0; transform: scale(1.03); transition: opacity 1.4s var(--ease), transform 2.4s var(--ease); }
.js .hero.est-pret .hero__fond img { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-gap); }
.section--chaux { background: var(--chaux); }
.section--blanc { background: var(--blanc); }
.section--sable { background: var(--sable); }
.section--ardoise { background: var(--ardoise); color: var(--texte-inv); }
.section--ardoise p { color: var(--texte-inv-2); }
.section--ardoise strong { color: var(--blanc); }
.entete-section { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.entete-section p { color: var(--texte-2); font-size: 1.06rem; }
.section--ardoise .entete-section p { color: var(--texte-inv-2); }

/* Révélation au défilement (rien de caché sans JS) */
.js [data-revele] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-revele].est-visible { opacity: 1; transform: none; }

/* ---------- Nos travaux ---------- */
.travaux { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: stretch; }
.travaux__photo { position: relative; margin: 0; border-radius: var(--rayon-l); overflow: hidden; background: var(--sable); min-height: 26rem; }
.travaux__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.travaux__legende {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  padding: 0.85rem 1rem; border-radius: var(--rayon);
  background: rgba(27, 32, 37, 0.78); color: var(--blanc); font-size: 0.9rem; line-height: 1.45;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.travaux__corps { display: flex; flex-direction: column; justify-content: center; }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ligne); }
.service { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; padding: 1.4rem 1.25rem 1.4rem 0; border-bottom: 1px solid var(--ligne); }
.service:nth-child(2n) { padding-left: 1.25rem; padding-right: 0; border-left: 1px solid var(--ligne); }
.service__icone {
  grid-row: span 2; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--tuile-pale); color: var(--tuile);
}
.service__icone svg { width: 1.35rem; height: 1.35rem; }
.service h3 { margin: 0.2rem 0 0.15rem; }
.service p { margin: 0; color: var(--texte-2); font-size: 0.94rem; line-height: 1.5; }

/* ---------- Signes à surveiller ---------- */
.alertes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.alertes__photo { margin: 0; border-radius: var(--rayon-l); overflow: hidden; aspect-ratio: 3 / 2; background: var(--ardoise-3); }
.alertes__photo img { width: 100%; height: 100%; object-fit: cover; }
.signes { list-style: none; margin: 0 0 2rem; padding: 0; }
.signe { display: flex; gap: 1rem; align-items: flex-start; padding: 0.95rem 0; border-bottom: 1px solid var(--ligne-inv); }
.signe:first-child { border-top: 1px solid var(--ligne-inv); }
.signe svg { width: 1.5rem; height: 1.5rem; flex: none; margin-top: 0.1rem; color: #f0a585; }
.signe p { margin: 0; line-height: 1.5; }

/* ---------- Toitures (matériaux) ---------- */
.materiaux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.materiau { background: var(--chaux); border-radius: var(--rayon-l); padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; }
.materiau__dessin { height: 5.5rem; margin: 0 0 1.25rem; color: var(--tuile); }
.materiau__dessin svg { width: 100%; height: 100%; }
.materiau--zinc .materiau__dessin, .materiau--ardoise .materiau__dessin { color: var(--ardoise-3); }
.materiau p { margin: 0; color: var(--texte-2); font-size: 0.94rem; line-height: 1.5; }
.batiments { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.batiments__titre { font-family: var(--titre); font-stretch: 108%; font-weight: 650; margin-right: 0.5rem; }
.puce {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem;
  border: 1px solid var(--ligne); border-radius: 999px; background: var(--blanc); font-size: 0.92rem;
}
.puce svg { width: 1.1rem; height: 1.1rem; color: var(--tuile); }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.zone__carte { margin: 0; position: relative; }
.carte { width: 100%; height: auto; overflow: hidden; border-radius: var(--rayon-l); background: #ece5da; }
.carte__communes path { fill: #e3dbcf; stroke: var(--sable); stroke-width: 1; transition: fill 0.25s; }
.carte__communes path:hover { fill: #d6cbbb; }
.carte__lyon path { fill: var(--tuile); stroke: var(--sable); stroke-width: 1.2; transition: fill 0.25s; }
.carte__lyon path:hover { fill: #8f3b21; }
.carte__num text { fill: var(--blanc); font-family: var(--titre); font-weight: 700; font-size: 14px; text-anchor: middle; pointer-events: none; }
.carte__etiquettes text { fill: #5f574e; font-family: var(--corps); font-weight: 500; font-size: 11.5px; text-anchor: middle; pointer-events: none; }
.carte__siege { fill: var(--ardoise); stroke: var(--blanc); stroke-width: 2.5; }
.zone__legende { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; font-size: 0.88rem; color: var(--texte-2); }
.zone__legende span { display: inline-flex; align-items: center; gap: 0.5rem; }
.zone__legende i { width: 0.85rem; height: 0.85rem; border-radius: 3px; display: inline-block; }
.communes { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.communes li { padding: 0.38rem 0.75rem; border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); font-size: 0.88rem; }
.communes li.est-lyon { background: var(--tuile); border-color: var(--tuile); color: var(--blanc); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq__liste { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.3rem 0; font-family: var(--titre); font-stretch: 105%; font-weight: 650; font-size: 1.1rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.75rem; height: 0.75rem; margin-right: 0.25rem;
  border-right: 2px solid var(--tuile); border-bottom: 2px solid var(--tuile);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq__reponse { padding: 0 0 1.4rem; color: var(--texte-2); max-width: 46rem; }
.faq__reponse p:last-child { margin-bottom: 0; }

/* ---------- Section contact (fin de chaque page) ---------- */
.appel { position: relative; background: var(--sable); color: var(--texte); padding-block: var(--section-gap); overflow: hidden; }
.appel__haut { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.appel h2 { margin-bottom: 0.35em; }
.appel__haut p { color: var(--texte-2); font-size: 1.08rem; max-width: 34rem; margin: 0; }
.appel__boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.frise { list-style: none; margin: clamp(2.5rem, 2rem + 2vw, 3.75rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.frise::before { content: ""; position: absolute; top: 1.5rem; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--tuile), rgba(169, 72, 42, 0.2)); }
.etape { position: relative; text-align: center; padding: 0 0.5rem; }
.etape__icone {
  position: relative; width: 3rem; height: 3rem; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sable); border: 2px solid var(--tuile); color: var(--tuile);
}
.etape__icone svg { width: 1.3rem; height: 1.3rem; }
.etape h3 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--texte); }
.etape p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--texte-2); }

/* ---------- Pied de page ---------- */
.pied { background: var(--ardoise); color: var(--texte-inv-2); padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 2rem; font-size: 0.92rem; }
.pied__colonnes { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.pied__titre { font-family: var(--titre); font-weight: 700; font-size: 0.8rem; font-stretch: 112%; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blanc); margin-bottom: 1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.pied a { text-decoration: none; }
.pied a[href]:hover { color: var(--blanc); text-decoration: underline; }
.pied address { font-style: normal; line-height: 1.7; }
.pied__marque {
  font-family: var(--titre); font-stretch: 125%; font-weight: 800; letter-spacing: 0.04em; line-height: 0.8;
  font-size: clamp(4.5rem, 0.5rem + 17vw, 15.5rem); color: var(--ardoise-3);
  margin: 0.5rem 0 1.5rem; white-space: nowrap; text-align: center; user-select: none;
}
.pied__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ligne-inv); font-size: 0.82rem; }

/* ---------- Page contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.formulaire { background: var(--blanc); border-radius: var(--rayon-l); padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem); box-shadow: var(--ombre); }
.formulaire h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.champ { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label, .champ legend { font-weight: 600; font-size: 0.92rem; }
.champ .aide { font-size: 0.82rem; color: var(--texte-2); }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--texte);
  padding: 0.75rem 0.9rem; border: 1.5px solid #7d878f; border-radius: var(--rayon); background: var(--blanc);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.champ select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231b2025' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--tuile); box-shadow: 0 0 0 3px rgba(169, 72, 42, 0.15); }
.depot {
  position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; cursor: pointer;
  border: 1.5px dashed #7d878f; border-radius: var(--rayon); background: var(--chaux); font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.depot:hover { border-color: var(--tuile); background: var(--tuile-pale); }
.depot:focus-within { outline: 2px solid var(--tuile-vif); outline-offset: 2px; }
.depot svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--tuile); }
.depot__texte { min-width: 0; overflow-wrap: anywhere; }
.depot__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choix { border: 0; padding: 0; margin: 0; }
.choix__options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.choix__options label { font-weight: 500; }
.choix__options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix__options span {
  display: inline-block; padding: 0.55rem 0.95rem; border: 1.5px solid #7d878f; border-radius: 999px; cursor: pointer; font-size: 0.92rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.choix__options input:checked + span { background: var(--ardoise); border-color: var(--ardoise); color: var(--blanc); }
.choix__options input:focus-visible + span { outline: 2px solid var(--tuile-vif); outline-offset: 2px; }
.consentement { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9rem; color: var(--texte-2); }
.consentement input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none; accent-color: var(--tuile); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__bas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.formulaire__statut { margin: 0; font-size: 0.95rem; }
.formulaire__statut.est-ok { color: #2d6a3e; }
.formulaire__statut.est-erreur { color: #a3271c; }
.contact__aside { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.carte-info { background: var(--ardoise-2); color: var(--texte-inv); border-radius: var(--rayon-l); padding: 1.6rem 1.5rem; }
.carte-info h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.carte-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.carte-info li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--texte-inv-2); font-size: 0.94rem; line-height: 1.5; }
.carte-info li svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.15rem; color: #f0a585; }
.carte-info strong { color: var(--blanc); display: block; }
.carte-info--clair { background: var(--blanc); color: var(--texte); box-shadow: var(--ombre); }
.carte-info--clair li { color: var(--texte-2); }
.carte-info--clair strong { color: var(--texte); }
.carte-info--clair li svg { color: var(--tuile); }

/* ---------- Pages légales ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.legal__sommaire { position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: 0.92rem; }
.legal__sommaire p { font-family: var(--titre); font-stretch: 108%; font-weight: 650; color: var(--texte); margin-bottom: 0.75rem; }
.legal__sommaire ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; color: var(--texte-2); }
.legal__sommaire a { text-decoration: none; }
.legal__sommaire a:hover { color: var(--tuile); }
.legal__texte { max-width: 46rem; }
.legal__texte h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); margin-top: 2.5rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal__texte h2:first-child { margin-top: 0; }
.legal__texte p, .legal__texte li { color: var(--texte-2); }
.legal__texte ul { padding-left: 1.2rem; }
.legal__texte dl { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 0.5rem 1.5rem; margin: 0 0 1em; }
.legal__texte dt { font-weight: 600; color: var(--texte); }
.legal__texte dd { margin: 0; color: var(--texte-2); }
.a-fournir { background: var(--tuile-pale); color: #7d321b; padding: 0.05em 0.4em; border-radius: 3px; font-size: 0.92em; }
.legal__date { font-size: 0.88rem; color: var(--texte-2); }

/* ---------- 404 ---------- */
.erreur { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ardoise); color: var(--texte-inv); padding: calc(var(--header-h) + 2rem) 0 3rem; }
.erreur p { color: var(--texte-inv-2); margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .materiaux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .travaux, .alertes, .zone, .faq, .contact, .legal { grid-template-columns: minmax(0, 1fr); }
  .travaux__photo { min-height: 0; aspect-ratio: 3 / 4; max-height: 34rem; }
  .alertes__photo { order: -1; }
  .appel__haut { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .contact__aside, .legal__sommaire { position: static; }
  .pied__colonnes { grid-template-columns: 1fr 1fr; }
  .pied__colonnes > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .frise { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .frise::before { top: 1.5rem; bottom: 1.5rem; left: 1.5rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--tuile), rgba(169, 72, 42, 0.2)); }
  .etape { display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; text-align: left; padding: 0 0 1.4rem; }
  .etape__icone { grid-row: span 2; margin: 0; }
  .etape h3 { margin-top: 0.7rem; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .service, .service:nth-child(2n) { padding: 1.2rem 0; border-left: 0; }
  .materiaux { grid-template-columns: minmax(0, 1fr); }
  .materiau { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1.1rem; align-items: center; padding: 1.1rem; }
  .materiau__dessin { grid-row: span 2; width: 5.5rem; height: 3.5rem; margin: 0; }
  .materiau h3 { align-self: end; }
  .materiau p { align-self: start; }
  .carte__etiquettes text { font-size: 17px; }
  .carte__num text { font-size: 20px; }
  .champs { grid-template-columns: minmax(0, 1fr); }
  .pied__colonnes { grid-template-columns: minmax(0, 1fr); }
  .hero__services { gap: 0.5rem 1.2rem; font-size: 0.88rem; }
  .appel__boutons .btn, .hero__actions .btn { flex: 1 1 auto; }
  .legal__texte dl { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .legal__texte dd { margin-bottom: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js [data-revele], .js .hero [data-apparition], .js .hero__fond img { opacity: 1 !important; transform: none !important; }
}

/* ---------- Ajouts de la structure SEO (src/construire.py) ---------- */

/* Menu Services : liste déroulante sur ordinateur, liste ouverte sur mobile */
.nav__groupe { position: relative; }
.nav__bouton { background: none; border: 0; cursor: pointer; color: inherit; display: inline-flex; align-items: center; gap: 0.4rem; }
.nav__bouton::before {
  content: ""; order: 2; width: 0.45rem; height: 0.45rem; margin-top: -0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.nav__bouton[aria-current="true"]::after { transform: scaleX(1); }
.nav__sous { list-style: none; margin: 0; padding: 0; }
.nav__sous a { display: block; text-decoration: none; }
@media (min-width: 961px) {
  .nav__sous {
    position: absolute; top: calc(100% + 0.6rem); left: -1rem; min-width: 17rem; padding: 0.5rem;
    background: var(--blanc); color: var(--texte); border-radius: var(--rayon-l); box-shadow: var(--ombre);
    visibility: hidden; opacity: 0; transform: translateY(-0.4rem);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav__groupe:hover .nav__sous, .nav__groupe:focus-within .nav__sous, .nav__bouton[aria-expanded="true"] + .nav__sous {
    visibility: visible; opacity: 1; transform: none;
  }
  .nav__sous a { padding: 0.55rem 0.75rem; border-radius: var(--rayon); font-size: 0.95rem; }
  .nav__sous a:hover, .nav__sous a[aria-current] { background: var(--chaux); color: var(--tuile); }
  .nav__sous-sep { border-top: 1px solid var(--ligne); margin-top: 0.4rem; padding-top: 0.4rem; }
}
@media (max-width: 960px) {
  .nav { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .nav__bouton { width: 100%; justify-content: space-between; text-align: left; }
  .nav__bouton::before { display: none; }
  .nav__sous { padding: 0.25rem 0 0.5rem 1rem; border-bottom: 1px solid var(--ligne); }
  .nav__sous a { padding: 0.5rem 0; color: var(--texte-2); }
  .nav__sous a[aria-current] { color: var(--tuile); }
}

/* Téléphone dans l'en-tête et barre d'appel mobile (affichés seulement si site.toml contient un numéro) */
.entete__tel { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--titre); font-weight: 650; text-decoration: none; color: inherit; white-space: nowrap; }
.entete__tel svg { width: 1.1rem; height: 1.1rem; color: var(--tuile-vif); }
.entete__barre--sobre { grid-template-columns: 1fr auto; }
.barre-appel { display: none; }
@media (max-width: 760px) {
  .entete__tel span { display: none; }
  .barre-appel {
    display: grid; grid-template-columns: 2fr 1fr; gap: 0.5rem; position: fixed; inset: auto 0 0; z-index: 40;
    padding: 0.6rem var(--gouttiere) calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(244, 241, 236, 0.97);
    box-shadow: 0 -1px 0 var(--ligne);
  }
  .barre-appel .btn { justify-content: center; }
  body:has(.barre-appel) .pied { padding-bottom: 5.5rem; }
}

/* Hero sans photo (pages intérieures sans visuel) */
.hero--simple { min-height: 0; padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); padding-top: calc(var(--header-h) + 5rem); }
.hero--simple::before { background: linear-gradient(160deg, var(--ardoise-2), var(--ardoise)); }

/* Texte courant */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--texte-2); }
.prose a:not(.btn) { color: var(--tuile); }
.prose--centre { margin-inline: auto; text-align: center; }
.lien-fleche { font-weight: 600; color: var(--tuile); text-decoration: none; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }
.service h3 a, .materiau h3 a, .puce a { color: inherit; text-decoration: none; }
.service h3 a:hover, .materiau h3 a:hover, .puce a:hover { color: var(--tuile); text-decoration: underline; }

/* Cartes de liens : maillage, listes d'articles, de secteurs, de réalisations */
.cartes-liens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.carte-lien a {
  display: flex; flex-direction: column; gap: 0.4rem; height: 100%; padding: 1.25rem 1.3rem;
  background: var(--chaux); border: 1px solid var(--ligne); border-radius: var(--rayon-l); text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.carte-lien a:hover { border-color: var(--tuile); transform: translateY(-2px); }
.carte-lien__nom { font-family: var(--titre); font-stretch: 108%; font-weight: 650; font-size: 1.08rem; color: var(--texte); }
.carte-lien__desc { font-size: 0.9rem; line-height: 1.5; color: var(--texte-2); }
.maillage h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-bottom: 1.5rem; }
.titre-suivant { margin-top: 3rem; }
.lien-a-venir { color: inherit; }

/* Plan du site */
.plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 2.5rem 3rem; }
.plan h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.plan a { color: var(--texte-2); text-decoration: none; }
.plan a:hover { color: var(--tuile); text-decoration: underline; }
.plan__n2 { padding-left: 1rem; font-size: 0.94rem; }
.plan__n3 { padding-left: 2rem; font-size: 0.9rem; }

/* Landing pages : pied réduit */
.pied--sobre { padding: 1.5rem 0; }

/* Aperçu local des brouillons (aknel-couverture-apercu/, jamais en ligne) */
.bandeau-apercu { position: fixed; inset: auto auto 1rem 1rem; z-index: 60; padding: 0.5rem 0.9rem; border-radius: 999px; background: #7d321b; color: #fff; font-size: 0.82rem; font-weight: 600; }
.squelette { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
.squelette__brief { background: var(--chaux); border: 1px dashed #7d878f; border-radius: var(--rayon-l); padding: 1.5rem; font-size: 0.9rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.squelette__brief dl { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.45rem 1rem; margin: 0 0 1rem; }
.squelette__brief dt { font-weight: 600; }
.squelette__brief dd { margin: 0; color: var(--texte-2); overflow-wrap: anywhere; }
.squelette__brief h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }
.squelette__brief ul { padding-left: 1.1rem; margin: 0; color: var(--texte-2); }
.squelette__brief small { color: var(--zinc); }
.squelette__etiquette { font-family: var(--titre); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; color: var(--tuile); }
.squelette__aide { margin-top: 1.25rem; font-size: 0.85rem; color: var(--texte-2); }
.squelette__section { padding: 1.25rem 0; border-bottom: 1px solid var(--ligne); }
.squelette__section h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.hero__phrase-sombre { color: var(--texte-2); }
@media (max-width: 960px) {
  .squelette { grid-template-columns: minmax(0, 1fr); }
  .squelette__brief { position: static; }
  .squelette__brief dl { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .squelette__brief dd { margin-bottom: 0.5rem; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .pied__colonnes { grid-template-columns: 1fr 1fr 1fr; }
  .pied__colonnes > :first-child { grid-column: 1 / -1; }
}

/* ---------- Composants de rédaction (pages services, zones, conseils) ---------- */
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose figure { margin: 2rem 0; }
/* Deux sections de même fond qui se suivent : espacement réduit mais jamais nul */
.section--blanc + .section--blanc, .section--chaux + .section--chaux { padding-top: var(--section-gap-tight); }
.visuel-a-venir { margin: 2rem 0; }
.visuel-a-venir__cadre {
  aspect-ratio: 3 / 2; display: grid; place-content: center; justify-items: center; gap: 0.6rem;
  border: 1.5px dashed #9aa3aa; border-radius: var(--rayon-l); background: repeating-linear-gradient(135deg, var(--chaux) 0 14px, var(--sable) 14px 28px);
  color: var(--texte-2); font-family: var(--titre); font-weight: 650; font-size: 0.95rem;
}
.visuel-a-venir--infographie .visuel-a-venir__cadre { aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, #eef1f3 0 14px, #e1e6ea 14px 28px); }
.visuel-a-venir__cadre svg { width: 2rem; height: 2rem; color: var(--tuile); }
.visuel-a-venir figcaption { margin-top: 0.6rem; font-size: 0.86rem; color: var(--texte-2); }
.tableau { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.94rem; }
.tableau-defile { overflow-x: auto; }
.tableau th, .tableau td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { font-family: var(--titre); font-weight: 650; background: var(--chaux); color: var(--texte); }
.tableau td { color: var(--texte-2); }
.encadre { margin: 2rem 0; padding: 1.4rem 1.5rem; border-left: 4px solid var(--tuile); background: var(--tuile-pale); border-radius: 0 var(--rayon-l) var(--rayon-l) 0; }
.encadre__titre { font-family: var(--titre); font-weight: 700; color: var(--tuile); margin-bottom: 0.5rem; }
.encadre p:last-child { margin-bottom: 0; }
.prose .encadre p { color: var(--texte); }
.questions { border-top: 1px solid var(--ligne); margin: 1rem 0 2rem; }
.questions details { border-bottom: 1px solid var(--ligne); }
.questions summary { cursor: pointer; list-style: none; padding: 1rem 0; font-family: var(--titre); font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--tuile); font-size: 1.3rem; line-height: 1; }
.questions details[open] summary::after { content: "−"; }
.questions details > div { padding-bottom: 1rem; }
.etapes { counter-reset: etape; list-style: none; padding-left: 0 !important; }
.etapes li { counter-increment: etape; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ardoise); color: #fff; display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; }
.maj { font-size: 0.86rem; color: var(--texte-2); }

/* ---------- Page devis : formulaire en étapes, visible sans défilement ---------- */
.devis { background: var(--chaux); padding: calc(var(--header-h) + clamp(1rem, 0.5rem + 2vw, 2rem)) 0 var(--section-gap-tight); min-height: 100svh; }
.devis__grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
.funnel { padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem); }
.funnel h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin: 0 0 0.3rem; max-width: none; }
.funnel__sous-titre { color: var(--texte-2); margin-bottom: 1rem; font-size: 0.98rem; }
.funnel__progression { height: 6px; border-radius: 999px; background: var(--sable); overflow: hidden; }
.funnel__barre { display: block; height: 100%; width: 25%; background: var(--tuile); border-radius: inherit; transition: width 0.4s var(--ease); }
.funnel__compteur { margin: 0.5rem 0 0; font-size: 0.82rem; font-weight: 600; color: var(--texte-2); min-height: 1.2em; }
.funnel__etape { border: 0; margin: 1.25rem 0 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
.funnel:not(.est-funnel) .funnel__etape + .funnel__etape { padding-top: 1.25rem; border-top: 1px solid var(--ligne); }
.funnel__etape[hidden] { display: none; }
.funnel__question { font-family: var(--titre); font-stretch: 108%; font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); padding: 0; margin-bottom: 0.25rem; }
.js .funnel.est-funnel .funnel__etape:not([hidden]) { animation: etape-entree 0.35s var(--ease); }
@keyframes etape-entree { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.tuiles-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.tuiles-choix--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tuile-choix--large { grid-column: 1 / -1; }
.tuile-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tuile-choix span {
  display: flex; align-items: center; gap: 0.75rem; height: 100%; padding: 0.85rem 1rem; cursor: pointer;
  border: 1.5px solid var(--ligne); border-radius: var(--rayon-l); background: var(--blanc); font-weight: 600; font-size: 0.95rem; line-height: 1.3;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s var(--ease);
}
.tuile-choix svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--tuile); }
.tuile-choix span:hover { border-color: var(--tuile-vif); }
.tuile-choix input:checked + span { border-color: var(--tuile); background: var(--tuile-pale); box-shadow: inset 0 0 0 1px var(--tuile); }
.tuile-choix input:focus-visible + span { outline: 2px solid var(--tuile-vif); outline-offset: 2px; }
.tuiles-choix--3 .tuile-choix span { flex-direction: column; text-align: center; justify-content: center; padding: 1rem 0.6rem; }
.funnel .champ textarea { min-height: 7.5rem; }
.funnel__nav { margin-top: 1.5rem; }
.funnel__nav .formulaire__statut { flex-basis: 100%; }
.funnel__suivant, .funnel__envoyer { margin-left: auto; }
.funnel__nav [hidden] { display: none; }
.devis__aside { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.devis__etapes { list-style: none; counter-reset: e; margin: 0; padding: 1.4rem 1.5rem; background: var(--blanc); border-radius: var(--rayon-l); box-shadow: var(--ombre); display: grid; gap: 0.9rem; }
.devis__etapes li { counter-increment: e; position: relative; padding-left: 2.4rem; font-size: 0.92rem; color: var(--texte-2); line-height: 1.45; }
.devis__etapes li::before { content: counter(e); position: absolute; left: 0; top: 0.05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--tuile); color: var(--tuile); display: grid; place-items: center; font-weight: 700; font-size: 0.82rem; }
.devis__etapes strong { display: block; color: var(--texte); }
@media (max-width: 960px) {
  .devis__grille { grid-template-columns: minmax(0, 1fr); }
  .devis__aside { position: static; }
}
@media (max-width: 520px) {
  .tuiles-choix--3 { grid-template-columns: minmax(0, 1fr); }
  .tuiles-choix--3 .tuile-choix span { flex-direction: row; text-align: left; justify-content: flex-start; }
  .tuile-choix span { padding: 0.75rem 0.8rem; font-size: 0.9rem; gap: 0.55rem; }
}

/* ---------- Conseils : recherche, rubriques, thèmes ---------- */
.blog { padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.filtres { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.filtres__ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 0.75rem; }
.filtres__recherche { position: relative; }
.filtres__recherche svg { position: absolute; left: 0.9rem; top: 50%; width: 1.15rem; height: 1.15rem; transform: translateY(-50%); color: var(--texte-2); pointer-events: none; }
.filtres input, .filtres select {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.8rem 0.9rem; border: 1.5px solid #7d878f; border-radius: var(--rayon); background: var(--blanc); color: var(--texte);
}
.filtres input { padding-left: 2.6rem; }
.filtres input:focus, .filtres select:focus { outline: none; border-color: var(--tuile); box-shadow: 0 0 0 3px rgba(169, 72, 42, 0.15); }
.rubriques { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filtres .rubriques { margin-bottom: 0; }
.puce-filtre {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--ligne); background: var(--chaux); font-size: 0.9rem; font-weight: 600; color: var(--texte);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.puce-filtre span { font-size: 0.78rem; font-weight: 700; color: var(--texte-2); background: var(--blanc); border-radius: 999px; padding: 0.05rem 0.45rem; }
.puce-filtre:hover { border-color: var(--tuile); }
.puce-filtre[aria-current] { background: var(--ardoise); border-color: var(--ardoise); color: var(--blanc); }
.puce-filtre[aria-current] span { background: var(--ardoise-3); color: var(--blanc); }
.filtres__compte { margin: 0; font-size: 0.9rem; color: var(--texte-2); font-weight: 600; }
.blog__titre { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 1.25rem; }
.articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.article-carte[hidden] { display: none; }
.article-carte a {
  display: flex; flex-direction: column; gap: 0.5rem; height: 100%; padding: 1.3rem 1.35rem 1.2rem; text-decoration: none;
  background: var(--chaux); border: 1px solid var(--ligne); border-radius: var(--rayon-l); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.article-carte a:hover { border-color: var(--tuile); transform: translateY(-2px); }
.article-carte__cat { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tuile); }
.article-carte__meta { margin-top: auto; padding-top: 0.4rem; font-size: 0.82rem; color: var(--texte-2); }
.filtres__vide { text-align: center; padding: 2.5rem 0; color: var(--texte-2); }
.filtres__vide[hidden] { display: none; }
@media (max-width: 640px) { .filtres__ligne { grid-template-columns: minmax(0, 1fr); } }
.hero--compact { padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.hero--compact h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); max-width: 24ch; }
.hero--compact .hero__phrase { margin-bottom: 0; }

/* ---------- Lisibilité : échelle typographique et colonnes de lecture ---------- */
/* Titres plus mesurés sur grand écran ; l'accueil garde son titre d'affiche. */
html { font-size: clamp(1rem, 0.9rem + 0.25vw, 1.0625rem); }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.35rem); line-height: 1.12; }
h3 { font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem); }
body:has(.hero:not(.hero--interieur)) .hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.1rem); max-width: 20ch; }
.hero--interieur { min-height: min(72svh, 40rem); padding-top: calc(var(--header-h) + 4.5rem); padding-bottom: 3rem; align-items: center; }
.hero--interieur h1 { max-width: 22ch; }
.hero--simple { min-height: 0; }
.hero--compact { min-height: 0; }

/* Texte courant : 65 à 75 caractères par ligne, interligne confortable, colonne centrée */
.prose { max-width: 44rem; font-size: 1.0625rem; line-height: 1.72; }
.section > .conteneur.prose { margin-inline: auto; }
.prose p, .prose li { color: #3b444b; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem); margin: 2.75rem 0 0.75rem; line-height: 1.18; }
.prose h3 { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); margin: 1.9rem 0 0.5rem; }
.prose > :first-child, .article__bloc:first-child > :first-child { margin-top: 0; }
.prose strong { color: var(--texte); }
.prose a:not(.btn) { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.prose .tableau, .prose .tableau-defile { font-size: 0.95rem; }
.prose .questions summary { font-size: 1.02rem; }
.entete-section h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); }
.maillage h2, .article-suite h2 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem); }
.section--blanc + .section--chaux, .section--chaux + .section--blanc { border-top: 1px solid var(--ligne); }

/* ---------- Article de blog ---------- */
.article { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.article__grille { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.article__colonne { max-width: 44rem; min-width: 0; }
.article__meta { font-size: 0.9rem; color: var(--texte-2); margin-bottom: 1.25rem; }
.article__meta a { color: var(--tuile); font-weight: 650; text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.article__image { margin: 0 0 2rem; border-radius: var(--rayon-l); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sable); }
.article__image img { width: 100%; height: 100%; object-fit: cover; }
.article__texte { max-width: none; }
.article__texte .article__bloc + .article__bloc { margin-top: 2.5rem; }
.article__texte h2 { scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--ligne); font-size: 0.9rem; color: var(--texte-2); }
.article__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2rem; padding: 1.5rem 1.6rem; border-radius: var(--rayon-l); background: var(--ardoise); color: var(--texte-inv); }
.article__cta p { margin: 0; color: var(--texte-inv-2); }
.article__cta .article__cta-titre { font-family: var(--titre); font-weight: 700; font-size: 1.2rem; color: var(--blanc); margin-bottom: 0.25rem; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.article__nav a { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.1rem; border: 1px solid var(--ligne); border-radius: var(--rayon-l); text-decoration: none; font-weight: 650; font-size: 0.95rem; line-height: 1.35; }
.article__nav a:hover { border-color: var(--tuile); }
.article__nav span { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-2); }
.article__nav-suiv { text-align: right; grid-column: 2; }
.article__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; font-size: 0.92rem; }
.article__aside-titre { font-family: var(--titre); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texte-2); margin-bottom: 0.6rem; }
.article__sommaire ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.article__sommaire a { color: var(--texte-2); text-decoration: none; line-height: 1.4; }
.article__sommaire a:hover, .article__sommaire a[aria-current] { color: var(--tuile); }
.article__sommaire a[aria-current] { font-weight: 650; }
.article__service a { display: grid; gap: 0.35rem; padding: 1rem; border: 1px solid var(--ligne); border-radius: var(--rayon-l); background: var(--chaux); text-decoration: none; }
.article__service a:hover { border-color: var(--tuile); }
.article__service strong { color: var(--texte); }
.article__service span { color: var(--texte-2); font-size: 0.86rem; line-height: 1.45; }
.article__mini-cta { padding: 1rem; border-radius: var(--rayon-l); background: var(--tuile-pale); }
.article__mini-cta p { font-weight: 650; margin-bottom: 0.75rem; }
.article__mini-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 1024px) {
  .article__grille { grid-template-columns: minmax(0, 1fr); }
  .article__colonne { margin-inline: auto; }
  .article__aside { position: static; order: -1; max-width: 44rem; margin-inline: auto; width: 100%; }
  .article__sommaire { padding: 1rem 1.2rem; border: 1px solid var(--ligne); border-radius: var(--rayon-l); }
}
@media (max-width: 640px) {
  .article__nav { grid-template-columns: minmax(0, 1fr); }
  .article__nav-suiv { grid-column: auto; text-align: left; }
  .prose { font-size: 1rem; }
}

/* Emplacements visuels plus discrets dans le texte */
.prose .visuel-a-venir__cadre { aspect-ratio: 21 / 8; }
.prose .visuel-a-venir--infographie .visuel-a-venir__cadre { aspect-ratio: 21 / 9; }
.visuel-a-venir { margin: 1.75rem 0; }

/* Fil d'Ariane sur mobile : trail complet, dans le flux, pour ne jamais recouvrir le titre */
.ariane ol { flex-wrap: wrap; row-gap: 0.25rem; }
@media (max-width: 760px) {
  .ariane { position: static; margin: 0 auto 1.25rem; }
  .ariane ol { font-size: 0.8rem; }
  .prose .visuel-a-venir__cadre { aspect-ratio: 16 / 9; }
}

/* Plan sitemap du 4 novembre : villes sur les pages services, signature, carte cliquable */
.villes-service { padding-block: 1.5rem; }
.villes-service__texte { margin: 0; font-size: 0.98rem; color: var(--texte-2); }
.villes-service__texte a:not(.lien-fleche) { color: var(--texte); font-weight: 600; }
.villes-service__texte .lien-fleche { margin-left: 0.75rem; }
.encadre__signature { margin-top: 0.75rem; font-size: 0.88rem; font-weight: 650; color: var(--tuile); }
.carte a path { cursor: pointer; }
.carte__communes a path { fill: #d9cbb6; }
.carte__communes a:hover path, .carte__communes a:focus path { fill: var(--tuile-vif); }

/* Mobile 360 px : aucun défilement horizontal, texte à 16 px minimum */
.article__colonne, .prose { min-width: 0; overflow-wrap: break-word; }
.prose table.tableau { display: block; overflow-x: auto; max-width: 100%; }
.prose .tableau-defile table.tableau { display: table; }
.funnel__sous-titre { font-size: 1rem; }
@media (max-width: 1024px) { .article__colonne { width: 100%; } }

/* ---------- Accueil : lisibilité et signaux locaux ---------- */
.hero:not(.hero--interieur) { min-height: 88svh; padding-top: calc(var(--header-h) + (88svh - var(--header-h)) * 0.14); }
.hero:not(.hero--interieur) .hero__phrase { max-width: 40rem; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); }
.hero__services a { display: inline-flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.hero__services a:hover { border-bottom-color: currentColor; }
.hero__preuves { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }
.hero__preuves li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__preuves li::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--tuile-vif); }
.quartiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.quartier { padding: 1.4rem 1.4rem 1.3rem; border: 1px solid var(--ligne); border-radius: var(--rayon-l); background: var(--chaux); }
.quartier h3 { margin-bottom: 0.5rem; }
.quartier p { margin: 0; font-size: 0.96rem; line-height: 1.6; color: #3b444b; }
.quartier a { color: var(--tuile); font-weight: 600; }
.zone p { line-height: 1.7; }
.zone p a { color: var(--texte); font-weight: 600; text-underline-offset: 0.18em; }
.zone p a:hover { color: var(--tuile); }
.zone__aide { font-size: 0.88rem; color: var(--texte-2); }
.guides__tous { margin: 1.5rem 0 0; }
.faq__reponse a { color: var(--tuile); }
.entete-section p { max-width: 38rem; }
@media (max-width: 1024px) { .quartiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .quartiers { grid-template-columns: minmax(0, 1fr); }
  .hero__preuves { font-size: 0.85rem; gap: 0.3rem 1rem; }
  .hero:not(.hero--interieur) { min-height: 92svh; }
}

/* Mobile : blocs de liens compacts (titre seul) pour naviguer plus vite */
@media (max-width: 640px) {
  .maillage .cartes-liens { gap: 0.5rem; }
  .maillage .carte-lien a { padding: 0.9rem 1rem; }
  .section { padding-block: clamp(3rem, 2rem + 4vw, 4rem); }
}

/* Mobile : encadrés de l'article (service lié, devis) visibles mais compacts */
@media (max-width: 1024px) {
  .article__aside { gap: 0.75rem; }
  .article__service span { display: block; }
}
@media (max-width: 1024px) {
  .article__aside { display: contents; }
  .article__sommaire { order: -1; max-width: 44rem; margin-inline: auto; width: 100%; }
  .article__service, .article__aimant, .article__mini-cta { order: 2; max-width: 44rem; margin-inline: auto; width: 100%; }
}
