/* ==========================================================================
   FGM RENOV — Concept 1 "L'Atelier" · Mobile-first
   Palette : Or miel #D4B26A · Charbon #1A1614 · Crème #F7F2EA
   Fonts   : Cormorant Garamond (display) + Lato (texte)
   ========================================================================== */

/* ────────────────── Reset & base ────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nav-h: 68px;           /* hauteur de la nav — pilote aussi le menu mobile et le logo */
  --terra: #D4B26A;        /* Or miel, accent principal */
  --terra-dark: #B7944F;
  --terra-hover: #DFC07A;
  --terra-ink: #3D2F10;    /* Texte foncé contrasté sur fond or */
  --dark: #1A1614;
  --dark-soft: #2A2420;
  --cream: #F7F2EA;
  --cream-dark: #EDE8DE;
  --warm: #8C7B6E;
  --warm-light: #B8A89A;
  --line: #DDD8CE;
  --success: #3E8B47;
  --radius: 2px;
  --radius-lg: 8px;
  --shadow-sm: 0 2px 8px rgba(26,22,20,.06);
  --shadow-md: 0 6px 24px rgba(26,22,20,.1);
  --shadow-lg: 0 20px 60px rgba(26,22,20,.25);
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.25,.8,.25,1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Page d'accueil : le « rebond » iOS en haut et en bas montre la couleur du document.
   Sombre = raccord avec la topbar en haut et le footer en bas. */
html:has(.footer) { background: var(--dark); }

img, picture, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 10000;
}
.skip-link:focus { left: 0; }

.nowrap { white-space: nowrap; }
.ico-phone { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-bottom: 10px;
}
.kicker-light { color: var(--terra); }

.overline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 24px;
}
.overline::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--terra);
}

.section-head {
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: 16px;
}
.section-head hr {
  border: none;
  border-top: 1px solid var(--line);
  max-width: 120px;
  margin-top: 12px;
}
.section-head-dark h2 { color: var(--cream); }
.section-head-dark hr { border-top-color: #2e2824; max-width: 120px; }
.section-head-dark .kicker { color: var(--terra); }

/* ────────────────── Buttons ────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--terra);
  color: var(--terra-ink);
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: var(--radius);
  transition: all .25s var(--ease);
  min-height: 48px;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--terra-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 178, 106, .45);
  color: var(--terra-ink);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--cream);
  padding: 13px 26px;
  border: 1px solid rgba(247,242,234,.4);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all .25s var(--ease);
  min-height: 48px;
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--cream);
  background: rgba(247,242,234,.06);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  min-height: 48px;
  transition: all .2s;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--dark);
  color: var(--cream);
}

.btn-link {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
  opacity: .85;
}
.btn-link:hover { opacity: 1; }

.btn-large {
  padding: 18px 32px;
  font-size: 13px;
  min-height: 56px;
}
.btn-full { width: 100%; }

/* ────────────────── Top bar ────────────────── */
.topbar {
  background: var(--dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 10px var(--gutter);
  border-bottom: 1px solid #2a2420;
}
.topbar-phone {
  font-weight: 800;
  color: var(--cream);
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.topbar-phone:hover { color: var(--terra-hover); }
.topbar-urgent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--terra-hover);
  font-weight: 700;
  padding: 6px 0;
}
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 0 rgba(212,178,106,.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212,178,106,.7); }
  70% { box-shadow: 0 0 0 10px rgba(212,178,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,178,106,0); }
}

/* ────────────────── Navigation ────────────────── */
.nav {
  background: var(--cream);
  color: var(--dark);
  position: sticky;
  top: 0;
  z-index: 700;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
/* Quand le menu mobile est ouvert : on masque la topbar et on
   colle la nav en haut → la croix reste accessible et le menu
   couvre tout sans chevauchement. */
body:has(.nav-menu.is-open) .topbar { display: none; }
body:has(.nav-menu.is-open) .nav { position: fixed; top: 0; left: 0; right: 0; }
.nav.is-scrolled { box-shadow: 0 4px 18px rgba(26,22,20,.06); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* Logo : tuile carrée blanche (le fichier a un fond blanc), jamais déformée */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img {
  width: calc(var(--nav-h) - 12px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(26,22,20,.08), 0 2px 8px rgba(26,22,20,.08);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  z-index: 10;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--cream);
  padding: 32px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
  z-index: 600; /* sous la nav (700) pour ne jamais masquer la croix */
}
.nav-menu.is-open { transform: translateX(0); }
.nav-menu a {
  display: block;
  padding: 18px 4px;
  font-size: 18px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark);
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--terra-dark); }

