/* ==========================================================================
   MOA Construction — feuille de style
   Palette tirée du logo (rouge #E8202A) et de la plaquette (noir graphite).
   ========================================================================== */

:root {
  --ink: #0b0c0e;
  --ink-2: #121417;
  --ink-3: #1a1d21;
  --paper: #f3f1ed;
  --paper-2: #e8e5df;
  --red: #e8202a;
  --red-deep: #c4141d;
  --white: #ffffff;

  --on-dark: #f3f1ed;
  --on-dark-muted: #9a9ea6;
  --on-light: #0b0c0e;
  --on-light-muted: #5b5f66;
  --line-dark: rgba(243, 241, 237, 0.12);
  --line-light: rgba(11, 12, 14, 0.12);

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-poster: "Anton", "Archivo", Impact, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 76px;
  --section-y: clamp(88px, 11vw, 168px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.94rem + 0.18vw, 18px);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: var(--red); color: var(--white); font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }
.theme-light { background: var(--paper); color: var(--on-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.theme-light .eyebrow { color: var(--on-light-muted); }
.eyebrow .idx { color: var(--red); letter-spacing: 0.04em; }
.theme-light .eyebrow .idx { color: var(--red-deep); }
.eyebrow .idx::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: 0.6; }

.section-head { margin-bottom: clamp(36px, 5vw, 72px); }
.section-head--split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px 48px; align-items: start;
}
.section-head--split .eyebrow { margin-top: 0.9em; }

