/* =============================================================
   ACIERYS MÉTALLERIE — design system
   Direction artistique : l'or du logo, l'acier, l'ivoire.
   Tous les réglages visuels sont dans :root ci-dessous.
   ============================================================= */

:root {
  /* Couleurs — l'or est prélevé directement sur le logo */
  --gold:        #9A8A58;   /* or du logo */
  --gold-deep:   #76683D;   /* or lisible sur fond clair (petits textes) */
  --gold-light:  #CDBE8F;   /* or lisible sur fond sombre */
  --ivory:       #F5F2EB;   /* fond principal */
  --paper:       #ECE7DB;   /* fond secondaire */
  --ink:         #141311;   /* texte, fonds sombres */
  --steel:       #1E1D1A;   /* fond sombre secondaire */
  --graphite:    #5C5950;   /* texte secondaire */
  --line:        rgba(20, 19, 17, .12);
  --line-dark:   rgba(245, 242, 235, .14);

  /* Typographies */
  --ff-display: "Gelasio", Georgia, "Times New Roman", serif;
  --ff-text:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Échelle typographique fluide */
  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + .9vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 1.9vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.8rem + 3.6vw, 5.2rem);
  --step-5:  clamp(3rem, 1.9rem + 5.4vw, 7rem);

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--ff-text); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--ivory); padding: .7rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: currentColor; }
.dark .eyebrow, .hero .eyebrow { color: var(--gold-light); }
.h-xl { font-size: var(--step-5); font-weight: 600; letter-spacing: -.025em; }
.h-lg { font-size: var(--step-4); letter-spacing: -.02em; }
.h-md { font-size: var(--step-3); }
.h-sm { font-size: var(--step-2); }
.h-lg em, .h-md em, .h-xl em { color: var(--gold); font-weight: 500; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--graphite); max-width: 58ch; }
.dark .lead { color: rgba(245, 242, 235, .72); }
.muted { color: var(--graphite); }
.dark .muted { color: rgba(245, 242, 235, .6); }
.caps { text-transform: uppercase; letter-spacing: .14em; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 2.4rem; height: 1px; background: currentColor; }
.center .lead { margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--ivory);
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1rem 1.6rem; min-height: 52px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg); border-radius: var(--radius);
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { --bg: var(--gold); --fg: var(--ink); }
.btn--gold { --bg: var(--gold); --fg: var(--ink); }
.btn--gold:hover { --bg: var(--ivory); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .notfound .btn--ghost { color: var(--ivory); }
.dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .notfound .btn--ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--sm { min-height: 42px; padding: .7rem 1.1rem; font-size: .72rem; }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding-top: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: .35rem; border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 1em; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--ivory);
  transition: background .4s var(--ease), color .4s var(--ease), transform .45s var(--ease), box-shadow .4s;
}
.header.is-solid, .header--solid { background: rgba(245, 242, 235, .94); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .85rem; min-height: 44px; }
.brand__mark { width: 52px; height: auto; }
.brand__mark--light { display: block; }
.brand__mark--gold { display: none; }
.header.is-solid .brand__mark--light, .header--solid .brand__mark--light { display: none; }
.header.is-solid .brand__mark--gold, .header--solid .brand__mark--gold { display: block; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .1em; }
.brand__sub { font-family: var(--ff-display); font-weight: 600; font-size: .62rem; letter-spacing: .34em; margin-top: .3rem; color: var(--gold-light); }
.header.is-solid .brand__sub, .header--solid .brand__sub { color: var(--gold-deep); }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.2rem); }
.nav a { position: relative; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: flex; align-items: center; gap: 1rem; }
.header__tel { font-size: .82rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.header .btn { --bg: var(--gold); --fg: var(--ink); }
.header .btn:hover { --bg: var(--ivory); }
.header.is-solid .btn:hover, .header--solid .btn:hover { --bg: var(--ink); --fg: var(--ivory); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid currentColor; background: transparent; border-radius: var(--radius); cursor: pointer; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger::before { top: 16px; } .burger span { top: 22px; } .burger::after { top: 28px; }
.burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; font-family: var(--ff-display); font-size: clamp(1.8rem, 7vw, 2.6rem); padding: .35rem 0; }
.drawer li a:hover { color: var(--gold-light); }
.drawer__foot { margin-top: 2.5rem; font-size: var(--step--1); color: rgba(245, 242, 235, .65); }
.drawer__foot a { color: var(--gold-light); }
body.nav-open .header { color: var(--ivory); background: transparent; box-shadow: none; }
body.nav-open .header .brand__mark--light { display: block; }
body.nav-open .header .brand__mark--gold { display: none; }

@media (max-width: 1080px) {
  .nav, .header__tel { display: none; }
  .burger { display: block; }
}
@media (max-width: 520px) {
  :root { --header-h: 72px; }
  .brand__mark { width: 42px; }
  .brand__name { font-size: 1.12rem; }
  .header__cta .btn { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 11vw, 9.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--top0 { padding-top: 0; }
.alt { background: var(--paper); }
.dark { background: var(--ink); color: var(--ivory); }
.dark--steel { background: var(--steel); }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(120% 70% at 85% 0%, rgba(154, 138, 88, .12), transparent 60%);
}
.dark > * { position: relative; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head > div { max-width: 720px; }
.sec-head .lead { margin: 1.2rem 0 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: var(--line-dark); }

/* ---------- Apparition au scroll ---------- */
/* Les effets ne s'activent que si le JavaScript tourne (classe .js posée dans <head>) :
   sans JS, tout le contenu reste visible. */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js .reveal-img img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img, .reveal-img img, .zmap-city { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .marquee__track { animation: none !important; }
}

/* ---------- Photos ---------- */
.ph { position: relative; overflow: hidden; background: #d9d3c5; }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }
.ph--zoom img { transition: transform 1.2s var(--ease); }
a:hover .ph--zoom img, .ph--zoom:hover img { transform: scale(1.05); }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-1 { aspect-ratio: 1; }

/* Emplacement « photo à venir » pour les prestations sans photo */
.ph--empty {
  display: grid; place-items: center; text-align: center; color: var(--gold-deep);
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(154, 138, 88, .09) 22px 23px),
    linear-gradient(160deg, #EFEADF, #E2DCCD);
}
.ph--empty span { display: grid; gap: .8rem; justify-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; padding: 1rem; }
.ph--empty img.emb { width: 38%; max-width: 140px; height: auto; object-fit: contain; opacity: .7; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--ink); color: var(--ivory); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, .15) 35%, rgba(20, 19, 17, .88) 100%),
    linear-gradient(90deg, rgba(20, 19, 17, .75) 0%, rgba(20, 19, 17, 0) 65%);
}
.hero__in { position: relative; padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { font-size: var(--step-5); font-weight: 600; letter-spacing: -.025em; max-width: 13ch; margin-bottom: 1.6rem; }
.hero h1 em { color: var(--gold-light); font-weight: 500; }
.hero .lead { color: rgba(245, 242, 235, .78); margin-bottom: 2.4rem; max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__foot {
  margin-top: clamp(3rem, 7vw, 5.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.hero__foot div { font-size: var(--step--1); color: rgba(245, 242, 235, .62); }
.hero__foot strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: var(--step-1); color: var(--ivory); margin-bottom: .15rem; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 6vw, 4.5rem); writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(245, 242, 235, .6); display: flex; align-items: center; gap: 1rem; }
.hero__scroll::after { content: ""; width: 1px; height: 70px; background: linear-gradient(var(--gold-light), transparent); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
}

/* Hero des pages intérieures */
.page-hero { position: relative; background: var(--ink); color: var(--ivory); padding: calc(var(--header-h) + clamp(3.5rem, 9vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.page-hero--img { min-height: 72svh; display: flex; align-items: flex-end; }
.page-hero--img .page-hero__bg { position: absolute; inset: 0; }
.page-hero--img .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--img .page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,17,.5), rgba(20,19,17,.25) 40%, rgba(20,19,17,.9)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: var(--step-5); max-width: 16ch; }
.page-hero h1 em { color: var(--gold-light); font-weight: 500; }
.page-hero .lead { margin-top: 1.5rem; color: rgba(245, 242, 235, .75); }
.crumbs { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245, 242, 235, .55); margin-bottom: 1.6rem; }
.crumbs a:hover { color: var(--gold-light); }
.crumbs span { margin: 0 .6rem; color: var(--gold); }

/* ---------- Bandeau défilant ---------- */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; padding: 1.05rem 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee span { font-family: var(--ff-display); font-size: var(--step-1); font-weight: 600; padding: 0 1.4rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 2.8rem; }
.marquee span::after { content: ""; width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- L'atelier ---------- */
.atelier { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.atelier__quote { font-family: var(--ff-display); font-size: var(--step-3); line-height: 1.15; font-weight: 500; margin: 0 0 2rem; }
.atelier__quote em { color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.8rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--ff-display); font-size: var(--step-3); font-weight: 600; color: var(--gold-deep); line-height: 1; margin-bottom: .5rem; }
.stats span { font-size: var(--step--1); color: var(--graphite); line-height: 1.4; display: block; }
.atelier__photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.atelier__photos .ph:first-child { grid-row: span 2; }
.atelier__photos .ph:nth-child(2) { margin-top: 3.5rem; }
.atelier__badge {
  position: absolute; left: -2.2rem; bottom: 2.2rem; width: 132px; height: 132px; border-radius: 50%;
  background: var(--ink); color: var(--ivory); display: grid; place-items: center; text-align: center;
  font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5;
  box-shadow: 0 0 0 8px var(--ivory);
}
.atelier__badge img { width: 58px; margin: 0 auto .35rem; }
@media (max-width: 900px) {
  .atelier { grid-template-columns: 1fr; }
  .atelier__badge { left: 1rem; bottom: -1.5rem; width: 110px; height: 110px; }
}

/* ---------- Prestations (grille de l'accueil) ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.svc { position: relative; display: flex; flex-direction: column; }
.svc .ph { aspect-ratio: 4 / 5; margin-bottom: 1.2rem; }
.svc__num { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-size: .7rem; font-weight: 700; letter-spacing: .2em; color: var(--ivory); background: rgba(20,19,17,.55); padding: .35rem .6rem; backdrop-filter: blur(4px); }
.svc .ph--empty + .svc__num, .svc__num--dark { color: var(--ink); background: rgba(245,242,235,.7); }
.svc h3 { font-size: var(--step-1); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.svc h3 svg { flex: none; width: 18px; color: var(--gold); transition: transform .4s var(--ease); }
.svc:hover h3 svg { transform: translateX(5px); }
.svc p { font-size: var(--step--1); color: var(--graphite); margin: 0; }
.svc::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc:hover::after { transform: scaleX(1); }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

/* ---------- Réalisations (mosaïque) ---------- */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.8rem, 1.6vw, 1.4rem); grid-auto-flow: dense; }
.work { position: relative; grid-column: span 4; display: flex; flex-direction: column; cursor: zoom-in; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; }
.work .ph { aspect-ratio: 4 / 5; width: 100%; }
.work--wide { grid-column: span 8; }
.work--wide .ph { aspect-ratio: auto; flex: 1; min-height: 320px; }
.work--wide .ph img { position: absolute; inset: 0; }
.work__cap {
  position: absolute; inset: auto 0 0 0; padding: 3rem 1.2rem 1.1rem; color: var(--ivory);
  background: linear-gradient(transparent, rgba(20,19,17,.85));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.work:hover .work__cap, .work:focus-visible .work__cap { opacity: 1; transform: none; }
.work__cap h3 { font-size: var(--step-1); font-weight: 600; }
.work__cap small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .35rem; }
.work__count { font-size: .7rem; font-weight: 700; letter-spacing: .1em; white-space: nowrap; border: 1px solid rgba(245,242,235,.5); padding: .3rem .55rem; }
@media (hover: none) { .work__cap { opacity: 1; transform: none; } }
@media (max-width: 900px) { .work, .work--wide { grid-column: span 6; } .work--wide .ph { aspect-ratio: 4 / 5; flex: none; min-height: 0; } }
@media (max-width: 560px) { .work, .work--wide { grid-column: span 12; } }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filters button {
  border: 1px solid var(--line); background: transparent; padding: .65rem 1.1rem; border-radius: 40px; cursor: pointer;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite);
  transition: all .3s var(--ease);
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.filters button sup { font-size: .62rem; margin-left: .3rem; color: var(--gold); }

/* ---------- Vidéos ---------- */
.films { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: clamp(1rem, 2vw, 1.6rem); align-items: end; }
.film { position: relative; aspect-ratio: 9 / 16; background: var(--steel); overflow: hidden; }
.film video, .film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film video { opacity: 0; transition: opacity .8s; }
.film.is-ready video { opacity: 1; }
.film video { cursor: pointer; }
.film__play {
  position: absolute; inset: 0; margin: auto; z-index: 3; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ivory);
  background: rgba(20, 19, 17, .55); border: 1px solid rgba(245, 242, 235, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s;
}
.film__play svg { width: 24px; margin-left: 3px; }
.film__play:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.06); }
.film.is-playing .film__play { opacity: 0; pointer-events: none; }
.film.is-playing .film__play:focus-visible { opacity: 1; pointer-events: auto; }
.film__tag { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; display: inline-flex; gap: .5rem; align-items: center; }
.film__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(205,190,143,.25); }
.films__text { padding-bottom: 1rem; }
@media (max-width: 900px) { .films { grid-template-columns: 1fr 1fr; } .films__text { grid-column: 1 / -1; order: -1; } }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 2.2rem clamp(1rem, 2vw, 2rem) 0 0; position: relative; }
.step + .step { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--line); }
.step__n { font-family: var(--ff-display); font-size: var(--step-3); color: var(--gold); line-height: 1; display: block; margin-bottom: 1.4rem; }
.step h3 { font-size: var(--step-1); margin-bottom: .7rem; }
.step p { font-size: var(--step--1); color: var(--graphite); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; gap: 0; }
  .step, .step + .step { padding: 1.8rem 1rem 1.8rem 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Avis ---------- */
.rating { display: flex; align-items: center; gap: 1.4rem; }
.rating strong { font-family: var(--ff-display); font-size: var(--step-4); font-weight: 600; line-height: 1; color: var(--gold-light); }
.rating small { display: block; font-size: var(--step--1); color: rgba(245,242,235,.6); }
.stars { color: var(--gold-light); letter-spacing: .2em; font-size: .95rem; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.review {
  margin: 0; padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 1.2rem;
  background: rgba(245, 242, 235, .025); transition: border-color .4s, background .4s;
}
.review:hover { border-color: rgba(205, 190, 143, .45); background: rgba(245, 242, 235, .05); }
.review p { font-family: var(--ff-display); font-size: var(--step-1); line-height: 1.45; font-weight: 400; margin: 0; flex: 1; }
.review p::before { content: "“"; display: block; font-size: 3.2rem; line-height: .6; height: 1.4rem; color: var(--gold); }
.review footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); }
.review cite { font-style: normal; font-weight: 700; font-size: .9rem; display: block; }
.review cite small { display: block; font-weight: 500; color: rgba(245,242,235,.55); font-size: .8rem; margin-top: .15rem; }
.review__tag { font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); text-align: right; }
.reviews--light .review { border-color: var(--line); background: #fff6; }
.reviews--light .review footer { border-color: var(--line); }
.reviews--light .review cite small { color: var(--graphite); }
.reviews--light .review__tag, .reviews--light .stars { color: var(--gold-deep); }
@media (max-width: 1000px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.zone__map { position: relative; }
.zone__map svg { width: 100%; height: auto; overflow: visible; }
.zmap-ring { fill: none; stroke: var(--ink); stroke-opacity: .14; }
.zmap-ring--out { stroke-dasharray: 3 6; stroke-opacity: .28; }
.zmap-zone { fill: var(--gold); fill-opacity: .08; }
.zmap-axis { stroke: var(--ink); stroke-opacity: .08; }
.zmap-km { font: 700 10px var(--ff-text); letter-spacing: .12em; fill: var(--gold-deep); }
.zmap-dot { fill: var(--ink); }
.zmap-dot--far { fill: none; stroke: var(--graphite); stroke-width: 1.4; }
.zmap-lbl { font: 600 12.5px var(--ff-text); fill: var(--ink); }
.zmap-lbl--far { fill: var(--graphite); font-weight: 500; font-style: italic; }
.zmap-lbl--big { font: 600 15px var(--ff-display); }
.zmap-pulse { fill: var(--gold); transform-origin: center; transform-box: fill-box; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
.zmap-home { fill: var(--gold); stroke: var(--ivory); stroke-width: 3; }
.js .zmap-city { opacity: 0; transition: opacity .6s var(--ease); }
.zone__map.is-in .zmap-city { opacity: 1; }
.zone__lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.2rem 0; }
.zone__lists h3 { font-family: var(--ff-text); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); padding-bottom: .7rem; margin-bottom: .8rem; border-bottom: 1px solid var(--line); }
.zone__lists ul { list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.zone__lists li { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: baseline; line-height: 1.35; padding: .32rem 0; }
.zone__lists li span { color: var(--graphite); font-size: .78em; white-space: nowrap; }
.zone__note { font-size: var(--step--1); color: var(--graphite); padding: 1.1rem 1.3rem; border-left: 2px solid var(--gold); background: rgba(154,138,88,.07); }
@media (max-width: 960px) { .zone { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .zone__lists { grid-template-columns: 1fr 1fr; } }

/* ---------- Bandeau devis ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 19, 17, .8); }
.cta-band__in { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
.cta-band ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .8rem; }
.cta-band li { display: flex; gap: .9rem; align-items: baseline; color: rgba(245,242,235,.82); }
.cta-band li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg) translateY(-2px); }
@media (max-width: 860px) { .cta-band__in { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); }
.contact__block { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.contact__block:first-of-type { border-top: 0; padding-top: 0; }
.contact__block h3 { font-family: var(--ff-text); font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .8rem; }
.contact__big { font-family: var(--ff-display); font-size: var(--step-2); font-weight: 600; line-height: 1.2; display: inline-block; padding: .4rem 0; transition: color .3s; }
a.contact__big:hover { color: var(--gold-deep); }
.contact__mail { display: inline-block; padding-top: .45rem; font-family: var(--ff-display); font-size: var(--step-1); border-bottom: 1px solid var(--gold); word-break: break-all; }
.hours { list-style: none; margin: 0; padding: 0; font-size: var(--step--1); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.hours li.is-today { font-weight: 700; color: var(--ink); }
.hours li.is-today span:first-child::after { content: "Aujourd'hui"; margin-left: .6rem; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: .15rem .45rem; vertical-align: 1px; }
.map { position: relative; min-height: 460px; height: 100%; background: var(--paper); filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.map:hover { filter: grayscale(0); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.socials { display: flex; gap: .7rem; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: all .3s; }
.socials a:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.socials svg { width: 19px; height: 19px; }
.dark .socials a, .footer .socials a { border-color: var(--line-dark); }
.dark .socials a:hover, .footer .socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .map { min-height: 360px; } }

/* ---------- Pages prestation ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks b { font-family: var(--ff-display); font-weight: 600; font-size: var(--step-1); display: block; margin-bottom: .2rem; }
.checks span { color: var(--graphite); font-size: var(--step--1); }
.checks i { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--gold-deep); padding-top: .45rem; min-width: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: .5rem .95rem; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; border-radius: 40px; background: #fff5; }
.dark .chips li { border-color: var(--line-dark); background: transparent; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.spec > div { padding: 1.8rem; border: 1px solid var(--line-dark); }
.spec h3 { font-size: var(--step-1); margin-bottom: 1rem; color: var(--gold-light); }
.spec p { font-size: var(--step--1); color: rgba(245,242,235,.7); margin-bottom: 1rem; }
@media (max-width: 900px) { .spec { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.4rem 0; font-family: var(--ff-display); font-size: var(--step-1); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: var(--ff-text); font-weight: 400; transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); }
.faq details p { color: var(--graphite); padding: 0 3.5rem 1.4rem 0; margin: 0; }
.others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.others a { background: var(--ivory); padding: 1.6rem; display: flex; flex-direction: column; gap: .4rem; transition: background .35s; }
.others a:hover { background: var(--paper); }
.others small { font-size: .68rem; font-weight: 700; letter-spacing: .2em; color: var(--gold-deep); }
.others span { font-family: var(--ff-display); font-size: var(--step-1); font-weight: 600; }
@media (max-width: 900px) { .others { grid-template-columns: 1fr 1fr; } }

/* ---------- Formulaires ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .5rem; }
.field label, .field legend, .label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: #8a867c; }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1rem; background: #fff; border: 1px solid rgba(20,19,17,.18); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(154,138,88,.2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A2352B; }
.field__err { font-size: .8rem; color: #A2352B; min-height: 0; }
.field__hint { font-size: .8rem; color: var(--graphite); }
.suffix { position: relative; }
.suffix input { padding-right: 3rem; }
.suffix::after { content: attr(data-suffix); position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: .85rem; color: var(--graphite); pointer-events: none; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: var(--step--1); color: var(--graphite); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin-top: .15rem; }
.hp { position: absolute; left: -9999px; }

/* Tuiles de choix (type de prestation) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.tiles legend { margin-bottom: 1rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .tile span { padding: 1rem .9rem; font-size: 1rem; } }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile span {
  display: flex; flex-direction: column; gap: .8rem; height: 100%; padding: 1.2rem; min-height: 132px;
  background: #fff; border: 1px solid rgba(20,19,17,.14); border-radius: var(--radius);
  font-family: var(--ff-display); font-size: 1.08rem; font-weight: 600; line-height: 1.2;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.tile svg { width: 30px; height: 30px; color: var(--gold-deep); }
.tile small { font-family: var(--ff-text); font-size: .78rem; font-weight: 500; color: var(--graphite); margin-top: auto; }
.tile:hover span { border-color: var(--gold); }
.tile input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--ivory); box-shadow: 0 10px 30px -12px rgba(20,19,17,.5); }
.tile input:checked + span svg { color: var(--gold-light); }
.tile input:checked + span small { color: rgba(245,242,235,.6); }
.tile input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: .7rem 1.1rem; border: 1px solid rgba(20,19,17,.18); border-radius: 40px; background: #fff; font-size: .88rem; font-weight: 600; transition: all .25s; }
.seg input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Devis : étapes */
.quote { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.quote > * { min-width: 0; }
.quote__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.progress { list-style: none; margin: 0 0 2rem; padding: 0; counter-reset: p; }
.progress li { counter-increment: p; display: flex; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); color: #9a968c; font-weight: 600; font-size: .92rem; transition: color .3s; }
.progress li::before { content: counter(p, decimal-leading-zero); width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .75rem; flex: none; transition: all .3s; }
.progress li.is-current { color: var(--ink); }
.progress li.is-current::before { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.progress li.is-done { color: var(--gold-deep); }
.progress li.is-done::before { content: "✓"; background: var(--gold); border-color: var(--gold); color: var(--ink); }
.quote__promise { padding: 1.4rem; background: var(--ink); color: var(--ivory); }
.quote__promise strong { display: block; font-family: var(--ff-display); font-size: var(--step-2); color: var(--gold-light); line-height: 1.1; margin-bottom: .5rem; }
.quote__promise p { font-size: var(--step--1); color: rgba(245,242,235,.7); margin: 0; }
.qstep { display: none; }
.qstep.is-active { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.qstep h2 { font-size: var(--step-3); }
.qstep__intro { color: var(--graphite); margin: -.8rem 0 0; }
.qnav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.qnav [data-prev][hidden] + * { margin-left: auto; }
@media (max-width: 900px) {
  .quote { grid-template-columns: minmax(0, 1fr); }
  .quote__aside { position: static; }
  .progress { display: flex; gap: .4rem; margin-bottom: 0; }
  .progress li { flex: 1; font-size: 0; border: 0; padding: 0; flex-direction: column; }
  .progress li::before { width: 100%; height: 5px; border-radius: 0; font-size: 0; border: 0; background: var(--line); }
  .progress li.is-current::before, .progress li.is-done::before { background: var(--gold); content: ""; }
  .quote__promise { display: none; }
}

/* Dépôt de photos */
.drops { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
@media (max-width: 560px) { .drops { grid-template-columns: 1fr; } }
.drop { position: relative; aspect-ratio: 1; border: 1.5px dashed rgba(20,19,17,.25); border-radius: var(--radius); background: #fff; display: grid; place-items: center; text-align: center; overflow: hidden; transition: border-color .25s, background .25s; }
.drop:hover, .drop.is-over { border-color: var(--gold); background: #fbf9f3; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__ph { display: grid; gap: .5rem; justify-items: center; padding: 1rem; font-size: .82rem; color: var(--graphite); pointer-events: none; }
.drop__ph svg { width: 30px; color: var(--gold-deep); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop__rm { position: absolute; top: .5rem; right: .5rem; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ink); color: var(--ivory); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.drop__size { position: absolute; left: .5rem; bottom: .5rem; z-index: 2; font-size: .7rem; font-weight: 700; background: rgba(20,19,17,.7); color: var(--ivory); padding: .2rem .45rem; }

.recap { border: 1px solid var(--line); background: #fff7; }
.recap dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.recap dt, .recap dd { margin: 0; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.recap dt { font-weight: 700; color: var(--graphite); letter-spacing: .04em; }
.recap dd { word-break: break-word; }
.form-msg { padding: 1.1rem 1.3rem; font-size: var(--step--1); }
.form-msg--err { background: #f6e4e0; color: #7d261e; }
.success { text-align: center; padding: clamp(2rem, 6vw, 4rem) 0; display: grid; gap: 1.2rem; justify-items: center; }
.success__icon { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; }
.success__icon svg { width: 38px; }
.success h2 { font-size: var(--step-3); }
.success p { max-width: 52ch; color: var(--graphite); }

/* ---------- Visionneuse (lightbox) ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: #0C0B0A; color: var(--ivory); display: none; grid-template-rows: auto 1fr auto; }
.lb.is-open { display: grid; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); gap: 1rem; }
.lb__title small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.lb__title strong { font-family: var(--ff-display); font-size: var(--step-1); font-weight: 600; }
.lb__stage { --lb-pad: clamp(4.5rem, 8vw, 7rem); position: relative; min-height: 0; overflow: hidden; }
/* La photo occupe tout le cadre disponible (moins la place des flèches) et s'y ajuste
   entière, centrée, quel que soit son format (portrait ou paysage). */
.lb__stage img { position: absolute; top: 0; bottom: 0; left: var(--lb-pad); right: var(--lb-pad);
  width: calc(100% - 2 * var(--lb-pad)); height: 100%; max-width: none; object-fit: contain; object-position: center; }
.lb__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(245,242,235,.25); background: transparent; color: var(--ivory); cursor: pointer; display: grid; place-items: center; transition: all .3s; }
.lb__btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lb__btn svg { width: 20px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: var(--gutter); } .lb__next { right: var(--gutter); }
.lb__bottom { padding: 1rem var(--gutter) 1.4rem; display: flex; justify-content: space-between; gap: 2rem; align-items: center; font-size: var(--step--1); color: rgba(245,242,235,.7); }
.lb__bottom p { margin: 0; max-width: 70ch; }
.lb__count { font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
@media (max-width: 640px) {
  .lb__stage { --lb-pad: 0px; }
  .lb__prev, .lb__next { width: 44px; height: 44px; background: rgba(20,19,17,.6); border-color: rgba(245,242,235,.35); z-index: 2; }
  .lb__prev { left: .5rem; } .lb__next { right: .5rem; }
  .lb__bottom { flex-direction: column-reverse; align-items: flex-start; gap: .5rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
  .lb__bottom p { font-size: .88rem; line-height: 1.5; max-height: 7.6em; overflow-y: auto; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(245,242,235,.72); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: var(--step--1); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer__logo { width: 150px; margin-bottom: 1.4rem; }
.footer h4 { font-family: var(--ff-text); font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a:hover { color: var(--gold-light); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; padding-top: 1.8rem; font-size: .78rem; color: rgba(245,242,235,.45); }
.footer__bottom a { margin-left: 1.2rem; display: inline-block; padding: .75rem 0; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } .footer__bottom a { margin: 0 1.2rem 0 0; } }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; background: var(--ink); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; color: var(--ivory); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  .mobile-bar a svg { width: 17px; }
  .mobile-bar a.is-primary { background: var(--gold); color: var(--ink); }
  body { padding-bottom: 58px; }
  body.page-devis .mobile-bar { display: none; }
  body.page-devis { padding-bottom: 0; }
}

/* ---------- Pages légales ---------- */
.legal h2 { font-size: var(--step-2); margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: var(--step-1); margin: 1.8rem 0 .6rem; }
.legal p, .legal li { color: #3d3b35; }
.legal ul { padding-left: 1.2rem; }
.legal dl { display: grid; grid-template-columns: minmax(170px, auto) 1fr; margin: 0; border-top: 1px solid var(--line); }
.legal dt, .legal dd { margin: 0; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.legal dt { font-weight: 700; padding-right: 1.5rem; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dt { border-bottom: 0; padding-bottom: 0; } }
.todo { background: #FBEFC9; color: #6b5310; padding: .05rem .4rem; font-weight: 600; border-radius: 2px; }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 40px; font-size: .8rem; font-weight: 600; }
.toc a:hover { border-color: var(--ink); }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--ivory); padding: 6rem var(--gutter); }
.notfound strong { font-family: var(--ff-display); font-size: clamp(6rem, 22vw, 14rem); color: var(--gold); line-height: .9; display: block; }

/* =============================================================
   Ajustements téléphone (audit mobile)
   ============================================================= */
@media (max-width: 1080px) {
  .footer ul { gap: 0; }
  .footer ul a { display: inline-block; padding: .65rem 0; }
  .socials a { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
  .stats { gap: .8rem; }
  .stats strong { font-size: 1.75rem; }
  .others { grid-template-columns: 1fr; }
  .others a { padding: 1.1rem 1.2rem; flex-direction: row; align-items: baseline; gap: .9rem; }
  .hero h1, .page-hero h1 { overflow-wrap: break-word; }
}
/* Carte de zone : sur petit écran, on ne garde que les repères principaux
   (la liste complète des communes est juste en dessous) */
@media (max-width: 640px) {
  .zmap-lbl:not(.zmap-lbl--big), .zmap-lbl--near, .zmap-km { display: none; }
  .zmap-lbl--big { font-size: 28px; }
  .zmap-dot { r: 5; }
}
/* Devis : nom de l'étape en cours sous la barre de progression */
.progress__label { display: none; }
@media (max-width: 900px) {
  .progress__label { display: block; margin: .8rem 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
}
