/* ==========================================================================
   K'UNCLIC — style.css
   Design system: "Brutalist type foundry at dusk" (see DESIGN.md)
   Monochrome + a single teal accent (#00a79f, brand K'unclic). Hairlines, sharp corners, pills
   for interactive elements only, weighted easings, no shadows.
   ========================================================================== */

:root {
  /* Colors */
  --accent: #00a79f;
  --accent-2: #fd7e20;   /* the orange strokes of the Seb Jarnot portrait: sparse touches only */
  --onyx: #161616;
  --graphite: #3c3a3e;
  --stone: #7b7a7c;
  --ash: #a2a2a2;
  --silver: #c9c7cc;
  --fog: #f1f1f1;
  --paper: #f8f8f8;
  --white: #ffffff;
  --line: rgba(60, 58, 62, 0.15);
  --line-dark: rgba(255, 255, 255, 0.14);
  --gradient-display: linear-gradient(180deg, #3a383c 0%, #7b7a7c 28%, #b9b7bb 52%, #dcd6d6 76%, #f1f1f1 100%);
  --gradient-display-light: linear-gradient(180deg, #161616 0%, #3c3a3e 35%, #7b7a7c 70%, #b9b7bb 100%);
  --gradient-horizon: linear-gradient(90deg, #7b7a7c, #3c3a3e);

  /* Type */
  --font-body: 'Instrument Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bebas Neue', 'Anton', 'Oswald', Impact, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing (6px base) */
  --s6: 6px; --s12: 12px; --s18: 18px; --s24: 24px; --s48: 48px;
  --s60: 60px; --s72: 72px; --s96: 96px; --s120: 120px;

  --max: 1200px;
  --gutter: clamp(18px, 3vw, 48px);

  /* Motion */
  --ease-in: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);

  /* Theme tokens (light default) */
  --bg: var(--paper);
  --fg: var(--graphite);
  --fg-2: var(--stone);
  --fg-3: var(--ash);
  --rule: var(--line);
}

[data-nav="dark"] {
  --bg: var(--onyx);
  --fg: var(--fog);
  --fg-2: rgba(241, 241, 241, 0.62);
  --fg-3: rgba(241, 241, 241, 0.4);
  --rule: var(--line-dark);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--onyx);
  color: var(--graphite);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset, address { margin: 0; padding: 0; font-weight: 500; font-style: normal; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
fieldset { border: 0; min-width: 0; }
::selection { background: var(--accent-2); color: var(--onyx); }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { position: relative; padding: var(--s120) 0; }

/* Visually hidden (screen readers + search engines) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Type helpers */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.74;
  letter-spacing: -0.01em;
  /* With line-height 0.74 the box is smaller than the glyphs: accents rise ~0.19em above it,
     cedillas drop ~0.08em below. A gradient (background-clip: text) only paints inside its box
     and the .char reveal masks clip to theirs, so both get this much padding, cancelled by margins. */
  --glyph-top: 0.22em; --glyph-bottom: 0.1em;
}
.muted { color: var(--fg-2); }

.label { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }

.section__head {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s12);
  padding-bottom: var(--s18); margin-bottom: var(--s48);
  border-bottom: 1px solid var(--rule);
}
.section__title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 18ch;
}
.section__title .dot { color: var(--accent-2); font-style: normal; }
.section__sub { color: var(--fg-2); font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; max-width: 46ch; margin-top: var(--s24); }

/* --------------------------------------------------------------------------
   Status dot / tags / pills / links
   -------------------------------------------------------------------------- */
.status__dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
  animation: pulse 2.4s var(--ease-in) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 167, 159, 0.45); }
  60% { box-shadow: 0 0 0 7px rgba(0, 167, 159, 0); }
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 12px; }

.tag {
  display: inline-block; padding: 1px 6px 0; background: var(--onyx); color: var(--fog);
  font-size: 12px; font-weight: 600; line-height: 1.3; text-transform: uppercase;
}
.tag--accent { background: var(--accent-2); color: var(--onyx); }
.ghost-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.pill {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 9999px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 1;
  letter-spacing: -0.01em; text-transform: uppercase; color: var(--fg);
  overflow: hidden; white-space: nowrap;
  transition: color 0.4s var(--ease-in), border-color 0.4s var(--ease-in);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fg); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease-in);
}
.pill:hover, .pill:focus-visible { color: var(--bg); }
.pill:hover::before, .pill:focus-visible::before { transform: scaleY(1); transform-origin: 50% 0; }
.pill__glyph { font-size: 12px; transition: transform 0.5s var(--ease-out); }
.pill:hover .pill__glyph { transform: rotate(90deg); }
.pill--solid { background: var(--fg); color: var(--bg); border-color: transparent; }
.pill--solid::before { background: var(--accent); }
.pill--solid:hover { color: var(--onyx); }
.pill--light { --fg: var(--fog); --bg: var(--onyx); border-color: rgba(255,255,255,0.25); }
.pill--ghost { border-color: rgba(255,255,255,0.25); }