.h-1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.9vw, 78px);
  font-weight: 650; line-height: 1.02; letter-spacing: -0.035em;
  font-variation-settings: "wdth" 96;
  text-wrap: balance;
}
.h-2 {
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-fill: var(--red);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px;
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.005em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), transform 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn .icon { transition: transform 0.45s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--red); --btn-fg: var(--white); --btn-fill: var(--ink); }
.theme-light .btn--primary { --btn-fill: var(--ink); }
.btn--ghost { border-color: var(--line-dark); --btn-fill: var(--on-dark); }
.btn--ghost:hover { color: var(--ink); border-color: var(--on-dark); }
.theme-light .btn--ghost { border-color: var(--line-light); --btn-fill: var(--ink); }
.theme-light .btn--ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn:active { transform: scale(0.97); transition-duration: 0.12s; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.link-arrow:hover { color: var(--red); background-size: 0 1px; background-position: 100% 100%; }
.link-arrow .icon { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  padding: 6px 10px; border: 1px solid var(--line-light);
}

/* ---------- Préchargement ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: var(--ink); color: var(--on-dark);
  transition: transform 0.9s var(--ease-in-out);
}
.preloader__inner { display: flex; align-items: flex-end; gap: 22px; }
.preloader__mark { width: 58px; height: auto; clip-path: inset(100% 0 0 0); animation: mark-rise 0.9s 0.1s var(--ease-out) forwards; }
.preloader__meta { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
.preloader__count { font-size: 40px; letter-spacing: -0.02em; color: var(--on-dark); font-family: var(--font-display); font-weight: 600; line-height: 1; }
.preloader__count b { font-weight: 600; font-variant-numeric: tabular-nums; }
.preloader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-dark); }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.preloader.is-done { transform: translateY(-100%); }
.preloader.is-gone { display: none; }
@keyframes mark-rise { to { clip-path: inset(0 0 0 0); } }

/* ---------- Progression de lecture ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 110;
  height: var(--header-h);
  color: var(--on-dark);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s, color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 12, 14, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-color: var(--line-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-light { color: var(--on-light); }
.site-header.is-light.is-scrolled { background: rgba(243, 241, 237, 0.86); border-color: var(--line-light); }
.site-header.is-light .brand { color: var(--ink); }
.site-header.is-light .nav a { color: var(--on-light-muted); }
.site-header.is-light .nav a:hover, .site-header.is-light .nav a.is-active { color: var(--on-light); }
.site-header.is-light .header__phone { color: var(--on-light); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; color: var(--white); transition: color 0.4s; }
.brand__logo { display: block; height: 40px; width: auto; aspect-ratio: 1320 / 650; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 2vw, 34px); }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--on-dark-muted);
  padding: 6px 0; transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.45s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--on-dark); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--on-dark); }
.header__phone .icon { color: var(--red); }
.burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.burger__line { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.burger__line:nth-child(1) { top: 17px; }
.burger__line:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease-in-out), visibility 0s; }
.mobile-menu__nav li { overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0;
  font-size: clamp(30px, 9vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  transform: translateY(105%); transition: transform 0.7s var(--ease-out), color 0.3s;
}
.mobile-menu__nav a span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--red); }
.mobile-menu.is-open .mobile-menu__nav a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 0.05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 0.1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 0.15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 0.2s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: 0.25s; }
.mobile-menu__nav a:active { color: var(--red); }
.mobile-menu__foot { display: grid; gap: 6px; font-size: 15px; color: var(--on-dark-muted); }
.mobile-menu__foot a { color: var(--on-dark); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(20px, 4vh, 48px));
  padding-bottom: 28px;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: -1px -1px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 60vw; height: 60vw; right: -18vw; top: -10vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 32, 42, 0.16), transparent);
}
.hero__inner {
  position: relative; z-index: 1; flex: 1;
  transform: translate3d(0, calc(var(--hp, 0) * 10vh), 0);
  opacity: calc(1 - var(--hp, 0) * 0.9);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center; gap: 24px;
}
.hero__content { position: relative; z-index: 2; padding-block: 24px; }
.hero__eyebrow { margin-bottom: clamp(20px, 3vh, 32px); color: var(--on-dark-muted); }
.pulse { width: 8px; height: 8px; background: var(--red); border-radius: 50%; position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.6vw, 132px);
  font-weight: 700; line-height: 0.93; letter-spacing: -0.045em;
  font-variation-settings: "wdth" 92;
  margin-bottom: clamp(22px, 3.4vh, 36px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .accent { color: var(--red); }
.hero__lead { max-width: 34rem; font-size: clamp(16.5px, 1.25vw, 19px); color: var(--on-dark-muted); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vh, 40px); }

.hero__visual { position: relative; align-self: stretch; min-height: 420px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud {
  position: absolute; display: grid; gap: 2px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted); pointer-events: none;
}
.hud b { font-weight: 500; color: var(--on-dark); letter-spacing: 0.08em; }
.hud i { font-style: normal; color: var(--red); font-variant-numeric: tabular-nums; }
.hud--tl { top: 6%; left: 4%; }
.hud--tr { top: 6%; right: 2%; text-align: right; }
.hud--bl { bottom: 4%; left: 4%; }
.hud--br { bottom: 4%; right: 2%; text-align: right; }
.hud::before {
  content: ""; position: absolute; width: 10px; height: 10px;
  border: 1px solid var(--red);
}
.hud--tl::before { left: -16px; top: 2px; border-right: 0; border-bottom: 0; }
.hud--tr::before { right: -16px; top: 2px; border-left: 0; border-bottom: 0; }
.hud--bl::before { left: -16px; bottom: 2px; border-right: 0; border-top: 0; }
.hud--br::before { right: -16px; bottom: 2px; border-left: 0; border-top: 0; }

.hero__bottom {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-top: 24px; margin-top: 16px; border-top: 1px solid var(--line-dark);
}
.hero__services { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 4vw, 56px); }
.hero__services a {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: clamp(15px, 1.2vw, 17px); font-weight: 500; color: var(--on-dark);
  transition: color 0.3s;
}
.hero__services a:hover { color: var(--red); }
.hero__services .mono { font-size: 11.5px; color: var(--red); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.16em; }
.scroll-cue__track { position: relative; width: 1px; height: 40px; background: var(--line-dark); overflow: hidden; }
.scroll-cue__track span { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--red); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* Entrée du hero (pilotée par JS) */
.js .hero__title .line > span { transform: translateY(110%) skewY(4deg); transform-origin: 0 100%; filter: blur(6px); }
.js [data-hero-in] { opacity: 0; transform: translateY(24px); }
.js .is-ready .hero__title .line > span { transform: none; filter: none; transition: transform 1.3s var(--ease-out), filter 1.1s var(--ease-out); }
.js .is-ready .hero__title .line:nth-child(2) > span { transition-delay: 0.1s; }
.js .is-ready [data-hero-in] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .is-ready .hero__eyebrow { transition-delay: 0.05s; }
.js .is-ready .hero__lead { transition-delay: 0.3s; }
.js .is-ready .hero__actions { transition-delay: 0.42s; }
.js .is-ready .hero__visual { transition-delay: 0.2s; }
.js .is-ready .hero__bottom { transition-delay: 0.6s; }

/* ---------- Clients (défilant) ---------- */
.clients {
  position: relative; display: flex; align-items: center;
  border-block: 1px solid var(--line-dark);
  background: var(--ink);
}
.clients__label {
  flex: none; z-index: 1; align-self: stretch; display: flex; align-items: center;
  padding: 0 clamp(16px, 3vw, 40px);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--on-dark-muted);
  background: var(--ink); border-right: 1px solid var(--line-dark);
  max-width: 9.5rem; line-height: 1.5;
}
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; }
.marquee__list li {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  padding: clamp(22px, 2.6vw, 34px) 0 clamp(22px, 2.6vw, 34px) clamp(28px, 4vw, 56px);
  font-size: clamp(19px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap;
  color: var(--on-dark);
}
.marquee__list li::after { content: ""; width: 9px; height: 13px; background: var(--red); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Révélations au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Titres : chaque mot sort de son masque */
.js [data-reveal][data-split] { opacity: 1; transform: none; filter: none; }
[data-split] .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-split] .wd > span { display: inline-block; }
.js [data-split] .wd > span { transform: translateY(108%); transition: transform 1.05s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 45ms); }
.js [data-split].is-in .wd > span { transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
.js [data-reveal="mask"].is-in img { transform: scale(1); }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), filter 0.9s var(--ease-out); }
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; filter: none; }
@media (min-width: 981px) {
  .js [data-reveal]:not([data-reveal="mask"]):not([data-split]):not(.is-in),
  .js [data-reveal-stagger]:not(.is-in) > * { filter: blur(6px); }
}
.parallax { height: 100%; will-change: transform; }

