/* =========================================================
   OneB Méca
   Thème sombre verrouillé (univers atelier), accent orange signal unique.
   Rayon : 4px partout (cartes, images, boutons, champs).
   ========================================================= */

:root {
  --bg: #0c0d0f;
  --bg-2: #121316;
  --surface: #17191d;
  --surface-2: #1e2025;
  --line: rgba(236, 238, 242, 0.09);
  --line-strong: rgba(236, 238, 242, 0.18);
  --text: #eceef2;
  --muted: #a0a4ad;
  --dim: #6e727b;
  --accent: #ff5a1f;
  --accent-ink: #160a04;
  --accent-soft: rgba(255, 90, 31, 0.14);

  --radius: 4px;
  --wrap: 1400px;
  --gutter: clamp(16px, 4vw, 56px);

  --font: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Courbes (skill animate) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Échelle z-index */
  --z-progress: 60;
  --z-nav: 50;
  --z-menu: 45;
  --z-loader: 100;
  --z-grain: 90;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Grain fixe, jamais sur un conteneur qui défile */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

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

/* ---------- Typo ---------- */
.h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 750;
  font-variation-settings: "wdth" 92;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.h2 em, .hero__title em { color: var(--accent); }

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  max-width: 46ch;
  margin: 1.4rem 0 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 1.4rem;
}
.eyebrow i { font-size: 1.05rem; }

/* SplitText : lignes masquées */
.split-line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* =========================================================
   BOUTONS
   Remplissage directionnel depuis le curseur + texte qui roule
   ========================================================= */
.btn {
  --fill: var(--accent);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  height: 56px;
  padding: 0 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  transition: scale 160ms var(--ease-out), color 300ms ease, border-color 300ms ease;
}
.btn:active { scale: 0.97; }

.btn--primary { background: var(--accent); color: var(--accent-ink); --fill: var(--text); }
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(12, 13, 15, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  --fill: var(--text);
}
.btn--sm { height: 44px; padding: 0 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn__fill {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 0;
  height: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--fill);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 520ms var(--ease-out);
  padding: 140%;
  pointer-events: none;
}

.btn__label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.3;
}
.btn__roll { position: relative; display: inline-block; transition: transform 420ms var(--ease-out); }
.btn__roll::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
}
.btn__icon { font-size: 1.15rem; transition: transform 420ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__fill { transform: translate(-50%, -50%) scale(1); }
  .btn--primary:hover { color: var(--accent-ink); }
  .btn--ghost:hover { color: var(--bg); border-color: var(--text); }
  .btn:hover .btn__roll { transform: translateY(-100%); }
  .btn:hover .btn__icon { transform: rotate(45deg); }
}

/* =========================================================
   PRELOADER
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: none;
  place-items: center;
  align-content: center;
  gap: 2rem;
  background: var(--bg);
}
.motion .loader { display: grid; }

.loader__gauge { position: relative; width: min(240px, 56vw); aspect-ratio: 1; }
.gauge { width: 100%; height: 100%; overflow: visible; }
.gauge__track, .gauge__fill {
  fill: none;
  stroke-width: 3;
  transform-origin: 100px 100px;
  transform: rotate(150deg);
}
.gauge__track { stroke: var(--line-strong); }
.gauge__fill { stroke: var(--accent); stroke-linecap: round; }
.gauge__ticks line { stroke: var(--dim); stroke-width: 2; }
.gauge__ticks line.is-major { stroke: var(--text); stroke-width: 2.5; }
.gauge__ticks line.is-red { stroke: var(--accent); }
.gauge__needle {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}
.gauge__hub { fill: var(--text); }

.loader__count {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.loader__count small { color: var(--dim); margin-left: 2px; }
.loader__brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  text-align: center;
}
.loader__brand em { color: var(--accent); }

/* =========================================================
   PROGRESSION
   ========================================================= */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: var(--z-progress);
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-top: env(safe-area-inset-top);
  transition: transform 500ms var(--ease-out), background-color 400ms ease, border-color 400ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 13, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo { display: inline-flex; align-items: center; gap: 0.75rem; }
.logo__mark { position: relative; width: 38px; height: 38px; display: grid; place-items: center; }
.logo__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 700ms var(--ease-out); }
.logo__mark polygon { fill: var(--accent); }
.logo__mark b {
  position: relative;
  font-size: 0.82rem;
  font-weight: 850;
  color: var(--accent-ink);
  letter-spacing: -0.04em;
}
.logo__word { font-weight: 750; font-size: 1.15rem; letter-spacing: -0.03em; }
.logo__word em { color: var(--accent); font-style: normal; }
@media (hover: hover) and (pointer: fine) {
  .logo:hover .logo__mark svg { transform: rotate(60deg); }
}

