/* Couleurs : définies dans site.config.json et injectées dans chaque page (--principale, --action, --fond, --texte).
   Ambiance : anthracite et bronze, titres en Barlow Condensed, texte en Barlow (polices hébergées sur le site). */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/polices/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/polices/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/polices/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/polices/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/polices/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --principale: #161616;
  --action: #8E6139;
  --fond: #F6F2EC;
  --texte: #1E1C1A;
  --bronze-clair: #C9A27A;
  --sombre-2: #1F1E1C;
  --doux: #5F5A54;
  --doux-sombre: #B8B2AA;
  --carte: #FFFFFF;
  --bord: #E4DDD3;
  --bord-sombre: rgba(255, 255, 255, .12);
  --rayon: 4px;
  --ombre: 0 18px 48px rgba(22, 22, 22, .14);
  --police: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --titres: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --gouttiere: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--titres); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(2rem, 1.5rem + 1.9vw, 2.9rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Même largeur pour toutes les sections ; les textes occupent toute la largeur. */
.conteneur { width: min(1180px, 100% - 2 * var(--gouttiere)); margin-inline: auto; }

.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.icone { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ─── Boutons ─── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: var(--rayon);
  font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bouton-action { background: var(--action); color: #fff; }
.bouton-action:hover { background: #7A5230; }
.bouton-contour { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
button.bouton { font-family: inherit; cursor: pointer; }
.bouton-contour:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.bouton:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--bronze-clair); outline-offset: 3px; }

/* ─── Surtitre et tête de section ─── */
.surtitre {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-size: .82rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--action);
}
.surtitre::before { content: ""; width: 36px; height: 2px; background: currentColor; flex: none; }
.sombre .surtitre, .hero .surtitre { color: var(--bronze-clair); }
.tete-section { margin-bottom: 28px; }
.tete-section h2 { margin-bottom: .35em; }
.tete-section p:last-child { margin-bottom: 0; }
.tete-section > p:not(.surtitre) { color: var(--doux); font-size: 1.08rem; }
.sombre .tete-section > p:not(.surtitre) { color: var(--doux-sombre); }
.prestations-bandeau .tete-section > p:not(.surtitre) { color: #E9E4DD; }
.bouton .icone { width: 18px; height: 18px; stroke-width: 2; }

/* ─── En-tête ─── */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgba(22, 22, 22, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bord-sombre); color: #fff;
}
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--bronze-clair); text-decoration: none; }
.logo-marque { width: 50px; height: 50px; flex: none; margin: -4px -2px -4px -6px; }
.logo-texte { display: grid; line-height: 1.05; }
.logo-nom { white-space: nowrap; font-family: var(--titres); font-weight: 700; font-size: 1.32rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.logo-region { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: .68rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; color: var(--bronze-clair); }
.logo-region::before, .logo-region::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.logo-region::after { margin-left: -.38em; }
.entete-nav { display: flex; align-items: center; gap: 28px; }
.entete-lien, .entete-tel {
  color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.entete-lien:hover, .entete-tel:hover { color: var(--bronze-clair); }
.entete .bouton { min-height: 44px; padding: 10px 20px; font-size: .85rem; }

/* ─── Bandeau d'ouverture ─── */
.hero { position: relative; background: var(--principale); color: #fff; padding: 36px 0 56px; overflow: hidden; }
.hero-photo { position: absolute; inset: 0 0 auto 0; height: 640px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 22, 22, .9) 0%, rgba(22, 22, 22, .62) 55%, rgba(22, 22, 22, .45) 100%),
    linear-gradient(180deg, rgba(22, 22, 22, 0) 45%, var(--principale) 100%);
}
.hero-grille { position: relative; display: grid; gap: 36px; align-items: start; grid-template-areas: "texte" "form" "etapes"; }
.hero-texte { grid-area: texte; }
.carte-form { grid-area: form; }
.hero-etapes { grid-area: etapes; }
.hero h1 { margin-bottom: .3em; }
.chapo { font-size: 1.15rem; color: #E9E4DD; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.atouts { display: grid; gap: 14px; }
.atouts li { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 1.05rem; }
.atouts-icone {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid rgba(201, 162, 122, .55); color: var(--bronze-clair);
}
.atouts-icone .icone { width: 22px; height: 22px; }

.carte-form {
  background: var(--carte); color: var(--texte); border-top: 4px solid var(--action);
  border-radius: var(--rayon); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); padding: 26px 18px 16px;
}
.carte-form .surtitre { color: var(--action); margin-bottom: 8px; }
.carte-form h2 { font-size: 2rem; margin-bottom: 14px; }
/* Hauteur pleine : sans elle, le formulaire défile dans son cadre (piège au doigt sur mobile). */
.form-cadre { min-height: 600px; }
.form-cadre iframe { display: block; width: 100%; height: 1000px; min-height: 600px; border: 0; }
.form-note { margin: 12px 0 0; font-size: .86rem; color: var(--doux); }

.hero-etapes h2 { font-size: 2rem; }
.etapes { display: grid; gap: 0; border-top: 1px solid var(--bord-sombre); }
.etape { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--bord-sombre); }
.etape-titre { margin: 0 0 .25em; font-family: var(--titres); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: #fff; }
.etape p { margin: 0; color: var(--doux-sombre); }
.etape-num {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px;
  background: var(--action); color: #fff; font-family: var(--titres); font-weight: 700; font-size: 1.6rem;
}

/* ─── Fil d'Ariane ─── */
.fil ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; letter-spacing: .04em; color: var(--doux); margin-bottom: 22px; }
.fil li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.fil a { color: inherit; text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.hero .fil ol { color: var(--doux-sombre); }
.hero .fil [aria-current] { color: var(--bronze-clair); }

/* ─── Blocs ─── */
.bloc { padding: 72px 0; }
.bloc-clair { background: var(--carte); }
.sombre { background: var(--principale); color: #fff; }
.sombre p { color: var(--doux-sombre); }
.discret { color: var(--doux); font-size: .9em; }
.bloc h3 { margin-top: 1.2em; }
.bloc h3:first-child { margin-top: 0; }

/* Zone : une ligne par département (accueil) */
.deps { border-top: 1px solid var(--bord); margin-top: 8px; }
.dep {
  position: relative; display: grid; align-items: center; gap: 6px 20px;
  grid-template-columns: 64px minmax(0, 1fr) 44px; grid-template-areas: "code nom lien" "villes villes villes";
  padding: 24px 0; border-bottom: 1px solid var(--bord);
}
.dep::before {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--action);
  transition: width .35s ease;
}
.dep:hover::before { width: 100%; }
.dep-code {
  grid-area: code; font-family: var(--titres); font-weight: 700; font-size: 3rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--action); transition: color .25s ease;
}
@supports not (-webkit-text-stroke: 1px black) { .dep-code { color: var(--action); } }
.dep:hover .dep-code { color: var(--action); }
.dep-nom { grid-area: nom; }
.dep-nom h3 { margin: 0; font-size: 1.85rem; }
.dep-nom h3 a { color: var(--texte); text-decoration: none; }
.dep-nom h3 a:hover { color: var(--action); }
.dep-nom p { margin: 2px 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.dep-villes { grid-area: villes; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.dep-villes li { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.dep-villes li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--action); }
.dep-villes li:last-child:has(.dep-plus)::before { display: none; }
.dep-villes a { color: var(--texte); text-decoration: none; }
.dep-villes a:hover { color: var(--action); text-decoration: underline; }
.dep-villes .dep-plus { color: var(--action); font-weight: 600; }
.dep-lien {
  grid-area: lien; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--bord); color: var(--action); transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.dep-lien .icone { width: 20px; height: 20px; stroke-width: 1.8; }
.dep:hover .dep-lien { background: var(--action); border-color: var(--action); color: #fff; }

/* Zone : tuiles de communes (pages département et ville) */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; margin-bottom: 1.4em; }
.tuiles a, .tuile-texte {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; height: 100%;
  padding: 13px 16px; background: var(--fond); border: 1px solid var(--bord); border-left: 3px solid var(--bord);
  color: var(--texte); text-decoration: none; font-weight: 500;
}
.tuiles a { border-left-color: var(--action); transition: background-color .2s ease, color .2s ease; }
.tuiles a:hover { background: var(--principale); border-color: var(--principale); border-left-color: var(--action); color: #fff; }
.tuile-info { flex: none; font-size: .8rem; font-weight: 500; color: var(--doux); white-space: nowrap; }
.tuiles a:hover .tuile-info { color: var(--bronze-clair); }

/* Zone : chiffres Insee sur les logements (pages département et ville) */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.chiffres li { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--fond); border: 1px solid var(--bord); border-top: 3px solid var(--action); }
.chiffre-valeur { font-family: var(--titres); font-size: 2rem; font-weight: 700; line-height: 1; }
.chiffre-libelle { font-size: .92rem; color: var(--doux); }
.chiffres-source { font-size: .85rem; color: var(--doux); }
.chiffres-source a { color: inherit; }

/* Prestations : bandeau photo puis cartes à icônes */
.prestations { position: relative; padding: 0 0 72px; background: var(--fond); }
.prestations-bandeau { position: relative; color: #fff; padding: 72px 0 150px; background: var(--principale); }
.prestations-bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prestations-bandeau::after { content: ""; position: absolute; inset: 0; background: rgba(22, 22, 22, .8); }
.prestations-bandeau .conteneur { position: relative; z-index: 1; }
.prestations-bandeau p { color: #E9E4DD; margin: 0; }
.prestations-bandeau .surtitre { color: var(--bronze-clair); }
.grille-prestations { position: relative; z-index: 2; display: grid; gap: 20px; margin-top: -100px; }
.prestation {
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 30px 26px;
  box-shadow: var(--ombre); transition: transform .25s ease;
}
.prestation:hover { transform: translateY(-4px); }
.prestation-icone {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px;
  border: 1px solid var(--bord); color: var(--action);
}
.prestation h3 { margin: 0 0 .35em; }
.prestation p { margin: 0; color: var(--doux); }

/* Étapes du chantier : frise verticale (mobile), horizontale (bureau) */
.phases { position: relative; display: grid; gap: 0; counter-reset: phase; }
.phase { position: relative; padding: 0 0 30px 74px; }
.phase:last-child { padding-bottom: 0; }
.phase::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--bord); }
.phase:last-child::before { display: none; }
.phase-num {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 52px; height: 52px;
  border: 2px solid var(--action); background: var(--carte); color: var(--action);
  font-family: var(--titres); font-weight: 700; font-size: 1.4rem; transition: background-color .25s ease, color .25s ease;
}
.phase:hover .phase-num { background: var(--action); color: #fff; }
.phase-titre { margin: 10px 0 .3em !important; font-family: var(--titres); font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--texte) !important; }
.phase p { margin: 0; color: var(--doux); }

/* Carte Google Maps de la zone (chargée au clic) */
.carte { margin: 8px 0 28px; }
.carte-attente, .carte iframe {
  display: block; width: 100%; aspect-ratio: 16 / 7; min-height: 280px; border: 0; border-radius: var(--rayon);
}
.carte-attente {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  color: #fff;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(201, 162, 122, .12) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(201, 162, 122, .12) 39px 40px),
    radial-gradient(circle at 50% 45%, #2a2723, var(--principale) 70%);
}
.carte-attente .icone { width: 34px; height: 34px; color: var(--bronze-clair); }
.carte-nom { margin: 0; font-family: var(--titres); font-weight: 700; font-size: 1.8rem; line-height: 1.1; }
.carte-note { margin: 0; font-size: .8rem; color: var(--doux-sombre); }
.carte figcaption { margin-top: 8px; font-size: .9rem; }

/* Accueil : métiers, solutions, galerie */
.grille-pros { display: grid; gap: 20px; }
.bloc-clair .prestation { background: var(--fond); box-shadow: none; }
.solutions { display: grid; gap: 24px; }
.solution { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.solution img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.solution-texte { padding: 26px 26px 28px; border-top: 3px solid var(--action); }
.solution h3 { margin: 0 0 .4em; }
.solution p { margin: 0; color: var(--doux); }
.galerie { display: grid; gap: 16px; }
.galerie figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--rayon); background: var(--principale); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.galerie figure:hover img { transform: scale(1.04); opacity: .85; }
.galerie figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0), rgba(22, 22, 22, .85));
  color: #fff; font-weight: 500; font-size: .95rem;
}

