/* ==========================================================================
   ES Bâtiment — Carrelage · Faïence · Pavage · Rénovation (Arras)
   Thème : crème chaud, grands titres à empattements, coins droits, filets fins.
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --bg: #f8f5f0;
  --bg-alt: #eeebe6;
  --bg-deep: #e5e1da;
  --ink: #2c2a28;
  --ink-soft: #625e59;
  --line: #2c2a28;
  --line-soft: rgba(44, 42, 40, 0.16);
  --charcoal: #3d3d3d;
  --bronze: #a98b4a;
  --olive: #6a6c49;
  --error: #b4462c;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --page-max: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 10vw, 150px);
  --header-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* « clip » (et non « hidden ») : coupe les débordements sans casser position: sticky */
main, .footer { overflow-x: clip; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; border-radius: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

/* Lenis (défilement doux) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

.container {
  width: 100%;
  max-width: calc(var(--page-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 300;
  padding: 12px 16px;
  background: var(--ink); color: var(--bg);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 3. Typographie ---------- */
.display, .h2, .h3, .card__title, .step__title, .fact h3, .footer__word, .menu__nav a, .ticker span {
  font-family: var(--serif);
  font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  letter-spacing: -0.02em;
}
.display { font-size: clamp(3rem, 6.2vw, 5.9rem); line-height: 1.02; letter-spacing: -0.032em; }
.h2 { font-size: clamp(2.5rem, 5vw, 4.35rem); line-height: 1.04; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.08; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; }

/* Découpage des titres en mots (ajouté en JS) */
.w {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding: 0.08em 0.03em 0.16em;
  margin: -0.08em -0.03em -0.16em;
}
.w__i { display: inline-block; will-change: transform; }

/* Effet de roulement du texte au survol (structure ajoutée en JS) */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; height: 1.25em; line-height: 1.25; }
.roll__inner { display: block; transition: transform 0.6s var(--ease); }
.roll__inner > span { display: block; }
@media (hover: hover) {
  a:hover .roll__inner, button:hover .roll__inner { transform: translateY(-50%); }
}

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

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.link-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .link-arrow:hover svg { transform: translateY(3px); }
}