.ghost-link {
  position: relative; display: inline-block; font-size: 17px; letter-spacing: -0.01em; color: var(--fg);
  padding-bottom: 2px;
}
.ghost-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease-out);
}
.ghost-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.price { display: flex; flex-direction: column; gap: 4px; color: var(--fg); font-size: 14px; font-weight: 600; }
.price small { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; opacity: 0.6; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--onyx); color: var(--fog);
  display: flex; align-items: flex-end;
  clip-path: inset(0 0 0 0);
}
.loader__inner { position: relative; width: 100%; padding: var(--gutter); }
.loader__mark { position: absolute; top: var(--gutter); left: var(--gutter); display: flex; align-items: center; gap: 10px; }
.loader__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.loader__count {
  font-family: var(--font-display); font-size: clamp(120px, 22vw, 300px); line-height: 0.74;
  letter-spacing: -0.02em; text-transform: none;
  background: var(--gradient-display); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--s24);
}
.loader__pct { font-size: 0.35em; vertical-align: top; }
.loader__line { height: 1px; background: rgba(255,255,255,0.15); overflow: hidden; }
.loader__line span { display: block; height: 100%; width: 100%; background: var(--accent-2); transform: scaleX(0); transform-origin: 0 50%; }
.loader__meta { display: flex; justify-content: space-between; margin-top: var(--s12); color: rgba(241,241,241,0.5); }

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; }
.cursor__dot {
  position: absolute; top: 0; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--accent);
}
.cursor__ring {
  position: absolute; top: 0; left: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(127,127,127,0.55); background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), margin 0.5s var(--ease-out), background-color 0.4s var(--ease-in), border-color 0.4s var(--ease-in);
}
.cursor__label { color: var(--fog); font-size: 11px; opacity: 0; transform: translateY(4px); transition: opacity 0.3s, transform 0.4s var(--ease-out); white-space: nowrap; }
.cursor.is-label .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--onyx); border-color: var(--onyx); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-press .cursor__ring { transform: scale(0.85); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   Grid lines & progress
   -------------------------------------------------------------------------- */
.gridlines {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: flex; justify-content: space-between;
}
.gridlines i { width: 1px; height: 100%; background: rgba(127, 127, 127, 0.08); }

.progress {
  position: fixed; left: var(--gutter); bottom: var(--s24); z-index: 40;
  display: flex; align-items: center; gap: 10px; color: var(--stone);
  transition: color 0.4s var(--ease-in);
}
.progress.is-dark { color: rgba(241,241,241,0.6); }
.progress__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.progress__num { opacity: 0.7; }
@media (max-width: 900px) { .progress { display: none; } }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: var(--s18) var(--gutter);
  --fg: var(--graphite); --bg: var(--paper); --rule: var(--line);
  transition: transform 0.6s var(--ease-in);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: 0; transition: opacity 0.5s var(--ease-in); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.nav.is-scrolled::before { opacity: 0.72; }
.nav { isolation: isolate; }
.nav--dark { --fg: var(--fog); --bg: var(--onyx); --rule: rgba(255,255,255,0.22); }
.nav__logo { display: inline-flex; width: 140px; }
.nav__logo img { width: 140px; height: auto; }
.nav__logo-light { display: none; }
.nav--dark .nav__logo-dark { display: none; }
.nav--dark .nav__logo-light { display: block; }
.nav__links { display: flex; gap: var(--s6); }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: var(--s12); }
.nav__burger { display: none; }
.nav .status { color: var(--fg); opacity: 0.75; }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav .status, .nav .pill--solid { display: none; }
  .nav__burger { display: inline-flex; }
}
.nav.is-open { --fg: var(--fog); --bg: var(--onyx); --rule: rgba(255,255,255,0.22); }
.nav.is-open .nav__logo-dark { display: none; }
.nav.is-open .nav__logo-light { display: block; }