/* ---------- À propos ---------- */
.about__statement {
  font-size: clamp(26px, 3.6vw, 58px);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.03em;
  max-width: 22ch; max-width: min(100%, 26ch);
  text-wrap: pretty;
}
@media (min-width: 900px) { .about__statement { max-width: 24ch; } }
.about__statement .w { transition: color 0.4s; }
.js .about__statement .w { color: rgba(11, 12, 14, 0.16); }
.js .about__statement .w.is-lit { color: var(--on-light); }
.js .about__statement .w.is-key.is-lit { color: var(--red); }

.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
  margin-top: clamp(48px, 7vw, 104px);
}
.about__media { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.about__img { overflow: hidden; background: var(--paper-2); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { aspect-ratio: 16 / 10; }
.about__img--main .parallax { height: 116%; margin-top: -8%; }
.about__img--small {
  position: absolute; right: clamp(-48px, -3vw, -16px); bottom: 0;
  width: 38%; aspect-ratio: 4 / 5; border: 6px solid var(--paper);
}
.about__caption { position: absolute; left: 0; bottom: 8px; font-size: 11.5px; color: var(--on-light-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.about__text { display: grid; gap: 22px; color: var(--on-light-muted); max-width: 32rem; padding-bottom: clamp(48px, 7vw, 96px); }
.about__lead { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; color: var(--on-light); font-weight: 500; }
.about__text .link-arrow { justify-self: start; color: var(--on-light); }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line-light);
}
.stat { padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 28px) 0 0; }
.stat + .stat { padding-left: clamp(12px, 2vw, 28px); border-left: 1px solid var(--line-light); }
.stat__value {
  font-family: var(--font-poster); font-weight: 400;
  font-size: clamp(48px, 6vw, 96px); line-height: 1; letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}
.stat__value sup { font-family: var(--font-sans); font-size: 0.3em; font-weight: 600; color: var(--red); vertical-align: top; margin-left: 4px; position: relative; top: 0.25em; letter-spacing: 0; }
.stat__label { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--on-light-muted); max-width: 18rem; }

/* ---------- Mission & valeurs ---------- */
.mission { overflow: hidden; }
.mission .container { position: relative; }
.mission__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.mission__title em { font-style: normal; color: var(--red); }
.mission__text { display: grid; gap: 18px; color: var(--on-dark-muted); }
.mission__text p:first-child { color: var(--on-dark); font-size: 1.08em; }

.pledges {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 88px);
  border-block: 1px solid var(--line-dark);
}
.pledges li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: clamp(20px, 2.4vw, 32px) clamp(12px, 2vw, 28px);
}
.pledges li + li { border-left: 1px solid var(--line-dark); }
.pledges .icon { grid-row: span 2; width: 34px; height: 34px; color: var(--red); }
.pledges span { font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); }
.pledges small { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }

.values { margin-top: clamp(64px, 8vw, 128px); }
.values__head { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.values__head .h-2 { max-width: 30ch; }
.values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); transition: background-color 0.8s 0.3s; }
.js .values__grid:not(.is-in) { background-color: transparent; }
.value-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.4vw, 36px); background: var(--ink); min-height: 340px;
  transition: background-color 0.5s var(--ease-out);
}
.value-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease-out);
}
.value-card:hover { background: var(--ink-2); }
.value-card:hover::before { transform: scaleX(1); }
.value-card__idx { font-size: 12px; color: var(--on-dark-muted); }
.value-card__icon { width: 44px; height: 44px; color: var(--on-dark); margin-top: 18px; transition: color 0.4s, transform 0.6s var(--ease-out); }
.value-card:hover .value-card__icon { color: var(--red); transform: translateY(-4px); }
.value-card h4 { font-size: clamp(19px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin-top: 36px; min-height: 2.4em; }
.value-card p { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); }
.value-card--accent .value-card__icon { color: var(--red); }

