/* =========================================================
   BâtiBroye Sàrl — feuille de style
   Concept : le rail de porte automatique du logo.
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs du logo */
  --brick: #B23430;
  --brick-dark: #8F2724;
  --rose: #F1DCDB;
  --rose-2: #E3BEBD;
  --rose-3: #D4918F;
  --rose-bg: #F8EDEC;
  --tint: rgba(178, 52, 48, .175);   /* la transparence exacte des battants du logo */

  /* Neutres */
  --ink: #2A2223;
  --ink-2: #5E5354;
  --line: #E9DCDB;
  --field: #8A7B7C;
  --white: #fff;

  /* Matières de l'illustration */
  --wood: #D9B98C;

  /* Mise en page */
  --hh: 72px;              /* hauteur de l'en-tête */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 2px;

  --ease-door: cubic-bezier(.62, .04, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hh);
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Typographie ---------- */
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -.015em;
  max-width: 18ch;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.lead {
  font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 54ch;
  margin-top: 20px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--brick); color: var(--white); }
.btn--solid:hover { background: var(--brick-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--wide { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; color: var(--brick); text-decoration: none;
  padding: 10px 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 100% 2px no-repeat;
}
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .2s; }

/* =========================================================
   En-tête
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--hh);
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__in {
  height: 100%;
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 48px; height: auto; }
.brand__name {
  font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; color: var(--brick);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-skip-ink: auto;
}

.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: block; padding: 10px 12px; font-weight: 550; text-decoration: none;
  position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--brick); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list a:hover { color: var(--brick); }
.nav__list a[aria-current="true"] { color: var(--brick); }
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }

.lang { display: flex; border: 1.5px solid var(--line); border-radius: var(--radius); }
.lang__btn {
  min-width: 40px; min-height: 36px; padding: 0 8px; border: 0; background: transparent;
  font-size: .85rem; font-weight: 650; letter-spacing: .02em; color: var(--ink-2);
}
.lang__btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.lang__btn:not([aria-pressed="true"]):hover { color: var(--brick); }

.header-call { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.header-call__short { display: none; }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--white); font-weight: 650;
}
.menu-btn__bars { width: 18px; height: 12px; position: relative; border-block: 2px solid currentColor; }
.menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: currentColor; }

/* le rail de l'en-tête sert d'indicateur de progression */
.rail-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.rail-progress span {
  display: block; height: 100%; background: var(--brick);
  transform-origin: left; transform: scaleX(var(--p, 0));
}

/* =========================================================
   Menu mobile : un battant coulissant
   ========================================================= */
.menu { position: fixed; inset: 0; z-index: 60; }
.menu[hidden] { display: none; }
.menu__scrim { position: absolute; inset: 0; background: rgba(42, 34, 35, .45); opacity: 0; transition: opacity .35s; }
.menu__leaf {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px);
  background-color: var(--white);
  background-image:
    linear-gradient(to top right, var(--tint) calc(50% - .75px), transparent calc(50% + .75px)),
    linear-gradient(var(--tint), var(--tint));
  background-size: 100% 46%, 100% 46%;
  background-position: bottom, bottom;
  background-repeat: no-repeat;
  border-left: 3px solid var(--brick);
  padding: 20px 24px 32px;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%);
  transition: transform .5s var(--ease-door);
  overflow-y: auto;
}
.menu.is-open .menu__scrim { opacity: 1; }
.menu.is-open .menu__leaf { transform: none; }
.menu__close {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--white); font-weight: 650;
}
.menu__list a {
  display: block; padding: 12px 0; text-decoration: none;
  font-size: 1.9rem; font-weight: 800; font-stretch: 115%; letter-spacing: -.01em; line-height: 1.1;
  border-bottom: 1px solid var(--line);
}
.menu__list a[aria-current="true"] { color: var(--brick); }
.menu__foot { margin-top: auto; display: grid; gap: 10px; justify-items: start; }
.menu__foot .lang__btn { min-height: 44px; padding: 0 14px; font-size: .95rem; }
.menu__contact { font-weight: 600; padding: 6px 0; background: rgba(255,255,255,.75); }

/* =========================================================
   Accueil : la porte
   ========================================================= */
.hero {
  --rail: 14px;
  position: relative;
  min-height: calc(100svh - var(--hh));
  display: grid; place-items: center;
  container-type: inline-size;
  overflow: hidden;
  isolation: isolate;
  background: var(--white);
}