/* Menu overlay */
.menu { position: fixed; inset: 0; z-index: 50; visibility: hidden; pointer-events: none; }
.menu.is-open { visibility: visible; pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; background: var(--onyx); transform: translateY(-100%); }
.menu__inner {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--s96) + var(--s12)) var(--gutter) var(--gutter); color: var(--fog);
}
.menu__top { display: flex; justify-content: space-between; color: rgba(241,241,241,0.5); padding-bottom: var(--s12); border-bottom: 1px solid var(--line-dark); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: var(--s18);
  font-family: var(--font-display); font-size: clamp(40px, min(12vh, 14.5vw), 112px); line-height: 0.9; text-transform: uppercase;
  color: var(--fog); padding: 2px 0; border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.menu__links a .mono { color: var(--accent); font-size: 12px; }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s12); color: rgba(241,241,241,0.6); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; z-index: 0;
  min-height: 100vh; min-height: 100svh;
  background: var(--onyx); color: var(--fog);
  overflow: hidden;
  padding: 112px var(--gutter) var(--s48);
  display: flex; flex-direction: column; gap: var(--s24);
}
.hero__glow {
  position: absolute; left: 50%; top: 60%; width: 90vw; height: 70vh; transform: translate(-50%, -40%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.07), transparent 60%);
  pointer-events: none;
}
.hero__kicker { display: flex; flex-wrap: wrap; gap: 10px; color: rgba(241,241,241,0.55); }
.hero__kicker .sep { color: var(--accent-2); }
.hero__title {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(64px, 24.5vw, 300px);
  letter-spacing: -0.015em;
  text-align: center;
}
.hero__line {
  display: block;
  background: var(--gradient-display); -webkit-background-clip: text; background-clip: text; color: transparent; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom));
}
.hero__line { white-space: nowrap; }
.hero__line .char { display: inline-block; overflow: hidden; vertical-align: top; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.hero__line .char__in { display: inline-block; background: var(--gradient-display); -webkit-background-clip: text; background-clip: text; color: transparent; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.hero__monitor { position: relative; z-index: 2; width: min(720px, 100%); margin: calc(-0.16em - 8px) auto 0; font-size: clamp(64px, 24.5vw, 300px); }
.hero__copy { max-width: 360px; }
.hero__sub { color: rgba(241,241,241,0.62); font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.hero__cta { display: flex; align-items: center; gap: var(--s18); margin-top: var(--s24); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s24); color: var(--fog); }
.hero__meta li { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-k { color: rgba(241,241,241,0.45); }
.hero__scroll { display: none; }
.hero__dim { position: absolute; inset: 0; background: var(--onyx); opacity: 0; pointer-events: none; z-index: 3; }

@media (min-width: 1200px) {
  .hero { position: sticky; top: 0; height: 100vh; min-height: 680px; display: block; padding: 0; }
  .hero__kicker { position: absolute; top: 90px; left: var(--gutter); }
  .hero__title { position: absolute; top: 126px; left: 0; right: 0; font-size: clamp(150px, min(18vw, 24vh), 300px); }
  .hero__monitor { position: absolute; left: 50%; top: 50vh; width: min(560px, 46vw, 60vh); margin: 0 0 0 max(-280px, -23vw, -30vh); font-size: 1em; }
  .hero__copy { position: absolute; left: var(--gutter); bottom: 60px; max-width: 340px; }
  .hero__meta { position: absolute; right: var(--gutter); bottom: 60px; flex-direction: column; align-items: flex-end; text-align: right; gap: var(--s12); }
  .hero__meta li { align-items: flex-end; }
  .hero__scroll {
    position: absolute; top: 90px; right: var(--gutter);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(241,241,241,0.55);
  }
  .hero__scroll i { display: block; width: 1px; height: 64px; background: rgba(255,255,255,0.18); position: relative; overflow: hidden; }
  .hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--fog); animation: scrollline 2.2s var(--ease-in) infinite; }
  @keyframes scrollline { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
}

/* Monitor mockup */
.monitor { position: relative; perspective: 1400px; perspective-origin: 50% 30%; }
.monitor__screen {
  position: relative; padding: 10px; background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.14);
  transform-style: preserve-3d;
  will-change: transform;
}
.monitor__screen::after {
  /* bezel highlight */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 45%, rgba(255,255,255,0.04));
}
.monitor__display { position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.monitor__display img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; }
.monitor__display img.is-active { opacity: 1; }
.monitor__glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 30%, transparent 48%); }
.monitor__neck { width: 12px; height: 54px; margin: 0 auto; background: linear-gradient(90deg, #202020, #3a3a3a, #202020); }
.monitor__base { width: 240px; height: 8px; margin: 0 auto; background: linear-gradient(90deg, #262626, #4a4a4a, #262626); border-bottom: 1px solid rgba(255,255,255,0.14); }
.monitor__tag { position: absolute; left: 0; bottom: 0; transform: translateY(0); font-size: 12px; }
@media (max-width: 1199px) { .monitor__tag { position: static; margin-top: var(--s12); display: inline-flex; } }

/* --------------------------------------------------------------------------
   Main (slides over hero)
   -------------------------------------------------------------------------- */
.main { position: relative; z-index: 2; background: var(--paper); }

/* Marquee */
.marquee {
  --bg: var(--paper);
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: var(--s24) 0; overflow: hidden; white-space: nowrap;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: var(--s24); padding-right: var(--s24); }
.marquee__group span {
  font-family: var(--font-display); font-size: clamp(56px, 8vw, 112px); line-height: 0.8; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(60,58,62,0.55); letter-spacing: 0.005em;
}
.marquee__group i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   Manifeste
   -------------------------------------------------------------------------- */
.manifeste { background: var(--paper); }
.manifeste__text {
  font-size: clamp(28px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.03em; color: var(--graphite);
  max-width: 24ch;
}
.manifeste__text .word { display: inline-block; opacity: 0.16; will-change: opacity; }
.manifeste__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s24);
  margin-top: var(--s96); padding-top: var(--s24); border-top: 1px solid var(--line);
}
.manifeste__item { display: flex; flex-direction: column; gap: var(--s12); padding-right: var(--s24); }
.manifeste__item .mono { color: var(--accent); }
.manifeste__item h3 { font-size: 23px; line-height: 1; letter-spacing: -0.01em; color: var(--graphite); }
.manifeste__item p { color: var(--stone); }
@media (max-width: 800px) { .manifeste__grid { grid-template-columns: 1fr; gap: var(--s48); } }

/* --------------------------------------------------------------------------
   Services — stacking cards
   -------------------------------------------------------------------------- */
.services { background: var(--fog); overflow: clip; }
.ghost-title {
  position: absolute; right: -0.02em; top: var(--s24);
  font-size: clamp(96px, 17vw, 240px); color: var(--white); pointer-events: none; user-select: none;
  white-space: nowrap; z-index: 0;
}
.services .container, .portfolio .container { position: relative; z-index: 1; }
.stack { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--max)); margin: var(--s60) auto 0; padding-bottom: 0; }
.stack__card:last-child { margin-bottom: 20vh; }
.stack__card {
  position: sticky; top: 96px;
  /* Large gap = the pinned card stays readable for ~half a viewport of scroll before the next one arrives */
  margin-bottom: 55vh;
  background: var(--white); color: var(--graphite);
  border: 1px solid var(--silver);
  will-change: transform;
  --card-fg: var(--graphite); --card-fg2: var(--stone); --card-rule: var(--line);
}
.stack__card--dark { background: var(--onyx); color: var(--fog); border-color: rgba(255,255,255,0.14); --card-fg: var(--fog); --card-fg2: rgba(241,241,241,0.62); --card-rule: var(--line-dark); --fg: var(--fog); --bg: var(--onyx); --rule: rgba(255,255,255,0.22); }
.stack__card--fog { background: var(--paper); }
.stack__inner { padding: var(--s24); min-height: calc(100vh - 120px); display: flex; flex-direction: column; gap: var(--s48); }
.stack__meta { display: flex; justify-content: space-between; gap: var(--s12); color: var(--card-fg2); padding-bottom: var(--s12); border-bottom: 1px solid var(--card-rule); }
.stack__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s48); flex: 1; }
.stack__title { font-size: clamp(64px, 9vw, 150px); color: var(--card-fg); letter-spacing: -0.01em; }
.stack__content { display: flex; flex-direction: column; gap: var(--s24); justify-content: space-between; }
.stack__lead { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; color: var(--card-fg); }
.stack__list { display: flex; flex-direction: column; }
.stack__list li { position: relative; padding: var(--s12) 0 var(--s12) 22px; border-top: 1px solid var(--card-rule); color: var(--card-fg2); }
.stack__list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.stack__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s12); flex-wrap: wrap; padding-top: var(--s18); border-top: 1px solid var(--card-rule); }
.stack__foot .price { color: var(--card-fg); }
/* A card taller than the space under the sticky offset would hide its own bottom once pinned
   (the next card slides over it): below 900px (single column) and, via main.js, on short desktop
   viewports (.stack--flow), the cards simply flow one after the other. */
