/* ALTEA — site vitrine. Charte : noir #111111, terracotta #A3463A. Jost / IBM Plex Sans / IBM Plex Mono.
   Thème unique assumé : papier minéral clair + sections encre. */
:root {
  --paper: #F2F1ED;
  --paper-2: #E9E7E1;
  --paper-3: #DDDAD2;
  --line: #D3CFC6;
  --line-strong: #A9A498;
  --graphite: #5C5953;
  --ink: #131312;
  --ink-soft: #2A2926;
  --night: #121211;
  --night-2: #0C0C0B;
  --on-ink: #EDEBE6;
  --on-ink-2: #A8A49A;
  --on-ink-line: rgba(237, 235, 230, .16);
  --terra: #A3463A;
  --terra-2: #CC7563;
  --font-display: "Jost", "Futura", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sec-pad: clamp(80px, 10vw, 152px);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--terra); color: #fff; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.on-ink :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible { outline-color: var(--terra-2); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Typographie ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.label { display: flex; align-items: center; gap: 14px; color: var(--terra); margin-bottom: 22px; }
.label::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, .9rem + 4.9vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.025em;
}
.display span { display: block; }
.display span + span { color: var(--ink-soft); }
.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.05rem, 1.25rem + 2.9vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.12rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.06rem, .98rem + .35vw, 1.24rem);
  line-height: 1.6;
  color: var(--graphite);
  max-width: 38em;
  text-wrap: pretty;
}
.body-text { color: var(--graphite); max-width: 60ch; text-wrap: pretty; }
.body-text + .body-text { margin-top: 1em; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 2px;
  font: 500 .98rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--terra); }
.btn-light { background: var(--on-ink); color: var(--ink); }
.btn-light:hover { background: var(--terra-2); color: var(--night-2); }
.btn-line-light { border-color: rgba(237, 235, 230, .4); color: var(--on-ink); background: transparent; }
.btn-line-light:hover { border-color: var(--on-ink); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-decoration: none; padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow svg { width: 16px; height: 16px; }
svg path { vector-effect: non-scaling-stroke; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  height: var(--header-h);
  background: rgba(242, 241, 237, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(242, 241, 237, .96); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; color: var(--ink); flex: none; }
.brand .logo { height: 36px; width: auto; }
.main-nav ul { display: flex; gap: clamp(18px, 2.4vw, 40px); list-style: none; }
.main-nav a { position: relative; display: block; padding: 8px 0; font-size: .94rem; text-decoration: none; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--terra);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 10px;
  font: 500 .74rem/1 var(--font-mono); letter-spacing: .1em; text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 2px; transition: border-color .3s, background-color .3s;
}
.lang:hover { border-color: var(--ink); }
.lang-light { border-color: var(--on-ink-line); color: var(--on-ink); }
.lang-light:hover { border-color: var(--on-ink); }
.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px;
  background: none; border: 0; cursor: pointer; font: 500 .9rem/1 var(--font-body);
}
.menu-btn svg, .mm-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; gap: 32px;
  background: var(--night); color: var(--on-ink);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
  overflow-y: auto;
  animation: mm-in .35s var(--ease);
}
@keyframes mm-in { from { opacity: 0; transform: translateY(-8px); } }
.mm-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.mm-logo .logo { height: 34px; width: auto; color: var(--on-ink); }
.mm-close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: none; border: 0; cursor: pointer; font-size: .9rem; }
.mm-links { list-style: none; display: grid; border-top: 1px solid var(--on-ink-line); }
.mm-links a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--on-ink-line);
  font: 300 clamp(1.9rem, 1.3rem + 3vw, 2.6rem)/1.1 var(--font-display); text-decoration: none;
}
.mm-foot { margin-top: auto; display: grid; gap: 18px; justify-items: start; }
.mm-foot .mono { color: var(--on-ink-2); text-transform: none; letter-spacing: .02em; font-size: .8rem; }

