/* =====================================================================
   AGM BATITERRA — Feuille de style
   Les couleurs se modifient dans assets/config.js (section colors).
   Les valeurs ci-dessous servent de valeurs par défaut.
   ===================================================================== */

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

:root {
  /* Palette (imposée) */
  --black: #1F1F1F;
  --gray: #6B7280;
  --gold: #D4AF37;
  --light: #E5E7EB;
  --white: #FFFFFF;

  /* Nuances dérivées uniquement de la palette */
  --anthracite: #26282B;
  --stone: #D9CBB3;
  --black-deep: color-mix(in srgb, var(--black) 88%, #000);
  --gold-hover: color-mix(in srgb, var(--gold) 86%, var(--white));
  --gold-soft: color-mix(in srgb, var(--gold) 14%, transparent);
  --line-dark: color-mix(in srgb, var(--white) 10%, transparent);
  --line-gold: color-mix(in srgb, var(--gold) 32%, transparent);
  --text-muted-dark: color-mix(in srgb, var(--light) 78%, transparent);
  --surface-light: color-mix(in srgb, var(--light) 45%, var(--white));

  --font-head: "Archivo", "Arial", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 31, 31, .06), 0 8px 24px rgba(31, 31, 31, .08);
  --shadow-hover: 0 2px 4px rgba(31, 31, 31, .08), 0 18px 40px rgba(31, 31, 31, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
address { font-style: normal; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
section[id], #devis { scroll-margin-top: calc(var(--header-h) - 8px); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Icônes ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .95em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.quote-grid > *, .zone-grid > *, .footer-grid > * { min-width: 0; }
.btn-gold { background: var(--gold); color: var(--black); box-shadow: 0 6px 18px color-mix(in srgb, var(--gold) 28%, transparent); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--gold) 36%, transparent); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold-soft); color: var(--gold); transform: translateY(-2px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--anthracite); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: color-mix(in srgb, var(--black) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-gold), 0 10px 30px rgba(0, 0, 0, .25);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header-logo { display: flex; align-items: center; margin-right: auto; }
.header-logo img { height: 54px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .header-logo img { height: 46px; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  position: relative; display: block; padding: 8px 12px;
  color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem;
  opacity: .88; transition: opacity .2s, color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { opacity: 1; color: var(--gold); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-gold); border-radius: 10px;
  background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--black); border-top: 1px solid var(--line-gold);
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  animation: menuIn .3s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu ul { display: flex; flex-direction: column; }
.mobile-menu a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 700;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a:not(.btn)::after { content: "→"; color: var(--gold); font-weight: 400; }
.mobile-menu-actions { display: grid; gap: 12px; margin-top: 28px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 880px);
  display: flex; flex-direction: column; align-items: stretch;
  padding: calc(var(--header-h) + 48px) 0 0;
  color: var(--white); background: var(--black);
}
.hero-media, .hero-overlay, .hero-logo-bg { position: absolute; inset: 0; }
.hero-media { z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(20, 20, 20, .74) 0%, rgba(20, 20, 20, .42) 52%, rgba(20, 20, 20, .08) 100%),
    linear-gradient(180deg, rgba(20, 20, 20, .5) 0%, rgba(20, 20, 20, 0) 22%),
    linear-gradient(0deg, rgba(20, 20, 20, .5) 0%, rgba(20, 20, 20, 0) 40%);
}
.hero-logo-bg { z-index: -1; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; }
.hero-logo-bg img {
  width: min(50vw, 740px); height: auto; margin-right: -2vw;
  opacity: .14; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .2));
}
.hero-content { max-width: var(--container); margin-block: auto; padding-block: 8px 56px; }
.hero-content > * { max-width: 720px; }
.hero-content > .hero-title { max-width: 800px; }
.hero-title { font-size: clamp(2.3rem, 5.6vw, 4.25rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 22px; }
.hero-title .hl { color: var(--gold); }
.hero-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted-dark); max-width: 620px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 34px; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--black) 55%, transparent);
  border: 1px solid var(--line-gold);
  font-weight: 600; font-size: .95rem;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hero-points .icon { color: var(--gold); width: 1.1em; height: 1.1em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Apparition du hero */
.js .hero-content > * { opacity: 0; transform: translateY(16px); animation: heroIn .8s var(--ease) forwards; }
.js .hero-content > :nth-child(2) { animation-delay: .08s; }
.js .hero-content > :nth-child(3) { animation-delay: .16s; }
.js .hero-content > :nth-child(4) { animation-delay: .24s; }
.js .hero-content > :nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Bandeau d'engagements ---------- */
/* ---------- Bandeau d'engagements (dans l'accueil) ---------- */
.marquee {
  position: relative; margin-top: auto; padding: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,20,20,.35), rgba(20,20,20,.82));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-gold);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: marqueeRight 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; align-items: center; }