@media (max-width: 900px) {
  .stack__card, .stack__card:last-child { position: relative; top: auto; margin-bottom: var(--s18); }
  .stack__card:last-child { margin-bottom: 0; }
  .stack__inner { min-height: 0; gap: var(--s24); }
  .stack__body { grid-template-columns: 1fr; gap: var(--s24); }
  .stack__title { font-size: clamp(56px, 14vw, 96px); }
}
.stack--flow .stack__card, .stack--flow .stack__card:last-child { position: relative; top: auto; margin-bottom: var(--s24); }
.stack--flow .stack__card:last-child { margin-bottom: 0; }


/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */
.tarifs { background: var(--paper); overflow: clip; }
.tarifs .ghost-title { top: auto; bottom: var(--s24); }
.tarifs .container { position: relative; z-index: 1; }
.tarifs__grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s48); align-items: start; margin-top: var(--s72); }
.tarifs__sticky { position: sticky; top: 112px; display: flex; flex-direction: column; gap: var(--s24); }
/* Same header rhythm as the .tarif-group titles on the right: label, 12px, hairline — the two lines sit on one row */
.tarifs__sticky > .label { display: flex; color: var(--accent); padding-bottom: var(--s12); border-bottom: 1px solid var(--graphite); }
.tarifs__sticky > .label .status__dot { display: none; }
.tarifs__rate { display: flex; align-items: baseline; gap: 10px; font-size: clamp(96px, 10vw, 150px); color: var(--graphite); font-variant-numeric: tabular-nums; }
.tarifs__rate small { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--stone); }
.tarifs__keys { display: flex; flex-direction: column; color: var(--graphite); }
.tarifs__keys li { display: flex; justify-content: space-between; gap: var(--s12); padding: 10px 0; border-top: 1px solid var(--line); }
.tarifs__keys li span { color: var(--ash); }
.tarifs__sticky .pill { align-self: flex-start; }
.tarifs__list { display: flex; flex-direction: column; gap: var(--s48); }
.tarif-group h3 { color: var(--accent); padding-bottom: var(--s12); border-bottom: 1px solid var(--graphite); }
.tarif-group dl { margin: 0; }
.tarif-group dl > div {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s24); align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease-in), padding 0.4s var(--ease-in);
}
.tarif-group dl > div:hover { background: var(--fog); padding-left: 12px; padding-right: 12px; }
.tarif-group dt { color: var(--graphite); font-size: 17px; letter-spacing: -0.01em; }
.tarif-group dt em { display: block; font-style: normal; color: var(--stone); font-size: 14px; margin-top: 2px; }
.tarif-group dd { margin: 0; display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--graphite); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tarif-group dd span { font-weight: 500; color: var(--ash); text-transform: uppercase; font-size: 12px; }
.tarifs__note { color: var(--stone); font-size: 17px; max-width: 60ch; padding-top: var(--s12); }
@media (max-width: 900px) {
  .tarifs__grid { grid-template-columns: 1fr; gap: var(--s48); }
  .tarifs__sticky { position: static; }
  .tarif-group dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Packs */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s12); margin-top: var(--s60); }
