/* ============================================================================
   AM Construction — « Lumière du jour »
   ---------------------------------------------------------------------------
   Palette relevée sur les maisons livrées : enduit à la chaux, menuiseries
   anthracite RAL 7016, bardage mélèze. Newsreader pour parler, Archivo pour
   informer. Angles droits, filets de 1 px, aucune lueur. Le mouvement est lié
   au défilement et joué une fois ; rien ne tourne en boucle.
   ============================================================================ */

/* ---------- tokens ---------- */
:root {
  --chaux: #EDEBE6;
  --enduit: #F7F6F3;
  --beton: #C9C5BC;
  --trait: #8F8B83;
  --zinc: #6B6A64;
  --anthracite: #353A3D;
  --nuit: #24282A;
  --meleze: #8C5530;
  --meleze-fonce: #6E4124;
  --meleze-clair: #C08A5A;
  --sur-nuit: #E9E7E1;
  --sur-nuit-2: #A9A7A1;
  --filet-nuit: rgba(233, 231, 225, 0.16);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --t-20: clamp(18px, 1.4vw, 20px);
  --t-32: clamp(25px, 2.4vw, 32px);
  --t-40: clamp(26px, 3vw, 40px);
  --t-56: clamp(34px, 4.6vw, 56px);
  --t-112: clamp(46px, 8.4vw, 112px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --m: clamp(20px, 4vw, 56px);
  --wrap: 1440px;
  --nav-h: 72px;
  --z-nav: 50;
  --z-bar: 55;
  --z-menu: 60;

  /* Aliases read by the quote-page styles (kept below, unchanged). */
  --papier: var(--chaux);
  --papier-fold: var(--enduit);
  --plomb: var(--anthracite);
  --plomb-encre: var(--nuit);
  --sanguine: var(--meleze);
  --sanguine-lo: var(--meleze-fonce);
  --sanguine-hi: var(--meleze-clair);
  --plomb-78: color-mix(in oklch, var(--anthracite) 78%, transparent);
  --plomb-56: color-mix(in oklch, var(--anthracite) 56%, transparent);
  --plomb-24: color-mix(in oklch, var(--anthracite) 24%, transparent);
  --plomb-12: color-mix(in oklch, var(--anthracite) 12%, transparent);
  --papier-88: color-mix(in oklch, var(--chaux) 88%, transparent);
  --papier-72: color-mix(in oklch, var(--chaux) 72%, transparent);
  --papier-56: color-mix(in oklch, var(--chaux) 56%, transparent);
  --papier-24: color-mix(in oklch, var(--chaux) 24%, transparent);
  --sanguine-24: color-mix(in oklch, var(--meleze) 14%, transparent);
  --font-display: var(--serif);
  --font-body: var(--sans);
  --font-mono: var(--sans);
  --type-xl: var(--t-32);
  --type-lg: 1.2rem;
  --type-md: 1rem;
  --type-sm: 0.9rem;
  --type-xs: 0.78rem;
  --type-2xs: 0.72rem;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 14px;
  --sp-4: 22px;
  --sp-5: 36px;
  --sp-6: 58px;
  --sp-7: 94px;
  --dur-quick: 200ms;
  --ease-crisp: var(--ease);
  --ease-line: var(--ease);
  --header-h: var(--nav-h);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--anthracite);
  background: var(--chaux);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--anthracite); color: var(--enduit); }
:focus-visible { outline: 2px solid var(--meleze); outline-offset: 3px; }
p { text-wrap: pretty; }
em { font-style: italic; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: 12px 18px; background: var(--anthracite); color: var(--enduit);
  font: 500 14px/1 var(--sans);
  transition: top 0.3s var(--ease);
}
.skip-link:focus-visible { top: 16px; }

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--m); min-width: 0; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
main { padding-top: var(--nav-h); }
.page-home main { padding-top: 0; }
.fold-sentinel { position: absolute; top: 0; width: 1px; height: 60vh; pointer-events: none; }

/* ---------- type ---------- */
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-stretch: 125%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.35;
}
.muted { color: var(--zinc); }
.num { font-variant-numeric: tabular-nums; }
.display, .h2, .h3, .h-display, .h-display-sm {
  font-family: var(--serif);
  font-weight: 300;
  text-wrap: balance;
}
.display { font-size: var(--t-112); line-height: 0.96; letter-spacing: -0.02em; }
.h2, .h-display { font-size: var(--t-56); line-height: 1.03; letter-spacing: -0.015em; }
.h3, .h-display-sm { font-size: var(--t-32); line-height: 1.15; font-weight: 400; letter-spacing: -0.005em; }

.lien {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
  transition: background-size 0.5s var(--ease);
}
.lien:hover { background-size: 100% 1px; }

.icon { display: inline-flex; width: 1.1em; height: 1.1em; flex: none; }
.icon svg { width: 100%; height: 100%; }
.icon--sm { width: 14px; height: 14px; }
.icon--lg { width: 22px; height: 22px; }
.icon--xl { width: 28px; height: 28px; }

/* ---------- wordmark ---------- */
.wm { display: inline-flex; align-items: center; gap: 0.55em; font-size: 22px; color: inherit; }
.wm__mark { display: grid; width: 2.05em; }
.wm__mark svg {
  width: 100%; height: auto; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: miter; stroke-linecap: square;
}
.wm__am { font: 600 1em/1 var(--sans); font-stretch: 112%; letter-spacing: 0.04em; text-align: center; margin-top: 0.08em; }
.wm__rule { width: 1px; height: 1.35em; background: currentColor; opacity: 0.35; }
.wm__name { font: 500 0.5em/1 var(--sans); font-stretch: 125%; letter-spacing: 0.22em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  font: 500 14px/1.1 var(--sans); letter-spacing: 0.01em; text-align: center;
  color: var(--anthracite); background: transparent;
  border: 1px solid currentColor; border-radius: 0;
  cursor: pointer;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), background-color 0.45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--meleze);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--meleze); }