/* ---------- 4. Boutons (coins droits) ---------- */
.btn {
  --fill: #1f1e1c;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  overflow: hidden;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 0.45s var(--ease), border-color 0.45s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fill);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease);
}
@media (hover: hover) {
  .btn:hover::before { transform: scaleY(1); }
}
.btn--outline { --fill: var(--charcoal); background: transparent; color: var(--ink); }
@media (hover: hover) {
  .btn--outline:hover { color: #fff; }
}
.btn--sm { min-height: 42px; padding: 9px 24px; }
.btn--lg { min-height: 56px; padding: 15px 34px; }

/* ---------- 5. Barre de progression, étiquette de curseur, vignette d'étape ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 61; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--bronze); transform-origin: 0 50%; transform: scaleX(0); }

.cursor-label { position: fixed; left: 0; top: 0; z-index: 80; display: none; pointer-events: none; will-change: transform; }
.has-hover .cursor-label { display: block; }
.cursor-label span {
  display: block;
  margin: 18px 0 0 18px;
  padding: 7px 12px;
  background: var(--charcoal);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  transform: scale(0);
  transform-origin: 0 0;
  transition: transform 0.45s var(--ease);
}
.cursor-label.is-on span { transform: scale(1); }

.step-preview { position: fixed; left: 0; top: 0; z-index: 70; display: none; pointer-events: none; will-change: transform; }
.has-hover .step-preview { display: block; }
.step-preview img {
  width: 300px;
  height: 206px;
  margin: -103px 0 0 28px;
  border: 1px solid var(--line);
  background: var(--bg);
  opacity: 0;
  transform: scale(0.82) rotate(-2deg);
  transition: opacity 0.35s, transform 0.6s var(--ease);
}
.step-preview.is-on img { opacity: 1; transform: none; }

/* ---------- 6. En-tête & menu ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  background: var(--bg);
  transition: transform 0.7s var(--ease), box-shadow 0.4s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line-soft); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 26px; height: 26px; transition: transform 0.9s var(--ease); }
.brand__name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
@media (hover: hover) {
  .brand:hover .brand__mark { transform: rotate(90deg); }
}

.nav__list { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav__link { position: relative; display: inline-block; padding: 4px 0; font-size: 16px; }
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.55s var(--ease);
}
.nav__link.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (hover: hover) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
}

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__cta { text-transform: uppercase; letter-spacing: 0.03em; }

.burger { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line); }
.burger span {
  position: absolute; left: 12px; right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.menu-open .burger span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20.5px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 20px) var(--gutter) 32px;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.menu-open .header { transform: none; box-shadow: none; }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 8.5vw, 3rem);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}
.menu__nav a span { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--ink-soft); }
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: 0.12s; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: 0.17s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: 0.22s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: 0.27s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: 0.32s; }
.menu-open .menu__nav a:nth-child(6) { transition-delay: 0.37s; }

/* ---------- 7. Héros ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vh, 96px) clamp(28px, 4vw, 64px) clamp(48px, 8vh, 96px) max(var(--gutter), calc((100vw - var(--page-max)) / 2));
}
.hero__title { max-width: 9.6em; margin-bottom: 36px; }
.hero__lead { max-width: 29em; margin-bottom: 40px; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero__facts li::before { content: ""; width: 7px; height: 7px; background: var(--bronze); }
.hero__facts li:nth-child(2)::before { background: var(--olive); }
.hero__facts li:nth-child(3)::before { background: var(--charcoal); }
.hero__media { position: relative; overflow: hidden; background: var(--bg-alt); }
.hero__media img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }

/* Bandeau défilant */
.ticker { overflow: hidden; padding-block: 16px; border-block: 1px solid var(--line); }
.ticker__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.ticker span { padding-inline: 0.55em; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; white-space: nowrap; }
.ticker i { flex: none; width: 10px; height: 10px; background: var(--charcoal); }
.ticker i:nth-of-type(3n + 2) { background: var(--bronze); }
.ticker i:nth-of-type(3n) { background: var(--olive); }

/* ---------- 8. Sections communes ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.section-head__text { max-width: 34em; color: var(--ink-soft); }

/* ---------- 9. Savoir-faire ---------- */
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-deep); }
.about__media img,
.modal__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.about__text .h2 { margin-bottom: 36px; }
.about__lead { max-width: 36em; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.fact { padding-top: 18px; border-top: 1px solid var(--line); }
.fact .mono { color: var(--ink-soft); }
.fact h3 { margin: 12px 0 8px; font-size: 1.5rem; line-height: 1.15; }
.fact p { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- 10. Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  transition: background-color 0.5s, translate 0.6s var(--ease);
}
.card__media { position: relative; aspect-ratio: 1 / 1; margin-bottom: 24px; overflow: hidden; background: var(--bg-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.3s var(--ease); }
.card__title { margin-bottom: 10px; font-size: clamp(1.6rem, 2.1vw, 2rem); line-height: 1.1; }
.card__text { flex: 1; margin-bottom: 24px; font-size: 15.5px; line-height: 1.5; }
.card__btn { align-self: flex-start; }
@media (hover: hover) {
  .card:hover { background: var(--bg-deep); translate: 0 -6px; }
  .card:hover .card__media img { scale: 1.06; }
}

/* ---------- 11. Maquette interactive ---------- */
.studio__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.studio__stage { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.studio-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }
.studio__readout { position: absolute; left: 16px; top: 16px; padding: 6px 10px; border: 1px solid var(--line); background: var(--bg); }
.studio__hint { position: absolute; right: 16px; bottom: 14px; color: var(--ink-soft); }
.studio__group { margin-bottom: 28px; }
.studio__label { margin-bottom: 12px; color: var(--ink-soft); }
.studio__cta { margin-top: 36px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  font-size: 15px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.seg__btn i { width: 12px; height: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.swatch { padding-left: 8px; }
.swatch canvas { width: 24px; height: 24px; border: 1px solid rgba(0, 0, 0, 0.15); }
.seg__btn[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.seg__btn[aria-pressed="true"] canvas { border-color: rgba(255, 255, 255, 0.6); }
@media (hover: hover) {
  .seg__btn:hover:not([aria-pressed="true"]) { background: var(--bg); }
}

/* ---------- 12. Méthode ---------- */
.method__title { margin-bottom: clamp(48px, 6vw, 88px); }
.method__list { border-bottom: 1px solid var(--line); }
.step {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 4.3fr) minmax(0, 4fr);
  gap: 24px;
  align-items: start;
  padding: 30px 0 34px;
}
.step::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
  transition: transform 1.4s var(--ease);
}
.step::after {
  content: "";
  position: absolute;
  inset: 1px -18px 0;
  z-index: -1;
  background: var(--bg-alt);
  opacity: 0;
  transition: opacity 0.45s;
}
.step__num { padding-top: 12px; color: var(--ink-soft); }
.step__title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; transition: translate 0.6s var(--ease); }
.step__text { max-width: 34em; padding-top: 8px; }
.step__thumb { display: none; }
@media (hover: hover) {
  .step:hover::after { opacity: 1; }
  .step:hover .step__title { translate: 12px 0; }
}

/* ---------- 13. Inspirations ---------- */
/* Mise en page éditoriale qui se répète toutes les 7 photos : 7/5 · 4/4/4 · 5/7 (sur 12 colonnes) */
.gallery__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.shot { grid-column: span 4; }
.shot:nth-child(7n + 1), .shot:nth-child(7n + 7) { grid-column: span 7; }
.shot:nth-child(7n + 2), .shot:nth-child(7n + 6) { grid-column: span 5; }
.shot__open { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.shot__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-deep); }
.shot:nth-child(7n + 1) .shot__media, .shot:nth-child(7n + 7) .shot__media { aspect-ratio: 4 / 3; }
.shot:nth-child(7n + 2) .shot__media, .shot:nth-child(7n + 6) .shot__media { aspect-ratio: 4 / 5; }
.shot__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.3s var(--ease); }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 12px; font-size: 15px; }
.shot figcaption .mono { color: var(--ink-soft); }
.shot figcaption em { font-style: normal; color: var(--ink-soft); }
.shot figcaption em::before { content: "— "; }
@media (hover: hover) {
  .shot:hover .shot__media img { scale: 1.05; }
}