/* Budget : photos et texte */
.budget { display: grid; gap: 40px; align-items: center; }
.photos-duo { position: relative; padding: 0 0 56px 0; }
.photos-duo img { width: 100%; object-fit: cover; border-radius: var(--rayon); }
.photos-duo .photo-1 { aspect-ratio: 4 / 5; width: 78%; }
.photos-duo .photo-2 {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5;
  border: 8px solid var(--fond); box-shadow: var(--ombre);
}
.photos-duo-cadre { position: absolute; left: 22px; top: 22px; width: 78%; aspect-ratio: 4 / 5; border: 2px solid var(--action); z-index: -1; }
.photos-duo { z-index: 0; }
.liste-puces { display: grid; gap: 12px; margin-bottom: 1.2em; }
.liste-puces li { position: relative; padding-left: 30px; }
.liste-puces li::before {
  content: ""; position: absolute; left: 0; top: .7em; width: 16px; height: 2px; background: var(--action);
}
.encadre { border-left: 3px solid var(--action); background: var(--carte); padding: 18px 22px; margin: 0; }

/* À préparer : section sombre */
.preparer { display: grid; gap: 40px; align-items: center; }
.preparer-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); }
.liste-coches { display: grid; gap: 14px; counter-reset: coche; }
.liste-coches li {
  position: relative; padding: 18px 20px 18px 70px; background: var(--sombre-2);
  border: 1px solid var(--bord-sombre); border-radius: var(--rayon); color: #E9E4DD;
}
.liste-coches li::before {
  counter-increment: coche; content: counter(coche, decimal-leading-zero);
  position: absolute; left: 20px; top: 16px; font-family: var(--titres); font-weight: 700; font-size: 1.5rem; color: var(--bronze-clair);
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); }
.bloc-clair .faq details { background: var(--fond); }
.faq details[open] { border-color: var(--action); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 64px 20px 24px; position: relative;
  font-family: var(--titres); font-weight: 600; font-size: 1.3rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 32px; height: 32px; background: var(--action); color: #fff;
  font-family: var(--police); font-size: 1.3rem; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--doux); }