.pack {
  display: flex; flex-direction: column; gap: var(--s18);
  padding: var(--s24); background: var(--white); border: 1px solid var(--silver);
  --pack-fg: var(--graphite); --pack-fg2: var(--stone); --pack-rule: var(--line);
}
.pack--dark { background: var(--onyx); border-color: rgba(255,255,255,0.14); --pack-fg: var(--fog); --pack-fg2: rgba(241,241,241,0.62); --pack-rule: var(--line-dark); --fg: var(--fog); --bg: var(--onyx); --rule: rgba(255,255,255,0.22); }
.pack__label { display: inline-flex; align-items: center; gap: 8px; color: var(--pack-fg2); }
.pack__title { font-size: 23px; line-height: 1; letter-spacing: -0.01em; color: var(--pack-fg); }
.pack__price { display: flex; align-items: baseline; gap: 8px; font-size: clamp(56px, 5vw, 80px); color: var(--pack-fg); font-variant-numeric: tabular-nums; padding: var(--s6) 0 var(--s12); border-bottom: 1px solid var(--pack-rule); }
.pack__price small { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--pack-fg2); letter-spacing: -0.01em; }
.pack__list { display: flex; flex-direction: column; flex: 1; }
.pack__list li { position: relative; padding: 8px 0 8px 18px; color: var(--pack-fg2); font-size: 14px; border-bottom: 1px solid var(--pack-rule); }
.pack__list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pack .pill { align-self: flex-start; margin-top: var(--s6); }
.packs__note { color: var(--ash); margin-top: var(--s12); }
@media (max-width: 900px) { .packs { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Démarche — horizontal pinned
   -------------------------------------------------------------------------- */
.demarche { background: var(--paper); padding: 0; }
.demarche__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; padding: 112px 0 var(--s60); overflow: hidden; }
.demarche__head { margin-bottom: var(--s48); }
.demarche__line { position: relative; height: 1px; background: var(--line); margin: 0 0 var(--s48); }
.demarche__line span { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.demarche__track {
  display: flex; gap: var(--s24); width: max-content;
  padding-left: max(var(--gutter), (100vw - var(--max)) / 2);
  padding-right: var(--gutter);
  will-change: transform;
}
.step { width: clamp(280px, 30vw, 400px); display: flex; flex-direction: column; gap: var(--s18); padding-top: var(--s24); border-top: 1px solid var(--line); flex: none; }
.js .step { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.js .step.is-in { opacity: 1; transform: none; filter: none; }
.step__num { font-size: 96px; color: var(--silver); }
.step h3 { font-size: 36px; line-height: 1; letter-spacing: -0.03em; color: var(--graphite); }
.step p { color: var(--stone); max-width: 34ch; }
.step__tag { align-self: flex-start; margin-top: auto; }
.step--end { border-top-color: var(--accent-2); }
.step--end .step__num { color: var(--accent-2); }
.step--end .pill { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) {
  .demarche__pin { min-height: 0; padding: var(--s96) 0; }
  .demarche__track { width: auto; flex-direction: column; gap: var(--s48); padding-left: var(--gutter); }
  .demarche__line { display: none; }
  .step { width: auto; }
}

/* --------------------------------------------------------------------------
   Chiffres
   -------------------------------------------------------------------------- */
.chiffres { background: var(--paper); padding: var(--s60) 0 var(--s120); }
.chiffres__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chiffre { display: flex; flex-direction: column; gap: var(--s12); padding: var(--s24) var(--s24) var(--s24) 0; border-right: 1px solid var(--line); }
.chiffre:nth-child(n + 2) { padding-left: var(--s24); }
.chiffre:last-child { border-right: 0; }
.chiffre__num { font-size: clamp(64px, 8vw, 128px); color: var(--graphite); font-variant-numeric: tabular-nums; }
.chiffre__label { color: var(--stone); }
@media (max-width: 800px) {
  .chiffres__grid { grid-template-columns: 1fr 1fr; }
  .chiffre:nth-child(2n) { border-right: 0; }
  .chiffre:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .chiffre:nth-child(3) { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.portfolio { background: var(--paper); overflow: clip; }
.portfolio .ghost-title { top: auto; bottom: var(--s24); left: -0.02em; right: auto; }
.works { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s24); margin-top: var(--s72); align-items: start; }
.works__col { display: flex; flex-direction: column; gap: var(--s72); }
.works__col--offset { padding-top: 160px; }
.work { display: block; color: var(--graphite); }
.work__frame {
  position: relative; background: var(--white); border: 1px solid var(--silver);
  padding: 32px 0 0;
}
.work__bar {
  position: absolute; top: 0; left: 0; right: 0; height: 32px; padding: 0 12px;
  display: flex; align-items: center; gap: 8px; color: var(--ash); border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.work__bar .status__dot { width: 6px; height: 6px; animation: none; }
.work__frame img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 0%;
  transition: object-position 1.4s var(--ease-in);
  transform: scale(1.001);
}
.work:hover .work__frame img { object-position: 50% 100%; transition: object-position 7s linear; }
.work__meta { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: var(--s12); row-gap: 4px; align-items: baseline; padding-top: var(--s12); }
.work__meta .mono:first-child { grid-row: 1 / span 2; color: var(--ash); }
.work__meta h3 { font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; }
.work__meta p { grid-column: 2; color: var(--stone); font-size: 14px; }
.work__meta .tag { grid-column: 3; grid-row: 1; justify-self: end; }
.work--cta .work__frame--cta {
  aspect-ratio: 16 / 11; padding: var(--s24); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background: var(--fog);
}
.work__frame--cta .mono { color: var(--accent); }
.work__frame--cta p { font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -0.03em; max-width: 10ch; }
@media (max-width: 800px) {
  .works { grid-template-columns: 1fr; }
  .works__col--offset { padding-top: 0; }
  .works__col { gap: var(--s48); }
}

/* --------------------------------------------------------------------------
   Témoignages — dual marquee
   -------------------------------------------------------------------------- */
.temoignages { background: var(--onyx); color: var(--fog); overflow: clip; }
.quotes { display: flex; flex-direction: column; gap: var(--s24); margin-top: var(--s72); }
.quotes__row { display: flex; width: max-content; will-change: transform; }
.quotes__group { display: flex; gap: var(--s24); padding-right: var(--s24); }
.quote {
  width: clamp(300px, 34vw, 460px); flex: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s48);
  padding: var(--s24); border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.02);
  transition: background-color 0.5s var(--ease-in), border-color 0.5s var(--ease-in);
}
.quote:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
.quote blockquote { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; color: rgba(241,241,241,0.82); }
.quote blockquote::before { content: "“"; display: block; color: var(--accent-2); font-family: var(--font-display); font-size: 56px; line-height: 0.6; margin-bottom: var(--s12); }
.quote figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: rgba(241,241,241,0.5); }

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */
.apropos { background: var(--paper); }
.apropos__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s48); align-items: start; }
.apropos__sticky { position: sticky; top: 112px; display: flex; flex-direction: column; gap: var(--s24); }
.apropos__name { display: flex; flex-direction: column; font-size: clamp(80px, 9vw, 150px); color: var(--graphite); letter-spacing: -0.01em; }
.apropos__name span { display: block; }
.apropos__name .char { display: inline-block; overflow: hidden; vertical-align: top; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.apropos__name .char__in { display: inline-block; }
.apropos__facts { display: flex; flex-direction: column; color: var(--graphite); }
.apropos__facts li { display: flex; justify-content: space-between; gap: var(--s12); padding: 10px 0; border-top: 1px solid var(--line); }
.apropos__facts li span { color: var(--ash); }
.apropos__body { display: flex; flex-direction: column; gap: var(--s24); padding-top: var(--s12); }
.apropos__body p { color: var(--stone); font-size: 21px; line-height: 1.35; letter-spacing: -0.02em; max-width: 52ch; }
.apropos__lead { color: var(--graphite) !important; font-size: clamp(26px, 2.6vw, 36px) !important; line-height: 1.15 !important; letter-spacing: -0.03em !important; }
.skills { display: flex; flex-direction: column; gap: var(--s12); margin-top: var(--s24); padding-top: var(--s24); border-top: 1px solid var(--line); }
.skills__tags { display: flex; flex-wrap: wrap; gap: var(--s6); }
.partners { margin-top: var(--s96); display: flex; flex-direction: column; gap: var(--s18); }
/* Strip: equal cells on a hairline grid. Dividers are straight by default and
   only get the DESIGN skew when the 5 cells fit on one row (≥ 1000px). */
.partners__strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--silver); border: 1px solid var(--silver); }
.partner { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 22px; min-width: 0; background: rgba(255,255,255,0.72); overflow: hidden; }
.partner strong { font-weight: 500; color: var(--stone); font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.4s var(--ease-in); }
.partner .mono { color: var(--ash); }
a.partner:hover strong { color: var(--graphite); }
a.partner strong::after { content: " ↗"; color: var(--accent); font-size: 0.8em; }
.partner__logo { display: flex; align-items: center; height: 48px; margin-bottom: 10px; }
.partner__logo img { max-height: 44px; max-width: 100%; width: auto; height: auto; filter: grayscale(1); opacity: 0.7; transition: filter 0.5s var(--ease-in), opacity 0.5s var(--ease-in), transform 0.6s var(--ease-out); }
.partner:hover .partner__logo img { filter: none; opacity: 1; transform: translateY(-2px); }
.partner__logo--round img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
@media (min-width: 1200px) {
  .partners__strip { gap: 0; background: rgba(255,255,255,0.5); }
  .partner { background: transparent; padding-left: 34px; padding-right: 30px; }
  .partner:first-child { padding-left: 24px; }
  .partner + .partner::before { content: ""; position: absolute; left: 0; top: -12px; bottom: -12px; width: 1px; background: var(--silver); transform: skewX(-10deg); }
}
@media (max-width: 1199px) and (min-width: 640px) {
  .partners__strip { grid-template-columns: repeat(3, 1fr); }
  .partner:nth-child(3n+2):last-child { grid-column: span 2; } /* 5 cartes sur 3 colonnes : la dernière remplit la ligne */
}
@media (max-width: 639px) {
  .partners__strip { grid-template-columns: 1fr; }
  .partner { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: var(--s18); row-gap: 2px; align-items: center; padding: 14px 18px; }
  .partner__logo { grid-row: 1 / span 2; height: 56px; margin: 0; justify-content: center; }
  .partner__logo img { max-height: 40px; max-width: 56px; }
  .partner__logo--round img { width: 44px; height: 44px; }
  .partner strong { white-space: normal; }
}
@media (max-width: 900px) {
  .apropos__grid { grid-template-columns: 1fr; }
  .apropos__sticky { position: static; }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { background: var(--fog); overflow: clip; }
.faq .ghost-title { top: auto; bottom: var(--s24); right: -0.02em; }
.faq .container { position: relative; z-index: 1; }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s48); align-items: start; }
.faq__sticky { position: sticky; top: 112px; display: flex; flex-direction: column; gap: var(--s24); align-items: flex-start; }
.faq__sticky .section__sub { margin-top: 0; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--graphite); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 32px 1fr 24px; gap: var(--s12); align-items: baseline;
  padding: var(--s18) 0; color: var(--graphite); transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .mono { color: var(--ash); }
