/* ==========================================================================
   AHB Menuiserie — Design System
   Palette : vert foncé / vert clair / blanc cassé légèrement beige
   Typo : Fraunces (titres) + Manrope (corps)
   ========================================================================== */

:root {
  --petrol: #1B3A2A;
  --petrol-rgb: 27, 58, 42;
  --forest: #3E6B48;
  --forest-rgb: 62, 107, 72;
  --sand: #A8C9A0;
  --stone: #ECE4D2;
  --ivory: #F6F1E4;
  --ivory-rgb: 246, 241, 228;
  --ink: #17221B;

  --text: var(--ink);
  --text-muted: #5c6459;
  --bg: var(--ivory);
  --border: rgba(23, 34, 27, 0.1);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.5s var(--ease);

  --header-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--petrol);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.2em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4rem, 8vw, 7rem) 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 62ch;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--petrol); color: var(--ivory); }
.btn-primary:hover { background: var(--forest); }
.btn-outline { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-outline:hover { background: var(--petrol); color: var(--ivory); }
.btn-light { background: var(--ivory); color: var(--petrol); }
.btn-light:hover { background: var(--sand); }
.btn-ghost-light { background: transparent; color: var(--ivory); border-color: rgba(var(--ivory-rgb),0.5); }
.btn-ghost-light:hover { background: rgba(var(--ivory-rgb),0.12); border-color: var(--ivory); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 70%, rgba(0,0,0,0) 100%);
  transition: background var(--transition), box-shadow var(--transition), height var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--ivory-rgb), 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
  pointer-events: none;
}
.site-header.is-scrolled,
.site-header.is-open {
  height: 74px;
}
.site-header.is-scrolled::before,
.site-header.is-open::before {
  opacity: 1;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.monogram {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ivory);
  text-shadow: 0 1px 5px rgba(0,0,0,0.4);
  transition: color var(--transition), text-shadow var(--transition);
}
.monogram span { color: var(--sand); }
.site-header.is-scrolled .monogram,
.site-header.is-open .monogram { color: var(--petrol); text-shadow: none; }
.site-header.is-scrolled .monogram span,
.site-header.is-open .monogram span { color: var(--forest); }

.main-nav { display: flex; align-items: center; gap: 2.4rem; }
.main-nav ul { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ivory);
  text-shadow: 0 1px 5px rgba(0,0,0,0.4);
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition), text-shadow var(--transition);
}
.site-header.is-scrolled .main-nav a,
.site-header.is-open .main-nav a { color: var(--petrol); text-shadow: none; }
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }

.nav-services { position: relative; }
.nav-services-panel {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ivory);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(var(--petrol-rgb),0.12);
  padding: 1.1rem;
  width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav-services:hover .nav-services-panel,
.nav-services:focus-within .nav-services-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-services-panel a {
  color: var(--petrol);
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.88rem;
}
.nav-services-panel a:hover { background: var(--stone); }
.nav-services-panel a::after { display: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ivory);
  text-shadow: 0 1px 5px rgba(0,0,0,0.4);
  transition: color var(--transition), text-shadow var(--transition);
}
.site-header.is-scrolled .header-phone,
.site-header.is-open .header-phone { color: var(--petrol); text-shadow: none; }
.main-nav .header-phone.mobile-phone { display: none; }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 32px; height: 22px;
  position: relative;
  z-index: 110;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: var(--ivory);
  transition: background var(--transition), transform 0.3s var(--ease), opacity 0.3s;
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle::before,
.site-header.is-scrolled .nav-toggle::after,
.site-header.is-open .nav-toggle span,
.site-header.is-open .nav-toggle::before,
.site-header.is-open .nav-toggle::after { background: var(--petrol); }
.nav-toggle::before { top: 0; }
.nav-toggle span { top: 10px; }
.nav-toggle::after { top: 20px; }
.site-header.is-open .nav-toggle::before { transform: translateY(10px) rotate(45deg); }
.site-header.is-open .nav-toggle span { opacity: 0; }
.site-header.is-open .nav-toggle::after { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  background: var(--petrol);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: var(--petrol);
  z-index: 0;
}
.hero-media .img-placeholder,
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Bandeau du hero : les réalisations défilent en continu (CSS pur).
   Le jeu d'images est dupliqué dans le HTML ; on translate de -50 %
   (soit exactement un jeu) pour une boucle sans couture. */