/* Appel final : photo plein cadre */
.appel { position: relative; color: #fff; padding: 88px 0; background: var(--principale); overflow: hidden; }
.appel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.appel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 22, 22, .92), rgba(22, 22, 22, .7)); }
.appel-ligne { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.appel-texte { margin: 0; font-family: var(--titres); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.1; }
.appel-texte span { color: var(--bronze-clair); }

/* Pages de texte (mentions, confidentialité, 404) */
.page-titre { background: var(--principale); color: #fff; padding: 40px 0 48px; }
.page-titre h1 { margin: 0; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.3rem); }
.page-titre .fil ol { color: var(--doux-sombre); }
.page-titre .fil [aria-current] { color: var(--bronze-clair); }
.page-texte h2 { font-size: 1.9rem; margin-top: 1.4em; }
.page-texte h2:first-child { margin-top: 0; }

/* ─── Pied de page ─── */
.pied { background: #0F0F0F; color: var(--doux-sombre); padding: 64px 0 0; }
.pied a { color: #E9E4DD; text-decoration: none; }
.pied a:hover { color: var(--bronze-clair); }
.pied-grille { display: grid; gap: 36px; padding-bottom: 44px; }
.pied .logo { margin-bottom: 18px; }
.pied-titre {
  font-family: var(--titres); font-weight: 600; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px; padding-bottom: 12px; position: relative;
}
.pied-titre::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--action); }
.pied-liste { display: grid; gap: 8px; }
.pied-bas { border-top: 1px solid var(--bord-sombre); padding: 20px 0 26px; font-size: .88rem; }

/* Bandeau de consentement (CNIL) : les trois choix ont le même poids visuel. */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(22, 22, 22, .98); color: #fff; border-top: 2px solid var(--action);
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .35);
}
.cookies-boite { display: grid; gap: 12px; }
.cookies-titre { margin: 0; font-family: var(--titres); font-weight: 700; font-size: 1.5rem; }
.cookies-texte { margin: 0; color: #E9E4DD; font-size: .95rem; }
.cookies-texte a { color: var(--bronze-clair); }
.cookies-choix { display: grid; gap: 10px; }
.cookies-service { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--bord-sombre); border-radius: var(--rayon); font-size: .92rem; color: #E9E4DD; cursor: pointer; }
.cookies-service input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--action); flex: none; }
.cookies-service strong { color: #fff; }
.cookies-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookies-bouton { flex: 1 1 180px; background: transparent; border-color: var(--bronze-clair); color: #fff; cursor: pointer; font-family: inherit; }
.cookies-bouton:hover { background: var(--action); border-color: var(--action); }
body.cookies-ouvert .barre-mobile { display: none; }
.lien-cookies { padding: 0; border: 0; background: none; color: #E9E4DD; font: inherit; cursor: pointer; text-align: left; }
.lien-cookies:hover { color: var(--bronze-clair); }

/* ─── Barre d'action mobile ─── */
.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px; padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 22, 22, .97); border-top: 1px solid var(--bord-sombre);
  transition: transform .2s ease;
}
.barre-mobile .bouton { flex: 1; }
.barre-tel {
  display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; min-height: 50px;
  border: 2px solid rgba(255, 255, 255, .55); border-radius: var(--rayon); color: #fff; font-weight: 600; text-decoration: none;
}
.barre-mobile.cachee { transform: translateY(110%); }
body { padding-bottom: 72px; }

/* ─── Mobile étroit ─── */
@media (max-width: 599px) {
  .chiffres { grid-template-columns: 1fr 1fr; }
  .chiffres li:first-child { grid-column: 1 / -1; }
  .carte-attente, .carte iframe { aspect-ratio: 4 / 3; }
  .entete-lien, .entete-tel { display: none; }
  .entete-ligne { min-height: 66px; }
  /* La barre d'action fixe en bas d'écran porte déjà le bouton : l'en-tête garde le logo seul. */
  .entete .bouton { display: none; }
  .logo { gap: 9px; }
  .logo-marque { width: 48px; height: 48px; }
  .logo-nom { font-size: 1.22rem; }
  .logo-region { font-size: .64rem; letter-spacing: .34em; }
  .hero-photo { height: 560px; }
  .hero-actions .bouton { flex: 1 1 100%; }
  .carte-form { padding: 22px 12px 14px; }
  .carte-form h2, .carte-form .surtitre { padding-inline: 6px; }
  .form-note { padding-inline: 6px; }
  .bloc { padding: 56px 0; }
  .prestations-bandeau { padding: 56px 0 130px; }
  .appel { padding: 64px 0; }
  .appel-ligne .bouton { flex: 1 1 100%; }
}

/* ─── Tablette et plus ─── */
@media (min-width: 700px) {
  .grille-prestations, .grille-pros, .galerie { grid-template-columns: repeat(2, 1fr); }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 2fr 1fr 1fr; }
  .carte-form { padding: 30px 24px 18px; }
}