.nav-cta { display: none; }

/* ────────────────── Hero ────────────────── */
.hero {
  position: relative;
  min-height: 88vh;           /* fallback */
  min-height: 88svh;          /* viewport "small" : exclut barres mobiles dynamiques */
  color: var(--cream);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* Image auto-hébergée : mobile par défaut, desktop via media query.
     Évite la dépendance à un CDN tiers (DNS + TLS + latence sur le LCP). */
  background-image: url('/img/hero-maison-mobile.JPG');
  background-size: cover;
  background-position: center center;
  background-color: #2A2420; /* couleur d'attente = pas de flash blanc */
  z-index: 0;
}
@media (min-width: 800px) {
  .hero-bg { background-image: url('/img/hero-maison.JPG'); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26,22,20,.55) 0%, rgba(26,22,20,.35) 55%, rgba(26,22,20,.2) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  width: 100%;
}
.hero-card {
  background: rgba(20, 16, 14, 0.55);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: 36px 28px;
  max-width: 620px;
  border-left: 3px solid var(--terra);
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  color: var(--cream);
}
.hero-card .overline {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  margin-bottom: 18px;
  color: var(--cream);
  font-weight: 700;
}
.hero-card .overline::before {
  background: var(--terra);
  width: 36px;
  height: 2px;
}
/* Petit écran : le tiret décoratif mange 50 px et force le nom de la commune
   sur 4 lignes. La bordure dorée de la carte suffit comme accent. */
@media (max-width: 519px) {
  .hero-card .overline::before { display: none; }
}
.hero-card .h1 {
  color: var(--cream);
  margin-bottom: 0;
}
.hero-card .h1 i {
  color: var(--terra);
}
.h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(38px, 9vw, 72px);
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 600;
}
.h1 i { font-style: italic; color: var(--terra); }

.hero-sub {
  color: var(--warm);
  font-size: clamp(15px, 2.3vw, 18px);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 40px;
}
.hero-cta > .btn-primary,
.hero-cta > .btn-ghost {
  flex: 1 1 100%;
}
@media (min-width: 520px) {
  .hero-cta > .btn-primary,
  .hero-cta > .btn-ghost { flex: 0 1 auto; }
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 540px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-trust > div { display: flex; flex-direction: column; }
.hero-trust strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 5vw, 36px);
  color: var(--terra-dark);
  font-weight: 700;
  line-height: 1;
}
.hero-trust span {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--warm);
  margin-top: 6px;
}

/* ────────────────── Sections base ────────────────── */
section { padding: 72px 0; }

.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--cream);
  padding: 32px 24px;
  transition: background .3s var(--ease);
}
.service-card:hover { background: var(--dark); }
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-ico { color: var(--cream); }
.service-card:hover .service-points li { color: var(--warm-light); border-color: #2a2420; }

.service-ico {
  font-size: 28px;
  color: var(--terra);
  display: inline-block;
  margin-bottom: 14px;
  transition: color .3s;
}
.service-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
  transition: color .3s;
}
.service-card p {
  font-size: 14px;
  color: var(--warm);
  line-height: 1.7;
  margin-bottom: 14px;
  transition: color .3s;
}
.service-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-points li {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--warm);
  border-radius: 999px;
  transition: color .3s, border-color .3s;
}

/* ────────────────── Dépannage section ────────────────── */
.depannage {
  background: var(--dark);
  color: var(--cream);
  padding: 64px 0;
  border-top: 4px solid var(--terra);
  border-bottom: 4px solid var(--terra);
}
.depannage-inner {
  display: grid;
  gap: 32px;
}
.depannage h2 {
  color: var(--cream);
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 16px;
}
.depannage-sub {
  color: var(--warm-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 560px;
}
.depannage-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.depannage-bullets li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--cream);
}
.depannage-bullets li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--terra-ink);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.depannage-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.depannage-actions .btn-primary,
.depannage-actions .btn-outline { width: 100%; }