.door { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.doors-done .door { z-index: 1; }

.door__rail {
  position: absolute; top: 0; left: 0; right: 0; height: var(--rail);
  border: 2px solid var(--brick); background: var(--white); z-index: 2;
}
.door__motor {
  position: absolute; left: 50%; top: 5px; transform: translateX(-50%);
  width: clamp(110px, 17cqw, 250px); height: 14px; background: var(--brick);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
}
.door__led {
  width: 6px; height: 6px; border-radius: 50%; background: #6E2421;
  transition: background-color .2s, box-shadow .2s;
}
.doors-sense .door__led, .doors-open .door__led {
  background: #FF8A7F; box-shadow: 0 0 0 3px rgba(255, 138, 127, .25), 0 0 10px #FF8A7F;
}

.door__side {
  position: absolute; top: var(--rail); bottom: 0; width: 50%;
  transform: translateX(calc(var(--par, 0) * -12cqw));
}
.door__side--l { left: 0; }
.door__side--r { right: 0; transform: translateX(calc(var(--par, 0) * 12cqw)); }

.leaf {
  position: absolute; top: 0; bottom: 0; width: 52%;
  background-color: rgba(255, 255, 255, 0);
  background-image:
    linear-gradient(to top left, var(--tint) calc(50% - .75px), transparent calc(50% + .75px)),
    linear-gradient(var(--tint), var(--tint));
  transition: background-color .6s;
}
.door__side--r .leaf {
  background-image:
    linear-gradient(to top right, var(--tint) calc(50% - .75px), transparent calc(50% + .75px)),
    linear-gradient(var(--tint), var(--tint));
}
.leaf--outer { left: 0; }
.leaf--inner { left: 48%; }
.door__side--r .leaf--outer { left: auto; right: 0; }
.door__side--r .leaf--inner { left: auto; right: 48%; }

/* position ouverte (par défaut, aussi sans JavaScript) */
.door__side--l .leaf--outer { translate: -14cqw 0; }
.door__side--l .leaf--inner { translate: -28cqw 0; }
.door__side--r .leaf--outer { translate: 14cqw 0; }
.door__side--r .leaf--inner { translate: 28cqw 0; }

/* position fermée : 1re visite, avant détection */
.js:not(.doors-open) .door__side .leaf { translate: 0 0; }
.js:not(.doors-done) .leaf {
  background-color: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}
.doors-anim .leaf { transition: translate 1.35s var(--ease-door), background-color .6s; }

/* lettrage vinyle sur les battants fermés */
.leaf__vinyl {
  position: absolute; top: 38%;
  font-size: clamp(2.6rem, 10.5cqw, 10rem);
  font-weight: 700; letter-spacing: -.015em; line-height: 1; color: var(--brick);
  text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .12em;
  white-space: nowrap; opacity: 0;
}
.door__side--l .leaf__vinyl { right: 0; padding-right: .02em; }
.door__side--r .leaf__vinyl { left: 0; padding-left: .02em; }
.js:not(.doors-open) .leaf__vinyl { opacity: 1; }
.doors-anim .leaf__vinyl { transition: opacity .45s; }

.hero__content {
  position: relative; z-index: 2;
  width: min(780px, 100% - 2 * var(--gutter));
  padding-block: clamp(72px, 10vh, 120px) clamp(56px, 8vh, 96px);
}
.hero__title {
  font-size: clamp(2.5rem, 1rem + 5.4cqw, 5.25rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: .98;
  letter-spacing: -.02em;
}
.hero__title span { display: block; text-wrap: balance; }
.hero__title span + span { margin-top: .18em; }
.hero__lead {
  margin-top: 28px; max-width: 50ch;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__actions .btn--line { background: rgba(255, 255, 255, .7); }
.hero__actions .btn--line:hover { background: var(--ink); }
.hero__where {
  display: flex; align-items: center; gap: 8px; margin-top: 40px;
  font-size: .95rem; color: var(--ink-2);
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: clamp(80px, 10vw, 144px); }

/* ---------- Portes ---------- */
.portes__grid {
  display: grid; gap: clamp(40px, 6vw, 96px);
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
}
.spec { margin-top: 40px; border-top: 2px solid var(--ink); }
.spec__row {
  display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.spec dt { font-size: .95rem; font-weight: 600; color: var(--ink-2); padding-top: 2px; }
.spec dd { font-size: 1.1rem; font-weight: 550; }
.spec__vals { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.spec__vals li { display: flex; align-items: center; gap: 9px; }
.spec__vals li::before {
  content: ""; width: 9px; height: 14px; flex: none;
  background: linear-gradient(to top left, var(--tint) 50%, transparent 50%), var(--rose);
}
.portes__text .link-arrow { margin-top: 28px; }

.portes__photo { position: relative; }
.portes__photo figcaption { margin-top: 12px; font-size: .95rem; color: var(--ink-2); }

.photo-btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--rose);
  overflow: hidden; cursor: zoom-in; border-radius: var(--radius);
}
.photo-btn img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s var(--ease-door); }
.photo-btn:hover img { transform: scale(1.03); }

/* travaux annexes */
.annexes {
  margin-top: clamp(80px, 9vw, 128px);
  display: grid; gap: 32px 64px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: end;
}
.annexes__head p { margin-top: 12px; color: var(--ink-2); max-width: 40ch; }
.annexes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.annexes__list li {
  border-top: 3px solid var(--brick); padding-top: 18px;
  font-weight: 700; font-stretch: 108%; font-size: 1.15rem; line-height: 1.25;
}
.annexes__ico {
  width: 44px; height: 44px; margin-bottom: 14px;
  fill: none; stroke: var(--brick); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Levage CLT ---------- */
.levage { background: var(--rose-bg); padding-bottom: clamp(64px, 8vw, 112px); }
.levage__track { position: relative; height: 300vh; margin-top: 24px; }
.levage__stage {
  position: sticky; top: var(--hh);
  height: calc(100svh - var(--hh));
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
}

.steps { position: relative; display: grid; gap: 28px; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px;
  background: var(--rose-2);
}
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.step .step__t { color: var(--field); transition: color .3s; }
.step.is-active .step__t, .step.is-done .step__t { color: var(--ink); }
.step__n {
  position: relative; z-index: 1;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 2px solid var(--rose-3); background: var(--rose-bg);
  font-weight: 750; font-stretch: 112%; color: var(--ink);
  transition: background-color .3s, border-color .3s, color .3s;
}
.step.is-active .step__n, .step.is-done .step__n { background: var(--brick); border-color: var(--brick); color: var(--white); }
.step__t { font-size: 1.45rem; font-weight: 800; font-stretch: 114%; line-height: 1.2; padding-top: 5px; }
.step p { margin-top: 6px; color: var(--ink-2); max-width: 34ch; }

.scene { height: 100%; display: grid; place-items: center; min-height: 0; }
.scene__svg { width: 100%; height: 100%; max-height: 640px; overflow: visible; }

.levage__outro { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ---------- Galerie ---------- */
.galerie__head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px;
  margin-bottom: 40px;
}
.galerie__head p { margin-top: 14px; color: var(--ink-2); max-width: 46ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--field); border-radius: var(--radius); background: var(--white);
  font-weight: 600; font-size: .95rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip__n { font-size: .8rem; font-weight: 600; opacity: .7; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.grid__item[hidden] { display: none; }
.grid__cap { margin-top: 12px; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.grid__cat { display: block; font-size: .85rem; font-weight: 650; color: var(--brick); margin-bottom: 2px; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid {
  display: grid; gap: clamp(48px, 6vw, 96px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
}
.card-person { margin-top: 36px; padding-top: 20px; border-top: 2px solid var(--ink); }
.card-person__name { font-size: 1.5rem; font-weight: 800; font-stretch: 112%; }
.card-person__role { color: var(--ink-2); }
.card-person__list { margin-top: 18px; display: grid; gap: 12px; }
.card-person__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.1rem; }
.card-person__list .ico { color: var(--brick); margin-top: .25em; }
.card-person__list a { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.card-person__list a:hover { color: var(--brick); }

.map { margin-top: 36px; }
.map iframe {
  display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--rose-bg);
  border-radius: var(--radius);
}
.map .link-arrow { margin-top: 10px; }

.form {
  background: var(--rose-bg);
  padding: clamp(24px, 4vw, 44px);
  border-top: 3px solid var(--brick);
  display: grid; gap: 20px;
}
.form__req { font-size: .95rem; color: var(--ink-2); margin-top: -8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-weight: 650; font-size: .98rem; }
.field legend { padding: 0; margin-bottom: 10px; }
.req { color: var(--brick); }
.opt { font-weight: 450; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 1.05rem; line-height: 1.4;
  background: var(--white); border: 1.5px solid var(--field); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--brick); }
.field__hint { font-size: .9rem; color: var(--ink-2); }
.field__err { font-size: .92rem; font-weight: 600; color: var(--brick-dark); display: none; }
.field__err:not(:empty) { display: flex; gap: 6px; }
.field__err:not(:empty)::before {
  content: "!"; flex: none; width: 18px; height: 18px; margin-top: 2px; display: grid; place-items: center;
  background: var(--brick-dark); color: var(--white); font-size: .75rem; border-radius: 50%;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--brick); border-width: 2px; background: #FFF9F9; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--radio { position: relative; cursor: pointer; }
.chip--radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip--radio:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip--radio:has(input:focus-visible) { outline: 3px solid var(--brick); outline-offset: 2px; }

.form__errors {
  background: var(--white); border-left: 4px solid var(--brick); padding: 14px 18px;
  font-size: .98rem;
}
.form__errors p { font-weight: 700; }
.form__errors ul { margin-top: 6px; list-style: disc; padding-left: 20px; }
.form__errors a { color: var(--brick-dark); font-weight: 600; }
.form__send { display: grid; gap: 10px; margin-top: 4px; }
.form__how { font-size: .92rem; color: var(--ink-2); text-align: center; }
.form__ok {
  background: var(--white); border-left: 4px solid #2F7A4F; padding: 16px 18px; display: grid; gap: 12px; justify-items: start;
}
.form__ok a { font-weight: 600; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #EADBDA; padding-top: 72px; font-size: .98rem; }
.footer a { color: var(--white); text-underline-offset: 4px; }
.footer a:hover { color: var(--rose-2); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__mark { width: 72px; margin-bottom: 18px; }
.footer__name { font-size: 1.35rem; font-weight: 800; font-stretch: 112%; color: var(--white); }
.footer__brand p + p { margin-top: 6px; max-width: 34ch; }
.footer__h { font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer address + p { margin-top: 10px; }
.footer__links { display: grid; gap: 6px; }
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px;
  padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem;
}
.footer__top { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 8px 0; }

/* ---------- Visionneuse ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(30, 24, 25, .97); color: var(--white);
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(30, 24, 25, .6); }
.lightbox__bar, .lightbox__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
}
.lightbox__count { font-weight: 600; }
.lightbox__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px;
  background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, .7); border-radius: var(--radius);
  font-weight: 650;
}
.lightbox__btn:hover { background: var(--white); color: var(--ink); }
.lightbox__btn:focus-visible { outline-color: var(--rose-2); }
.lightbox__fig { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); gap: 12px; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox__fig img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lightbox__fig figcaption { color: #EADBDA; text-align: center; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header-call__num { display: none; }
  .header-call__short { display: inline; }
}

@media (max-width: 959px) {
  :root { --hh: 64px; }
  .nav, .site-header__in > .lang { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__in { gap: 10px; }
  .brand__mark { width: 40px; }
  .brand__name { font-size: 1.2rem; text-underline-offset: 4px; }

  .portes__grid, .contact__grid, .annexes { grid-template-columns: 1fr; }
  .portes__photo { max-width: 520px; }
  .annexes { align-items: start; }

  .levage__track { height: 280vh; }
  .levage__stage {
    display: flex; flex-direction: column; justify-content: center;
    gap: 12px; padding-block: 8px 16px;
  }
  .scene { order: -1; flex: 1 1 auto; min-height: 0; height: auto; overflow: hidden; }
  .scene__svg { height: 100%; max-height: 52svh; overflow: hidden; }
  .steps { flex: none; }
  .steps { gap: 10px; }
  .steps::before { left: 15px; }
  .step { grid-template-columns: 32px 1fr; gap: 14px; }
  .step__n { width: 32px; height: 32px; font-size: .95rem; }
  .step__t { font-size: 1.15rem; padding-top: 3px; }
  .step p { display: none; font-size: .98rem; margin-top: 2px; }
  .step.is-active p { display: block; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* tablette et mobile : les battants s'effacent davantage pour laisser la place au texte */
@media (max-width: 959px) {
  .door__side--l .leaf--outer { translate: -18cqw 0; }
  .door__side--l .leaf--inner { translate: -36cqw 0; }
  .door__side--r .leaf--outer { translate: 18cqw 0; }
  .door__side--r .leaf--inner { translate: 36cqw 0; }
}
@media (min-width: 700px) and (max-width: 959px) {
  .hero__content { width: calc(100% - 30cqw); }
}

@media (max-width: 699px) {
  .hero { --rail: 10px; }
  .door__motor { height: 11px; top: 4px; }
  .hero__content { padding-block: 56px 48px; }
  .hero__actions .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .annexes__list { grid-template-columns: 1fr; gap: 0; }
  .annexes__list li { display: flex; align-items: center; gap: 16px; padding-block: 14px; border-top-width: 2px; }
  .annexes__ico { margin: 0; width: 36px; height: 36px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__top { margin-left: 0; }
  .lightbox__btn span { font-size: .95rem; }
}

@media (max-width: 479px) {
  .header-call { padding: 0 12px; }
  .header-call__short { display: none; }
  .brand__name { font-size: 1.1rem; }
}

/* Mouvement réduit : tout est montré, rien ne bouge seul */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .levage__track { height: auto; }
  .levage__stage { position: static; height: auto; min-height: 0; padding-block: 24px; }
  .scene__svg { max-height: 460px; }
  .step .step__t { color: var(--ink); }
  .step p { display: block !important; }
  .step .step__n { background: var(--brick); border-color: var(--brick); color: var(--white); }
}
