/*
Theme Name: IP RENOV
Author: Isaac Prestat
Description: Thème sur-mesure IP RENOV — artisan couvreur à Rennes. Design ardoise & cuivre, léger et rapide.
Version: 2.0.0
Text Domain: ip-renov
*/

/* ==========================================================
   1. DESIGN TOKENS
   ========================================================== */
:root {
  --ardoise:      #222B36;   /* texte + fonds sombres */
  --ardoise-2:    #2E3947;   /* surface sombre secondaire */
  --gris:         #5A6572;   /* texte secondaire */
  --cuivre:       #B26B38;   /* action principale */
  --cuivre-fonce: #94551F;   /* hover / liens texte (contraste AA) */
  --cuivre-clair: #D98A54;   /* accents sur fond sombre */
  --craie:        #F6F4EF;   /* fond de page */
  --blanc:        #FFFFFF;
  --ligne:        #E6E2D8;   /* bordures discrètes */
  --vert:         #43684D;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(34, 43, 54, .07), 0 4px 14px rgba(34, 43, 54, .05);
  --shadow-md: 0 6px 24px rgba(34, 43, 54, .10);
  --header-h: 72px;
  --mobile-bar-h: 60px;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================
   2. BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ardoise);
  background: var(--craie);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cuivre-fonce); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--cuivre); }

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ardoise);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ardoise); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ardoise); color: var(--blanc);
  padding: .75rem 1.25rem; z-index: 2000; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: var(--blanc); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ==========================================================
   3. LAYOUT & UTILITAIRES
   ========================================================== */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.container-narrow { max-width: 820px; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--blanc); }
.section-dark { background: var(--ardoise); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--craie); }

.section-title { margin-bottom: 1rem; }
.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--gris); font-size: 1.1rem; }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cuivre-fonce);
  margin-bottom: .75rem;
}
.section-dark .eyebrow { color: var(--cuivre-clair); }

/* ==========================================================
   4. BOUTONS
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 6px;
  font-weight: 700; font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }

.btn-primary { background: var(--cuivre); color: var(--blanc); }
.btn-primary:hover { background: var(--cuivre-fonce); color: var(--blanc); }
.btn-primary:focus-visible { outline-color: var(--ardoise); }

.btn-outline { border-color: var(--cuivre); color: var(--cuivre-fonce); background: transparent; }
.btn-outline:hover { background: var(--cuivre); color: var(--blanc); }

.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--blanc); background: transparent; }
.btn-ghost:hover { background: var(--blanc); color: var(--ardoise); }

.btn-row { display: flex; gap: .875rem; flex-wrap: wrap; }
.btn-row-center { justify-content: center; }

/* ==========================================================
   5. HEADER
   ========================================================== */
.site-header {
  background: var(--blanc);
  position: sticky; top: 0; z-index: 900;
  border-bottom: 1px solid var(--ligne);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: var(--header-h);
}

.site-logo a { display: inline-flex; align-items: center; gap: .65rem; }
.logo-badge { width: 42px; height: 42px; border-radius: 8px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; letter-spacing: .01em;
  color: var(--ardoise); line-height: 1;
}
.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cuivre-fonce); margin-top: .3rem;
}

/* Navigation */
.menu-list { display: flex; align-items: center; gap: 1.75rem; }
.menu-list > li { position: relative; }
.menu-list a {
  color: var(--ardoise); font-weight: 600; font-size: .975rem;
  padding: .5rem 0; display: inline-block;
}
.menu-list a:hover { color: var(--cuivre-fonce); }
.menu-list .current-menu-item > a,
.menu-list .current-menu-ancestor > a { color: var(--cuivre-fonce); }

/* Sous-menu */
.menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: .4rem;
  border: 4px solid transparent; border-top-color: currentColor;
  transform: translateY(2px);
}
.sub-menu {
  position: absolute; top: 100%; left: -1rem;
  min-width: 250px;
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu a {
  display: block; padding: .55rem .85rem; border-radius: 6px;
  font-weight: 500; font-size: .95rem;
}
.sub-menu a:hover { background: var(--craie); }

/* CTA header */
.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.menu-cta { display: none; } /* visible uniquement dans le menu mobile */
.header-phone { font-weight: 700; color: var(--ardoise); white-space: nowrap; }
.header-phone:hover { color: var(--cuivre-fonce); }

/* Burger */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border-radius: 6px;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--ardoise);
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .site-navigation {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--blanc);
    border-bottom: 1px solid var(--ligne);
    box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .site-navigation { display: block; }
  .menu-list { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.25rem 1.25rem; }
  .menu-list a { display: block; padding: .8rem .25rem; font-size: 1.05rem; }
  .menu-list > li { border-bottom: 1px solid var(--ligne); }
  .menu-list > li:last-child { border-bottom: none; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; padding: 0 0 .5rem .75rem; min-width: 0;
    display: none;
  }
  .menu-item-has-children.open > .sub-menu { display: block; }
  .menu-item-has-children > a::after { float: right; margin-top: .55rem; }
}