.btn:hover::before { transform: scaleX(1); }
.btn .icon, .btn > svg { width: 16px; height: 16px; }
.btn--plein, .btn--primary { background: var(--anthracite); color: var(--enduit); border-color: var(--anthracite); }
.btn--blanc { background: #fff; color: var(--anthracite); border-color: #fff; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- navigation ---------- */
.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: var(--nav-h); padding: 0 var(--m);
}
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  color: #fff;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav:not(.is-solid) { text-shadow: 0 1px 14px rgba(20, 22, 24, 0.25); }
.nav.is-solid { background: var(--chaux); color: var(--anthracite); box-shadow: inset 0 -1px 0 var(--beton); }
.bar__brand { justify-self: start; display: inline-flex; color: inherit; }
.bar__links { display: flex; gap: 34px; }
.bar__links a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 15px;
  background: linear-gradient(currentColor, currentColor) no-repeat left calc(100% - 4px) / 0% 1px;
  transition: background-size 0.5s var(--ease);
}
.bar__links a:hover { background-size: 100% 1px; }
.bar__links a.is-active::before {
  content: ""; position: absolute; left: -11px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--meleze-clair);
}
.nav.is-solid .bar__links a.is-active::before { background: var(--meleze); }
.bar__end { justify-self: end; display: flex; align-items: center; gap: 22px; }
.bar__tel { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav:not(.is-solid) .bar__cta { background: #fff; color: var(--anthracite); border-color: #fff; text-shadow: none; }
.nav:not(.is-solid) .bar__cta:hover { color: #fff; border-color: var(--meleze); }
.bar__menu { display: none; color: inherit; border-color: currentColor; }
.bar__menu:hover { color: #fff; }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column;
  background: var(--enduit); color: var(--anthracite);
}
.menu .bar { grid-template-columns: 1fr auto; box-shadow: inset 0 -1px 0 var(--beton); }
.menu__links { flex: 1; display: grid; align-content: center; gap: 4px; padding: 24px var(--m); overflow-y: auto; }
.menu__links a {
  display: block; font: 300 clamp(36px, 9vw, 52px)/1.15 var(--serif);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__foot { display: grid; gap: 12px; padding: 20px var(--m) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--beton); }
.menu__foot .btn { width: 100%; }

.action-bar {
  position: fixed; z-index: var(--z-bar); left: 0; right: 0; bottom: 0;
  display: none; gap: 8px;
  padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom));
  background: var(--chaux); box-shadow: inset 0 1px 0 var(--beton);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.action-bar.is-in { transform: none; }
.action-bar__cta { flex: 1; }
.action-bar__call { flex: none; }
.action-bar__call .icon { width: 18px; height: 18px; }

/* ---------- film (hero, motion unchanged) ---------- */
.stage { position: relative; background: var(--chaux); color: #fff; }
.stage__viewport {
  position: sticky; top: 0; height: 100svh;
  overflow: hidden; isolation: isolate;
  clip-path: inset(var(--fold, 0px));
}
.stage__still, .stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__still { z-index: 0; }
.stage__canvas { z-index: 1; }
/* Phone hero: two registered frames, dissolved by scroll. Hidden entirely on a
   pointer screen, where the scrubbed sequence does the same job with 80. */
/* Declared as backgrounds, not <img>, and only inside the phone media query:
   an <img> is fetched even when its container is display:none, so a desktop was
   downloading 292 KB of phone hero it would never show. */
.stage__ab { display: none; }
.stage__ab-img { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; }
.stage__scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(36, 40, 42, 0.5) 0%, rgba(36, 40, 42, 0) 24%),
    linear-gradient(to top, rgba(36, 40, 42, 0.74) 0%, rgba(36, 40, 42, 0.28) 36%, rgba(36, 40, 42, 0) 60%);
}
.stage__beats { position: relative; z-index: 3; margin-top: -100svh; }
.beat { display: flex; align-items: flex-end; }
.beat--mid { display: none; }
.beat--open { min-height: 100svh; }
.beat--close { min-height: 500svh; }
.beat__inner { width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 0 var(--m) clamp(40px, 9vh, 96px); }
.beat--open .beat__inner {
  min-height: 100svh; display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(20px, 5vh, 56px));
}
.beat--open .beat__body { flex: 1; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font: 300 var(--t-112)/0.96 var(--serif); letter-spacing: -0.02em;
  text-align: center; max-width: 16ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(20, 22, 24, 0.35);
}
.hero__sub {
  margin-top: auto; align-self: flex-start; max-width: 46ch;
  font-size: var(--t-20); line-height: 1.5; color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 16px rgba(20, 22, 24, 0.4);
}
.hero__actions { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.hero__call { font-size: 15px; color: rgba(255, 255, 255, 0.88); }
.hero__call a { color: #fff; }
.beat--close .beat__body { max-width: 700px; display: grid; gap: 18px; }
.beat__marker { color: rgba(255, 255, 255, 0.82); }
.beat__title {
  font: 300 var(--t-56)/1.03 var(--serif); letter-spacing: -0.015em; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(20, 22, 24, 0.35);
}
.beat__text { font-size: var(--t-20); line-height: 1.5; color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.beat__cta { justify-self: start; margin-top: 6px; }
.stage__cue {
  position: absolute; left: 50%; bottom: clamp(12px, 3vh, 28px); z-index: 4;
  width: 40px; height: 40px; margin-left: -20px;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.85); pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.stage__cue svg { width: 26px; height: 26px; }
.stage__cue.is-gone { opacity: 0; }


/* ---------- 404 --------------------------------------------------------- */
.notfound { padding-top: calc(var(--nav-h) + clamp(80px, 14vh, 180px)); padding-bottom: clamp(80px, 14vh, 180px); }
.notfound__title { margin-top: 18px; max-width: 16ch; }
.notfound__text { margin-top: 20px; max-width: 46ch; color: var(--zinc); }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(32px, 5vh, 56px); }

/* ---------- sections ---------- */
.section { padding-top: clamp(88px, 11vw, 168px); }
.strip {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 12px; margin-bottom: clamp(36px, 5vw, 72px);
  border-bottom: 1px solid currentColor;
}
.strip__aside { color: var(--zinc); text-align: right; }
.shead { margin-bottom: clamp(48px, 6vw, 96px); align-items: end; }
.shead__title { grid-column: 1 / span 7; }
.shead__sub { grid-column: 9 / span 4; color: var(--zinc); max-width: 44ch; }

/* manifesto */
.manifesto { background: var(--enduit); padding-block: clamp(88px, 12vw, 180px); }
.manifesto__label { color: var(--zinc); margin-bottom: 32px; }
.manifesto__line {
  font: 300 var(--t-56)/1.1 var(--serif); letter-spacing: -0.015em;
  max-width: 24ch; opacity: var(--lit, 1); transition: opacity 0.25s linear;
}
.manifesto__line + .manifesto__line { margin-top: 6px; }

/* projects */
.win { overflow: hidden; clip-path: inset(0 var(--side, 0%) 0 var(--side, 0%)); background: var(--beton); }
.win img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); }
.proj { display: grid; gap: 18px; align-content: start; }
.proj--wide .win { aspect-ratio: 1800 / 1005; }
.proj__cap { display: grid; grid-template-columns: 96px minmax(0, 5fr) minmax(0, 6fr); gap: 12px 24px; align-items: start; }
.proj__n { padding-top: 8px; }
.proj__title { max-width: 26ch; }
.cart { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--anthracite); }
.cart div { padding: 10px 12px 12px 0; border-bottom: 1px solid var(--beton); }
.cart div + div { padding-left: 12px; box-shadow: inset 1px 0 0 var(--beton); }
.cart dd { margin-top: 4px; font: 400 17px/1.35 var(--serif); font-variant-numeric: tabular-nums; }
.pair { margin-top: clamp(72px, 9vw, 136px); align-items: start; }
.proj--main { grid-column: 1 / span 7; }
.proj--side { grid-column: 9 / span 4; margin-top: clamp(80px, 16vw, 260px); }
.proj--main .win { aspect-ratio: 4 / 3; }
.proj--side .win { aspect-ratio: 4 / 5; }
.pair .proj__cap { grid-template-columns: 72px minmax(0, 1fr); }
.pair .cart { grid-column: 1 / -1; }