.hero-marquee .hero-track {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: max-content;
  display: flex;
  animation: heroScroll 60s linear infinite;
  will-change: transform;
}
.hero-marquee .hero-track img {
  flex: 0 0 auto;
  height: 100%;
  width: clamp(150px, 26vw, 340px);
  object-fit: cover;
}
/* Photos paysage/carré : colonne plus large pour éviter un recadrage trop serré. */
.hero-marquee .hero-track img.wide {
  width: clamp(280px, 48vw, 560px);
}
@keyframes heroScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Sans animation : le bandeau se fige. */
@media (prefers-reduced-motion: reduce) {
  .hero-marquee .hero-track { animation: none; }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--petrol-rgb),0.32) 0%, rgba(var(--petrol-rgb),0.12) 40%, rgba(var(--petrol-rgb),0.72) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(2rem, 5vw, 4rem); width: 100%; }
.hero-content .eyebrow { color: var(--sand); text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.hero h1 { color: var(--ivory); max-width: 22ch; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.hero-content .lede { color: rgba(var(--ivory-rgb),0.9); text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; right: var(--gutter);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  writing-mode: vertical-rl;
  color: rgba(var(--ivory-rgb),0.7);
  display: flex; align-items: center; gap: 0.6rem;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 50px; background: rgba(var(--ivory-rgb),0.5);
}

/* Page hero (inner pages, smaller) */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  background: var(--petrol);
  color: var(--ivory);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(var(--petrol-rgb),0.6), rgba(var(--forest-rgb),0.45));
  z-index: 1;
}
.page-hero .img-placeholder,
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
/* Mini-bandeau animé des pages intérieures : photos du thème qui défilent en continu.
   Jeu d'images dupliqué dans le HTML, translation de -50 % = boucle sans couture. */
.page-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--petrol); }
.page-hero-track {
  position: absolute; top: 0; left: 0;
  height: 100%; width: max-content;
  display: flex;
  animation: heroScroll 45s linear infinite;
  will-change: transform;
}
.page-hero-track img {
  flex: 0 0 auto;
  height: 100%;
  width: clamp(200px, 34vw, 420px);
  object-fit: cover;
  opacity: 0.9;
}
@media (prefers-reduced-motion: reduce) { .page-hero-track { animation: none; } }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--sand); text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.page-hero h1 { color: var(--ivory); max-width: 20ch; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.page-hero .lede { color: rgba(var(--ivory-rgb),0.9); text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.page-hero .breadcrumb { text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(var(--ivory-rgb),0.65);
  margin-bottom: 1.6rem;
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--sand); }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  background: repeating-linear-gradient(135deg, var(--stone), var(--stone) 12px, #e2dcc4 12px, #e2dcc4 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--forest);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 1.2rem;
  border: 1px solid var(--border);
  min-height: 220px;
  position: relative;
}
.img-placeholder span {
  background: rgba(var(--ivory-rgb),0.9);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  max-width: 32ch;
  font-weight: 600;
}
.img-placeholder.ratio-16-9 { aspect-ratio: 16/9; }
.img-placeholder.ratio-4-5 { aspect-ratio: 4/5; }
.img-placeholder.ratio-1-1 { aspect-ratio: 1/1; }
.img-placeholder.ratio-3-2 { aspect-ratio: 3/2; }

/* ---------- Photo réelle (remplace un .img-placeholder) ---------- */
.photo { display: block; overflow: hidden; border: 1px solid var(--border); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.ratio-16-9 { aspect-ratio: 16/9; }
.photo.ratio-4-5 { aspect-ratio: 4/5; }
.photo.ratio-1-1 { aspect-ratio: 1/1; }
.photo.ratio-3-2 { aspect-ratio: 3/2; }

/* ---------- Sections generic ---------- */
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-petrol { background: var(--petrol); color: var(--ivory); }
.bg-petrol h2, .bg-petrol h3 { color: var(--ivory); }
.bg-petrol .eyebrow { color: var(--sand); }
.bg-petrol p { color: rgba(var(--ivory-rgb),0.8); }
.bg-stone { background: var(--stone); }
.bg-forest { background: var(--forest); color: var(--ivory); }
.bg-forest h2, .bg-forest h3 { color: var(--ivory); }
.bg-forest .eyebrow { color: var(--sand); }
.bg-forest p { color: rgba(var(--ivory-rgb),0.85); }

/* ---------- Engagements strip ---------- */
.engagements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.engagement {
  padding: 2.2rem var(--gutter);
  border-right: 1px solid var(--border);
}
.engagement:last-child { border-right: none; }
.engagement-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--forest);
  display: block;
  margin-bottom: 0.4rem;
}
.engagement h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.engagement p { font-size: 0.88rem; margin: 0; }