.badge-rotate { position: relative; width: 132px; height: 132px; flex: none; }
.badge-rotate__text { width: 100%; height: 100%; }
.badge-rotate__text text { font-family: var(--font-mono); font-size: 14.2px; letter-spacing: 0.16em; fill: var(--on-dark); }
.badge-rotate__icon { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; color: var(--red); }

/* ---------- Services ---------- */
.service-list { border-top: 1px solid var(--line-light); }
.service { border-bottom: 1px solid var(--line-light); }
.service__row {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 48px; gap: 24px;
  align-items: start; padding: clamp(28px, 3.6vw, 52px) 0;
}
.service__idx { font-size: 13px; color: var(--red); padding-top: 0.9em; }
.service__title {
  font-size: clamp(34px, 5vw, 80px); font-weight: 650; line-height: 1; letter-spacing: -0.04em;
  font-variation-settings: "wdth" 94;
  transition: transform 0.7s var(--ease-out), color 0.4s;
}
.service__body { display: grid; gap: 18px; color: var(--on-light-muted); padding-top: 0.4em; }
.service__body p { max-width: 34rem; }
.service__thumb { display: none; }
.service__arrow { width: 40px; height: 40px; color: var(--on-light); justify-self: end; margin-top: 0.4em; transition: transform 0.6s var(--ease-out), color 0.3s; }
@media (hover: hover) {
  .service:hover .service__title { transform: translateX(14px); color: var(--red); }
  .service:hover .service__arrow { transform: rotate(45deg); color: var(--red); }
}
.service-follower {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: clamp(260px, 22vw, 360px); aspect-ratio: 4 / 3;
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.6);
  transition: opacity 0.4s var(--ease-out);
  overflow: hidden;
}
.service-follower.is-on { opacity: 1; }
.service-follower__inner { position: absolute; inset: 0; }
.service-follower__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.service-follower__inner img.is-active { opacity: 1; }