/* ---------- Hero : planche plan / réalisé ---------- */
.hero { padding-block: clamp(28px, 4.5vw, 64px) clamp(56px, 7vw, 104px); }
.hero-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; row-gap: 22px; align-items: end;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.hero-head .eyebrow { grid-column: 1 / -1; color: var(--graphite); }
.hero-head .display { grid-column: 1 / span 8; }
.hero-side { grid-column: 9 / -1; display: grid; gap: 26px; padding-bottom: .5em; }
.hero-side .lead { font-size: clamp(1rem, .95rem + .25vw, 1.12rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.planche { margin: 0; position: relative; --pos: 52; }
.planche-frame {
  position: relative; aspect-ratio: 2 / 1; max-height: 78vh; width: 100%;
  overflow: hidden; background: var(--paper); outline: 1px solid var(--line-strong);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.layer { position: absolute; inset: 0; }
.layer img, .layer picture { width: 100%; height: 100%; }
.layer img { object-fit: cover; object-position: 60% 58%; -webkit-user-drag: none; }
.layer-plan { background: var(--paper); }
.layer-photo { clip-path: inset(0 0 0 calc(var(--pos) * 1%)); will-change: clip-path; }
.divider {
  position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 2px; margin-left: -1px;
  background: var(--terra); pointer-events: none;
}
.handle {
  position: absolute; top: 50%; left: calc(var(--pos) * 1%);
  width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: var(--paper); color: var(--terra); border: 1px solid var(--terra);
  box-shadow: 0 6px 24px rgba(19, 19, 18, .18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.handle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.planche-frame:hover .handle, .planche.is-dragging .handle { transform: scale(1.06); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.compare-range:focus-visible ~ .handle { outline: 2px solid var(--terra); outline-offset: 4px; }
.tag {
  position: absolute; top: 16px; z-index: 2; padding: 7px 10px; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.tag-plan { left: 16px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); opacity: clamp(0, calc((var(--pos) - 12) / 8), 1); }
.tag-built { right: 16px; background: var(--ink); color: var(--paper); opacity: clamp(0, calc((88 - var(--pos)) / 8), 1); }
.corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); pointer-events: none; z-index: 2; }
.c-tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.c-tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; border-color: var(--paper); }
.c-bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.c-br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; border-color: var(--paper); }
.planche-cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 14px; color: var(--graphite);
}
.planche-cap .cap-mid { flex: 1; }
.cap-hint { display: inline-flex; align-items: center; gap: 8px; color: var(--terra); }
.cap-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec-pad); scroll-margin-top: calc(var(--header-h) - 1px); }
.hero { scroll-margin-top: var(--header-h); }
.sec-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 26px; }
.sec-head { grid-column: 1 / span 6; }
.sec-body { grid-column: 8 / -1; padding-top: 6px; }
.sec-body-end { align-self: end; padding-bottom: 8px; }
.intro {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); line-height: 1.3; letter-spacing: -.01em;
  margin-bottom: 1.1em; text-wrap: pretty;
}