/* ---------- Grid utilities ---------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-center { align-items: center; }

/* ---------- Service cards ---------- */
.service-card {
  display: block;
  background: var(--ivory);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover {
  box-shadow: 0 24px 50px rgba(var(--petrol-rgb),0.1);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card-media { position: relative; overflow: hidden; }
.service-card-media .img-placeholder,
.service-card-media .photo img { transition: transform 0.6s var(--ease); }
.service-card:hover .service-card-media .img-placeholder,
.service-card:hover .service-card-media .photo img { transform: scale(1.05); }
.service-card-media .photo { border: none; }
.service-card-body { padding: 1.6rem; }
.service-card-body .eyebrow { margin-bottom: 0.5rem; }
.service-card-body h3 { margin-bottom: 0.5rem; }
.service-card-body p { font-size: 0.92rem; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.85rem; font-weight: 700; color: var(--forest);
  margin-top: 1rem;
}
.service-card-link .arrow { transition: transform 0.3s var(--ease); }
.service-card:hover .service-card-link .arrow { transform: translateX(4px); }

/* ---------- Process steps ---------- */
.process-list { counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.process-list .process-step:last-child { border-bottom: 1px solid var(--border); }
.process-step-num {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--sand);
}
.process-step-num::before {
  content: "0" counter(step);
  font-size: 2.4rem;
  color: var(--forest);
  display: block;
}
.process-step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--petrol);
  margin: 0 0 0.4rem;
}
.process-step p { font-size: 0.94rem; max-width: 55ch; }

/* ---------- Why us ---------- */
.reasons-list { display: flex; flex-direction: column; }
.reason-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}
.reason-item:last-child { border-bottom: 1px solid var(--border); }
.reason-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--forest);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.reason-item-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--petrol);
  margin: 0 0 0.3rem;
  display: block;
}
.bg-petrol .reason-item-title { color: var(--ivory); }
.reason-item p { font-size: 0.92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--petrol);
  color: var(--ivory);
  text-align: center;
  padding: clamp(4rem, 9vw, 8rem) 0;
}
.cta-band h2 { color: var(--ivory); }
.cta-band .lede { color: rgba(var(--ivory-rgb),0.8); margin: 0 auto 2.2rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Avant / après : affichage statique côte à côte (aucun élément ne bouge) ---------- */
.ba-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}
.ba-compare-item { position: relative; overflow: hidden; background: var(--stone); }
.ba-compare-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Galerie bento (accueil) ---------- */
.gallery-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, minmax(160px, 1fr));
  gap: clamp(0.8rem, 2vw, 1.5rem);
  height: clamp(360px, 55vw, 560px);
}
.gallery-bento .photo { height: 100%; }
.gallery-bento-main { grid-row: 1 / 3; }
.gallery-bento .photo img { transition: transform 0.6s var(--ease); }
.gallery-bento .photo:hover img { transform: scale(1.04); }

/* ---------- Bloc avis Google ---------- */
.avis-google {
  text-align: center;
  margin: 2rem auto 0;
  padding: 1.6rem;
  background: var(--stone);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 420px;
}
.avis-google a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--petrol);
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}
.avis-google a:hover { text-decoration: underline; }
.avis-google p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Section plein-écran avec citation ---------- */
.photo-break {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.photo-break img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-break::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--petrol-rgb),0.25), rgba(var(--petrol-rgb),0.6));
  z-index: 1;
}
.photo-break-content { position: relative; z-index: 2; max-width: 46rem; padding: 0 var(--gutter); }
.photo-break-content p.eyebrow { color: var(--sand); }
.photo-break-quote {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ivory);
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  margin: 0;
}

/* ---------- Réalisation en photo simple (pas d'avant/après disponible) ---------- */
.realisation-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
}
.realisation-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-tag {
  position: absolute; top: 0.8rem; left: 0.8rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(var(--petrol-rgb),0.85); color: var(--ivory);
  padding: 0.35em 0.7em;
  z-index: 2;
}
.ba-caption { margin-top: 1.2rem; }
.ba-caption p { font-size: 0.88rem; }
.ba-caption .ba-caption-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--petrol);
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