.marquee-item { display: flex; align-items: center; gap: 14px; padding: 18px 0 18px 0; color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.marquee-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--line-gold); flex: none; }
.marquee-ico .icon { width: 20px; height: 20px; }
.marquee-sep { width: 7px; height: 7px; margin: 0 34px; background: var(--gold); transform: rotate(45deg); opacity: .8; flex: none; }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; justify-content: center; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding: 6px 16px; }
  .marquee-dup { display: none; }
  .marquee-item { padding: 10px 0; }
  .marquee-sep { margin: 0 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-light { background: var(--surface-light); color: var(--black); }
.section-dark { background: var(--anthracite); color: var(--white); }
.section-black { background: var(--black); color: var(--white); }
#zone { background: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head-left { text-align: left; margin: 0 0 32px; }
.section-head-left .eyebrow { justify-content: flex-start; }
.section-intro { margin-top: 14px; font-size: 1.075rem; color: var(--gray); }
.section-dark .section-intro, .section-black .section-intro { color: var(--text-muted-dark); }

/* ---------- Services ---------- */
/* Cartes centrées : la dernière ligne incomplète reste au centre, quel que soit le nombre de prestations */
.services-grid { --cols: 4; --gap: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.services-grid > .service-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.services-grid .service-body { padding: 40px 22px 22px; }
.services-grid .service-body h3 { font-size: 1.25rem; }
@media (max-width: 1140px) { .services-grid { --cols: 3; } }
.service-card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--light);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--black); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 31, 31, .45), rgba(31, 31, 31, 0) 50%); }
.service-icon {
  position: absolute; left: 22px; bottom: -26px; z-index: 2;
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--black); color: var(--gold); border: 2px solid var(--gold);
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(31, 31, 31, .25);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-media { overflow: visible; }
.service-media .img-clip { position: absolute; inset: 0; overflow: hidden; }
.service-body { padding: 42px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-body p { color: var(--gray); margin-bottom: 22px; flex: 1; }
.service-body .btn { align-self: flex-start; }
.service-body .btn .icon { transition: transform .25s var(--ease); }
.service-body .btn:hover .icon { transform: translateX(3px); }

/* ---------- Pourquoi nous ---------- */
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.adv-card {
  position: relative; padding: 30px 24px 28px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--white) 3%, transparent);
  border: 1px solid var(--line-dark);
  transition: border-color .35s var(--ease), transform .35s var(--ease), background-color .35s var(--ease);
}
.adv-card:hover { border-color: var(--line-gold); transform: translateY(-4px); background: color-mix(in srgb, var(--white) 5%, transparent); }
.adv-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: var(--gold); transform: scaleX(.25); transform-origin: left; transition: transform .4s var(--ease); }
.adv-card:hover::before { transform: scaleX(1); }
.adv-num { position: absolute; top: 22px; right: 22px; font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--gold); opacity: .6; letter-spacing: .08em; }
.adv-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line-gold); margin-bottom: 22px; }
.adv-icon .icon { width: 28px; height: 28px; }
.adv-card h3 { margin-bottom: 10px; }
.adv-card p { color: var(--text-muted-dark); font-size: .975rem; }