/* ==========================================================
   6. HERO ACCUEIL
   ========================================================== */
.home-hero {
  position: relative;
  display: flex; align-items: center;
  min-height: min(88vh, 720px);
  overflow: hidden;
}
.home-hero-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(20, 27, 36, .88) 0%, rgba(20, 27, 36, .72) 45%, rgba(20, 27, 36, .25) 100%);
}
.home-hero-inner { position: relative; z-index: 2; padding-block: 4.5rem; }
.home-hero { background: var(--ardoise); }
.home-hero h1 {
  color: var(--blanc);
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  text-shadow: 0 2px 18px rgba(20,27,36,.5);
}
.home-hero .hero-lead {
  color: rgba(246, 244, 239, .92);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero-badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(246, 244, 239, .12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(246, 244, 239, .25);
  color: var(--craie);
  font-size: .875rem; font-weight: 600;
  padding: .45rem .9rem; border-radius: 99px;
}
.hero-badge svg { flex: none; }

/* ==========================================================
   7. EN-TÊTE PAGES INTÉRIEURES (bandeau image + bloc titre)
   ========================================================== */
.page-hero {
  height: clamp(240px, 38vh, 400px);
  overflow: hidden;
  background: var(--ardoise);
  border-bottom: 4px solid var(--cuivre);
}
.page-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

.page-head {
  background: var(--blanc);
  border-bottom: 1px solid var(--ligne);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.page-head h1 { max-width: 26ch; }
.page-head-intro { color: var(--gris); max-width: 62ch; margin-top: .75rem; font-size: 1.15rem; }

.breadcrumb {
  display: flex; gap: .5rem; align-items: center;
  font-size: .875rem; margin-bottom: 1rem;
  color: var(--gris);
}
.breadcrumb a { color: var(--cuivre-fonce); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--cuivre); }

/* ==========================================================
   8. CARTES SERVICES
   ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { margin-bottom: .5rem; }
.service-body p { color: var(--gris); font-size: .975rem; flex: 1; }

.card-link {
  font-weight: 700; color: var(--cuivre-fonce);
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
}
.card-link::after { content: "→"; transition: transform .15s ease; }
.service-card:hover .card-link::after { transform: translateX(4px); }
/* Toute la carte est cliquable */
.card-link::before { content: ""; position: absolute; inset: 0; }

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-featured { grid-column: span 2; flex-direction: row; }
  .service-featured .service-media { flex: 0 0 52%; }
  .service-featured .service-media img { height: 100%; aspect-ratio: auto; }
  .service-featured .service-body { justify-content: center; padding: 2.5rem; }
  .service-featured h3 { font-size: 1.6rem; }
  .service-featured p { flex: 0 1 auto; font-size: 1.05rem; }
}

/* ==========================================================
   9. SECTIONS DE CONTENU (2 colonnes, listes, étapes)
   ========================================================== */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
  .split-reverse > :first-child { order: 2; }
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
}
.split-media-accent img { box-shadow: -14px 14px 0 rgba(178, 107, 56, .25); }

.check-list { margin: 1.25rem 0; display: grid; gap: .75rem; }
.check-list li { padding-left: 2rem; position: relative; color: var(--gris); }
.check-list li strong { color: var(--ardoise); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(67, 104, 77, .12);
  color: var(--vert);
  border-radius: 50%;
  font-size: .8rem; font-weight: 700;
}

/* Étapes numérotées */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(var(--steps-cols, 4), 1fr); } }
.step {
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--radius);
  padding: 1.5rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--cuivre); color: var(--blanc);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { color: var(--gris); font-size: .95rem; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700; color: var(--cuivre-clair);
  display: block; line-height: 1.1;
}
.stat-label { color: rgba(246,244,239,.8); font-size: .95rem; }

/* ==========================================================
   10. AVIS
   ========================================================== */