/* ---------- Filter tabs (realisations) ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem; }
.filter-tab {
  display: inline-flex; align-items: center;
  min-height: 44px; /* cible tactile confortable sur mobile */
  padding: 0.55em 1.2em;
  border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600;
  background: transparent;
  color: var(--petrol);
  transition: background var(--transition), color var(--transition);
}
.filter-tab.is-active, .filter-tab:hover { background: var(--petrol); color: var(--ivory); border-color: var(--petrol); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--petrol); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.9em 1em;
  border: 1px solid var(--border);
  background: var(--ivory);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--forest);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.8rem; }
.form-status {
  margin-top: 1.2rem; padding: 1em 1.2em;
  border-left: 3px solid var(--forest);
  background: var(--stone);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: #a83232; }

/* ---------- Contact info list ---------- */
.contact-info-list { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-info-item h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.contact-info-item p, .contact-info-item a { font-size: 0.95rem; }
.contact-info-item a:hover { color: var(--forest); }
.map-embed {
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol); color: rgba(var(--ivory-rgb),0.85); padding: 5rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand .monogram { color: var(--ivory); }
.footer-brand .monogram span { color: var(--sand); }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; max-width: 32ch; }
.footer-heading { color: var(--ivory); font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 1.2rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.9rem; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom {
  border-top: 1px solid rgba(var(--ivory-rgb),0.15);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: rgba(var(--ivory-rgb),0.55);
}
.footer-bottom a:hover { color: var(--sand); }
.footer-bottom-links { display: flex; gap: 1.5rem; }

.share-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(var(--ivory-rgb),0.15);
  font-size: 0.8rem;
}
.share-label { color: rgba(var(--ivory-rgb),0.55); }
.share-link {
  color: rgba(var(--ivory-rgb),0.85);
  border: 1px solid rgba(var(--ivory-rgb),0.25);
  padding: 0.4em 0.9em;
  border-radius: var(--radius);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.share-link:hover { color: var(--petrol); background: var(--sand); border-color: var(--sand); }
.footer-note { color: rgba(var(--ivory-rgb),0.5); font-size: 0.8rem; }

/* ---------- Barre d'action fixe mobile (Appeler / SMS / Devis) ---------- */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: var(--ivory);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(var(--petrol-rgb),0.12);
  }
  .mobile-cta-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; padding: 0.5rem 0.4rem;
    font-size: 0.8rem; font-weight: 700;
    color: var(--petrol);
    border-right: 1px solid var(--border);
  }
  .mobile-cta-btn:last-child { border-right: none; }
  .mobile-cta-ico { font-size: 1.15rem; line-height: 1; }
  .mobile-cta-primary { background: var(--petrol); color: var(--ivory); }
  /* Réserver la place sous le contenu pour ne pas masquer le bas de page */
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Sous-menu réduit (dépannage) ---------- */
.nav-services-panel--sm { width: 300px; grid-template-columns: 1fr; }

/* ---------- Bloc urgence (pages dépannage) ---------- */
.urgence { background: var(--petrol); color: var(--ivory); text-align: center; padding: clamp(2rem, 5vw, 3rem) 0; }
.urgence-tel {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 400;
  color: var(--ivory); line-height: 1;
}
.urgence-tel:hover { color: var(--sand); }
.urgence-ico { font-size: 0.8em; }
.urgence-dispo { color: rgba(var(--ivory-rgb),0.8); margin: 0.8rem 0 1.5rem; font-size: 0.95rem; }
.urgence-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.urgence .btn-outline { color: var(--ivory); border-color: rgba(var(--ivory-rgb),0.5); }
.urgence .btn-outline:hover { background: rgba(var(--ivory-rgb),0.12); border-color: var(--ivory); }