/* ---------- Domaines d'intervention ---------- */
.domains { overflow: hidden; }
.domains .container { position: relative; }
.domains__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.domains__head .eyebrow { margin-bottom: clamp(20px, 2.5vw, 32px); }
.domains__head .h-1 { max-width: 16ch; }
.domains__big {
  font-family: var(--font-poster); font-size: clamp(120px, 19vw, 300px); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px var(--red); letter-spacing: 0;
  margin-bottom: -0.04em;
}
.domain-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.domain-group header { display: flex; align-items: baseline; gap: 12px; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--red); }
.domain-group header .mono { font-size: 12px; color: var(--red); }
.domain-group h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.domain {
  position: relative;
  display: grid; grid-template-columns: 28px 1fr; grid-template-areas: "icon text" "no text"; column-gap: 14px;
  padding: 16px 8px 16px 0; border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.4s;
}
.domain > * { transition: transform 0.5s var(--ease-out), color 0.3s; }
.domain .icon { grid-area: icon; width: 26px; height: 26px; color: var(--on-dark-muted); transition: color 0.3s, transform 0.5s var(--ease-out); }
.domain__no { grid-area: no; font-size: 11px; color: var(--on-dark-muted); margin-top: 6px; }
.domain > div { grid-area: text; display: grid; gap: 2px; }
.domain b { font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.domain small { font-size: 13.5px; color: var(--on-dark-muted); line-height: 1.45; }
@media (hover: hover) {
  .domain:hover { background: linear-gradient(90deg, rgba(232, 32, 42, 0.1), transparent); }
  .domain:hover > * { transform: translateX(10px); }
  .domain:hover .icon { color: var(--red); transform: translateX(10px) scale(1.08); }
}

/* ---------- Réalisations ---------- */
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.work__head .eyebrow { margin-bottom: clamp(20px, 2.5vw, 32px); }
.work__head .h-1 { max-width: 15ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border: 1px solid var(--line-light);
  font-size: 14.5px; font-weight: 500; transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.filter sup { font-family: var(--font-mono); font-size: 10.5px; color: var(--on-light-muted); top: -0.3em; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filter[aria-pressed="true"] sup { color: var(--red); }

.work-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(300px, 29vw, 440px); grid-auto-flow: dense;
  gap: clamp(10px, 1.2vw, 18px);
}
.work-card { position: relative; min-width: 0; }
.work-card--wide { grid-column: span 2; }
/* le volet est porté par le bouton : un élément masqué par clip-path n'intersecte jamais */
.js .work-card .work-card__btn { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js .work-card .work-card__btn img { scale: 1.16; transition: scale 1.6s var(--ease-out), transform 1.2s var(--ease-out), filter 0.6s; transition-delay: var(--d, 0s), 0s, 0s; }
.js .work-card.is-in .work-card__btn { clip-path: inset(0 0 0 0); }
.js .work-card.is-quick .work-card__btn { transition-duration: 0.65s; transition-timing-function: var(--ease-out); }
.js .work-card.is-in .work-card__btn img { scale: 1; }
.work-card__btn {
  position: absolute; inset: 0; display: block; width: 100%; text-align: left; overflow: hidden;
  background: var(--ink-3); color: var(--white); cursor: pointer;
}
.work-card__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 0.6s; }
.work-card__btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0) 38%, rgba(11, 12, 14, 0.86) 100%);
  transition: opacity 0.5s;
}
.work-card__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2vw, 28px); display: grid; gap: 8px; }
.work-card__top { position: absolute; z-index: 1; top: clamp(14px, 1.6vw, 22px); left: clamp(14px, 1.6vw, 22px); right: clamp(14px, 1.6vw, 22px); display: flex; justify-content: space-between; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(11, 12, 14, 0.55); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.chip--red { background: var(--red); }
.chip .icon { width: 13px; height: 13px; }
.work-card__title { font-size: clamp(19px, 1.6vw, 25px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; max-width: 26ch; }
.work-card__sub { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.work-card__sub .tag { font-family: var(--font-mono); font-size: 12px; color: var(--white); }
.work-card__plus {
  position: absolute; z-index: 1; right: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 28px);
  width: 46px; height: 46px; display: grid; place-items: center; background: var(--red); color: var(--white);
  transform: scale(0); transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) {
  .work-card__btn:hover img { transform: scale(1.06); }
  .work-card__btn:hover .work-card__plus { transform: scale(1); }
}
.work-card__btn:focus-visible { outline-offset: -3px; }
.work-card__btn:focus-visible .work-card__plus { transform: scale(1); }

/* ---------- Visionneuse ---------- */
.viewer { position: fixed; inset: 0; z-index: 200; display: grid; }
.viewer[hidden] { display: none; }
.viewer__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 7, 0.88); opacity: 0; transition: opacity 0.5s; }
.viewer.is-open .viewer__backdrop { opacity: 1; }
.viewer__panel {
  position: relative; margin: auto; width: min(100% - 32px, 1500px); height: min(100% - 32px, 900px);
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; background: var(--ink); color: var(--on-dark);
  clip-path: var(--from, inset(6% 6% 6% 6%));
  transition: clip-path 0.75s var(--ease-in-out);
}
.viewer.is-open .viewer__panel { clip-path: inset(0 0 0 0); }
.viewer__info > * { opacity: 0; transform: translateY(14px); transition: opacity 0.3s, transform 0.3s; }
.viewer.is-open .viewer__info > * { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.viewer.is-open .viewer__info > :nth-child(2) { transition-delay: 0.3s; }
.viewer.is-open .viewer__info > :nth-child(3) { transition-delay: 0.36s; }
.viewer.is-open .viewer__info > :nth-child(4) { transition-delay: 0.42s; }
.viewer.is-open .viewer__info > :nth-child(5) { transition-delay: 0.48s; }
.viewer.is-open .viewer__info > :nth-child(n+6) { transition-delay: 0.54s; }
.viewer__stage { position: relative; overflow: hidden; background: #050607; touch-action: pan-y; }
.viewer__slides { position: absolute; inset: 0; }
.viewer__slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out); transform: translateX(calc(var(--dir, 1) * 4%)) scale(1.02); }
.viewer__slide.is-active { opacity: 1; transform: none; }
.viewer__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer__slide--blur::before {
  content: ""; position: absolute; inset: -40px; background: var(--bg) center / cover; filter: blur(36px) brightness(0.45); transform: scale(1.1);
}
.viewer__slide--blur img { position: relative; }
.viewer__nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(11, 12, 14, 0.6); color: var(--white); border: 1px solid var(--line-dark);
  transition: background-color 0.3s;
}
.viewer__nav:hover { background: var(--red); border-color: var(--red); }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }
.viewer__counter { position: absolute; left: 20px; top: 18px; z-index: 2; font-size: 12px; color: var(--on-dark); background: rgba(11, 12, 14, 0.6); padding: 6px 10px; }
.viewer__caption { position: absolute; left: 20px; bottom: 18px; right: 90px; z-index: 2; font-size: 13.5px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.viewer__info { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 72px 32px 32px; overflow-y: auto; border-left: 1px solid var(--line-dark); }
.viewer__close {
  position: absolute; right: 16px; top: 16px; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); transition: background-color 0.3s, transform 0.5s var(--ease-out);
}
.viewer__close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }
.viewer__close .icon { width: 22px; height: 22px; }
.viewer__cat { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.viewer__title { font-size: clamp(26px, 2.2vw, 34px); font-weight: 650; line-height: 1.1; letter-spacing: -0.03em; }
.viewer__summary { color: var(--on-dark-muted); }
.viewer__specs { display: grid; border-top: 1px solid var(--line-dark); }
.viewer__specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 14.5px; }
.viewer__specs dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 2px; }
.viewer__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.viewer__thumbs button { position: relative; aspect-ratio: 1; overflow: hidden; opacity: 0.5; transition: opacity 0.3s; }
.viewer__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.viewer__thumbs button::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--red); opacity: 0; transition: opacity 0.3s; }
.viewer__thumbs button:hover, .viewer__thumbs button[aria-current="true"] { opacity: 1; }
.viewer__thumbs button[aria-current="true"]::after { opacity: 1; }
.viewer__cta { margin-top: auto; align-self: stretch; }