/* ────────────────── Réalisations / Avant-Après ────────────────── */
.realisations {
  background: var(--cream);
  color: var(--dark);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.compare-item figcaption {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--warm);
  margin-top: 14px;
  text-align: center;
}
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  user-select: none;
  background: #000;
  touch-action: none;
  box-shadow: var(--shadow-lg);
}
.compare img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-after { position: absolute; inset: 0; }
.compare-before {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.compare-before img { width: 100%; height: 100%; object-fit: cover; }
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--terra);
  z-index: 3;
  transform: translateX(-1px);
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--terra-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212,178,106,.55);
}
.compare-lbl {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--terra-ink);
  background: var(--terra);
  z-index: 4;
  pointer-events: none;
}
.compare-lbl-av { left: 14px; }
.compare-lbl-ap { right: 14px; background: var(--dark); color: var(--terra); border: 1px solid var(--terra); }

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.gallery-extra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.gallery-extra figure {
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.gallery-extra img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-extra figure:hover img { transform: scale(1.04); }
.gallery-extra figcaption {
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--warm);
  background: #fff;
}

/* ────────────────── Testimonials ────────────────── */
.testimonials {
  background: var(--cream);
  padding: 72px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.testimonial {
  background: #fff;
  padding: 28px 24px;
  border-top: 3px solid var(--terra);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.testimonial::before {
  content: '“';
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  color: var(--terra);
  opacity: .14;
  line-height: 1;
  font-weight: 700;
}
.stars {
  color: #E8A23A;
  font-size: 18px;
  letter-spacing: 2px;
}
.testimonial blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--dark);
  font-style: italic;
  font-weight: 500;
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.testimonial-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.testimonial-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--warm);
  letter-spacing: .04em;
}
.allo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: #00B894;
  color: #fff;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}
.allo-badge-dark { background: var(--dark); }

.testimonials-note {
  font-size: 12px;
  color: var(--warm);
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  margin: -16px auto 32px;
}
.testimonial-author small { font-weight: 400; color: var(--warm); }
.testimonials-cta {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.testimonials-cta p {
  color: var(--warm);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.testimonials-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--dark);
  transition: all .2s var(--ease);
}
.platform-link:hover {
  border-color: var(--terra);
  color: var(--terra);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ────────────────── Why / pourquoi ────────────────── */
.why { background: var(--cream-dark); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.why-card {
  background: var(--cream);
  padding: 28px 24px;
  border-left: 3px solid var(--terra);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.why-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  color: var(--terra);
  opacity: .25;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.why-card h3 { font-size: 22px; margin-bottom: 8px; }
.why-card p { color: var(--warm); font-size: 14px; line-height: 1.7; }

/* ────────────────── Zone d'intervention ────────────────── */
.zone { background: var(--cream); }
.zone-sub {
  font-size: 15px;
  color: var(--warm);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 24px;
}
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zone-groups { display: grid; gap: 28px; }
.zone-group h3 {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-bottom: 12px;
}
@media (min-width: 900px) {
  .zone-groups { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
}
.zone-list li {
  padding: 10px 18px;
  background: var(--dark);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: .05em;
  border-radius: 999px;
}

/* ────────────────── FAQ ────────────────── */
.faq { background: var(--cream-dark); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  border-radius: 2px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 48px 18px 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 3.4vw, 22px);
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  position: relative;
  list-style: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--terra-dark);
  transition: transform .25s var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--terra-dark); }
.faq-answer {
  padding: 0 20px 20px;
  color: var(--warm);
  font-size: 15px;
  line-height: 1.75;
}
.faq-answer strong { color: var(--dark); font-weight: 700; }
.faq-answer a {
  color: var(--terra-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-cta {
  margin-top: 28px;
  font-size: 15px;
  color: var(--warm);
}
.faq-cta a {
  color: var(--terra-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ────────────────── Contact ────────────────── */
.contact {
  background: var(--cream-dark);
  padding: 80px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-title {
  font-size: clamp(32px, 6vw, 48px);
  margin-bottom: 14px;
}
.contact-sub {
  font-size: 15px;
  color: var(--warm);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}
.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--cream);
  border-left: 3px solid var(--terra);
  transition: transform .2s var(--ease);
}
a.contact-row:hover { transform: translateX(4px); }
.contact-ico {
  color: var(--terra);
  width: 36px;
  flex-shrink: 0;
}
.contact-ico svg { width: 22px; height: 22px; }
.contact-row small {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warm);
}
.contact-row strong {
  font-size: 16px;
  color: var(--dark);
  font-weight: 700;
}

/* Form */
.contact-form {
  background: var(--cream);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.honeypot { display: none; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 700;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--dark);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  border-radius: var(--radius);
  min-height: 48px;
  width: 100%;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(212,178,106,.22);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--warm);
  line-height: 1.5;
}
.form-consent input {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--terra);
  flex-shrink: 0;
}
.form-note {
  font-size: 12px;
  color: var(--warm);
  line-height: 1.6;
  text-align: center;
}
.form-note a { color: var(--terra-dark); font-weight: 800; text-decoration: underline; }
.form-legal {
  margin-top: 10px;
  font-size: 11px;
  color: var(--warm);
  line-height: 1.6;
  text-align: center;
}
.form-legal a { color: inherit; text-decoration: underline; }

/* ────────────────── Footer ────────────────── */
.footer {
  background: var(--dark);
  color: var(--warm-light);
  padding: 56px 0 0;
  /* Mobile : place sous le footer pour la barre fixe « Appeler / Devis » (fond sombre, invisible) */
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo img { width: 88px; height: 88px; border-radius: 6px; background: #fff; }
.footer-tag { color: var(--warm); line-height: 1.7; font-size: 13px; }
.footer h4 {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--warm-light); transition: color .2s; }
.footer a:hover { color: var(--terra); }
.footer-zone { font-size: 13px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid #2a2420;
  padding: 20px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--warm);
  max-width: var(--max);
  margin: 0 auto;
}

/* ────────────────── Mobile sticky bar ────────────────── */
/* Sobre : une ligne, angles vifs comme le reste du site, l'appel en bouton principal. */
.mobile-stick {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  gap: 8px;
  z-index: 600;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--dark);
  border-top: 1px solid rgba(247, 242, 234, .1);
  transition: transform .3s var(--ease), visibility 0s;
}
/* Masquée tant que la topbar est visible (voir le script après la barre) */
.mobile-stick.is-hidden {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s .3s;
}
.ms-btn {
  min-height: 44px;              /* cible tactile minimale recommandée par Apple */
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: filter .15s ease;
}
.ms-btn .ico-phone { width: 16px; height: 16px; }
.ms-phone { flex: 1.35; background: var(--terra); color: var(--terra-ink); }
.ms-devis { flex: 1; color: var(--cream); border: 1px solid rgba(247, 242, 234, .35); }
.ms-btn:active { filter: brightness(.92); }