.inline-cta {
  margin-top: 44px; padding: 26px 30px; border-radius: var(--radius);
  border: 1px solid var(--line-gold); background: var(--black);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.inline-cta p { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.inline-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Galerie ---------- */
.demo-notice {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  max-width: 760px; margin: -18px auto 32px; padding: 10px 16px; border-radius: 999px;
  border: 1px dashed var(--line-gold); color: var(--text-muted-dark); font-size: .9rem;
}
.demo-notice .icon { color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 14px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  padding: 0; border: 0; cursor: zoom-in; background: var(--anthracite); color: var(--white); text-align: left;
}
.gallery-item.is-tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 31, 31, .85) 0%, rgba(31, 31, 31, 0) 55%); transition: opacity .3s; }
.gallery-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gallery-cat { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.gallery-cat::before { content: ""; display: block; width: 22px; height: 2px; background: var(--gold); margin-bottom: 8px; }
.gallery-zoom { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--black); opacity: 0; transform: scale(.8); transition: opacity .3s var(--ease), transform .3s var(--ease); flex: none; }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.demo-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: rgba(31, 31, 31, .78); color: var(--light); border: 1px solid var(--line-dark);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 20, 20, .94);
  display: flex; align-items: center; justify-content: center; padding: 64px 72px;
  animation: fadeIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: 1200px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-height: calc(100vh - 170px); width: auto; max-width: 100%; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-figure figcaption { color: var(--light); font-size: .95rem; text-align: center; }
.lb-figure figcaption strong { color: var(--gold); font-weight: 600; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-gold); background: rgba(31, 31, 31, .7); color: var(--white);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s;
}
.lb-btn:hover { background: var(--gold); color: var(--black); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Zone ---------- */
.zone-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.zone-text h2 { margin-bottom: 16px; }
.zone-text > p { color: var(--gray); font-size: 1.075rem; margin-bottom: 26px; }
.address-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 26px;
  border-radius: var(--radius); background: var(--surface-light); border: 1px solid var(--light);
  font-weight: 600; font-size: 1.05rem; line-height: 1.45;
}
.icon-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--black); color: var(--gold); flex: none; }
.icon-badge .icon { width: 24px; height: 24px; }
.zone-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.map-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--black); box-shadow: var(--shadow-hover);
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 44px 44px;
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--white); }
.map-pin { width: 68px; height: 68px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--line-gold); color: var(--gold); box-shadow: 0 0 0 12px color-mix(in srgb, var(--gold) 6%, transparent); }
.map-pin .icon { width: 32px; height: 32px; }
.map-address { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.map-notice { font-size: .8rem; color: var(--text-muted-dark); max-width: 300px; }

/* Photo de la section « Pourquoi nous choisir » */
.why-photo { position: relative; margin: 0 0 40px; aspect-ratio: 21 / 8; border-radius: var(--radius); overflow: hidden; background: var(--black); box-shadow: var(--shadow-hover); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.why-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 20, 20, .55), rgba(20, 20, 20, 0) 55%); pointer-events: none; }
.why-photo figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 1; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
@media (max-width: 768px) { .why-photo { aspect-ratio: 4 / 3; margin-bottom: 28px; } .why-photo figcaption { left: 16px; bottom: 14px; font-size: .95rem; } }

/* Carte : photo du plan Google Maps en fond, carte interactive au clic */
.map-card .map-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-card.has-photo .map-placeholder { justify-content: flex-end; background: linear-gradient(0deg, rgba(20, 20, 20, .88) 0%, rgba(20, 20, 20, .55) 38%, rgba(20, 20, 20, 0) 65%); }
.map-card.has-photo .map-pin { display: none; }
.map-card.has-photo .map-notice { color: rgba(246, 243, 238, .8); }

/* ---------- Devis ---------- */
.quote-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: start; }
.quote-form, .form-success {
  background: var(--black); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--light); }
.req { color: var(--gold); }
.optional { font-weight: 400; color: var(--text-muted-dark); }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--white);
  background: var(--anthracite); border: 1px solid color-mix(in srgb, var(--white) 14%, transparent); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field ::placeholder { color: color-mix(in srgb, var(--light) 45%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--gold); }