.faq__q { font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; }
.faq__icon { position: relative; width: 14px; height: 14px; align-self: center; justify-self: end; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1px; background: var(--graphite); transition: transform 0.5s var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item[open] .faq__icon::before { transform: rotate(180deg); }
.faq__item summary:hover .faq__q, .faq__item[open] summary .mono { color: var(--accent); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 24px var(--s24) 44px; color: var(--stone); font-size: 17px; line-height: 1.45; max-width: 60ch; }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__sticky { position: static; }
  .faq__a p { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { background: var(--onyx); color: var(--fog); overflow: clip; }
.contact__title { display: flex; flex-direction: column; font-size: clamp(64px, 15vw, 220px); letter-spacing: -0.015em; margin-bottom: var(--s72); }
.contact__title span { display: block; background: var(--gradient-display); -webkit-background-clip: text; background-clip: text; color: transparent; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.contact__title span { white-space: nowrap; }
.contact__title .char { display: inline-block; overflow: hidden; vertical-align: top; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.contact__title .char__in { display: inline-block; background: var(--gradient-display); -webkit-background-clip: text; background-clip: text; color: transparent; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s48); align-items: start; padding-top: var(--s48); border-top: 1px solid var(--line-dark); }
.contact__info { display: flex; flex-direction: column; gap: var(--s24); }
.contact__mail { display: inline-flex; align-items: baseline; gap: 10px; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1; color: var(--fog); align-self: flex-start; }
.contact__mail i { font-style: normal; color: var(--accent); font-size: 0.7em; transition: transform 0.5s var(--ease-out); }
.contact__mail:hover i { transform: translate(4px, -4px); }
.contact__tel { font-size: 21px; letter-spacing: -0.02em; color: rgba(241,241,241,0.8); align-self: flex-start; }
.contact__addr { color: rgba(241,241,241,0.55); }
.contact__socials { display: flex; flex-wrap: wrap; gap: var(--s6); margin-top: var(--s12); }

.form { display: flex; flex-direction: column; gap: var(--s24); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s24); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > .mono, .field legend { color: rgba(241,241,241,0.5); }
.field input, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,0.2); border-radius: 0;
  background: transparent; color: var(--fog); font: inherit; font-size: 17px; letter-spacing: -0.01em;
  outline: none; transition: border-color 0.4s var(--ease-in);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(241,241,241,0.28); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--fog); }
.field textarea { resize: vertical; min-height: 96px; }
.field.is-error input, .field.is-error textarea { border-bottom-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s6); padding-top: 4px; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice .pill { --fg: var(--fog); --bg: var(--onyx); border-color: rgba(255,255,255,0.22); cursor: pointer; }
.choice input:checked + .pill { background: var(--fog); color: var(--onyx); border-color: var(--fog); }
.choice input:checked + .pill .pill__glyph { transform: rotate(45deg); }
.choice input:focus-visible + .pill { outline: 1px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s12); flex-wrap: wrap; padding-top: var(--s12); border-top: 1px solid var(--line-dark); }
.form__hint { color: rgba(241,241,241,0.45); }
.form__status { min-height: 1.3em; color: var(--accent); }
.form.is-sending { opacity: 0.6; pointer-events: none; }
.form__gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { position: relative; background: var(--fog); color: var(--graphite); padding: var(--s96) 0 var(--s24); overflow: clip; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s24); position: relative; z-index: 1; }
.footer__col { display: flex; flex-direction: column; gap: 8px; color: var(--stone); }
.footer__col a { transition: color 0.3s; }
.footer__col a:hover { color: var(--graphite); }
.footer__col p { color: var(--stone); margin-top: var(--s12); }
.footer__k { color: var(--ash); margin-bottom: 6px; }
.footer__top { color: var(--graphite); margin-top: var(--s12); }
.footer__ghost {
  font-size: clamp(120px, 24vw, 340px); color: var(--white); text-align: center; line-height: 0.74;
  margin: var(--s72) 0 var(--s24); user-select: none; will-change: transform;
  padding-top: 0.06em;
}
.footer__bottom { display: flex; justify-content: space-between; gap: var(--s12); flex-wrap: wrap; padding-top: var(--s12); border-top: 1px solid var(--line); color: var(--stone); position: relative; z-index: 1; }
.footer__bottom span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Reveal helpers (initial states; JS animates)
   -------------------------------------------------------------------------- */