.reviews-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
.review-card {
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.review-card::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 4rem; line-height: 1;
  color: rgba(178, 107, 56, .25);
  position: absolute; top: .75rem; right: 1.25rem;
}
.review-stars { color: #D9962E; letter-spacing: 2px; margin-bottom: .75rem; font-size: 1.05rem; }
.review-text { color: var(--gris); font-style: italic; }
.review-author { font-weight: 700; margin-top: 1rem; font-size: .95rem; }

/* ==========================================================
   11. GALERIE RÉALISATIONS
   ========================================================== */
.gallery-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.gallery-item {
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 720px) {
  /* Disposition symétrique : [2+1] puis [1+2] */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-wide { grid-column: span 2; }
  .gallery-item img { aspect-ratio: 1; }
  .gallery-wide img { aspect-ratio: 2.07; }
}
.gallery-body { padding: 1.25rem 1.5rem 1.5rem; }
.gallery-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cuivre-fonce);
  margin-bottom: .4rem;
}
.gallery-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.gallery-body p { color: var(--gris); font-size: .95rem; margin: 0; }

/* ==========================================================
   12. FAQ
   ========================================================== */
.faq-list { display: grid; gap: .75rem; margin-top: 2rem; }
.faq-item {
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 1.75rem; height: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--craie); color: var(--cuivre-fonce);
  font-size: 1.25rem; font-weight: 600;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-content { padding: 0 1.4rem 1.25rem; color: var(--gris); }

/* ==========================================================
   13. ZONE D'INTERVENTION
   ========================================================== */
.communes-grid {
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  margin-top: 1.5rem;
}
.commune {
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: 6px;
  padding: .6rem .9rem;
  font-size: .95rem; font-weight: 600;
  color: var(--gris);
  display: flex; align-items: center; gap: .5rem;
}
.commune::before { content: "📍"; font-size: .8rem; }

/* ==========================================================
   14. CTA FINAL + LIENS CONNEXES
   ========================================================== */
.cta-final { background: var(--ardoise); }
.cta-final .section-title { color: var(--craie); }
.cta-text { color: rgba(246,244,239,.85); max-width: 56ch; margin-inline: auto; margin-bottom: 2rem; font-size: 1.1rem; }
.cta-final .btn-row { margin-bottom: 1.25rem; }
.cta-reassurance { color: rgba(246,244,239,.65); font-size: .9rem; margin: 0; }

.related-links { display: flex; gap: .875rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }

/* ==========================================================
   15. CONTACT
   ========================================================== */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; } }

.contact-block { margin-bottom: 1.75rem; }
.contact-block h3 {
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cuivre-fonce);
  margin-bottom: .35rem;
}
.contact-block p { color: var(--gris); }
.contact-big { font-size: 1.35rem; font-weight: 700; color: var(--ardoise); }
.contact-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); max-width: 260px; }

.form-card {
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.form-label .optional { color: var(--gris); font-weight: 400; font-size: .85rem; }
.form-input {
  width: 100%;
  padding: .8rem .95rem;
  border: 1.5px solid var(--ligne); border-radius: 6px;
  font: inherit; color: var(--ardoise);
  background: var(--craie);
  transition: border-color .15s ease, background .15s ease;
}
.form-input:focus { outline: none; border-color: var(--cuivre); background: var(--blanc); }
.form-textarea { resize: vertical; min-height: 140px; }
.btn-full { width: 100%; }
.form-reassurance { display: block; text-align: center; margin-top: .75rem; color: var(--gris); font-size: .875rem; }
.hidden-honeypot { position: absolute; left: -9999px; }

.notice {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  margin-bottom: 1.5rem; font-weight: 600;
}
.notice-success { background: rgba(67, 104, 77, .12); color: var(--vert); border: 1px solid rgba(67, 104, 77, .3); }
.notice-error { background: rgba(178, 56, 56, .08); color: #96393B; border: 1px solid rgba(178, 56, 56, .25); }

/* ==========================================================
   16. FOOTER
   ========================================================== */
.site-footer {
  background: var(--ardoise);
  color: rgba(246,244,239,.82);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
.site-footer strong { color: var(--craie); }
.footer-grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }

.footer-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--craie);
}
.site-footer h3 {
  color: var(--craie);
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(246,244,239,.82); }
.site-footer a:hover { color: var(--cuivre-clair); }
.footer-menu { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(246,244,239,.12);
  padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  font-size: .875rem; color: rgba(246,244,239,.55);
}
.footer-bottom a { color: rgba(246,244,239,.7); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   17. BARRE D'ACTION MOBILE
   ========================================================== */
.mobile-action-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 950;
  display: flex;
  height: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(34,43,54,.18);
}
.mobile-action-bar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .975rem; letter-spacing: .02em;
}
.mobile-call { background: var(--cuivre); color: var(--blanc); }
.mobile-call:hover { background: var(--cuivre-fonce); color: var(--blanc); }
.mobile-quote { background: var(--ardoise); color: var(--blanc); }
.mobile-quote:hover { background: var(--ardoise-2); color: var(--blanc); }