/* ---------- Direction ---------- */
.leader { overflow: hidden; }
.leader__intro { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.leader__portrait { position: relative; width: min(100%, 420px); aspect-ratio: 1; justify-self: center; }
.leader__photo {
  position: absolute; inset: 15%; border-radius: 50%; overflow: hidden;
  background: var(--ink-3); box-shadow: 0 0 0 6px var(--ink), 0 0 0 7px var(--red);
}
.leader__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.04); transition: filter 0.6s, transform 1.2s var(--ease-out); }
.leader__portrait:hover .leader__photo img { filter: none; transform: scale(1.04); }
.leader__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.leader__ring text { font-family: var(--font-mono); font-size: 9.4px; letter-spacing: 0.22em; fill: var(--on-dark-muted); }
.leader__name { font-size: clamp(40px, 5.4vw, 88px); font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; font-variation-settings: "wdth" 92; }
.leader__name > span:not(.wd) { color: var(--red); }
.leader__role { margin-top: 18px; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.leader__quote { margin-top: clamp(24px, 3vw, 40px); padding-left: 22px; border-left: 2px solid var(--red); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; font-weight: 500; }
.leader__more { margin-top: 18px; color: var(--on-dark-muted); max-width: 44rem; }
.leader__mail { margin-top: 22px; color: var(--on-dark); }
.leader__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 3.6vw, 48px); border-top: 1px solid var(--line-dark); }
.leader__facts > div { padding: 18px 18px 0 0; }
.leader__facts > div + div { padding-left: 18px; border-left: 1px solid var(--line-dark); }
.leader__facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.leader__facts dd { font-size: 14.5px; line-height: 1.5; }

.timeline { position: relative; margin-top: clamp(72px, 9vw, 140px); }
.timeline__title { font-size: 12px; line-height: 1.6; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 36px; }
.timeline__rail { position: absolute; left: 0; right: 0; top: calc(12px * 1.6 + 36px); height: 1px; background: var(--line-dark); }
.timeline__rail span { position: absolute; inset: 0; background: var(--red); transform: scaleX(var(--tl, 0)); transform-origin: 0 50%; }
.timeline__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.tl-item { position: relative; padding-top: 34px; }
.tl-item__dot { position: absolute; top: -6px; left: 0; width: 13px; height: 13px; background: var(--ink); border: 1.5px solid var(--on-dark-muted); transition: background-color 0.5s, border-color 0.5s; }
.tl-item.is-passed .tl-item__dot { background: var(--red); border-color: var(--red); }
.tl-item--now .tl-item__dot::after { content: ""; position: absolute; inset: -6px; border: 1px solid var(--red); animation: pulse 2.2s var(--ease-out) infinite; }
.tl-item__date { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.tl-item h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.tl-item__org { font-size: 14px; color: var(--on-dark); margin: 4px 0 12px; font-weight: 500; }
.tl-item p:last-child { font-size: 14px; color: var(--on-dark-muted); line-height: 1.55; }

.flagships { margin-top: clamp(72px, 9vw, 140px); }
.flagships__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.flagships__note { font-size: 14px; color: var(--on-dark-muted); max-width: 30rem; }
.flagships__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.flagships__grid li {
  display: grid; gap: 4px; padding: 22px 24px;
  border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.4s;
}
.flagships__grid li:hover { background: var(--ink-2); }
.flagships__grid b { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.flagships__grid span { font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted); letter-spacing: 0.04em; }

/* ---------- Contact ---------- */
.contact__title {
  font-size: clamp(48px, 8.6vw, 150px); font-weight: 700; line-height: 0.92; letter-spacing: -0.05em;
  font-variation-settings: "wdth" 90; margin-bottom: clamp(40px, 6vw, 88px);
}
.contact__title > span:not(.wd) { color: var(--red); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; font-weight: 500; margin-bottom: 28px; max-width: 28rem; }
.contact-cards { display: grid; gap: 10px; }
.contact-card {
  position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 18px 20px; background: var(--white); border: 1px solid var(--line-light);
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.contact-card .icon { grid-row: span 2; width: 44px; height: 44px; padding: 11px; background: var(--paper); color: var(--red); transition: background-color 0.3s, color 0.3s; }
.contact-card__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-light-muted); }
.contact-card__value { font-size: clamp(15.5px, 1.2vw, 18px); font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-card:hover { border-color: var(--ink); transform: translateX(4px); }
.contact-card:hover .icon { background: var(--red); color: var(--white); }

.quote-form { background: var(--white); border: 1px solid var(--line-light); padding: clamp(22px, 3vw, 44px); display: grid; gap: 22px; }
.quote-form__title { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-light-muted); padding: 0; }
.field input, .field textarea {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--line-light); background: transparent;
  font-size: 16.5px; border-radius: 0; transition: border-color 0.3s, background-size 0.6s var(--ease-out);
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9a9ca1; }
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 2px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-light); font-size: 14.5px; font-weight: 500; transition: all 0.3s; }
.chips input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.quote-form__error { color: var(--red-deep); font-size: 14.5px; font-weight: 500; }
.quote-form__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quote-form__actions .btn { flex: 1 1 220px; }
.quote-form__note { font-size: 13px; color: var(--on-light-muted); }