.js .reveal, .js .reveal-lines, .js .reveal-up { opacity: 0; }
.js .work__frame { clip-path: inset(0 0 100% 0); }
.js .work__meta { opacity: 0; }
.js .marquee__group span { }


/* --------------------------------------------------------------------------
   Multi-page: page hero, nav active state, offers grid, CTA band, legal
   -------------------------------------------------------------------------- */
.nav .pill.is-active { background: var(--fg); color: var(--bg); border-color: transparent; }
.nav .pill.is-active::before { display: none; }
.menu__links a[aria-current="page"] .mono { color: var(--fog); }
.menu__links a[aria-current="page"] { color: var(--accent); }

.phero {
  position: relative; background: var(--onyx); color: var(--fog); overflow: hidden;
  padding: 160px 0 var(--s60); min-height: 72vh; display: flex; align-items: flex-end;
}
.phero .container { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--max)); }
.phero__kicker { color: rgba(241,241,241,0.55); margin-bottom: var(--s24); }
.phero__title { display: flex; flex-direction: column; font-size: clamp(88px, 17vw, 260px); letter-spacing: -0.015em; margin-left: -0.03em; }
.phero__title > span { display: block; white-space: nowrap; background: var(--gradient-display); -webkit-background-clip: text; background-clip: text; color: transparent; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.phero__title .char { display: inline-block; overflow: hidden; vertical-align: top; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.phero__title .char__in { display: inline-block; background: var(--gradient-display); -webkit-background-clip: text; background-clip: text; color: transparent; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.phero__foot { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s48); align-items: end; margin-top: var(--s48); padding-top: var(--s24); border-top: 1px solid var(--line-dark); }
.phero__lead { color: rgba(241,241,241,0.62); font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; max-width: 44ch; }
.phero__meta { display: flex; flex-wrap: wrap; gap: var(--s24); justify-content: flex-end; color: var(--fog); }
.phero__meta li { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; }
.phero--small { min-height: 0; padding-top: 150px; }
.phero--small .phero__title { font-size: clamp(56px, 11vw, 150px); }
.phero--small .phero__title > span { white-space: normal; }
.phero--name .phero__title { font-size: clamp(80px, 15vw, 220px); }
.phero--contact { min-height: 60vh; }
.main--page { position: relative; z-index: 2; background: var(--paper); }
@media (max-width: 900px) {
  .phero { padding-top: 120px; min-height: 0; }
  .phero__title { font-size: clamp(56px, 18vw, 150px); }
  .phero__foot { grid-template-columns: 1fr; gap: var(--s24); }
  .phero__meta { justify-content: flex-start; }
  .phero__meta li { align-items: flex-start; text-align: left; }
}

/* Offers (home overview) */
.offres { background: var(--fog); overflow: clip; }
.offres .container { position: relative; z-index: 1; }
.offres__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s12); margin-top: var(--s60); }
.offer {
  display: flex; flex-direction: column; gap: var(--s18); padding: var(--s24); min-height: 380px;
  background: var(--white); border: 1px solid var(--silver); color: var(--graphite);
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
}
.offer:hover { transform: translateY(-6px); border-color: var(--graphite); }
.offer > .mono { color: var(--accent); }
.offer h3 { font-size: clamp(48px, 5vw, 72px); line-height: 0.82; letter-spacing: -0.01em; }
.offer p { color: var(--stone); flex: 1; }
.offer__price { font-size: 14px; font-weight: 600; padding-top: var(--s12); border-top: 1px solid var(--line); }
.offer__link { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.offer__link i { font-style: normal; color: var(--accent); transition: transform 0.5s var(--ease-out); }
.offer:hover .offer__link i { transform: translateX(6px); }
.offer--dark { background: var(--onyx); color: var(--fog); border-color: rgba(255,255,255,0.14); }
.offer--dark p { color: rgba(241,241,241,0.62); }
.offer--dark .offer__price { border-top-color: var(--line-dark); }
.offer--dark:hover { border-color: rgba(255,255,255,0.5); }
.offres__more { display: flex; align-items: center; gap: var(--s24); flex-wrap: wrap; margin-top: var(--s48); }
@media (max-width: 900px) { .offres__grid { grid-template-columns: 1fr; } .offer { min-height: 0; } }

/* CTA band (every page but contact) */
.cta-band { position: relative; background: var(--onyx); color: var(--fog); padding: var(--s96) 0 var(--s120); overflow: clip; }
.cta-band__grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s48); align-items: end; }
.cta-band__title { display: flex; flex-direction: column; font-size: clamp(64px, 13vw, 190px); letter-spacing: -0.015em; }
.cta-band__title > span { display: block; white-space: nowrap; background: var(--gradient-display); -webkit-background-clip: text; background-clip: text; color: transparent; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.cta-band__title .char { display: inline-block; overflow: hidden; vertical-align: top; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.cta-band__title .char__in { display: inline-block; background: var(--gradient-display); -webkit-background-clip: text; background-clip: text; color: transparent; padding: var(--glyph-top) 0 var(--glyph-bottom); margin: calc(-1 * var(--glyph-top)) 0 calc(-1 * var(--glyph-bottom)); }
.cta-band__side { display: flex; flex-direction: column; gap: var(--s24); }
.cta-band__side p { color: rgba(241,241,241,0.62); font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; max-width: 36ch; }
.cta-band__actions { display: flex; align-items: center; gap: var(--s18); flex-wrap: wrap; }
.cta-band .ghost-link { color: var(--fog); }
@media (max-width: 900px) { .cta-band__grid { grid-template-columns: 1fr; } }

/* Contact page (title lives in the page hero) */
.contact--page { padding-top: var(--s60); }
.contact--page .contact__grid { border-top: 0; padding-top: 0; }

/* Legal pages */
.legal { background: var(--paper); }
.legal__grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s48); align-items: start; }
.legal__body { display: flex; flex-direction: column; gap: var(--s18); max-width: 68ch; }
.legal__body h2 { font-size: 23px; line-height: 1; letter-spacing: -0.01em; color: var(--graphite); padding-top: var(--s24); margin-top: var(--s12); border-top: 1px solid var(--line); }
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body p { color: var(--stone); font-size: 17px; line-height: 1.5; }
.legal__body a { color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.legal__body h3 { font-size: 17px; color: var(--graphite); margin-top: var(--s6); }
.legal__body ul { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; list-style: disc; color: var(--stone); font-size: 17px; line-height: 1.5; }
.legal__intro { color: var(--graphite) !important; padding-bottom: var(--s18); border-bottom: 1px solid var(--line); }
.legal__toc { display: flex; flex-direction: column; gap: 8px; padding-top: var(--s12); border-top: 1px solid var(--line); color: var(--stone); }
.legal__toc a:hover { color: var(--accent); }
@media (max-width: 900px) { .legal__grid { grid-template-columns: 1fr; } }

/* Page transition state */
body.is-leaving .cursor { opacity: 0; }


/* --------------------------------------------------------------------------
   Portrait (à propos) — paper sheet on the dark hero, brush-stroke reveal
   -------------------------------------------------------------------------- */
.phero--portrait { min-height: 0; padding-top: 150px; }
.phero__row { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s48); align-items: end; }
.phero--portrait .phero__title { font-size: clamp(80px, 13vw, 200px); }
.portrait { margin: 0; display: flex; flex-direction: column; gap: var(--s12); align-items: flex-end; perspective: 1400px; }
.portrait__sheet {
  position: relative; width: min(100%, 420px); aspect-ratio: 1000 / 1098;
  background: var(--paper); border: 1px solid rgba(255,255,255,0.14);
  transform: rotate(-3deg); transform-style: preserve-3d; will-change: transform;
  overflow: hidden;
}
.portrait__sheet::after {
  /* paper sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.35) 0%, transparent 40%, rgba(0,0,0,0.04) 100%);
}
.portrait__img, .portrait__strokes { position: absolute; left: 6%; top: 5%; width: 88%; height: auto; aspect-ratio: 1000 / 1098; }
.portrait__img { opacity: 0; }
.js .portrait__img { opacity: 0; }
.portrait__img.is-revealed { opacity: 1; }
/* 8 horizontal brush bands, each holding its own slice of the portrait */
.portrait__strokes { pointer-events: none; }
.portrait__strokes i {
  position: absolute; left: 0; width: 100%; height: 12.5%;
  background-image: url("../assets/portrait-gerald-anziani.webp");
  background-repeat: no-repeat; background-size: 100% 800%;
  clip-path: inset(0 100% 0 0);
}
.portrait__strokes i:nth-child(1) { top: 0%;    background-position: 0 0%; }
.portrait__strokes i:nth-child(2) { top: 12.5%; background-position: 0 14.2857%; }
.portrait__strokes i:nth-child(3) { top: 25%;   background-position: 0 28.5714%; }
.portrait__strokes i:nth-child(4) { top: 37.5%; background-position: 0 42.8571%; }
.portrait__strokes i:nth-child(5) { top: 50%;   background-position: 0 57.1428%; }
.portrait__strokes i:nth-child(6) { top: 62.5%; background-position: 0 71.4285%; }
.portrait__strokes i:nth-child(7) { top: 75%;   background-position: 0 85.7142%; }
.portrait__strokes i:nth-child(8) { top: 87.5%; background-position: 0 100%; }
.portrait__pin { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--stone); }
.portrait__cap { display: flex; gap: var(--s18); color: rgba(241,241,241,0.55); }
.portrait__cap a { color: var(--fog); border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color 0.3s; }
.portrait__cap a:hover { border-bottom-color: var(--accent); }
@media (max-width: 900px) {
  .phero__row { grid-template-columns: 1fr; }
  .portrait { align-items: flex-start; margin-top: var(--s24); }
  .portrait__sheet { width: min(100%, 340px); }
}
/* Reduced motion / no JS: portrait simply visible */
@media (prefers-reduced-motion: reduce) { .js .portrait__img { opacity: 1; } .portrait__strokes { display: none; } }