/* evening chapter: the only dark section */
.evening { margin-top: clamp(96px, 12vw, 176px); padding-block: clamp(72px, 9vw, 136px); background: var(--nuit); color: var(--sur-nuit); }
.evening .grid12 { align-items: center; }
.evening__text { grid-column: 1 / span 5; display: grid; gap: 20px; }
.evening__label, .evening__body { color: var(--sur-nuit-2); }
.evening__body { max-width: 46ch; }
.evening__win { grid-column: 7 / span 6; aspect-ratio: 1 / 1; background: #1a1d1f; }
.evening .cart { border-top-color: var(--sur-nuit-2); }
.evening .cart div { border-bottom-color: var(--filet-nuit); }
.evening .cart div + div { box-shadow: inset 1px 0 0 var(--filet-nuit); }

/* savoir-faire: plan to house */
.savoir__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 4vw, 72px); align-items: start; }
.savoir__list { border-top: 1px solid var(--anthracite); }
.service {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px;
  padding: 28px 0 32px; border-bottom: 1px solid var(--beton);
  color: var(--zinc); transition: color 0.5s var(--ease);
}
.service.is-current { color: var(--anthracite); }
.service__n { position: relative; padding-top: 8px; }
.service__n::before {
  content: ""; position: absolute; left: -14px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--meleze);
  transform: scale(0); transition: transform 0.5s var(--ease);
}
.service.is-current .service__n::before { transform: scale(1); }
.service__title { font: 400 var(--t-32)/1.15 var(--serif); margin-bottom: 8px; text-wrap: balance; }
.service p { max-width: 48ch; }
.savoir__sticky { position: sticky; top: calc(var(--nav-h) + 28px); }
.plan { position: relative; aspect-ratio: 1000 / 560; background: var(--enduit); box-shadow: inset 0 0 0 1px var(--beton); overflow: hidden; }
.plan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan .ln { fill: none; stroke: var(--anthracite); stroke-width: 1.6; }
.plan .ln--fine { stroke-width: 1; stroke-dasharray: 5 5; stroke: var(--trait); }
.plan .hatch line { stroke: var(--trait); stroke-width: 0.8; }
.is-scroll-craft .plan .ln { stroke-dasharray: 1; stroke-dashoffset: var(--o, 0); }
.is-scroll-craft .plan .ln--fine { stroke-dasharray: 5 5; stroke-dashoffset: 0; opacity: calc(1 - var(--o, 0)); }
.plan__photo { position: absolute; inset: 0; clip-path: inset(0 var(--w, 0%) 0 0); }
.plan__photo img { width: 100%; height: 100%; object-fit: cover; }
.plan__beam {
  position: absolute; top: 0; bottom: 0; left: calc(100% - var(--w, 0%)); width: 1px;
  background: #fff; box-shadow: 0 0 18px 2px rgba(255, 255, 255, 0.7);
  opacity: var(--beam, 0);
}
.plan__tb { position: absolute; right: 0; bottom: 0; z-index: 3; display: flex; background: var(--enduit); box-shadow: inset 0 0 0 1px var(--anthracite); }
.plan__tb span { padding: 6px 10px; }
.plan__tb span + span { box-shadow: inset 1px 0 0 var(--beton); }

/* method */
.steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; padding-top: 40px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.steps::before { background: var(--beton); }
.steps::after { background: var(--anthracite); transform: scaleX(var(--p, 1)); transform-origin: left; }
.steps__item { position: relative; display: grid; gap: 10px; align-content: start; color: var(--zinc); transition: color 0.5s var(--ease); }
.steps__item::before {
  content: ""; position: absolute; left: 0; top: -44px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--chaux); box-shadow: inset 0 0 0 1px var(--anthracite);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.steps__item.is-reached { color: var(--anthracite); }
.steps__item.is-reached::before { background: var(--meleze); box-shadow: inset 0 0 0 1px var(--meleze); }
.steps__n { font: 300 var(--t-56)/1 var(--serif); color: var(--anthracite); }
.steps__title { font: 400 var(--t-20)/1.3 var(--serif); color: var(--anthracite); }
.steps__item p { font-size: 15px; }
.guarantees {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 24px; align-items: baseline;
  margin-top: clamp(56px, 7vw, 104px); padding-top: 14px; border-top: 1px solid var(--anthracite);
}
.guarantees ul { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.guarantees li { font: 400 var(--t-20)/1.35 var(--serif); }

/* atelier */
.atelier__grid { align-items: center; }
.atelier__photo { grid-column: 1 / span 6; aspect-ratio: 4 / 5; overflow: hidden; clip-path: inset(var(--rv, 0%) 0 0 0); background: var(--beton); }
.atelier__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.atelier__text { grid-column: 8 / span 5; display: grid; gap: 22px; }
.atelier__text > p:not(.label) { max-width: 46ch; }
.atelier__quote p { font: 300 italic var(--t-40)/1.12 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--anthracite); }
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 14px 12px 0 0; }
.figures div + div { padding-left: 12px; box-shadow: inset 1px 0 0 var(--beton); }
.figures dd { font: 300 var(--t-40)/1 var(--serif); }
.figures dt { color: var(--zinc); }