.map { position: relative; margin-top: clamp(40px, 6vw, 88px); height: clamp(300px, 34vw, 460px); background: var(--paper-2); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__fallback .roads { fill: none; stroke: #fff; stroke-linecap: round; }
.map__fallback .pin-pulse { transform-origin: 600px 230px; animation: map-pulse 2.4s var(--ease-out) infinite; }
@keyframes map-pulse { from { transform: scale(0.4); opacity: 0.8; } to { transform: scale(2.4); opacity: 0; } }
.map__card {
  position: absolute; left: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 28px);
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--ink); color: var(--on-dark);
  max-width: calc(100% - 24px);
}
.map__card > .icon { width: 30px; height: 30px; color: var(--red); }
.map__card div { display: grid; font-size: 14px; }
.map__card b { font-size: 16px; }
.map__card span { color: var(--on-dark-muted); }
.map__card .link-arrow { margin-left: 12px; font-size: 14px; }

/* ---------- Pied de page ---------- */
.footer { padding: clamp(64px, 8vw, 120px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__logo { width: 190px; height: auto; aspect-ratio: 1320 / 650; color: var(--white); }
.footer__brand p { margin-top: 20px; color: var(--on-dark-muted); max-width: 22rem; font-size: 15px; }
.footer__col .mono { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; font-size: 15px; color: var(--on-dark-muted); }
.footer__col a { color: var(--on-dark); transition: color 0.3s; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--red); }
.footer__giant {
  margin: clamp(56px, 8vw, 120px) 0 clamp(28px, 3vw, 40px);
  font-size: clamp(40px, 8.5vw, 150px); font-weight: 700; line-height: 0.95; letter-spacing: -0.055em;
  font-variation-settings: "wdth" 88; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 237, 0.35);
}
.footer__giant span { color: var(--red); -webkit-text-stroke: 0; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: var(--on-dark-muted); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); transition: color 0.3s; }
.to-top:hover { color: var(--red); }

/* ---------- Barre d'action mobile ---------- */
.action-bar { display: none; }