/* L'entreprise */
.entreprise { border-top: 1px solid var(--line); }
.poles {
  margin-top: clamp(56px, 7vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .5fr) minmax(0, 1fr); align-items: stretch;
}
.pole { position: relative; border: 1px solid var(--line-strong); padding: clamp(24px, 3vw, 44px); background: var(--paper); }
.pole::before, .pole::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--ink); }
.pole::before { top: -4px; left: -4px; }
.pole::after { bottom: -4px; right: -4px; }
.pole-tag { color: var(--terra); margin-bottom: 14px; }
.pole ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.pole li { position: relative; padding-left: 26px; }
.pole li::before { content: ""; position: absolute; left: 0; top: .82em; width: 14px; height: 1px; background: var(--terra); }
.pole-link { position: relative; display: grid; place-items: center; padding: 16px 0; }
.pole-link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--terra); }
.pole-link::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 6px var(--paper);
}
.pole-link p {
  position: absolute; left: 10px; right: 10px; bottom: calc(50% + 18px); z-index: 1; margin: 0 auto; max-width: 18ch;
  text-align: center; color: var(--terra); text-transform: none; letter-spacing: .02em; font-size: .78rem; line-height: 1.45;
}
.stats { list-style: none; margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.dim { display: block; height: 11px; border-inline: 1px solid var(--line-strong); position: relative; margin-bottom: 22px; }
.dim::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1px solid var(--line-strong); }
.num {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(3.2rem, 2rem + 3.6vw, 5.8rem);
  line-height: .9; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.num .unit { font-size: .42em; letter-spacing: 0; margin-left: .06em; vertical-align: .95em; color: var(--terra); }
.stat-label { margin-top: 16px; font-weight: 600; }
.stat-text { margin-top: 6px; color: var(--graphite); font-size: .95rem; max-width: 28ch; }

/* Savoir-faire */
.services { background: var(--paper-2); }
.svc { margin-top: clamp(44px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5.5vw, 96px); align-items: start; }
.svc-visual { position: sticky; top: calc(var(--header-h) + 28px); }
.svc-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.svc-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.svc-img.is-active { opacity: 1; transform: none; }
.svc-img picture, .svc-img img { width: 100%; height: 100%; }
.svc-img img { object-fit: cover; }
.svc-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--graphite); }
.svc-list { list-style: none; border-top: 1px solid var(--line-strong); }
.svc-item { position: relative; display: grid; gap: 14px; padding: clamp(26px, 3vw, 38px) 0 clamp(26px, 3vw, 38px) 0; border-bottom: 1px solid var(--line-strong); }
.svc-title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.2rem);
  line-height: 1.1; letter-spacing: -.012em; transition: transform .5s var(--ease), color .4s var(--ease);
}
.svc-item::before {
  content: ""; position: absolute; left: 0; top: calc(clamp(26px, 3vw, 38px) + .62em); width: 0; height: 2px; background: var(--terra);
  transition: width .5s var(--ease);
}
.svc-text { color: var(--graphite); max-width: 60ch; text-wrap: pretty; }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.svc-tags li { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--graphite); font-size: .66rem; }
.svc-thumb { display: none; position: relative; }
@media (hover: hover) and (min-width: 900px) {
  .svc-list:hover .svc-item:not(.is-active) .svc-title { color: #5f5c56; }
  .svc-item.is-active .svc-title { transform: translateX(34px); }
  .svc-item.is-active::before { width: 22px; }
}

/* Réalisations */
.on-ink { background: var(--night); color: var(--on-ink); }
.on-ink .lead, .on-ink .body-text { color: var(--on-ink-2); }
.on-ink .label { color: var(--terra-2); }
.feature { position: relative; margin: clamp(44px, 5vw, 80px) 0 0; }
.feature-media { position: relative; aspect-ratio: 2.39 / 1; overflow: hidden; background: #0a0a09; }
.feature-media picture, .feature-media img, .feature-video { width: 100%; height: 100%; }
.feature-media img, .feature-video { object-fit: cover; }
.feature-media img { transform: scale(1.02); transition: transform 2.4s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.06); }
.feature-video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.feature-video.is-playing { opacity: 1; }
.feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 11, 0) 40%, rgba(12, 12, 11, .78) 100%); pointer-events: none; }
.feature-cap { position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); z-index: 1; display: grid; gap: 8px; max-width: 60%; }
.kicker { color: var(--terra-2); }
.feature-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.2rem); line-height: 1.02; letter-spacing: -.015em; }
.feature-place { color: var(--on-ink); opacity: .85; }
.film-btn {
  position: absolute; right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); z-index: 1;
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 18px;
  background: rgba(12, 12, 11, .4); color: var(--on-ink); border: 1px solid rgba(237, 235, 230, .4); border-radius: 2px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; font-size: .92rem;
}
.film-btn svg { width: 14px; height: 14px; fill: currentColor; }
.film-btn.is-soon { cursor: default; font-size: .68rem; }
.film-btn:not(.is-soon):hover { background: var(--on-ink); color: var(--ink); }
.gallery-head { display: flex; justify-content: space-between; align-items: end; margin-top: clamp(56px, 6vw, 96px); padding-bottom: 16px; border-bottom: 1px solid var(--on-ink-line); }
.gallery-title { color: var(--on-ink-2); }
.gallery { list-style: none; margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.7vw, 26px); }
.card figure { margin: 0; }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; background: #0a0a09; }
.card-media picture, .card-media img { width: 100%; height: 100%; }
.card-media img { object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card figcaption { display: grid; gap: 6px; padding-top: 16px; }
.card-title { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.2; }
.card-meta { color: var(--on-ink-2); }
.projects-cta { margin-top: clamp(40px, 5vw, 64px); }

/* Méthode */
.steps { list-style: none; position: relative; margin-top: clamp(52px, 6vw, 96px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 1px solid var(--line-strong); }
.steps::after { border-top: 2px solid var(--terra); top: 7.5px; transform-origin: left; transform: scaleX(0); }
.step { position: relative; padding-top: 44px; }
.step-node { position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.step:first-child .step-node { background: var(--terra); border-color: var(--terra); }
.step:last-child .step-node { background: var(--ink); }
.step-num { font-family: var(--font-display); font-weight: 300; font-size: 2.7rem; line-height: 1; letter-spacing: -.03em; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.step-code { color: var(--terra); margin-bottom: 10px; min-height: 2.8em; }
.step-title { font-family: var(--font-display); font-weight: 400; font-size: 1.36rem; line-height: 1.2; margin-bottom: 10px; }
.step-text { color: var(--graphite); font-size: .96rem; text-wrap: pretty; }
.guarantees { list-style: none; margin-top: 20px; display: grid; gap: 8px; }
.guarantees li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.g-term { font-family: var(--font-display); font-size: 1.12rem; white-space: nowrap; }
.g-label { color: var(--graphite); text-align: right; font-size: .64rem; }
.one-contact {
  margin-top: clamp(56px, 7vw, 104px); padding-top: 28px; border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: baseline;
}
.one-title { grid-column: 1 / span 4; color: var(--terra); }
.one-text { grid-column: 5 / -1; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.35; text-wrap: pretty; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: draw-line linear both; animation-timeline: view(); animation-range: entry 15% cover 50%; }
  }
}
@keyframes draw-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Témoignages */
.testimonials { background: var(--paper-2); }
.t-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 112px); align-items: start; }
.t-head .lead { margin-top: 22px; }
.t-tabs { display: grid; margin-top: 40px; border-top: 1px solid var(--line-strong); }
.t-tab {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%;
  padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer;
  color: var(--graphite); transition: color .3s var(--ease);
}
.t-tab .t-name { font-family: var(--font-display); font-size: 1.15rem; transition: transform .4s var(--ease); }
.t-tab .t-short { font-size: .62rem; text-align: right; }
.t-tab:hover { color: var(--ink); }
.t-tab[aria-selected="true"] { color: var(--ink); }
.t-tab[aria-selected="true"] .t-name { transform: translateX(22px); }
.t-tab { position: relative; }
.t-tab::before { content: ""; position: absolute; left: 0; top: calc(16px + .68em); width: 0; height: 2px; background: var(--terra); transition: width .4s var(--ease); }
.t-tab[aria-selected="true"]::before { width: 12px; }
.t-panels { display: grid; gap: 64px; }
.t-panel { margin: 0; }
.stars { display: flex; gap: 4px; color: var(--terra); margin-bottom: 26px; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.t-panel blockquote { margin: 0; }
.t-panel blockquote p {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 1.08rem + 1.45vw, 2.35rem);
  line-height: 1.3; letter-spacing: -.012em; text-wrap: pretty;
}
.t-panel figcaption { display: grid; gap: 4px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.t-panel .t-name { font-weight: 600; }
.t-role { color: var(--graphite); }
.t-panels.is-tabs { gap: 0; }
.t-panels.is-tabs .t-panel { grid-area: 1 / 1; transition: opacity .5s var(--ease), visibility .5s; }
.t-panels.is-tabs .t-panel[aria-hidden="true"] { opacity: 0; visibility: hidden; }
.t-panels.is-tabs .t-nav, .t-panels.is-tabs .t-note { grid-area: auto; }
.t-nav { display: flex; align-items: center; gap: 18px; margin-top: 36px; }
.round-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer; transition: border-color .3s, background-color .3s, color .3s;
}
.round-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.round-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.t-count { color: var(--graphite); font-variant-numeric: tabular-nums; }
.t-note { color: var(--graphite); margin-top: 20px; text-transform: none; letter-spacing: .02em; }