/* reviews */
.reviews__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(24px, 4vw, 72px); align-items: start; }
.reviews__head { grid-row: 1 / span 2; display: grid; gap: 16px; }
.reviews__stage { display: grid; gap: 56px; }
.review { display: grid; gap: 24px; }
.review:not([hidden]) { animation: review-in 0.6s var(--ease); }
@keyframes review-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.review blockquote p { font: 300 var(--t-40)/1.18 var(--serif); letter-spacing: -0.01em; }
.review figcaption { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--beton); }
.review figcaption strong { font-weight: 500; }
.reviews__nav { grid-column: 2; display: flex; gap: 10px; }
.reviews__btn { width: 52px; padding: 0; }
.reviews__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.reviews__btn--prev svg { transform: rotate(180deg); }

/* visit */
.visit { margin-top: clamp(88px, 11vw, 168px); padding-block: clamp(72px, 9vw, 136px); background: var(--enduit); }
.visit__grid { align-items: end; }
.visit__main { grid-column: 1 / span 7; display: grid; gap: 24px; }
.visit__body { font-size: var(--t-20); line-height: 1.5; max-width: 46ch; color: var(--zinc); }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.visit__call { font-size: 15px; }
.visit__info { grid-column: 9 / span 4; border-top: 1px solid var(--anthracite); }
.visit__info > div { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--beton); }
.visit__info dd { font-size: 15px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; }

/* footer */
.foot { background: var(--anthracite); color: var(--sur-nuit); padding: clamp(64px, 8vw, 120px) 0 32px; }
/* Flex row that wraps: the tagline drops under the monogram instead of colliding with it. */
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; padding-bottom: clamp(40px, 5vw, 72px); }
.foot__brand { max-width: 100%; }
.foot__brand .wm { font-size: clamp(30px, 5.2vw, 80px); }
.foot__tagline { color: var(--sur-nuit-2); max-width: 44ch; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; padding-top: 18px; border-top: 1px solid var(--sur-nuit-2); }
.foot__cols h2 { color: var(--sur-nuit-2); margin-bottom: 14px; }
.foot__cols ul, .foot__cols address { display: grid; gap: 8px; font-size: 15px; justify-items: start; }
.foot__hours { max-width: 280px; }
.foot__hours li { display: flex; justify-content: space-between; gap: 16px; width: 100%; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 72px); padding-top: 16px;
  border-top: 1px solid var(--filet-nuit); color: var(--sur-nuit-2);
}

/* reveal */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- quote page shell ---------- */
.page-devis { background: var(--chaux); color: var(--anthracite); }
.page-head { position: relative; padding-top: clamp(40px, 6vw, 88px); }
.page-head--light { padding-bottom: var(--sp-5); }
.page-head__title { max-width: 18ch; }
.page-head__sub { margin-top: 14px; font-size: var(--t-20); line-height: 1.5; color: var(--zinc); max-width: 60ch; }
.section--bone { background: transparent; }
.page-devis .section--bone h1, .page-devis .section--bone h2, .page-devis .section--bone h3 { color: var(--anthracite); }

/* ---------- DEVIS ---------- */
.devis-trust { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-4); }
.devis-trust li {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--plomb-78);
}
.devis-trust .icon { color: var(--sanguine); width: 14px; height: 14px; }

.devis-section { padding-block: var(--sp-3) var(--sp-7); }
.devis { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.devis-progress {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3); margin-block: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--plomb-24);
  padding-top: var(--sp-4);
}
.devis-progress__item {
  display: grid; grid-template-columns: 32px 1fr; gap: var(--sp-2); align-items: center;
  padding-bottom: var(--sp-3);
  position: relative;
}
.devis-progress__item::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--plomb-24);
  transition: background-color var(--dur-quick) var(--ease-crisp);
}
.devis-progress__item.is-current::after { background: var(--sanguine); }
.devis-progress__item.is-done::after { background: var(--sanguine-lo); }
.devis-progress__dot {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--plomb-24);
  color: var(--plomb-56);
  font-family: var(--font-mono);
  font-size: 0.86rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.devis-progress__dot .icon { display: none; }
.devis-progress__item.is-current .devis-progress__dot { border-color: var(--sanguine); color: var(--sanguine-lo); }
.devis-progress__item.is-done .devis-progress__dot { background: var(--sanguine); border-color: var(--sanguine); color: var(--papier); }
.devis-progress__item.is-done .devis-progress__dot i { display: none; }
.devis-progress__item.is-done .devis-progress__dot .icon { display: inline-flex; width: 14px; height: 14px; }
.devis-progress__label {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--plomb-56);
}
.devis-progress__item.is-current .devis-progress__label { color: var(--plomb); }

.devis__grid {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(var(--sp-4), 5vw, var(--sp-6));
  align-items: start;
}

.devis-step { display: grid; gap: var(--sp-4); padding-block: var(--sp-4) var(--sp-5); }
.devis-step legend { padding: 0; margin-bottom: var(--sp-3); display: block; }
.devis-step__title {
  display: block;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--type-xl); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--plomb);
  margin-bottom: 4px;
}
.devis-step__sub { color: var(--plomb-78); font-size: var(--type-md); }