.nav__links { display: flex; gap: 2.1rem; margin-left: auto; }
.nav__link {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 250ms ease;
}
.nav__link span { display: inline-block; transition: transform 400ms var(--ease-out); }
.nav__link span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--text);
}
.nav__link::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 400ms var(--ease-out);
}
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::before { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover span { transform: translateY(-100%); }
}

.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.burger i {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--text);
  transition: transform 400ms var(--ease-out);
}
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 600ms var(--ease-in-out), visibility 0s linear 600ms;
}
.menu-open .menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 600ms var(--ease-in-out), visibility 0s;
}
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  overflow: hidden;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.menu__links a:last-child { color: var(--accent); }
.menu__links a span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 600ms var(--ease-out);
}
.menu-open .menu__links a span { transform: translateY(0); }
.menu-open .menu__links a:nth-child(1) span { transition-delay: 150ms; }
.menu-open .menu__links a:nth-child(2) span { transition-delay: 200ms; }
.menu-open .menu__links a:nth-child(3) span { transition-delay: 250ms; }
.menu-open .menu__links a:nth-child(4) span { transition-delay: 300ms; }
.menu-open .menu__links a:nth-child(5) span { transition-delay: 350ms; }
.menu__foot { display: flex; flex-direction: column; gap: 0.3rem; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 clamp(40px, 7vh, 80px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: clip-path;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform-origin: 60% 50%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,13,15,0.92) 0%, rgba(12,13,15,0.62) 42%, rgba(12,13,15,0.12) 75%),
    linear-gradient(0deg, rgba(12,13,15,0.95) 0%, rgba(12,13,15,0) 45%);
}

.hero__content { position: relative; }
.hero__title {
  margin: 0;
  font-size: clamp(3rem, 8.4vw, 8.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
  font-variation-settings: "wdth" 88;
}
.hero__title .line { display: block; }
.hero__title em { padding-right: 0.06em; }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 38ch) auto;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  padding-right: clamp(0px, 14vw, 230px);
}
.hero__sub { margin: 0; color: #c9ccd2; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.hero__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero__badge {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 7vh, 80px);
  width: clamp(120px, 11vw, 170px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__badge text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
}
.hero__gear { font-size: 2.4rem; color: var(--accent); }

/* =========================================================
   MARQUES
   ========================================================= */
.brands {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
.brands__label {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 2.4rem;
  padding-inline: var(--gutter);
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  width: max-content;
  padding-right: clamp(48px, 6vw, 88px);
}
.marquee__track img {
  height: 34px;
  width: auto;
  opacity: 0.42;
  transition: opacity 250ms ease, transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .marquee__track img:hover { opacity: 1; transform: scale(1.08); }
}

/* =========================================================
   SERVICES (horizontal)
   ========================================================= */
.services { position: relative; }
.services__pin {
  position: relative;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.services__track {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2vw, 28px);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}
.services__intro {
  width: min(520px, 80vw);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(16px, 4vw, 64px);
}
.services__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--dim);
}
.services__hint i { font-size: 1.2rem; color: var(--accent); }

.svc {
  position: relative;
  flex-shrink: 0;
  width: clamp(300px, 30vw, 440px);
  height: min(68vh, 620px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 350ms ease;
}
.svc__media { position: relative; flex: 1 1 auto; overflow: hidden; min-height: 0; }
.svc__media img {
  position: absolute;
  inset: -4% -12%;
  width: 124%;
  height: 108%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), filter 600ms ease;
  filter: grayscale(0.35) brightness(0.86);
}
.svc__body { padding: 1.5rem 1.6rem 1.7rem; }
.svc__icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
  display: inline-block;
  transition: transform 500ms var(--ease-out);
}
.svc h3 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  font-variation-settings: "wdth" 95;
}
.svc p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.svc__arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(12,13,15,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  font-size: 1.1rem;
  transition: background-color 300ms ease, color 300ms ease, transform 450ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .svc:hover { border-color: rgba(255, 90, 31, 0.5); }
  .svc:hover .svc__media img { transform: scale(1.07); filter: grayscale(0) brightness(1); }
  .svc:hover .svc__icon { transform: rotate(-12deg) scale(1.12); }
  .svc:hover .svc__arrow { background: var(--accent); color: var(--accent-ink); transform: rotate(45deg); border-color: var(--accent); }
}

.services__bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(24px, 5vh, 48px);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.services__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* =========================================================
   MANIFESTE
   ========================================================= */
.statement {
  position: relative;
  padding: clamp(120px, 18vw, 240px) 0;
  overflow: hidden;
}
.statement__text {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 22ch;
  text-align: center;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-variation-settings: "wdth" 92;
  text-wrap: balance;
}
.statement__text em { color: var(--accent); }
.statement__text .word { display: inline-block; }