/* ---------- Formulaires (contact, pro) ---------- */
.site-form .form-field { margin-bottom: 1.1rem; }
.pro-form-wrap { background: var(--stone); padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); }
.pro-form-wrap h2 { margin-top: 0; }
.consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.85rem; color: var(--text-muted); margin: 0.4rem 0 1.4rem; cursor: pointer;
}
.consent input { margin-top: 0.2rem; flex-shrink: 0; }
.file-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ---------- Reveal animation ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .service-card, .service-card-media .photo img, .internal-link-card { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Content pages (services, legal) ---------- */
.content-block { max-width: 760px; }
.content-block h2 { margin-top: 2.2em; }
.content-block h2:first-child { margin-top: 0; }
.content-block h3 { margin-top: 1.6em; }
.content-block ul { margin: 1.2em 0; padding-left: 1.2em; list-style: disc; color: var(--text-muted); }
.content-block li { margin-bottom: 0.5em; }
.content-block li::marker { color: var(--forest); }
.content-block figure { margin: 1.8em 0; }
.content-block figcaption { margin-top: 0.7em; font-size: 0.85rem; color: var(--text-muted); }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
/* Bloc éditorial centré (pages services) : évite les grandes colonnes vides. */
.content-block.is-centered { margin-inline: auto; }
/* Cartes "caractéristiques" (ex. comparatif de matériaux). */
.feature-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; background: var(--ivory); height: 100%; }
.feature-card h3 { margin: 0 0 0.7rem; color: var(--petrol); font-size: 1.15rem; font-family: var(--font-display); font-weight: 500; }
.feature-card .fc-point { margin: 0 0 0.5rem; font-weight: 600; }
.feature-card .fc-use { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.feature-card .fc-ex { margin: 0 0 0.5rem; font-weight: 700; color: var(--forest); }
.feature-card .fc-desc { margin: 0 0 0.6rem; font-size: 0.92rem; }
.service-figure { margin: 0; }
.service-figure figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--text-muted); }

.spec-table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.8em 1em; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--petrol); font-family: var(--font-display); font-weight: 500; }

.internal-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.internal-link-card {
  padding: 1.6rem; border: 1px solid var(--border); background: var(--ivory);
  transition: border-color var(--transition), transform var(--transition);
}
.internal-link-card:hover { border-color: var(--forest); transform: translateY(-3px); }
.internal-link-card .eyebrow { font-size: 0.7rem; }
.internal-link-card h3 { font-size: 1.05rem; margin-bottom: 0; }

.local-zone-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.local-zone-list li {
  font-size: 0.85rem; padding: 0.5em 1em;
  background: var(--stone); color: var(--petrol);
}