/* Skip link (keyboard users) */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 300; transform: translateY(-200%); background: var(--onyx); color: var(--fog); border-color: transparent; }
.skip-link:focus { transform: none; outline: 2px solid var(--accent); outline-offset: 2px; }
/* Visible focus for keyboard navigation */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tarifs__actions { display: flex; flex-wrap: wrap; gap: var(--s6); }
.contact__route { align-self: flex-start; }
.notfound__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s12); }
.notfound .offer { min-height: 0; }
.phero--404 .phero__title { font-size: clamp(64px, 12vw, 190px); }
@media (max-width: 900px) { .notfound__grid { grid-template-columns: 1fr; } }

.section__head-right { display: flex; align-items: center; gap: var(--s18); flex-wrap: wrap; justify-content: flex-end; }

/* Masked word split (section titles) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w__in { display: inline-block; will-change: transform; }
/* While a line is split into .char spans (reveal in progress) the line itself must not paint the
   gradient: with background-clip: text over transformed inline-block children, Chrome paints a stale
   copy of the first glyph until the next full repaint. The chars carry the gradient themselves. */
.hero__line.is-split, .phero__title > span.is-split, .cta-band__title > span.is-split, .contact__title span.is-split { background: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-lines, .js .reveal-up, .js .work__meta { opacity: 1; }
  .js .work__frame { clip-path: none; }
  .manifeste__text .word { opacity: 1; }
  .status__dot, .loader__dot { animation: none; }
  .hero__scroll i::after { animation: none; }
  .cursor { display: none; }
  .stack__card { position: relative; top: auto; }
  .js .step { opacity: 1; transform: none; filter: none; }
}