.statement__float {
  position: absolute;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0.55;
}
.statement__float img { width: 100%; height: 100%; object-fit: cover; }
.statement__float--a { width: clamp(140px, 17vw, 260px); aspect-ratio: 3 / 4; left: 3vw; top: 14%; }
.statement__float--b { width: clamp(150px, 19vw, 300px); aspect-ratio: 4 / 3; right: 3vw; bottom: 12%; }

/* =========================================================
   MÉTHODE (sticky stack)
   ========================================================= */
.method { padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 140px); }
.method__title { margin-bottom: clamp(48px, 6vw, 80px); }

.stack { display: grid; gap: 4vh; }
.stack__card {
  position: sticky;
  top: calc(96px + var(--i, 0) * 22px);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  min-height: min(62vh, 560px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform-origin: 50% 0;
  box-shadow: 0 -20px 60px rgba(5, 6, 8, 0.55);
}
.stack__card:nth-child(1) { --i: 0; }
.stack__card:nth-child(2) { --i: 1; background: var(--surface-2); }
.stack__card:nth-child(3) { --i: 2; }
.stack__card:nth-child(4) { --i: 3; background: var(--surface-2); }

.stack__text {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.stack__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: auto;
}
.stack__text h3 {
  margin: 2rem 0 0.8rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 800;
  font-variation-settings: "wdth" 90;
}
.stack__text p { margin: 0; color: var(--muted); max-width: 40ch; }
.stack__media { position: relative; overflow: hidden; }
.stack__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .stack__card:hover .stack__media img { transform: scale(1.05); }
}

/* =========================================================
   ATELIER (bento)
   ========================================================= */
.workshop { padding: clamp(80px, 10vw, 140px) 0; }
.workshop__title { margin-bottom: clamp(40px, 5vw, 64px); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(260px, auto));
  gap: 14px;
}
.cell {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
}
/* Bordure spotlight qui suit le curseur */
.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 90, 31, 0.85), var(--line) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 90, 31, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .cell:hover::after { opacity: 1; }
}

.cell--big { grid-column: span 2; grid-row: span 2; }
.cell:nth-child(2) { grid-column: span 1; }
.cell:nth-child(3) { grid-column: span 1; }
.cell:nth-child(4) { grid-column: span 1; }
.cell:nth-child(5) { grid-column: span 1; }

.cell--accent { background: var(--accent); color: var(--accent-ink); }
.cell--accent .cell__icon { color: var(--accent-ink); }
.cell--accent .cell__caption { color: rgba(22, 10, 4, 0.78); }
.cell--accent::before { background: none; }

.cell--grid {
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

.cell--photo { padding: 0; }
.cell__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cell__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.cell--photo .cell__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12,13,15,0.92) 0%, rgba(12,13,15,0.2) 60%);
}
@media (hover: hover) and (pointer: fine) {
  .cell--photo:hover .cell__bg img { transform: scale(1.06); }
}
.cell__content { padding: clamp(22px, 2.4vw, 32px); }