.devis-field { display: block; margin-block: var(--sp-3); }
.devis-field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--type-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--plomb);
  margin-bottom: var(--sp-2);
}

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-2); }
.type-card {
  position: relative;
  display: grid; grid-template-rows: auto auto 1fr; gap: 6px;
  padding: var(--sp-4);
  border: 1px solid var(--plomb-24);
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-crisp), background-color var(--dur-quick) var(--ease-crisp);
}
.type-card:hover { border-color: var(--plomb); }
.type-card input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.type-card:has(input:checked) { border-color: var(--sanguine); background: var(--sanguine-24); }
.type-card:has(input:focus-visible) { outline: 2px solid var(--sanguine); outline-offset: 3px; }
.type-card__icon .icon { color: var(--sanguine); width: 24px; height: 24px; }
.type-card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--plomb); }
.type-card__desc { font-size: var(--type-sm); color: var(--plomb-78); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--sp-3); cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--plomb-78);
  border: 1px solid var(--plomb-24);
  transition: all var(--dur-quick) var(--ease-crisp);
}
.chip:hover span { border-color: var(--plomb); color: var(--plomb); }
.chip:has(input:checked) span { background: var(--plomb); color: var(--papier); border-color: var(--plomb); }
.chip:has(input:focus-visible) span { outline: 2px solid var(--sanguine); outline-offset: 3px; }
.chips--days { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.brackets { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-2); }
.bracket {
  position: relative; display: grid; grid-template-columns: 24px 1fr; gap: var(--sp-2); align-items: center;
  padding: var(--sp-3);
  border: 1px solid var(--plomb-24);
  cursor: pointer;
  transition: all var(--dur-quick) var(--ease-crisp);
}
.bracket input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.bracket__swatch { width: 12px; height: 12px; background: var(--sanguine-lo); }
.bracket--jaune .bracket__swatch { background: #C08A2A; }
.bracket--violet .bracket__swatch { background: #6D4A8A; }
.bracket--rose .bracket__swatch { background: #B85C6A; }
.bracket--unknown .bracket__swatch { background: var(--plomb-24); }
.bracket__label { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--plomb); }
.bracket__label small {
  display: block; margin-top: 3px;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 400; color: var(--plomb-56);
}
.bracket:hover { border-color: var(--plomb); }
.bracket:has(input:checked) { border-color: var(--sanguine); background: var(--sanguine-24); }
.bracket:has(input:focus-visible) { outline: 2px solid var(--sanguine); outline-offset: 3px; }

.aids-panel {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: var(--plomb); color: var(--papier);
  border-left: 2px solid var(--sanguine);
}
.aids-panel__title, .aids-panel__empty {
  font-family: var(--font-mono);
  font-size: var(--type-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--papier);
  margin-bottom: var(--sp-3);
}
.aids-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--papier-56);
  color: var(--papier-88);
}
.aids-line strong { font-family: var(--font-mono); font-weight: 700; color: var(--papier); font-variant-numeric: tabular-nums; }
.aids-line small { display: block; font-size: 0.7rem; color: var(--papier-72); }
.aids-total, .aids-net {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
  padding-top: var(--sp-3); margin-top: var(--sp-2);
}
.aids-total { border-top: 1px solid var(--papier-56); }
.aids-total strong, .aids-net strong { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--papier); font-variant-numeric: tabular-nums; }
.aids-net strong { color: var(--sanguine-hi); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); }
.form-field { display: block; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--type-2xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--papier);
  margin-bottom: var(--sp-2);
}
.form-field .req { color: var(--sanguine); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body); font-size: var(--type-md);
  color: var(--papier);
  background: transparent;
  border: 1px solid var(--papier-24);
  border-radius: 12px;
  transition: border-color var(--dur-quick) var(--ease-crisp);
}
.page-devis .form-field label { color: var(--plomb); }
.page-devis .form-field input, .page-devis .form-field select, .page-devis .form-field textarea {
  color: var(--plomb); border-color: var(--plomb-24);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--sanguine); border-width: 2px; padding: 11px 13px;
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: var(--sanguine); border-width: 2px; padding: 11px 13px; }

/* Errors: scoped and forced to outrank paragraph rules; ! icon + colour */
.section--bone .field-error, .field-error {
  display: flex; align-items: flex-start; gap: 0.4em;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 700;
  color: var(--sanguine-lo);
  letter-spacing: 0.06em;
}
.field-error::before {
  content: '!';
  flex: none; width: 1.05em; height: 1.05em; margin-top: 0.05em;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sanguine); color: var(--papier);
  font-weight: 700;
}

.upload { display: block; }
.upload input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.upload__btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border: 1px dashed var(--plomb-24);
  color: var(--plomb-78);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--type-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: all var(--dur-quick) var(--ease-crisp);
}
.upload__btn:hover { border-color: var(--plomb); color: var(--plomb); }
.upload__btn .icon { width: 18px; height: 18px; }
.upload-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: var(--sp-2); margin-top: var(--sp-3); }
.upload-list li { position: relative; aspect-ratio: 1; overflow: hidden; }
.upload-list img { width: 100%; height: 100%; object-fit: cover; }
.upload-list button {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  background: var(--plomb); color: var(--papier);
  display: flex; align-items: center; justify-content: center;
}
.upload-list svg { width: 12px; height: 12px; }

.check {
  display: grid; grid-template-columns: 22px 1fr; gap: var(--sp-3); align-items: start;
  cursor: pointer;
  font-size: var(--type-sm); color: var(--plomb-78);
}
.check input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.check__box {
  width: 22px; height: 22px;
  border: 1px solid var(--plomb-24);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: all var(--dur-quick) var(--ease-crisp);
  margin-top: 1px;
}
.check__box .icon { width: 14px; height: 14px; }
.check:has(input:checked) .check__box { background: var(--sanguine); border-color: var(--sanguine); color: var(--papier); }
.check:has(input:focus-visible) .check__box { outline: 2px solid var(--sanguine); outline-offset: 3px; }
.check--nocall { margin-top: var(--sp-3); }

.range-marks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.7rem; color: var(--plomb-56); margin-top: 4px; }
output[data-surface-out] { font-family: var(--font-mono); font-weight: 700; color: var(--sanguine-lo); font-variant-numeric: tabular-nums; }

.devis-nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.devis-note { margin-top: var(--sp-3); font-size: var(--type-sm); color: var(--plomb-78); }

.estimate {
  grid-column: 8 / 13; position: sticky; top: calc(var(--header-h) + var(--sp-4));
  padding: var(--sp-5);
  background: var(--plomb); color: var(--papier);
  border-top: 2px solid var(--sanguine);
}
.estimate__title {
  font-family: var(--font-mono);
  font-size: var(--type-xs); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--papier);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--papier-56);
  margin-bottom: var(--sp-3);
}
.estimate__body { display: grid; gap: var(--sp-2); }
.estimate__empty { color: var(--papier-72); font-size: var(--type-sm); }
.estimate__row {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--papier-88);
}
.estimate__row strong { color: var(--papier); font-weight: 700; font-variant-numeric: tabular-nums; }
.estimate__range {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--papier-56);
}
.estimate__range small {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--type-2xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--papier-72);
}
.estimate__value {
  margin-top: var(--sp-2);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 1rem + 1.6vw, 2.2rem);
  line-height: 1; letter-spacing: -0.028em;
  color: var(--papier);
  font-variant-numeric: tabular-nums;
}
.estimate__perm2, .estimate__vat { margin-top: 6px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--papier-72); }
.estimate__aids {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--papier-56);
  display: grid; gap: var(--sp-2);
}
.estimate__disclaimer { margin-top: var(--sp-4); font-size: 0.78rem; line-height: 1.55; color: var(--papier-72); }
.estimate__disclaimer a { color: var(--papier); border-bottom: 1px solid var(--papier-56); }