/* ─── Entre tablette et bureau : liens secondaires masqués pour garder l'en-tête sur une ligne ─── */
@media (max-width: 999px) {
  .entete-lien { display: none; }
}

/* ─── Bureau ─── */
@media (min-width: 1000px) {
  .cookies-boite { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 40px; }
  .cookies-titre, .cookies-texte, .cookies-choix { grid-column: 1; }
  .cookies-actions { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; min-width: 240px; }
  .cookies-bouton { flex: none; }
  .hero { padding: 56px 0 80px; }
  .hero-photo { height: 700px; }
  .hero-grille {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: auto 1fr;
    grid-template-areas: "texte form" "etapes form"; gap: 48px 64px;
  }
  .hero-etapes { padding-top: 8px; }
  .grille-prestations, .galerie { grid-template-columns: repeat(3, 1fr); }
  .grille-pros { grid-template-columns: repeat(4, 1fr); }
  .dep { grid-template-columns: 96px 290px minmax(0, 1fr) 52px; grid-template-areas: "code nom villes lien"; gap: 0 32px; padding: 30px 0; }
  .dep-code { font-size: 3.6rem; }
  .dep-nom p { white-space: nowrap; }
  .phases { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; margin-top: 12px; }
  .phase { padding: 76px 0 0; }
  .phase::before { left: 54px; right: -28px; top: 25px; bottom: auto; width: auto; height: 2px; }
  .phase-titre { margin-top: 0 !important; }
  .dep-lien { width: 52px; height: 52px; }
  .budget { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; }
  .preparer { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; }
  .bloc { padding: 96px 0; }
  .prestations { padding-bottom: 96px; }
  .prestations-bandeau { padding: 96px 0 170px; }
  .grille-prestations { margin-top: -110px; }
  .appel { padding: 110px 0; }
  .barre-mobile { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .barre-mobile, .prestation { transition: none; }
  .prestation:hover { transform: none; }
  .galerie img { transition: none; }
  .galerie figure:hover img { transform: none; }
}