.field-error { color: var(--gold); font-size: .85rem; margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); pointer-events: none;
}
.field select option { color: var(--black); background: var(--white); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field .file-drop {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px; cursor: pointer;
  border: 1px dashed var(--line-gold); border-radius: var(--radius-sm); background: var(--anthracite);
  font-weight: 500; color: var(--text-muted-dark); transition: border-color .2s, background-color .2s;
}
.field .file-drop:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, var(--anthracite)); }
.file-input:focus-visible + .field-error, .file-input:focus-visible ~ * { outline: none; }
.file-drop .icon { color: var(--gold); width: 1.5em; height: 1.5em; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--text-muted-dark); margin: 0; }
.field-check label a { color: var(--gold); }
.field-check .field-error { grid-column: 2; margin-top: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--gold); background: var(--gold-soft); color: var(--white); font-size: .95rem; }
.form-status a { color: var(--gold); font-weight: 600; }
.quote-form .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-required-note { margin-top: 12px; font-size: .82rem; color: var(--text-muted-dark); text-align: center; }
.form-success { text-align: center; padding: 48px 32px; }
.form-success:focus { outline: none; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: var(--black); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; animation: pop .5s var(--ease); }
.success-icon .icon { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.form-success h3 { font-size: 1.6rem; margin-bottom: 12px; }
.form-success p { color: var(--text-muted-dark); margin: 0 auto 26px; max-width: 460px; }

.quote-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { padding: 32px; border-radius: var(--radius); background: var(--black); border: 1px solid var(--line-gold); }
.aside-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.aside-card > p { color: var(--text-muted-dark); margin-bottom: 22px; }
.check-list { margin: 26px 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--gold); margin-top: 2px; }
.aside-address { display: flex; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: var(--text-muted-dark); }
.aside-address .icon { color: var(--gold); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--text-muted-dark); border-top: 2px solid var(--gold); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 92px; width: auto; margin-bottom: 18px; }
.footer-brand p { margin-bottom: 22px; max-width: 340px; }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.footer-links { display: grid; gap: 10px; }
.site-footer a:not(.btn) { color: var(--light); text-decoration: none; transition: color .2s; }
.site-footer a:not(.btn):hover { color: var(--gold); }
.footer-phone { margin-top: 14px; font-weight: 600; }
.footer-email { margin-top: 6px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Animations au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero-content > * { opacity: 1; transform: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1140px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { gap: 14px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .services-grid { --cols: 2; }
  .zone-grid, .quote-grid { grid-template-columns: 1fr; gap: 36px; }
  .quote-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
}
@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 34px; }
  .header-call { display: none; }
  .header-logo img { height: 44px; }

  .hero { min-height: auto; padding: calc(var(--header-h) + 28px) 0 0; }
    .hero-title { font-size: clamp(2rem, 9vw, 2.4rem); margin-bottom: 16px; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 18px; }
  .hero-content { display: flex; flex-direction: column; padding-bottom: 36px; }
  .hero-points { gap: 8px; margin: 22px 0 0; order: 5; }
  .hero-ctas { order: 4; }
  .hero-title { font-size: clamp(1.95rem, 8.4vw, 2.3rem); }
  .btn-lg { min-height: 52px; padding: .8em 1.4em; }
  .hero-overlay { background: linear-gradient(180deg, rgba(20, 20, 20, .62) 0%, rgba(20, 20, 20, .56) 55%, rgba(20, 20, 20, .86) 100%); }
  .hero-logo-bg { justify-content: center; align-items: flex-start; padding-top: calc(var(--header-h) + 12px); }
  .hero-logo-bg img { width: 118vw; max-width: none; margin: 0 0 0 -4vw; opacity: .08; }
  .hero-points li { font-size: .82rem; padding: 5px 11px 5px 8px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }

  .marquee-item { padding: 14px 0; font-size: .85rem; gap: 10px; }
  .marquee-ico { width: 34px; height: 34px; }
  .marquee-sep { margin: 0 22px; }

  .services-grid { --cols: 1; --gap: 22px; }
  .service-body .btn { align-self: stretch; }
  .advantages-grid { grid-template-columns: 1fr; gap: 14px; }
  .adv-card { padding: 24px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .adv-icon { grid-row: span 2; margin-bottom: 0; width: 50px; height: 50px; }
  .adv-card h3 { margin-bottom: 6px; padding-right: 30px; }
  .inline-cta { padding: 22px 20px; }
  .inline-cta-buttons, .inline-cta-buttons .btn { width: 100%; }

  .gallery-grid { grid-auto-rows: 160px; gap: 10px; }
  .gallery-cap { left: 12px; right: 12px; bottom: 10px; }
  .gallery-cat { font-size: .9rem; }
  .gallery-zoom { display: none; }
  .demo-notice { border-radius: var(--radius-sm); margin-top: -10px; }

  .zone-buttons .btn { flex: 1 1 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form, .form-success, .aside-card { padding: 22px 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .lightbox { padding: 64px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }

  /* Barre d'action fixe */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--black) 95%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-gold);
    transition: transform .3s var(--ease);
  }
  .mobile-bar-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
    border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; font-size: 1rem;
  }
  .mobile-bar-call { background: var(--gold); color: var(--black); }
  .mobile-bar-quote { border: 1.5px solid var(--gold); color: var(--white); }
  body.menu-open .mobile-bar { transform: translateY(110%); }
}
@media (max-width: 380px) {
  .hero-title { font-size: 2.05rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery-item.is-tall { grid-row: span 1; }
}

/* ---------- Pages simples (mentions légales, confidentialité, merci) ---------- */
.page-simple { background: var(--white); color: var(--black); }
.page-simple .simple-header { background: var(--black); border-bottom: 2px solid var(--gold); }
.page-simple .simple-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.page-simple .simple-header img { height: 36px; width: auto; }
.legal { max-width: 800px; padding-top: 56px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.legal .lead { color: var(--gray); margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--light); }
.legal p, .legal li { color: color-mix(in srgb, var(--black) 85%, var(--gray)); margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal a { color: var(--black); text-decoration-color: var(--gold); text-underline-offset: 3px; }
mark.todo { background: var(--gold-soft); color: var(--black); padding: 1px 6px; border-radius: 4px; border: 1px dashed var(--gold); }
.simple-footer { background: var(--black); color: var(--text-muted-dark); padding: 20px 0; font-size: .85rem; }
.thanks { min-height: calc(100vh - 72px - 60px); display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.thanks .success-icon { margin-bottom: 22px; }
.thanks h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.thanks p { color: var(--gray); max-width: 520px; margin: 0 auto 26px; }
.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 768px) { .page-simple { padding-bottom: 0; } .page-simple .simple-header .btn { min-height: 42px; padding: .5em 1em; font-size: .9rem; } }

/* Image indisponible (ex. aperçu hors ligne) */
.img-missing { background-color: var(--anthracite); background-image: repeating-linear-gradient(135deg, var(--line-dark) 0 1px, transparent 1px 14px); }

/* ---- Refonte : menu, pied de page, finitions ---- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-quote { white-space: nowrap; }
.footer-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-cta .btn { min-height: 46px; }
.hero-title { text-wrap: balance; }
.service-card, .adv-card, .gallery-item { will-change: transform; }
@media (max-width: 1140px) { .header-quote { display: none; } }
@media (max-width: 768px) { .header-actions .header-call { display: none; } .footer-cta .btn { flex: 1 1 100%; } }
.inline-cta { color: var(--white); }
.inline-cta p { color: var(--white); }

/* =====================================================================
   SEO — pages de prestations, fil d'Ariane, FAQ (ajouts novembre 2026)
   ===================================================================== */
.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; }
.footer-title { font-family: var(--font-head); line-height: 1.12; }
.footer-title-sub { margin-top: 26px; }
.footer-hours { margin-top: 6px; font-size: .92rem; }
.text-link { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text-link:hover { color: var(--gold); }

/* Accueil : H1 discret (au-dessus du slogan) et slogan en paragraphe */
.hero h1.eyebrow { font-family: var(--font-body); line-height: 1.5; letter-spacing: .16em; }
p.hero-title { font-family: var(--font-head); line-height: 1.12; }

/* Cartes de prestation : lien vers la page détaillée */
.service-body h3 a { color: inherit; text-decoration: none; }
.service-body h3 a:hover { color: color-mix(in srgb, var(--gold) 80%, var(--black)); }
.service-more { align-self: flex-start; margin: -10px 0 16px; font-weight: 600; font-size: .95rem; color: var(--black); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.service-more:hover { color: color-mix(in srgb, var(--gold) 75%, var(--black)); }

/* En-tête des pages intérieures */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(78svh, 680px);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 40px) 0 0;
  color: var(--white); background: var(--black);
}
.page-hero .hero-content { margin-block: auto; padding-block: 8px 64px; }
.page-hero .page-title { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.page-hero .hero-subtitle { max-width: 680px; }
.breadcrumb { margin-bottom: 22px; font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { color: var(--text-muted-dark); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--gold); }
.breadcrumb a { color: var(--white); text-decoration: none; opacity: .85; }
.breadcrumb a:hover { color: var(--gold); opacity: 1; }
.hero-phone { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-muted-dark); font-weight: 600; }
.hero-phone .icon { color: var(--gold); }
.hero-phone a { color: var(--white); text-decoration: none; font-size: 1.1rem; }
.hero-phone a:hover { color: var(--gold); }

/* Corps des pages intérieures */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.prose { max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--black) 82%, var(--gray)); font-size: 1.04rem; }
.prose .lead-para { font-size: 1.12rem; color: var(--black); }
.prose a:not(.btn) { color: var(--black); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: color-mix(in srgb, var(--gold) 70%, var(--black)); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.feature { padding: 22px 22px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--light); box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { font-size: .98rem; }
.content-figure { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; background: var(--black); box-shadow: var(--shadow); }
.content-figure img { width: 100%; height: auto; }
.content-figure figcaption { padding: 10px 16px; font-size: .85rem; color: var(--text-muted-dark); background: var(--black); }
.page-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.page-aside .aside-card { color: var(--white); }
.page-aside .aside-card > p { color: var(--text-muted-dark); margin-bottom: 18px; }
.page-aside .aside-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin-bottom: 8px; color: var(--white); }
.page-aside .btn + .btn { margin-top: 10px; }
.page-aside .aside-address a { color: var(--gold); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--light); font-weight: 600; font-size: .95rem; color: var(--black); }
.link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.link-list li { position: relative; padding-left: 18px; }
.link-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--gold); }