/* ---------- Curseur ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { display: none; }
  .has-cursor .work-card__btn { cursor: none; }
  .cursor__ring {
    width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--red);
    display: grid; place-items: center;
  }
  .cursor__ring > .cursor__label { scale: 0; opacity: 0; transition: scale 0.5s var(--ease-out), opacity 0.3s; }
  .cursor__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
  .cursor__ring { clip-path: circle(0 at 50% 50%); transition: clip-path 0.5s var(--ease-out); }
  .cursor.is-view .cursor__ring { clip-path: circle(50% at 50% 50%); }
  .cursor.is-view .cursor__label { opacity: 1; scale: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav ul { gap: 18px; }
  .header__phone { display: none; }
  .domain-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-card { min-height: 0; }
  .timeline__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .timeline__rail { display: none; }
  .viewer__panel { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .brand__logo { height: 34px; }

  .hero__inner { grid-template-columns: 1fr; align-content: end; gap: 0; }
  .hero__content { padding-bottom: 8px; }
  .hero__visual { position: absolute; z-index: 0; inset: -24px calc(-1 * var(--gutter)) 46%; min-height: 0; pointer-events: none; }
  .hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--ink) 96%); }
  .hero__canvas { opacity: 0.6; }
  .hud { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }

  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split .eyebrow { margin-top: 0; }
  .about__grid, .mission__top, .contact__grid, .leader__intro { grid-template-columns: 1fr; }
  .about__media { margin-right: 16px; }
  .about__img--small { right: -16px; }
  .about__text { padding-bottom: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 28px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pledges li:nth-child(3) { border-left: 0; }
  .pledges li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .values__head { align-items: flex-start; }
  .badge-rotate { width: 104px; height: 104px; }

  .service__row { grid-template-columns: 1fr auto; gap: 12px 16px; }
  .service__idx { grid-column: 1 / -1; padding-top: 0; }
  .service__title { grid-column: 1; }
  .service__arrow { grid-column: 2; grid-row: 2; width: 30px; height: 30px; }
  .service__body { grid-column: 1 / -1; padding-top: 6px; }
  .service__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 4px; background: var(--paper-2); }
  .service__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .service-follower { display: none; }

  .domains__head { align-items: flex-start; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(260px, 44vw, 400px); }
  .leader__portrait { width: min(80%, 360px); }
  .flagships__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .viewer__panel { width: 100%; height: 100%; grid-template-columns: 1fr; grid-template-rows: minmax(0, 52vh) minmax(0, 1fr); }
  .viewer__info { border-left: 0; border-top: 1px solid var(--line-dark); padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
  .viewer__close { position: fixed; top: 12px; right: 12px; z-index: 3; background: rgba(11, 12, 14, 0.7); }
  .viewer__nav { width: 44px; height: 44px; }
  .viewer__nav--prev { left: 8px; }
  .viewer__nav--next { right: 8px; }
  .viewer__thumbs { grid-template-columns: repeat(5, 1fr); }

  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
    border-top: 1px solid var(--line-dark);
    transform: translateY(110%); transition: transform 0.5s var(--ease-out);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar.is-suppressed { transform: translateY(110%); }
  .action-bar__btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; font-weight: 600; font-size: 15.5px; color: var(--on-dark); }
  .action-bar__btn--accent { background: var(--red); color: var(--white); }
  .footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__title { font-size: clamp(46px, 13.6vw, 72px); }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__services { display: grid; gap: 10px; width: 100%; }
  .hero__services li { border-bottom: 1px solid var(--line-dark); padding-bottom: 10px; }
  .hero__services li:last-child { border-bottom: 0; padding-bottom: 0; }
  .hud { font-size: 9.5px; }
  .clients { flex-direction: column; align-items: stretch; }
  .clients__label { max-width: none; padding: 14px var(--gutter) 0; border-right: 0; }
  .about__img--small { width: 44%; border-width: 4px; }
  .about__caption { position: static; margin-top: 12px; }
  .about__media { padding-bottom: 0; margin-right: 0; }
  .about__img--small { position: relative; right: auto; margin: -22% 0 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: clamp(42px, 13vw, 64px); }
  .stat__label { font-size: 13.5px; }
  .pledges { grid-template-columns: 1fr 1fr; }
  .pledges li { grid-template-columns: 1fr; row-gap: 10px; }
  .pledges .icon { grid-row: auto; width: 28px; height: 28px; }
  .values__grid { grid-template-columns: 1fr; }
  .value-card__icon { margin: 8px 0 0; }
  .value-card h4 { margin-top: 12px; min-height: 0; }
  .badge-rotate { display: none; }
  .domain-groups { grid-template-columns: 1fr; }
  .domains__head { flex-direction: column-reverse; gap: 0; }
  .domains__big { font-size: 128px; margin-bottom: 8px; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .work-card, .work-card--wide { grid-column: auto; aspect-ratio: 4 / 3.6; }
  .filters { gap: 6px; }
  .filter { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
  .leader__facts { grid-template-columns: 1fr; }
  .leader__facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); margin-top: 18px; }
  .timeline__list { grid-template-columns: 1fr; row-gap: 0; padding-left: 26px; border-left: 1px solid var(--line-dark); }
  .tl-item { padding: 0 0 36px; }
  .tl-item__dot { left: -33px; top: 2px; }
  .flagships__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-card { padding: 14px 16px; column-gap: 14px; }
  .map__card { flex-wrap: wrap; right: 12px; }
  .map__card .link-arrow { margin-left: 46px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__giant { white-space: normal; font-size: clamp(44px, 14vw, 80px); }
}

/* ---------- Animations liées au défilement (navigateurs compatibles) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .theme-light {
      animation: panel-in linear both;
      animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    @keyframes panel-in {
      from { clip-path: inset(0 clamp(12px, 4vw, 56px) round 28px); }
      to { clip-path: inset(0 0 round 0); }
    }
    .badge-rotate__text, .leader__ring {
      animation: turn linear both;
      animation-timeline: view();
    }
    @keyframes turn { from { rotate: -120deg; } to { rotate: 120deg; } }
    .domains__big {
      animation: fill-in linear both;
      animation-timeline: view(); animation-range: entry 40% cover 45%;
    }
    @keyframes fill-in { from { color: transparent; } to { color: var(--red); } }
    .footer__giant {
      animation: slide-in linear both;
      animation-timeline: view(); animation-range: entry 0% cover 40%;
    }
    @keyframes slide-in { from { transform: translateX(14%); } to { transform: none; } }
  }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__list[aria-hidden] { display: none; }
  .badge-rotate__text, .leader__ring { animation: none; }
}