/* ────────────────── Breakpoints ────────────────── */

/* ≥ 640px */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .gallery-extra { grid-template-columns: repeat(3, 1fr); }
  .compare-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .depannage-actions { flex-direction: row; flex-wrap: wrap; }
  .depannage-actions .btn-primary,
  .depannage-actions .btn-outline { width: auto; flex: 1 1 220px; }
}

/* ≥ 900px */
@media (min-width: 900px) {
  .footer { padding-bottom: 0; }
  .mobile-stick { display: none; }

  :root { --nav-h: 80px; }
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    flex-direction: row;
    transform: none;
    gap: 4px;
    overflow: visible;
  }
  .nav-menu a {
    padding: 10px 10px;       /* serré entre 900 et 1100 px : 7 liens + logo + bouton */
    border-bottom: none;
    font-size: 12px;
    letter-spacing: .1em;
  }
  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--terra);
    border: 1px solid var(--terra);
    color: var(--terra-ink);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 800;
    white-space: nowrap;
    transition: all .25s var(--ease);
  }
  .nav-cta:hover {
    background: var(--terra-hover);
    border-color: var(--terra-hover);
    color: var(--terra-ink);
  }

  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-content { padding: 60px var(--gutter); }
  .hero-card { padding: 44px 40px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-extra { grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin-left: auto; margin-right: auto; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .compare-grid { grid-template-columns: repeat(3, 1fr); }
  .depannage-inner { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
  .gallery-extra img { height: 240px; }

  .compare { aspect-ratio: 4/3; }
  .contact-form { padding: 40px; }
}

/* ≥ 1100px */
@media (min-width: 1100px) {
  section { padding: 96px 0; }
  .depannage { padding: 88px 0; }
}

/* ────────────────── Accessibility ────────────────── */
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}
.service-card:hover .service-ico { color: var(--terra-hover); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ────────────────── Pages légales ────────────────── */
.legal-head { background: var(--cream); border-bottom: 1px solid var(--line); }
.legal-head .nav-inner { justify-content: flex-start; gap: 20px; }
.legal-back { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dark); }
.legal-back:hover { color: var(--terra-dark); }
.legal { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.legal h1 { font-size: clamp(34px, 6vw, 48px); margin-bottom: 8px; }
.legal .legal-updated { color: var(--warm); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin: 36px 0 12px; }
.legal p, .legal li { line-height: 1.75; margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 10px; }
.legal a { color: var(--terra-dark); text-decoration: underline; }
body.page-legal { padding-bottom: 0; }

@media (min-width: 1100px) {
  .nav-menu a { padding: 10px 16px; letter-spacing: .12em; }
}