/* Étapes */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; margin: 0; padding: 0; }
.steps-grid .adv-card h3 { margin: 18px 0 10px; }

/* FAQ (toujours visible) */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.faq-item { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--light); box-shadow: var(--shadow); }
.faq-item h3 { font-size: 1.12rem; margin-bottom: 10px; }
.faq-item p { color: color-mix(in srgb, var(--black) 80%, var(--gray)); }
.faq-item a { color: var(--black); font-weight: 600; text-decoration-color: var(--gold); }

/* Prestations complémentaires */
.related-section .section-intro .text-link { color: var(--white); }
.services-grid.related-grid > .service-card { color: var(--black); }

/* Page 404 */
.not-found { background: var(--white); color: var(--black); padding-top: calc(var(--header-h) + 48px); }
.not-found h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 12px; }
.link-list-center { max-width: 560px; margin: 0 auto 28px; text-align: left; }

@media (max-width: 1140px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-aside { position: static; }
  .faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero { min-height: auto; padding: calc(var(--header-h) + 22px) 0 0; }
  .page-hero .hero-content { padding-bottom: 40px; }
  .page-hero .page-title { font-size: clamp(1.85rem, 8vw, 2.3rem); }
  .breadcrumb { font-size: .8rem; margin-bottom: 16px; }
  .feature-list, .link-list, .steps-grid { grid-template-columns: 1fr; }
  .steps-grid .adv-card { display: block; }
  .hero-phone { justify-content: center; }
  .service-more { align-self: stretch; text-align: center; }
}
@media (max-width: 768px) { .page-hero .hero-phone { order: 5; } }