.quote-block {
  border-left: 3px solid var(--forest);
  padding: 0.4em 0 0.4em 1.6em;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--petrol);
  margin: 2em 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--petrol); color: var(--ivory);
  padding: 1em 1.4em; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .engagements { grid-template-columns: repeat(2, 1fr); }
  .engagement:nth-child(2) { border-right: none; }
  .engagement { border-bottom: 1px solid var(--border); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .internal-links { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 0; top: 74px; background: var(--ivory); padding: 2rem var(--gutter); flex-direction: column; align-items: flex-start; gap: 0; transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto; }
  .site-header.is-open .main-nav { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .main-nav ul li { width: 100%; border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: 1.1rem 0; color: var(--petrol) !important; }
  .nav-services-panel { position: static; transform: none; opacity: 1; visibility: visible; width: 100%; box-shadow: none; border: none; padding: 0 0 1rem; grid-template-columns: 1fr; display: none; }
  .nav-services.is-open .nav-services-panel,
  .nav-services:hover .nav-services-panel,
  .nav-services:focus-within .nav-services-panel {
    position: static;
    transform: none;
  }
  .nav-services.is-open .nav-services-panel { display: grid; }
  .header-phone.desktop-only { display: none; }
  .main-nav .header-phone.mobile-phone { display: inline-flex; margin-top: 1.6rem; color: var(--petrol); }
  .nav-toggle { display: block; }
  .two-col, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .process-step { grid-template-columns: 1fr; gap: 0.4rem; }
  .gallery-bento { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery-bento-main { grid-row: auto; aspect-ratio: 4/3; }
  .gallery-bento .photo:not(.gallery-bento-main) { aspect-ratio: 4/3; }
}

@media (max-width: 600px) {
  .engagements, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .engagement { border-right: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Refonte 2026 — blocs ajoutés (accueil, formulaires, FAQ, consentement)
   ========================================================================== */
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }

.hero-dispo { margin-top: 1rem; font-size: 0.9rem; color: rgba(var(--ivory-rgb),0.85); }

/* Bandeau de preuves */
.proofs { background: var(--petrol); color: var(--ivory); padding: 1.4rem 0; border-top: 1px solid rgba(var(--ivory-rgb),0.12); }
.proofs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.proofs-list li, .proofs-list a { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.82rem; color: rgba(var(--ivory-rgb),0.8); }
.proofs-list strong { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; color: var(--ivory); }
.proofs-list a:hover strong { text-decoration: underline; }

/* ---------- Avis Google ---------- */
.reviews { padding: clamp(3rem, 7vw, 5rem) 0; }
.reviews-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.3rem, 5vw, 3.25rem);
  box-shadow: 0 18px 50px -32px rgba(var(--petrol-rgb), 0.55);
}
.reviews-g { width: 52px; height: 52px; margin: 0 auto 1.1rem; display: block; }
.reviews-card h2 { margin: 0.25rem 0 0.7rem; }
.reviews-card .lede { margin: 0 auto 1.8rem; max-width: 52ch; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
@media (max-width: 480px) {
  .reviews-actions { flex-direction: column; }
  .reviews-actions .btn { width: 100%; }
}

/* Bloc saisonnier */
.saison { padding: clamp(2rem, 5vw, 3rem) 0; background: var(--stone); }
.saison-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.saison h2 { margin: 0 0 0.4rem; font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.saison p { margin: 0; max-width: 60ch; }

.services-more { text-align: center; margin-top: 2rem; font-size: 0.92rem; }
.services-more a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Bandeau professionnels */
.pro-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.pro-band h2 { color: var(--ivory); margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.9rem); max-width: 30ch; }

/* Carte chargée au clic */
.map-click { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; background: var(--stone); text-align: center; padding: 1rem; }
.map-click iframe { align-self: stretch; flex: 1; }

/* Formulaires */
.req { color: #a83232; }
.opt { font-weight: 400; color: var(--text-muted); font-size: 0.8rem; }
.form-photos { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.form-photos legend { font-size: 0.85rem; font-weight: 700; color: var(--petrol); margin-bottom: 0.5rem; padding: 0; }
/* 1rem (16px) : en dessous, iOS zoome automatiquement au tap sur le champ. */
.form-photos input { font-size: 1rem; }
.site-form .btn { margin-top: 1.2rem; }
.form-narrow { max-width: 760px; margin: 0 auto; }

/* Chantiers */
.ba-details { list-style: none; padding: 0; margin: 0.4rem 0; font-size: 0.85rem; }
.ba-note { font-style: italic; color: var(--text-muted); }
.realisations-mini { margin: 1.5rem 0 2rem; }

/* FAQ */
.faq { margin-top: 1rem; }
.faq-item { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--petrol); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--forest); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding-top: 0.6rem; }
.faq-answer p { margin: 0 0 0.6rem; }

/* Bandeau cookies (affiché seulement si un identifiant de mesure est configuré) */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1000; max-width: 640px; margin: 0 auto; background: var(--ivory); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0,0,0,0.18); padding: 1.2rem; }
.cookie-banner p { margin: 0 0 0.8rem; font-size: 0.88rem; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.8rem; justify-content: flex-end; }
.cookie-actions .btn { flex: 1; justify-content: center; }

@media (max-width: 1024px) {
  .proofs-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .saison-inner, .pro-band { flex-direction: column; align-items: flex-start; }
  .cookie-banner { bottom: 76px; }
}
@media (max-width: 600px) {
  .proofs-list { grid-template-columns: 1fr 1fr; }
  /* Sur téléphone, ce bandeau de garanties prend trop de place : on le masque. */
  .proofs { display: none; }
  /* Titre du hero d'accueil plus compact sur mobile → hero moins haut. */
  .hero h1 { font-size: 2rem; line-height: 1.12; }
  .hero-content .lede { font-size: 1rem; }
}
.nav-dispo { display: none; font-size: 0.8rem; color: var(--text-muted); margin: 0.4rem 0 0; }
@media (max-width: 860px) { .nav-dispo { display: block; } }

/* Pages services : étapes, budget, FAQ */
.service-details { padding-top: 0; }
.steps-list { counter-reset: none; padding-left: 1.3rem; }
.steps-list li { margin-bottom: 0.5rem; }
.service-extra-link { margin-top: 1.5rem; }
.service-extra-link a { color: var(--forest); font-weight: 700; }