.confirm { max-width: 780px; margin-inline: auto; padding-block: var(--sp-6); }
.confirm__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--sanguine); color: var(--papier);
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--type-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.confirm__badge .icon { width: 18px; height: 18px; }
.confirm__body { font-size: var(--type-lg); color: var(--plomb-78); margin-block: var(--sp-3); }
.confirm__ref {
  display: inline-flex; align-items: baseline; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-block: var(--sp-4);
  border: 1px dashed var(--plomb-24);
}
.confirm__ref span {
  font-family: var(--font-mono);
  font-size: var(--type-2xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--plomb-56);
}
.confirm__ref strong { font-family: var(--font-mono); font-size: 1.4rem; color: var(--sanguine); font-weight: 700; }
.confirm__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-block: var(--sp-5); }
.confirm__recap h3, .confirm__next h3 {
  font-family: var(--font-mono);
  font-size: var(--type-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--plomb);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--plomb-24);
  margin-bottom: var(--sp-3);
}
.confirm__recap dl { display: grid; gap: var(--sp-2); }
.confirm__recap dl > div {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding-block: 6px;
  border-bottom: 1px solid var(--plomb-12);
}
.confirm__recap dt {
  font-family: var(--font-mono);
  font-size: var(--type-2xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--plomb-56);
}
.confirm__recap dd { font-family: var(--font-mono); font-size: 0.9rem; color: var(--plomb); font-variant-numeric: tabular-nums; text-align: right; }
.confirm-next { display: grid; gap: var(--sp-3); }
.confirm-next__item { display: grid; grid-template-columns: 32px 1fr; gap: var(--sp-3); }
.confirm-next__item h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1rem; margin-bottom: 4px;
  border-bottom: 0; padding: 0; letter-spacing: 0; text-transform: none;
}
.confirm-next__item p { font-size: var(--type-sm); color: var(--plomb-78); }
.confirm__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }


/* ---------- quote page: straight edges ---------- */
.form-field input, .form-field select, .form-field textarea { border-radius: 0; }
.devis-trust .icon, .type-card__icon .icon { color: var(--meleze); }

/* ============================================================================
   QUOTE OVERLAY (dov) — light panel, same system as the site
   ============================================================================ */
.dov {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.dov.is-open { opacity: 1; pointer-events: auto; }
.dov__backdrop { position: absolute; inset: 0; background: rgba(36, 40, 42, 0.55); }
.dov__panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 920px; max-height: min(92vh, 880px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--chaux); color: var(--anthracite);
  transform: translateY(24px);
  transition: transform 0.6s var(--ease);
}
.dov.is-open .dov__panel { transform: none; }
.dov__close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 44px; height: 44px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--beton);
  transition: box-shadow 0.3s var(--ease);
}
.dov__close:hover { box-shadow: inset 0 0 0 1px var(--anthracite); }
.dov__close svg { width: 18px; height: 18px; }

.dov__head { padding: 22px 80px 18px 32px; background: var(--enduit); box-shadow: inset 0 -1px 0 var(--beton); }
.dov-stepper { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.dov-stepper__item { display: flex; align-items: center; gap: 10px; color: var(--zinc); }
.dov-stepper__num {
  width: 28px; height: 28px; display: grid; place-items: center;
  font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--beton);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.dov-stepper__label { font: 500 12px/1.2 var(--sans); font-stretch: 125%; letter-spacing: 0.08em; text-transform: uppercase; }
.dov-stepper__item.is-current, .dov-stepper__item.is-done { color: var(--anthracite); }
.dov-stepper__item.is-current .dov-stepper__num { background: var(--anthracite); color: var(--enduit); box-shadow: none; }
.dov-stepper__item.is-done .dov-stepper__num { box-shadow: inset 0 0 0 1px var(--anthracite); }
.dov-stepper-m { display: none; }

.dov__body { flex: 1; overflow-y: auto; padding: 32px; scrollbar-width: thin; scrollbar-color: var(--beton) transparent; }
.dov__step { animation: dov-in 0.5s var(--ease); }
@keyframes dov-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.dov__title { font: 300 var(--t-40)/1.1 var(--serif); letter-spacing: -0.01em; margin-bottom: 8px; text-wrap: balance; }
.dov__sub { color: var(--zinc); margin-bottom: 24px; max-width: 56ch; }

.dov-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-bottom: 28px; }
.dov-tile {
  position: relative; display: grid; gap: 6px; align-content: start;
  padding: 18px; cursor: pointer;
  background: var(--enduit); box-shadow: inset 0 0 0 1px var(--beton);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.dov-tile:hover { box-shadow: inset 0 0 0 1px var(--anthracite); }
.dov-tile input { position: absolute; opacity: 0; pointer-events: none; }
.dov-tile__icon { color: var(--meleze); }
.dov-tile__icon svg { width: 26px; height: 26px; }
.dov-tile__title { font: 400 var(--t-20)/1.25 var(--serif); }
.dov-tile__desc { font-size: 14px; line-height: 1.4; color: var(--zinc); }
.dov-tile:has(input:checked) { background: var(--anthracite); color: var(--enduit); box-shadow: none; }
.dov-tile:has(input:checked) .dov-tile__desc { color: var(--sur-nuit-2); }
.dov-tile:has(input:checked) .dov-tile__icon { color: var(--meleze-clair); }
.dov-tile:has(input:focus-visible) { outline: 2px solid var(--meleze); outline-offset: 2px; }

.dov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.dov-field { display: flex; flex-direction: column; gap: 6px; }
.dov-field--full { grid-column: 1 / -1; }
.dov-field label, .dov-fieldset legend, .dov-contact-pref legend {
  font: 500 12px/1.35 var(--sans); font-stretch: 125%; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--anthracite);
}
.dov-fieldset legend, .dov-contact-pref legend { margin-bottom: 10px; padding: 0; }
.dov-req { color: var(--meleze); }
.dov-field input, .dov-field textarea, .dov-field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.4 var(--sans); color: var(--anthracite);
  background: var(--enduit); border: 0; border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--beton);
  transition: box-shadow 0.25s var(--ease);
}
.dov-field input::placeholder, .dov-field textarea::placeholder { color: var(--zinc); }
.dov-field input:focus, .dov-field textarea:focus, .dov-field select:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--anthracite); }
.dov-field textarea { resize: vertical; min-height: 110px; }
.dov-error { font-size: 14px; font-weight: 500; color: var(--meleze-fonce); }