.cell__icon { font-size: 1.8rem; color: var(--accent); margin-bottom: auto; padding-bottom: 1.6rem; }
.cell h3 { margin: 0 0 0.5rem; font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 700; line-height: 1.2; }
.cell p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stat {
  margin: 0 0 0.3rem !important;
  font-size: clamp(3.4rem, 6vw, 6rem) !important;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" 85;
  color: inherit !important;
}
.stat small { font-size: 0.38em; letter-spacing: -0.02em; margin-left: 0.12em; opacity: 0.8; }
.cell--big .stat { font-size: clamp(5rem, 10vw, 9.5rem) !important; }
.cell__caption { color: #c9ccd2 !important; max-width: 30ch; }

/* =========================================================
   AVIS
   ========================================================= */
.reviews { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.reviews__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-areas:
    "title title"
    "main a"
    "main b";
  gap: 16px;
}
.reviews__title { grid-area: title; margin-bottom: clamp(24px, 3vw, 40px); }
.review {
  margin: 0;
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transform-style: preserve-3d;
  transition: border-color 300ms ease;
}
.review:nth-of-type(2) { grid-area: a; }
.review:nth-of-type(3) { grid-area: b; }
.review--main { grid-area: main; justify-content: space-between; background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) {
  .review:hover { border-color: var(--line-strong); }
}
.review__stars { display: flex; gap: 3px; color: var(--accent); font-size: 1.05rem; }
.review blockquote {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.review--main blockquote {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.review figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.review figcaption strong { font-weight: 650; }
.review figcaption span { color: var(--dim); font-size: 0.9rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__list {
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
  display: grid;
  gap: 1.3rem;
}
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list i {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
}
.contact__list div { display: flex; flex-direction: column; }
.contact__list strong { font-size: 0.8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 500; }
.contact__list a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .contact__list a:hover { color: var(--accent); } }

.contact__img {
  margin: 2.6rem 0 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}
.contact__img img { width: 100%; height: 100%; object-fit: cover; }

.form {
  position: relative;
  display: grid;
  gap: 1.3rem;
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.9rem; font-weight: 550; color: var(--text); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field ::placeholder { color: #80848d; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.22);
}
.select { position: relative; }
.select i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.select select { padding-right: 2.6rem; cursor: pointer; }
.field__help { margin: 0; font-size: 0.84rem; color: var(--muted); }
.field__error { margin: 0; min-height: 0; font-size: 0.84rem; color: #ff8a63; }
.field.is-invalid input,
.field.is-invalid select { border-color: #ff8a63; }
.field.is-invalid { animation: shake 360ms var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-5px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
}

.btn.is-loading .btn__label { opacity: 0.6; }
.form__success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
}
.form__success:not([hidden]) { animation: fadeUp 500ms var(--ease-out) both; }
.form__success h3 { margin: 0.6rem 0 0; font-size: 1.8rem; letter-spacing: -0.03em; }
.form__success p { margin: 0; color: var(--muted); max-width: 32ch; }
.form__check {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 2rem;
  animation: pop 600ms var(--ease-out) 120ms both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: clamp(64px, 8vw, 110px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 2rem; flex-wrap: wrap; color: var(--muted); }
.footer__nav a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__nav a:hover { color: var(--text); } }

.footer__word {
  margin: clamp(48px, 8vw, 100px) 0 clamp(24px, 3vw, 40px);
  font-size: clamp(4rem, 17.5vw, 17rem);
  font-weight: 850;
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-variation-settings: "wdth" 80;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.footer__word em { color: var(--accent); font-style: normal; }
.footer__word .char { display: inline-block; }

.footer__bottom {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.footer__bottom a { transition: color 200ms ease; }
.footer__up { margin-left: auto; display: inline-flex; gap: 0.4rem; align-items: center; }
@media (hover: hover) and (pointer: fine) { .footer__bottom a:hover { color: var(--text); } }

/* =========================================================
   ÉTATS INITIAUX (seulement si mouvement autorisé)
   ========================================================= */
.motion [data-reveal] { opacity: 0; transform: translateY(32px); }
.motion [data-split] { visibility: hidden; }
.motion .hero__eyebrow,
.motion .hero__sub,
.motion .hero__ctas > *,
.motion .hero__badge,
.motion .nav { opacity: 0; }
.motion .hero__title { visibility: hidden; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .cell--big { grid-column: span 2; grid-row: auto; min-height: 420px; }
}

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }

  .hero__bottom { grid-template-columns: 1fr; padding-right: 0; }
  .hero__badge { display: none; }

  /* Services : défilement horizontal natif, pas d'épinglage */
  .services__pin { height: auto; padding: 96px 0 64px; overflow: visible; }
  .services__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .services__track::-webkit-scrollbar { display: none; }
  .services__intro { width: 80vw; padding-right: 0; }
  .svc { width: 78vw; height: 480px; scroll-snap-align: start; }
  .services__intro { scroll-snap-align: start; }
  .services__bar { display: none; }

  .stack__card { grid-template-columns: 1fr; grid-template-rows: auto 220px; min-height: 0; top: calc(84px + var(--i, 0) * 14px); }
  .stack__text h3 { margin-top: 1.4rem; }
  .stack__media { order: 2; }

  .reviews__grid { grid-template-columns: 1fr; grid-template-areas: "title" "main" "a" "b"; }

  .contact__grid { grid-template-columns: 1fr; }
  .statement__float { opacity: 0.3; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 40px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .bento { grid-template-columns: 1fr; }
  .cell--big { grid-column: auto; min-height: 380px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__up { margin-left: 0; }
  .marquee__track img { height: 26px; }
}

/* =========================================================
   MOUVEMENT RÉDUIT : on garde les changements de couleur, pas les déplacements
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .btn__fill, .btn__roll, .btn__icon,
  .svc__media img, .stack__media img, .cell__bg img, .logo__mark svg,
  .nav__link span, .menu__links a span { transition: none !important; }
  .menu__links a span { transform: none; }
  .menu { transition: visibility 0s; }
}

/* Assombrissement des cartes empilées (piloté par --shade) */
.stack__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #08090a;
  opacity: var(--shade, 0);
  pointer-events: none;
}
.services__intro .h2 { font-size: clamp(2rem, 3.4vw, 3.3rem); }
.form__success[hidden] { display: none; }
.cell--accent .cell__caption { color: rgba(22, 10, 4, 0.82) !important; }