/* ---------- 14. Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__intro .h2 { margin-bottom: 28px; }
.contact__lead { max-width: 30em; margin-bottom: 40px; color: var(--ink-soft); }
.contact__info div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__info div:last-child { border-bottom: 1px solid var(--line); }
.contact__info dt { padding-top: 3px; color: var(--ink-soft); }
.contact__info dd { text-align: right; }

.form { display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); background: var(--bg-alt); }
.form__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.form__label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0; color: var(--ink-soft); }
.form__label output { color: var(--ink); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.chip input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
@media (hover: hover) {
  .chip:hover input:not(:checked) + span { background: var(--bg); }
}

.input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(44, 42, 40, 0.35);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input::placeholder { color: rgba(44, 42, 40, 0.4); }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(169, 139, 74, 0.28); }
.input.is-invalid { border-color: var(--error); }
textarea.input { min-height: 120px; resize: vertical; }

.range {
  --p: 6%;
  width: 100%;
  height: 2px;
  margin: 12px 0;
  background: linear-gradient(to right, var(--ink) var(--p), rgba(44, 42, 40, 0.2) var(--p));
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border: 0; background: var(--charcoal); cursor: grab; transition: transform 0.3s var(--ease); }
.range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 0; background: var(--charcoal); }
.range:active::-webkit-slider-thumb { transform: scale(1.25); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(169, 139, 74, 0.35); }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.check input {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--line);
  background: var(--bg);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.check input:checked { background: var(--charcoal); border-color: var(--charcoal); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input.is-invalid { border-color: var(--error); }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__status { flex: 1 1 260px; font-size: 15px; }
.form__status.is-ok { color: var(--olive); }
.form__status.is-error { color: var(--error); }

/* ---------- 15. Pied de page ---------- */
.footer { padding-top: clamp(72px, 8vw, 120px); background: var(--bg-alt); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__brand p { max-width: 26em; margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.footer__col { display: grid; align-content: start; justify-items: start; gap: 10px; font-size: 15px; }
.footer__col .mono { margin-bottom: 6px; color: var(--ink-soft); }
.footer__col span { color: var(--ink-soft); }
.footer__word {
  margin-top: clamp(48px, 7vw, 100px);
  padding-inline: var(--gutter);
  overflow: hidden;
  font-size: 21vw; /* « ES Bâtiment » occupe toute la largeur */
  line-height: 0.95;
  letter-spacing: -0.045em;
  white-space: nowrap;
  user-select: none;
}
.footer__word span { display: inline-block; transition: color 0.5s; }
@media (hover: hover) {
  .footer__word span:hover { color: var(--bronze); }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- 16. Fiche service & visionneuse ---------- */
.modal {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.modal::backdrop { background: rgba(44, 42, 40, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-height: inherit; overflow: auto; }
.modal__media { position: relative; min-height: 400px; overflow: hidden; background: var(--bg-alt); }
.modal__body { display: grid; align-content: start; gap: 18px; padding: clamp(28px, 4vw, 48px); }
.modal__lead { color: var(--ink-soft); }
.modal__list li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.modal__list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; background: var(--bronze); }
.modal .btn { justify-self: start; margin-top: 8px; }
.modal__close,
.lightbox__close {
  position: absolute;
  right: 12px; top: 12px;
  z-index: 2;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: transform 0.6s var(--ease);
}
.modal__close span,
.lightbox__close span { position: absolute; left: 13px; right: 13px; top: 20.5px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.modal__close span + span,
.lightbox__close span + span { transform: rotate(-45deg); }
@media (hover: hover) {
  .modal__close:hover, .lightbox__close:hover { transform: rotate(90deg); }
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(28, 27, 25, 0.94);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; padding: 72px 80px; }
.lightbox__figure img { max-width: min(1200px, 100%); max-height: calc(100dvh - 180px); object-fit: contain; }
.lightbox__caption { font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.lightbox__btn {
  position: fixed;
  top: 50%;
  width: 52px; height: 52px;
  margin-top: -26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 20px;
  transition: background-color 0.3s;
}
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__close { position: fixed; right: 20px; top: 20px; border-color: rgba(255, 255, 255, 0.35); background: transparent; color: #fff; }
@media (hover: hover) {
  .lightbox__btn:hover { background: rgba(255, 255, 255, 0.12); }
}

/* ---------- 17. États initiaux des animations (seulement si .anim) ---------- */
.anim [data-reveal] { opacity: 0; transform: translateY(32px); }
.anim [data-img] { clip-path: inset(100% 0% 0% 0%); }
.anim [data-hero-media] { clip-path: inset(0% 0% 0% 100%); }
.anim [data-hero-title] { visibility: hidden; }
.anim [data-hero-fade] { opacity: 0; }
.anim .step::before { transform: scaleX(0); }
.anim .step.is-in::before { transform: scaleX(1); }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: block; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text { padding: 48px var(--gutter) 40px; }
  .hero__title { margin-bottom: 24px; }
  .hero__lead { margin-bottom: 28px; }
  .hero__facts { margin-top: 36px; }
  .hero__media { aspect-ratio: 4 / 3; margin-inline: var(--gutter); }
  .anim [data-hero-media] { clip-path: inset(0% 0% 100% 0%); }

  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .about__inner, .studio__inner, .contact__inner { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; }
  .fact { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding-block: 16px; }
  .fact .mono { grid-row: span 2; padding-top: 6px; }
  .fact h3 { margin-top: 0; }

  .step { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 16px; padding: 24px 0 28px; }
  .step__num { padding-top: 8px; }
  .step__text, .step__thumb { grid-column: 2; }
  .step__thumb { display: block; width: 100%; max-width: 360px; aspect-ratio: 300 / 206; margin-top: 16px; border: 1px solid var(--line); background: var(--bg); }

  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot, .shot:nth-child(7n + 2), .shot:nth-child(7n + 6) { grid-column: span 1; }
  .shot:nth-child(7n + 1), .shot:nth-child(7n + 7) { grid-column: span 2; }
  .shot .shot__media, .shot:nth-child(7n + 2) .shot__media, .shot:nth-child(7n + 6) .shot__media { aspect-ratio: 4 / 5; }
  .shot:nth-child(7n + 1) .shot__media, .shot:nth-child(7n + 7) .shot__media { aspect-ratio: 4 / 3; }

  .modal__inner { grid-template-columns: minmax(0, 1fr); }
  .modal__media { min-height: 220px; aspect-ratio: 16 / 10; }
  .lightbox__figure { padding: 72px 16px 96px; }
  .lightbox__btn { top: auto; bottom: 20px; margin-top: 0; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header__cta { padding-inline: 14px; font-size: 14px; }
  .brand__name { font-size: 16px; }
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .studio__readout { left: 10px; top: 10px; padding: 4px 8px; font-size: 11px; }
  .studio__hint { display: none; }
  .contact__info div { flex-direction: column; gap: 4px; }
  .contact__info dd { text-align: left; }
  .shot figcaption { font-size: 14px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .header__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 19. Pages pavage / carrelage, appel ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px; padding: 8px 14px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em;
  align-self: flex-start;
}
.badge::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--bronze); }

@media (min-width: 900px) {
  .hero--page { min-height: min(100svh, 800px); }
}

.header__tel-lbl { display: none; }
.services__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services__more { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: clamp(32px, 4vw, 56px); }
.contact__call { margin: 0 0 28px; }

.callbar { display: none; }

@media (max-width: 1100px) {
  .services__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .callbar {
    position: fixed; inset: auto 0 0; z-index: 54;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-size: 16px; font-weight: 500; }
  .callbar a:first-child { background: var(--charcoal); color: #fff; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .services__grid--3 { grid-template-columns: minmax(0, 1fr); }
  .header__tel-num { display: none; }
  .header__tel-lbl { display: inline; }
  .header__cta { display: none; }
  .badge { font-size: 11.5px; }
}

/* ---------- Avis clients ---------- */
.reviews { border-top: 1px solid var(--line-soft); }
.reviews__score { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.reviews__note { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.review__stars { display: inline-flex; gap: 3px; }
.review__stars svg { width: 18px; height: 18px; fill: var(--bronze); }
.reviews__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.review { display: grid; gap: 22px; align-content: start; padding: clamp(26px, 3.5vw, 44px); background: var(--bg-alt); border: 1px solid var(--line-soft); }
.review__text { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; letter-spacing: -0.01em; }
.review__meta { display: grid; gap: 4px; }
.review__meta .mono { color: var(--ink-soft); }
.reviews__more { margin-top: clamp(28px, 4vw, 48px); }
@media (max-width: 760px) {
  .reviews__grid { grid-template-columns: 1fr; }
}

/* ---------- Zone d'intervention ---------- */
.zone .section-head__text { display: grid; gap: 14px; }
.zone__note { font-size: 15px; }
.zone__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.zone__group { padding: clamp(20px, 2.6vw, 30px); background: var(--bg); border: 1px solid var(--line-soft); }
.zone__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
.zone__list { display: flex; flex-wrap: wrap; gap: 8px; }
.zone__list li { padding: 5px 11px; border: 1px solid var(--line-soft); font-size: 14.5px; line-height: 1.3; color: var(--ink-soft); }
.zone__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(28px, 4vw, 48px); }