.dov-chips, .dov-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.dov-chip { position: relative; cursor: pointer; }
.dov-chip input { position: absolute; opacity: 0; pointer-events: none; }
.dov-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  font-size: 15px; background: var(--enduit); box-shadow: inset 0 0 0 1px var(--beton);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.dov-chip:hover span { box-shadow: inset 0 0 0 1px var(--anthracite); }
.dov-chip:has(input:checked) span { background: var(--anthracite); color: var(--enduit); box-shadow: none; }
.dov-chip:has(input:focus-visible) span { outline: 2px solid var(--meleze); outline-offset: 2px; }
.dov-fieldset { margin-bottom: 24px; }
.dov-contact-pref { margin-top: 24px; }

.dov-upload { margin-top: 4px; }
.dov-upload__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  font-size: 15px; background: var(--enduit); box-shadow: inset 0 0 0 1px var(--anthracite);
  transition: background-color 0.25s var(--ease);
}
.dov-upload__btn:hover, .dov-upload.is-drag .dov-upload__btn { background: #fff; }
.dov-upload__btn .icon { width: 18px; height: 18px; color: var(--meleze); }
.dov-upload__hint { margin-top: 8px; font-size: 14px; color: var(--zinc); }
.dov-upload__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dov-upload__list li { position: relative; width: 72px; height: 72px; overflow: hidden; }
.dov-upload__list img { width: 100%; height: 100%; object-fit: cover; }
.dov-upload__list button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  display: grid; place-items: center; background: var(--anthracite); color: var(--enduit);
}
.dov-upload__list button svg { width: 12px; height: 12px; }

.dov-zone-hint {
  display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 14px;
  font-size: 15px; color: var(--zinc); box-shadow: inset 0 0 0 1px var(--beton);
}
.dov-zone-hint .icon { width: 18px; height: 18px; color: var(--meleze); }

.dov-recap { display: grid; gap: 8px; margin-bottom: 20px; }
.dov-recap__block {
  padding: 14px 16px; cursor: pointer;
  background: var(--enduit); box-shadow: inset 0 0 0 1px var(--beton);
  transition: box-shadow 0.25s var(--ease);
}
.dov-recap__block:hover { box-shadow: inset 0 0 0 1px var(--anthracite); }
.dov-recap__label {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px;
  font: 500 12px/1.35 var(--sans); font-stretch: 125%; letter-spacing: 0.08em; text-transform: uppercase;
}
.dov-recap__label small { font: 400 13px/1.35 var(--sans); letter-spacing: 0; text-transform: none; color: var(--meleze); }
.dov-recap__value { font-size: 15px; }
.dov-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; cursor: pointer; }
.dov-consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--anthracite); }
.dov-consent span { font-size: 15px; line-height: 1.5; color: var(--zinc); }
.dov-notice { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--zinc); }

.dov__foot {
  display: flex; align-items: center; gap: 12px; padding: 14px 32px;
  background: var(--enduit); box-shadow: inset 0 1px 0 var(--beton);
}
.dov__prev { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; color: var(--zinc); transition: color 0.25s var(--ease); }
.dov__prev:hover { color: var(--anthracite); }
.dov__prev .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.dov__next, .dov__submit { margin-left: auto; }

.dov__confirm {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 32px; text-align: center; background: var(--chaux);
  animation: dov-in 0.6s var(--ease);
}
.dov-confirm__anim svg { width: 72px; height: 72px; margin-bottom: 24px; }
.dov-confirm__circle { stroke-dasharray: 226; stroke-dashoffset: 226; animation: dov-draw 0.7s var(--ease) 0.2s forwards; }
.dov-confirm__check { stroke-dasharray: 60; stroke-dashoffset: 60; animation: dov-draw 0.5s var(--ease) 0.7s forwards; }
@keyframes dov-draw { to { stroke-dashoffset: 0; } }
.dov-confirm__sub { margin: 12px auto 24px; max-width: 44ch; font-size: var(--t-20); line-height: 1.5; color: var(--zinc); }
.dov-confirm__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 24px; font-size: 15px; }
.dov-confirm__trust span { display: inline-flex; align-items: center; gap: 8px; }
.dov-confirm__trust .icon { width: 18px; height: 18px; color: var(--meleze); }
.dov-confirm__ref { margin-bottom: 24px; font-variant-numeric: tabular-nums; color: var(--zinc); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1180px) {
  .bar__tel { display: none; }
  .bar__links { gap: 26px; }
}