/* Zone */
.zone-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
.zone-text .body-text { margin-top: 24px; }
.legend { list-style: none; margin-top: 32px; display: grid; gap: 12px; }
.legend li { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.sym { flex: none; width: 14px; height: 14px; display: inline-block; }
.sym-hq { border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px rgba(163, 70, 58, .18); }
.sym-city { width: 8px; height: 8px; margin: 3px; border-radius: 50%; background: var(--ink); }
.sym-proj { width: 11px; height: 11px; margin: 1.5px; background: var(--paper); border: 1.5px solid var(--ink); transform: rotate(45deg); }
.map { margin: 0; position: relative; }
.map-svg { width: 100%; height: auto; overflow: hidden; }
.map-svg .d-ctx { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.map-svg .d-main { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.map-svg .d-06 { fill: var(--paper-3); }
.map-svg .d-83 { fill: var(--paper-2); }
.map-svg .grat { stroke: var(--line-strong); stroke-width: .8; stroke-dasharray: 1 5; fill: none; }
.map-svg .scale { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.map-svg .north { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.map-svg .north-head { fill: var(--ink); }
.map-svg .pt-city { fill: var(--ink); }
.map-svg .pt-var { fill: var(--graphite); }
.map-svg .pt-proj { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.map-svg .pt-hq { fill: var(--terra); }
.map-svg .hq-ring { fill: none; stroke: var(--terra); stroke-width: 1.2; }
.map-svg .hq-pulse { fill: none; stroke: var(--terra); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.map-labels { list-style: none; position: absolute; inset: 0; pointer-events: none; }
.map-labels li {
  position: absolute; left: var(--x); top: var(--y); white-space: nowrap;
  font: 500 .84rem/1.15 var(--font-body); color: var(--ink);
  transform: translate(10px, -50%);
}
.map-labels .l-left { transform: translate(calc(-100% - 10px), -50%); }
.map-labels .l-up { transform: translate(-50%, calc(-100% - 9px)); }
.map-labels .l-down { transform: translate(-50%, 9px); }
.map-labels .l-var { color: var(--graphite); font-weight: 400; font-size: .76rem; }
.map-labels .l-hq { font-weight: 600; transform: translate(9px, 5px); }
.map-labels .l-hq small { display: block; font: 500 .62rem/1.3 var(--font-mono); letter-spacing: .08em; color: var(--terra); }
.map-labels .l-dept { transform: translate(-50%, -50%); font: 500 .64rem/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); text-align: center; }
.map-labels .l-ctx { color: var(--line-strong); }
.map-labels .l-sea { transform: translate(-50%, -50%); font: italic 400 .8rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: #8d897f; }
.map-labels .l-grat { font: 500 .6rem/1 var(--font-mono); color: var(--line-strong); letter-spacing: .06em; }
.map-labels .l-grat-x { transform: translate(-50%, -140%); }
.map-labels .l-grat-y { transform: translate(4px, -120%); }
.map-labels .l-scale { transform: translate(-50%, 10px); font: 500 .62rem/1 var(--font-mono); letter-spacing: .08em; }
.map-labels .l-north { transform: translate(-50%, -120%); font: 500 .7rem/1 var(--font-mono); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 104px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 36px); display: grid; gap: 26px; justify-items: start; }
.faq-head .label { margin-bottom: -4px; }
.qa-list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 28px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.12rem, 1rem + .55vw, 1.45rem); line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--terra); }
.pm { position: relative; flex: none; width: 18px; height: 18px; margin-top: .3em; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transition: transform .4s var(--ease); }
.pm::after { transform: rotate(90deg); }
.qa[open] .pm::after { transform: rotate(0deg); }
.qa-body { padding: 0 48px 28px 0; color: var(--graphite); }
.qa-body p { max-width: 64ch; text-wrap: pretty; }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact-info .lead { margin-top: 24px; }
.coords { margin: 44px 0 0; border-top: 1px solid var(--on-ink-line); }
.coords > div { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--on-ink-line); }
.coords dt { color: var(--on-ink-2); }
.coords dd { margin: 0; font-size: 1.04rem; min-width: 0; overflow-wrap: break-word; }
.coords .nowrap { white-space: nowrap; }
.coords .dd-act { justify-self: end; }
.coords a { text-decoration: none; }
.coords a:hover { color: var(--terra-2); }
.copy-btn { background: none; border: 1px solid var(--on-ink-line); border-radius: 2px; padding: 6px 9px; color: var(--on-ink-2); cursor: pointer; font-size: .62rem; transition: border-color .3s, color .3s; }
.copy-btn:hover { border-color: var(--on-ink); color: var(--on-ink); }
.form-wrap { background: var(--night-2); border: 1px solid var(--on-ink-line); padding: clamp(24px, 3.4vw, 52px); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.field { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field.full { grid-column: 1 / -1; }
.field > label:not(.consent), .flabel { font: 500 .68rem/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-2); padding: 0; }
.req { color: var(--terra-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; background: transparent; color: var(--on-ink);
  border: 0; border-bottom: 1px solid rgba(237, 235, 230, .32); border-radius: 0;
  padding: 10px 0 12px; font: 400 1.05rem/1.45 var(--font-body);
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(237, 235, 230, .34); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terra-2); box-shadow: 0 1px 0 var(--terra-2); }
.field [aria-invalid="true"] { border-bottom-color: #E59A88; }
.err { color: #EDA997; font-size: .86rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 9px 14px; border: 1px solid rgba(237, 235, 230, .28); border-radius: 2px;
  font-size: .9rem; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.chip span:hover { border-color: var(--on-ink); }
.chip input:checked + span { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--terra-2); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: var(--on-ink-2); cursor: pointer; }
.consent input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--terra-2); }
.form-foot { margin-top: 4px; }
.form-fail { margin-top: 16px; color: #EDA997; font-size: .92rem; line-height: 1.55; max-width: 52ch; }
.form-fail a { color: var(--on-ink); text-underline-offset: 3px; }
.form-fail .nowrap { white-space: nowrap; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-done { display: grid; gap: 16px; justify-items: start; padding: 12px 0; }
.done-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--terra-2); color: var(--terra-2); }
.done-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.done-title { font: 300 clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem)/1.2 var(--font-display); }
.done-text { color: var(--on-ink-2); max-width: 46ch; }

.social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.social > .mono { color: var(--on-ink-2); }
.social-list, .f-col .social-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.social-list a, .social-list span {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--on-ink-line); border-radius: 2px;
  font: 500 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink); text-decoration: none;
}
.social-list a:hover { border-color: var(--on-ink); }