@media (min-width: 900px) {
  .mobile-action-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ==========================================================
   18. PAGES LÉGALES / GÉNÉRIQUES / 404
   ========================================================== */
.prose h1 { margin-bottom: 2rem; }
.prose h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .35rem; color: var(--gris); }
.prose p { color: var(--gris); }

.error-404 { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-404 .error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem); font-weight: 700;
  color: var(--cuivre); line-height: 1;
}

/* ==========================================================
   20. EXPÉRIENCE MOBILE (≤ 900px uniquement — zéro impact desktop)
   ========================================================== */
@media (max-width: 900px) {

  :root { --header-h: 64px; }

  html { interpolate-size: allow-keywords; }

  body { font-size: 1rem; }

  /* ---- Rythme vertical resserré ---- */
  .section { padding-block: 3.25rem; }
  .section-head { margin-bottom: 2rem; }
  .container { padding-inline: 1.25rem; }

  /* ---- Header compact + ombre au scroll ---- */
  .header-inner { height: var(--header-h); }
  .logo-badge { width: 38px; height: 38px; }
  .logo-text { font-size: 1.2rem; }
  .site-header { transition: box-shadow .25s ease; }
  .site-header.scrolled { box-shadow: 0 4px 20px rgba(34,43,54,.12); }

  /* ---- Menu plein écran (overlay ardoise) ---- */
  body.nav-open { overflow: hidden; }
  .site-navigation {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--ardoise);
    display: block;
    padding: 1.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: none; border-bottom: none;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
    z-index: 890;
  }
  .nav-open .site-navigation { opacity: 1; visibility: visible; transform: translateY(0); }

  .menu-list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .menu-list > li { border-bottom: 1px solid rgba(246,244,239,.12); }
  .menu-list > li:last-child { border-bottom: none; }
  .menu-list a {
    display: flex; align-items: center;
    min-height: 54px;
    padding: .65rem .25rem;
    color: var(--craie);
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 600;
  }
  .menu-list a:hover { color: var(--cuivre-clair); }
  .menu-list .current-menu-item > a { color: var(--cuivre-clair); }

  /* "Prestations" devient une étiquette de groupe, sous-menu toujours déplié */
  .menu-item-has-children > a {
    pointer-events: none;
    min-height: 40px;
    font-family: var(--font-body);
    font-size: .8rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(246,244,239,.55);
  }
  .menu-item-has-children > a::after { display: none; }
  .sub-menu {
    display: block !important;
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 .5rem; min-width: 0;
  }
  .sub-menu a {
    min-height: 50px;
    padding: .5rem .25rem .5rem 1rem;
    border-left: 2px solid rgba(217,138,84,.45);
    border-radius: 0;
    color: var(--craie);
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 600;
  }
  .sub-menu a:hover { background: transparent; color: var(--cuivre-clair); }

  /* Entrée en cascade des éléments du menu */
  .menu-list > li {
    opacity: 0; transform: translateY(14px);
    transition: opacity .35s ease, transform .35s ease;
  }
  .nav-open .menu-list > li { opacity: 1; transform: translateY(0); }
  .nav-open .menu-list > li:nth-child(1) { transition-delay: .05s; }
  .nav-open .menu-list > li:nth-child(2) { transition-delay: .11s; }
  .nav-open .menu-list > li:nth-child(3) { transition-delay: .17s; }
  .nav-open .menu-list > li:nth-child(4) { transition-delay: .23s; }
  .nav-open .menu-list > li:nth-child(5) { transition-delay: .29s; }

  /* Bloc CTA injecté en bas du menu (généré en JS) */
  .menu-cta {
    margin-top: 1.75rem;
    opacity: 0; transform: translateY(14px);
    transition: opacity .35s ease .35s, transform .35s ease .35s;
    display: grid; gap: .75rem;
  }
  .nav-open .menu-cta { opacity: 1; transform: translateY(0); }
  .menu-cta .btn { min-height: 52px; font-size: 1.05rem; }
  .menu-cta-hours { text-align: center; color: rgba(246,244,239,.55); font-size: .875rem; margin: 0; }

  /* ---- Boutons : zone tactile généreuse + retour visuel ---- */
  .btn { min-height: 48px; padding: .75rem 1.4rem; }
  .btn-lg { min-height: 52px; }
  .btn:active { transform: scale(.97); }

  /* ---- Héros accueil : un écran exact, boutons pleine largeur ---- */
  .home-hero {
    min-height: calc(100svh - var(--header-h) - var(--mobile-bar-h) - env(safe-area-inset-bottom));
  }
  .home-hero::before {
    background: linear-gradient(180deg, rgba(20,27,36,.55) 0%, rgba(20,27,36,.72) 55%, rgba(20,27,36,.9) 100%);
  }
  .home-hero-inner { padding-block: 2.5rem; }
  .home-hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .home-hero .hero-lead { font-size: 1.05rem; margin-bottom: 1.5rem; }
  .home-hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero-badges { margin-top: 1.75rem; gap: .5rem; }
  .hero-badge { font-size: .8rem; padding: .4rem .75rem; }

  /* ---- En-têtes de pages intérieures ---- */
  .page-hero { height: clamp(170px, 26svh, 240px); border-bottom-width: 3px; }
  .page-head { padding-block: 1.75rem 2rem; }
  .page-head h1 { font-size: 1.85rem; }
  .page-head-intro { font-size: 1.02rem; margin-top: .6rem; }
  .breadcrumb { font-size: .8rem; margin-bottom: .75rem; }

  /* ---- Cartes services : images 3:2, feedback tactile ---- */
  .service-media img { aspect-ratio: 3 / 2; }
  .service-card:active { transform: scale(.985); }
  .service-body { padding: 1.25rem; }

  /* ---- Sections 2 colonnes : image contenue ---- */
  .split { gap: 1.75rem; }
  .split-media img { max-height: 400px; object-fit: cover; }
  .split-media-accent img { box-shadow: -8px 8px 0 rgba(178, 107, 56, .22); }

  /* ---- Étapes : timeline verticale ---- */
  .steps { gap: 0; position: relative; }
  .step {
    border: none; background: transparent; box-shadow: none;
    padding: 0 0 2rem 3.4rem;
    position: relative;
  }
  .step::before {
    position: absolute; left: 0; top: 0;
    width: 2.5rem; height: 2.5rem;
    margin-bottom: 0;
    box-shadow: 0 0 0 5px var(--blanc);
  }
  .section-alt .step::before { box-shadow: 0 0 0 5px var(--blanc); }
  .step:not(:last-child)::after {
    content: "";
    position: absolute; left: calc(1.25rem - 1px); top: 2.5rem; bottom: 0;
    width: 2px;
    background: var(--ligne);
  }
  .step h3 { padding-top: .5rem; }

  /* ---- Réalisations : carrousel à snap avec aperçu ---- */
  .gallery-grid {
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    padding: .25rem 1.25rem .75rem;
    margin-inline: -1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
  .gallery-item img { aspect-ratio: 1; }
  .gallery-body { padding: 1.1rem 1.25rem 1.35rem; }

  .carousel-dots {
    display: flex; justify-content: center; gap: .5rem;
    margin-top: 1rem;
  }
  .carousel-dots button {
    width: 8px; height: 8px;
    padding: 0; border: none; border-radius: 50%;
    background: var(--ligne);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
  }
  .carousel-dots button.active { background: var(--cuivre); transform: scale(1.35); }

  /* ---- FAQ : ouverture animée + zone tactile ---- */
  .faq-item summary { padding: 1.1rem 1.15rem; min-height: 54px; }
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .32s ease, content-visibility .32s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }

  /* ---- CTA final : boutons empilés pleine largeur ---- */
  .cta-final .btn-row { flex-direction: column; align-items: stretch; }
  .related-links { flex-direction: column; align-items: stretch; }

  /* ---- Contact ---- */
  .contact-grid > * { min-width: 0; } /* le textarea ne doit pas élargir la grille */
  .form-card { padding: 1.5rem 1.25rem; }
  .form-input { min-height: 50px; }
  .form-textarea { min-height: 130px; }
  .contact-media { text-align: center; }
  .contact-media img { max-width: 180px; margin-inline: auto; }

  /* ---- Footer ---- */
  .footer-grid { gap: 2rem; margin-bottom: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: .35rem; }

  /* ---- Barre d'action basse : flou premium + retour tactile ---- */
  .mobile-action-bar {
    background: rgba(34, 43, 54, .6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(246,244,239,.12);
  }
  .mobile-action-bar a { transition: filter .15s ease, transform .1s ease; }
  .mobile-action-bar a:active { filter: brightness(.88); }

  /* ---- Révélation au scroll (classes posées par JS, no-JS = tout visible) ---- */
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
  }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* ---- Divers ---- */
  .stats { gap: 1.25rem; }
  .stat-num { font-size: 2rem; }
  .review-card { padding: 1.4rem; }
  .communes-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================
   21. ACCESSIBILITÉ MOUVEMENT
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