@media (max-width: 1080px) {
  .devis__grid { grid-template-columns: 1fr; }
  .estimate { grid-column: 1 / -1; grid-row: 1; order: -1; margin-bottom: var(--sp-4); position: sticky; top: calc(var(--nav-h) + var(--sp-2)); }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav .bar { grid-template-columns: 1fr auto; }
  .bar__nav, .bar__tel, .bar__cta { display: none; }
  .bar__menu { display: inline-flex; }
  .wm { font-size: 18px; }
  .action-bar { display: flex; }
  main { padding-bottom: 72px; }

  /* film — far shorter than the desktop's 500svh. That length existed to give
     a scrubbed orbit room to turn; the phone plays its reveal instead, so the
     only thing left to pace is the handover between the two lines. Three thumb
     strokes to reach the second title read as the page having stalled, so the
     run is one screen and a bit: enough for the copy to change hands, not
     enough to feel like work. */
  .beat--close { min-height: 100svh; }

  /* The two beats hand over as the film turns rather than both sitting there:
     the opening copy clears the frame early, the closing copy arrives once the
     house is most of the way rebuilt. --seq is the film's own progress, set on
     the stage by the sequence module, so the copy is tied to the picture
     instead of to a guessed scroll distance. */
  .beat--open .beat__body {
    opacity: clamp(0, calc(1.15 - var(--seq, 0) * 5), 1);
    transform: translateY(calc(var(--seq, 0) * -24px));
    will-change: opacity, transform;
  }
  .beat--close .beat__body {
    opacity: clamp(0, calc(var(--seq, 0) * 4 - 2.2), 1);
    transform: translateY(clamp(0px, calc(28px - var(--seq, 0) * 40px), 28px));
  }
  .hero__title { font-size: clamp(40px, 11vw, 64px); line-height: 1.02; max-width: 100%; }
  .hero__sub { align-self: stretch; text-align: center; font-size: 16px; max-width: none; }
  .hero__actions { align-self: stretch; flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__call { text-align: center; }
  .beat__title { font-size: clamp(30px, 8vw, 44px); }
  .beat__text { font-size: 16px; }
  .beat__cta { justify-self: stretch; }

  /* sections */
  .shead__title, .shead__sub { grid-column: 1 / -1; }
  .proj__cap, .pair .proj__cap { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .proj__n { padding-top: 0; }
  .proj--main, .proj--side { grid-column: 1 / -1; margin-top: 0; }
  .proj--side .win { aspect-ratio: 4 / 3; }
  .pair { row-gap: 64px; }
  .evening__text, .evening__win { grid-column: 1 / -1; }
  .evening__win { order: -1; }

  .savoir__grid { grid-template-columns: minmax(0, 1fr); }
  .savoir__sticky {
    order: -1; top: var(--nav-h); z-index: 2;
    margin-inline: calc(-1 * var(--m)); padding: 12px var(--m); background: var(--chaux);
  }
  .service { grid-template-columns: 40px minmax(0, 1fr); padding: 22px 0 26px; }
  .service__n::before { left: -12px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; padding-left: 32px; }
  .steps::before, .steps::after { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform: scaleY(var(--p, 1)); transform-origin: top; }
  .steps__item { padding-bottom: 32px; }
  .steps__item::before { left: -32px; top: 12px; }
  .steps__n { font-size: var(--t-40); }
  .guarantees { grid-template-columns: minmax(0, 1fr); }
  .guarantees ul { display: grid; gap: 6px; }

  .atelier__photo, .atelier__text { grid-column: 1 / -1; }
  .reviews__grid { grid-template-columns: minmax(0, 1fr); }
  .reviews__head { grid-row: auto; }
  .reviews__nav { grid-column: 1; }
  .visit__main, .visit__info { grid-column: 1 / -1; }
  .foot__top { grid-template-columns: minmax(0, 1fr); }

  /* quote page */
  .form-grid, .confirm__cols { grid-template-columns: 1fr; }
  .devis-progress { grid-template-columns: repeat(5, 1fr); gap: 4px; padding-top: var(--sp-3); }
  .devis-progress__item { grid-template-columns: 24px 1fr; gap: 6px; padding-bottom: var(--sp-2); }
  .devis-progress__dot { width: 24px; height: 24px; font-size: 0.72rem; }
  .devis-progress__item:not(.is-current) .devis-progress__label { display: none; }
  .devis-progress__item.is-current .devis-progress__label { white-space: nowrap; }
  .type-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .dov { padding: 0; }
  .dov__panel { max-width: none; max-height: none; height: 100%; }
  .dov-stepper { display: none; }
  .dov-stepper-m {
    display: flex; align-items: center; gap: 14px;
    font: 500 12px/1 var(--sans); font-stretch: 125%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zinc);
  }
  .dov-stepper-m b { color: var(--anthracite); font-weight: 600; }
  .dov-stepper-m__bar { flex: 1; height: 2px; background: var(--beton); }
  .dov-stepper-m__fill { height: 100%; background: var(--anthracite); transition: width 0.45s var(--ease); }
  .dov__head { padding: 18px 72px 18px 20px; }
  .dov__body { padding: 24px 20px; }
  .dov__foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .dov-grid { grid-template-columns: 1fr; }
  .dov-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dov-tile { padding: 14px; }
}

@media (max-width: 640px) {
  .type-grid { grid-template-columns: 1fr; }
  .devis-nav { flex-direction: column; }
  .devis-nav .btn { width: 100%; }
}

@media (max-width: 560px) {
  .foot__cols { grid-template-columns: minmax(0, 1fr); }
  .figures dd { font-size: 30px; }
  .strip { flex-wrap: wrap; }
  .foot__base { flex-direction: column; }
}

/* ---------- the hero on a phone ----------------------------------------- */
/* 860px, not 960px: this is the breakpoint the sequence module switches on,
   and if the two disagree there is a band of widths where the canvas is hidden
   but nothing replaces it. */
@media (max-width: 860px) {
  .stage__canvas { display: none; }
  .stage__ab { display: block; position: absolute; inset: 0; z-index: 1; }
  .beat--mid { display: flex; }

  /* The dissolve. --seq is the scroll's own progress through the stage, so the
     thumb drives the transformation exactly as it drives the film on a desktop:
     it stops where you stop and runs backwards if you scroll back. The house is
     registered between the two frames, so what changes is the render, the
     garden, the light and the season - not the building's position. */
  .stage__ab-img--avant { background-image: url('/frames/still/hero-avant.webp'); }
  .stage__ab-img--apres {
    background-image: url('/frames/still/hero-apres.webp');
    opacity: clamp(0, calc(var(--seq, 0) * 2.5 - 0.85), 1);
  }

  /* A slow push through both frames, so the picture is never simply parked. */
  .stage__ab-img,
  .stage__still {
    transform: scale(calc(1 + var(--seq, 0) * 0.09));
    transform-origin: 50% 45%;
    will-change: transform, opacity;
  }

  /* Three acts, each holding the frame while the house is at that stage:
     the worn house, the work, the finished house. Tied to --seq rather than to
     scroll offsets so the timing survives any change to the run length. */
  .beat--mid { min-height: 100svh; }
  .beat--close { min-height: 100svh; }

  .beat--open .beat__body {
    opacity: clamp(0, calc(1.1 - var(--seq, 0) * 5.5), 1);
    transform: translateY(calc(var(--seq, 0) * -22px));
  }
  .beat--mid .beat__body {
    opacity: clamp(0, min(calc(var(--seq, 0) * 5 - 1.15), calc(3.5 - var(--seq, 0) * 5)), 1);
  }
  .beat--close .beat__body {
    opacity: clamp(0, calc(var(--seq, 0) * 5 - 3.6), 1);
    transform: translateY(clamp(0px, calc(24px - var(--seq, 0) * 26px), 24px));
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .stage__viewport { position: relative; clip-path: none; }
  .stage__beats { margin-top: 0; }
  .beat, .beat--open, .beat--close { min-height: 0; padding-block: var(--sp-6); background: var(--nuit); }
  .beat--open .beat__inner { min-height: 0; }
  .savoir__sticky { position: static; }
  .menu__links a { opacity: 1; transform: none; }
}