/* Page introuvable (404) */
.nf { min-height: calc(100vh - var(--header-h) - 260px); display: grid; align-items: center; }
.nf-grid { display: grid; gap: 26px; justify-items: start; }
.nf-grid .h2 { max-width: 16ch; }
.nf-grid .label { margin-bottom: -4px; }
/* Mentions légales */
.legal { padding-block: clamp(48px, 7vw, 112px) var(--sec-pad); border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.legal-head { position: sticky; top: calc(var(--header-h) + 36px); display: grid; gap: 22px; justify-items: start; }
.legal-head .label { margin-bottom: -4px; }
.legal-updated { color: var(--graphite); }
.legal-head .link-arrow svg { width: 16px; height: 16px; }
.legal-body { border-top: 1px solid var(--line-strong); }
.legal-sec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 10px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.legal-sec h2 { color: var(--terra); padding-top: .35em; }
.legal-text { display: grid; gap: 10px; }
.legal-text p { color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }

/* Pied de page */
.site-footer { background: var(--night-2); color: var(--on-ink); padding-block: clamp(64px, 8vw, 112px) 28px; border-top: 1px solid var(--on-ink-line); }
.f-top { display: grid; grid-template-columns: minmax(0, 4.4fr) repeat(3, minmax(0, 2.6fr)); gap: 36px 28px; }
.f-logo { display: inline-block; color: var(--on-ink); }
.f-logo .logo { height: 52px; width: auto; }
.f-tagline { margin-top: 22px; font: 300 1.45rem/1.2 var(--font-display); max-width: 15ch; }
.f-title { color: var(--on-ink-2); margin-bottom: 16px; }
.f-col ul { list-style: none; display: grid; gap: 10px; font-size: .95rem; color: var(--on-ink-2); }
.f-col a { text-decoration: none; color: var(--on-ink); }
.f-col a:hover { color: var(--terra-2); }
.cartouche { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--on-ink-line); }
.cartouche > div { display: grid; gap: 6px; padding: 14px 18px; border-left: 1px solid var(--on-ink-line); min-width: 0; }
.cartouche > div:first-child { border-left: 0; }
.cartouche .k { color: var(--on-ink-2); font-size: .6rem; }
.cartouche .v { color: var(--on-ink); text-transform: none; letter-spacing: .04em; font-size: .78rem; overflow-wrap: anywhere; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; color: var(--on-ink-2); font-size: .86rem; }
.f-legal { margin-left: 16px; color: var(--on-ink-2); text-underline-offset: 3px; }
.f-legal:hover { color: var(--on-ink); }
.f-social-title { margin-top: 26px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.to-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.to-top:hover { color: var(--on-ink); }

/* Film */
.film { width: min(1200px, 94vw); padding: 0; border: 0; background: transparent; }
.film::backdrop { background: rgba(8, 8, 7, .88); }
.film-inner { position: relative; }
.film video { width: 100%; height: auto; background: #000; }
.film-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid rgba(237, 235, 230, .4); color: #fff; border-radius: 50%; cursor: pointer; }
.film-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .hero-head .display { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / span 9; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 0; }
  .steps::before, .steps::after { display: none; }
  .step { padding: 0 0 44px 44px; border-left: 1px solid var(--ink); margin-left: 8px; }
  .step:nth-child(2n) { margin-left: 8px; }
  .step-node { left: -9px; top: 2px; }
  .step-code { min-height: 0; }
  .step:last-child { grid-column: 1 / -1; border-left-color: transparent; padding-bottom: 0; }
}
@media (max-width: 1023px) {
  .main-nav, .header-cta { display: none; }
  .header-actions .lang { display: none; }
  .menu-btn { display: inline-flex; }
  .sec-head, .sec-body { grid-column: 1 / -1; }
  .sec-body { padding-top: 0; }
  .svc { grid-template-columns: 1fr; }
  .svc-visual { display: none; }
  .svc-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 10px; background: var(--paper-3); }
  .svc-thumb picture, .svc-thumb img { width: 100%; height: 100%; }
  .svc-thumb img { object-fit: cover; }
  .t-grid, .zone-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-head, .legal-head { position: static; }
  .legal-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(4, minmax(240px, 42%)); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
  .card { scroll-snap-align: start; }
  .f-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  :root { --header-h: 64px; }
  .brand .logo { height: 32px; }
  .hero-side { grid-column: 1 / -1; }
  .planche-frame { aspect-ratio: 4 / 5; max-height: 72vh; }
  .layer img { object-position: 64% 55%; }
  .handle { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .planche-cap .cap-mid { display: none; }
  .poles { grid-template-columns: 1fr; }
  .pole-link { padding: 0; min-height: 96px; }
  .pole-link::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px solid var(--terra); }
  .pole-link p { position: relative; left: auto; right: auto; bottom: auto; margin: 0 0 0 calc(50% + 18px); justify-self: start; text-align: left; }
  .pole-link::after { box-shadow: 0 0 0 5px var(--paper); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 20px; }
  .feature-media { aspect-ratio: 4 / 3; }
  .feature-cap { position: static; max-width: none; margin-top: 18px; }
  .feature-media::after { display: none; }
  .film-btn { position: static; margin-top: 16px; }
  .gallery { grid-template-columns: repeat(4, 76%); }
  .steps { grid-template-columns: 1fr; }
  .step:last-child { grid-column: auto; }
  .one-contact { grid-template-columns: 1fr; }
  .one-title, .one-text { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
  .legal-sec { grid-template-columns: 1fr; }
  .coords > div { grid-template-columns: minmax(0, 1fr) auto; }
  .coords dt { grid-column: 1 / -1; }
  .map-labels .l-minor, .map-labels .l-grat, .map-labels .l-var { display: none; }
  .map-labels li { font-size: .72rem; }
  .map-labels .l-mob-hide { display: none; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-col:last-child { grid-column: 1 / -1; }
  .cartouche { grid-template-columns: 1fr 1fr; }
  .cartouche > div:nth-child(3) { border-left: 0; }
  .cartouche > div:nth-child(n + 3) { border-top: 1px solid var(--on-ink-line); }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .num { font-size: 2.9rem; }
  .qa-body { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
