/* ==========================================================================
   AGENCE PALELLA — Nuit suisse
   Design system : Archivo (display, variable wdth/wght) + IBM Plex Mono
   ========================================================================== */

/* ---------- Fonts (auto-hébergées) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #08090c;
  --bg-2: #0e1015;
  --bg-3: #14171e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --fg: #f2f3f5;
  --fg-2: rgba(242, 243, 245, 0.62);
  --fg-3: rgba(242, 243, 245, 0.48);   /* 4.57:1 sur --bg — WCAG AA texte < 24px */
  --cyan: #00c8e8;
  --blue: #1840c0;                      /* couleur du logo — usage graphique uniquement */
  --blue-text: #2a56d8;                 /* 3.24:1 — fin de dégradé sur les grands titres */
  --line-field: rgba(242, 243, 245, 0.36); /* 3.02:1 — bordure de champ, WCAG 1.4.11 */
  --glow: rgba(0, 200, 232, 0.18);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1520px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100, "wght" 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; min-height: 100vh; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--cyan); color: var(--bg); }

/* ---------- Grain + glow atmosphere ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 9990; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -1%); } 100% { transform: translate(0, 0); }
}
.glow {
  position: fixed; left: 0; top: 0; width: 900px; height: 900px; z-index: 0;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, rgba(0, 200, 232, 0.05) 35%, transparent 65%);
  transform: translate(-50%, -50%); will-change: transform; opacity: 0.9;
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--fg); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); mix-blend-mode: difference;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.3s;
}
.cursor.is-link { width: 56px; height: 56px; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Layout primitives ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding-block: clamp(96px, 12vw, 176px); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.rule { height: 1px; background: var(--line); width: 100%; transform-origin: left; }
.rule--strong { background: var(--line-strong); }

.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--cyan); }
.eyebrow--plain::before { display: none; }

.section-head {
  display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: clamp(48px, 6vw, 88px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1.3fr; align-items: end; gap: 48px; }
}
.section-head .num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.1em; margin-bottom: 20px; }
.section-head .lead { color: var(--fg-2); font-size: clamp(16px, 1.25vw, 19px); max-width: 52ch; }

/* ---------- Type ---------- */
.display {
  font-variation-settings: "wdth" 112, "wght" 800;
  letter-spacing: -0.035em; line-height: 0.92; text-wrap: balance;
}
.h1 { font-size: clamp(50px, 8.4vw, 128px); }
.h2 { font-size: clamp(36px, 5.2vw, 84px); }
.h3 { font-size: clamp(26px, 3vw, 44px); font-variation-settings: "wdth" 105, "wght" 700; letter-spacing: -0.025em; line-height: 1.02; }
.accent { color: transparent; background: linear-gradient(95deg, var(--cyan), #3aa0ff 55%, var(--blue-text)); -webkit-background-clip: text; background-clip: text; }
.thin { font-variation-settings: "wdth" 100, "wght" 300; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-3); }
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--fg-2); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 18px 28px;
  display: inline-flex; align-items: center; gap: 14px; padding: var(--pad);
  border-radius: 999px; font-size: 14px; font-variation-settings: "wdth" 100, "wght" 600;
  letter-spacing: 0.01em; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  border: 1px solid var(--line-strong); white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fg); transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn .arrow { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--primary::before { background: var(--cyan); }
.btn--primary:hover { color: var(--bg); border-color: var(--cyan); }
.btn--sm { --pad: 12px 20px; font-size: 13px; }
.btn--lg { --pad: 24px 40px; font-size: 16px; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 22px 0;
  transition: padding 0.5s var(--ease), background 0.5s, backdrop-filter 0.5s;
}
.header.is-scrolled { padding: 12px 0; background: rgba(8, 9, 12, 0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 22px; width: auto; }
.nav { display: none; align-items: center; gap: 34px; }
.nav a { font-size: 14px; color: var(--fg-2); position: relative; transition: color 0.3s; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-right { display: flex; align-items: center; gap: 22px; }
.clock { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-3); display: none; }
.clock b { color: var(--fg-2); font-weight: 500; }
@media (min-width: 1020px) { .nav { display: flex; } .clock { display: inline; } }
@media (max-width: 640px) { .header-right .btn { display: none; } }
.burger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--fg); margin: 2.5px 0; transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (min-width: 1020px) { .burger { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg); padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease); pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu a.big { display: block; font-size: clamp(38px, 9vw, 64px); padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu a.big { font-variation-settings: "wdth" 110, "wght" 700; letter-spacing: -0.03em; line-height: 1; }
.menu .meta { display: flex; flex-wrap: wrap; gap: 24px; color: var(--fg-3); font-family: var(--font-mono); font-size: 12px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 160px 0 48px; position: relative; overflow: clip; }
.hero-grid { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }
@media (min-width: 1200px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero .h1 { margin-top: 28px; }
.hero .h1 .line { display: block; overflow: hidden; }
.hero .h1 .line > span { display: inline-block; will-change: transform; }
.hero-aside { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 900px) { .hero-aside { justify-self: end; max-width: 520px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot { margin-top: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-foot .stat b { display: block; font-size: clamp(22px, 2.4vw, 34px); font-variation-settings: "wdth" 112, "wght" 700; letter-spacing: -0.03em; line-height: 1; }
.hero-foot .stat span { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 48px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); writing-mode: vertical-rl; display: none; }
@media (min-width: 1200px) { .scroll-hint { display: block; } }

.avail { font-size: 12px; line-height: 1.8; color: var(--fg-2); }
.avail i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 10px; box-shadow: 0 0 0 0 rgba(0, 200, 232, 0.6); animation: pulse 1.8s infinite; vertical-align: 1px; }
.avail span { color: var(--fg-3); }

/* Big decorative wordmark behind the hero */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-bg .ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--line);
  left: 68%; top: 22%; width: 60vw; height: 60vw; transform: translate(-50%, -50%);
}
.hero-bg .ring:nth-child(2) { width: 42vw; height: 42vw; border-color: rgba(0, 200, 232, 0.14); }
.hero-bg .ring:nth-child(3) { width: 24vw; height: 24vw; border-color: rgba(0, 200, 232, 0.22); }
.hero-bg .cross { position: absolute; left: 68%; top: 22%; width: 1px; height: 80vh; background: linear-gradient(to bottom, transparent, var(--line-strong), transparent); }
.hero-bg .cross--h { width: 80vw; height: 1px; background: linear-gradient(to right, transparent, var(--line-strong), transparent); transform: translateX(-50%); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; position: relative; z-index: 1; background: var(--bg); }
.marquee-track { display: flex; gap: 0; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); padding: 0 32px; display: inline-flex; align-items: center; gap: 32px; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; }

/* ---------- Manifeste ---------- */
.manifeste .statement {
  font-size: clamp(26px, 3.6vw, 58px); line-height: 1.12; letter-spacing: -0.025em;
  font-variation-settings: "wdth" 104, "wght" 500; max-width: 24ch;
}
.manifeste .statement .w { display: inline-block; opacity: 0.18; transition: opacity 0.4s; }
.manifeste .statement .w.on { opacity: 1; }
.manifeste .statement em { font-style: normal; color: var(--cyan); }
.manifeste-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .manifeste-grid { grid-template-columns: 220px 1fr; align-items: start; } }
.manifeste-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 120px; }
.manifeste-side p { color: var(--fg-2); font-size: 15px; max-width: 30ch; }

/* ---------- Services (rows) ---------- */
.rows { border-top: 1px solid var(--line-strong); }
.row {
  display: grid; grid-template-columns: 1fr; gap: 20px; padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line); position: relative; isolation: isolate; align-items: center;
}
@media (min-width: 900px) { .row { grid-template-columns: 80px 1.4fr 1fr 60px; gap: 40px; } }
.row::before { content: ""; position: absolute; inset: 0; background: var(--bg-2); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ease); }
.row:hover::before { transform: scaleY(1); transform-origin: top; }
.row .idx { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.1em; }
.row .title { font-size: clamp(30px, 4.2vw, 64px); font-variation-settings: "wdth" 110, "wght" 750; letter-spacing: -0.035em; line-height: 0.95; transition: transform 0.55s var(--ease), color 0.4s; }
.row:hover .title { transform: translateX(12px); }
.row .desc { color: var(--fg-2); font-size: 15px; max-width: 42ch; }
.row .desc .tag { display: inline-block; margin: 10px 8px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-3); }
.row .go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background 0.4s, transform 0.5s var(--ease), border-color 0.4s; justify-self: end; }
.row .go svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.row:hover .go { background: var(--cyan); border-color: var(--cyan); color: var(--bg); transform: rotate(-45deg); }
.row.is-feature .idx::after { content: "Service phare"; display: block; margin-top: 8px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; }

/* ---------- Réalisations ---------- */
.works { display: grid; gap: clamp(24px, 3vw, 44px); }
@media (min-width: 800px) { .works { grid-template-columns: repeat(12, 1fr); } }
.work { position: relative; display: block; }
.work .frame { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 10; background: var(--bg-3); border: 1px solid var(--line); }
.work .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.04); transition: transform 1.1s var(--ease), filter 0.8s; filter: saturate(0.85) brightness(0.92); }
.work:hover .frame img { transform: scale(1); filter: saturate(1) brightness(1); }
.work .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 12, 0.55), transparent 45%); opacity: 1; transition: opacity 0.6s; }
.work:hover .frame::after { opacity: 0.4; }
.work .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.work .cap h3 { font-size: clamp(18px, 1.5vw, 24px); font-variation-settings: "wdth" 105, "wght" 650; letter-spacing: -0.02em; }
.work .cap .mono { white-space: nowrap; }
.work .pill { position: absolute; top: 16px; left: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(8, 9, 12, 0.7); backdrop-filter: blur(8px); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg-2); }
@media (min-width: 800px) {
  .work:nth-child(1) { grid-column: 1 / 8; }
  .work:nth-child(2) { grid-column: 8 / 13; margin-top: 12vw; }
  .work:nth-child(3) { grid-column: 1 / 6; margin-top: 0; }
  .work:nth-child(4) { grid-column: 6 / 13; margin-top: 6vw; }
  .work:nth-child(5) { grid-column: 3 / 11; margin-top: 2vw; }
  .work:nth-child(6) { grid-column: 1 / 13; }
}
.works-foot { margin-top: clamp(48px, 6vw, 80px); display: flex; justify-content: center; }

/* ---------- Processus ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--bg); padding: clamp(28px, 3vw, 44px); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-start; gap: 56px; transition: background 0.5s; position: relative; overflow: hidden; }
.step:hover { background: var(--bg-2); }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.1em; }
.step h3 { font-size: clamp(24px, 2vw, 32px); font-variation-settings: "wdth" 108, "wght" 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
.step p { color: var(--fg-2); font-size: 15px; }
.step .big { position: absolute; right: -8px; bottom: -28px; font-size: 160px; font-variation-settings: "wdth" 125, "wght" 900; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.11); line-height: 1; pointer-events: none; }

/* ---------- Bande "pourquoi" ---------- */
.why { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why > div { background: var(--bg); padding: clamp(28px, 3vw, 40px) 0 clamp(28px, 3vw, 40px) clamp(0px, 2vw, 32px); }
.why > div:first-child { padding-left: 0; }
.why h3 { font-size: 20px; font-variation-settings: "wdth" 106, "wght" 650; letter-spacing: -0.02em; margin: 18px 0 10px; }
.why p { color: var(--fg-2); font-size: 15px; max-width: 34ch; }

/* ---------- CTA finale ---------- */
.cta { position: relative; overflow: clip; text-align: left; }
.cta .h1 { font-size: clamp(46px, 8.6vw, 132px); }
.cta .h1 a { display: inline-block; position: relative; }
.cta .h1 a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.06em; background: var(--cyan); transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.cta .h1 a:hover::after { transform: scaleX(1); transform-origin: left; }
.cta-meta { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 24px; }
@media (min-width: 800px) { .cta-meta { grid-template-columns: 1fr 1fr 1fr; } }
.cta-meta a.big-link { font-size: clamp(18px, 1.8vw, 26px); font-variation-settings: "wdth" 104, "wght" 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; display: inline-block; transition: border-color 0.3s, color 0.3s; }
.cta-meta a.big-link:hover { border-color: var(--cyan); color: var(--cyan); }
.cta-meta .label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; position: relative; z-index: 1; background: var(--bg); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .brand img { height: 20px; }
.footer p { color: var(--fg-3); font-size: 13px; max-width: 34ch; margin-top: 16px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 16px; font-weight: 500; }
.footer li { margin: 8px 0; }
.footer li a { font-size: 14px; color: var(--fg-2); transition: color 0.3s; }
.footer li a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg-3); }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero { padding: 180px 0 clamp(48px, 6vw, 96px); position: relative; overflow: clip; }
.page-hero .h1 { margin-top: 24px; max-width: 12ch; }
.page-hero .lede { margin-top: 32px; }
.page-hero-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .page-hero-grid { grid-template-columns: 1.6fr 1fr; align-items: end; } }

/* ---------- Feature list (pages services) ---------- */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg); padding: clamp(28px, 3vw, 40px); transition: background 0.5s; }
.feature:hover { background: var(--bg-2); }
.feature .n { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.12em; }
.feature h3 { font-size: 22px; font-variation-settings: "wdth" 106, "wght" 650; letter-spacing: -0.02em; margin: 40px 0 12px; }
.feature p { color: var(--fg-2); font-size: 15px; }

/* ---------- Split (texte + visuel) ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 120px); } }
.split .h2 { max-width: 12ch; }
.split .body { display: flex; flex-direction: column; gap: 20px; color: var(--fg-2); font-size: clamp(16px, 1.2vw, 18px); max-width: 52ch; }
.split .body strong { color: var(--fg); font-weight: 600; }

/* ---------- Agent vocal — démo d'appel ---------- */
.call {
  border: 1px solid var(--line-strong); border-radius: 12px; background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: 28px; display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden;
}
.call::before { content: ""; position: absolute; inset: -40% -20% auto; height: 60%; background: radial-gradient(ellipse at center, rgba(0, 200, 232, 0.12), transparent 60%); pointer-events: none; }
.call-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.call-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); }
.call-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(0, 200, 232, 0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(0, 200, 232, 0); } }
.bubbles { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px); }
.bubble.ai { align-self: flex-start; background: rgba(0, 200, 232, 0.1); border: 1px solid rgba(0, 200, 232, 0.25); border-bottom-left-radius: 4px; }
.bubble.hu { align-self: flex-end; background: var(--bg-3); border: 1px solid var(--line); border-bottom-right-radius: 4px; color: var(--fg-2); }
.bubble.show { animation: bubble 0.5s var(--ease) forwards; }
@keyframes bubble { to { opacity: 1; transform: none; } }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { width: 3px; border-radius: 2px; background: var(--cyan); height: 20%; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: 0.15s; } .wave i:nth-child(3n) { animation-delay: 0.3s; } .wave i:nth-child(5n) { animation-delay: 0.45s; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.call-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; }

/* ---------- Stats bandeau ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--bg); padding: 28px 24px 28px 0; }
@media (min-width: 700px) { .stats > div + div { padding-left: 24px; } }
.stats b { display: block; font-size: clamp(34px, 4vw, 64px); font-variation-settings: "wdth" 115, "wght" 800; letter-spacing: -0.04em; line-height: 1; }
.stats span { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: clamp(56px, 8vw, 140px); align-items: start; } }
.form { display: grid; gap: 0; }
.field { position: relative; border-bottom: 1px solid var(--line-field); padding: 26px 0 14px; }
.field label { position: absolute; left: 0; top: 30px; font-size: 15px; color: var(--fg-3); transition: transform 0.3s var(--ease), color 0.3s, font-size 0.3s; pointer-events: none; transform-origin: left; }
.field input, .field textarea, .field select { width: 100%; background: none; border: 0; color: var(--fg); font: inherit; font-size: 17px; padding: 6px 0; outline: none; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--fg); }
.field:focus-within { border-color: var(--cyan); }
.field:focus-within label, .field.has-value label { transform: translateY(-24px); font-size: 11px; color: var(--cyan); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.form .btn { margin-top: 32px; justify-self: start; }
.form-note { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em; }
.contact-side { display: flex; flex-direction: column; gap: 36px; }
.contact-side dl { margin: 0; display: grid; gap: 22px; }
.contact-side dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.contact-side dd { margin: 0; font-size: clamp(18px, 1.6vw, 24px); font-variation-settings: "wdth" 104, "wght" 600; letter-spacing: -0.02em; }
.contact-side dd a { border-bottom: 1px solid var(--line-strong); transition: border-color 0.3s, color 0.3s; }
.contact-side dd a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Prose (pages légales) ---------- */
.prose { max-width: 68ch; color: var(--fg-2); font-size: 16px; }
.prose h2 { font-size: 22px; color: var(--fg); margin: 48px 0 12px; font-variation-settings: "wdth" 106, "wght" 650; letter-spacing: -0.02em; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 18px; list-style: disc; margin-bottom: 14px; }
.prose a { color: var(--cyan); }

/* ---------- Reveal utilities (GSAP) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal-line { overflow: hidden; }
.reveal-line > * { display: block; transform: translateY(110%); }
.no-js .reveal, .no-js .reveal-line > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line > * { opacity: 1 !important; transform: none !important; }
  .grain, .glow { display: none; }
  .marquee-track { animation: none !important; }
}

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: flex; align-items: flex-end; padding: var(--gutter); pointer-events: none; }
.loader .count { font-size: clamp(64px, 14vw, 200px); font-variation-settings: "wdth" 125, "wght" 900; letter-spacing: -0.06em; line-height: 0.8; color: var(--fg); }
.loader .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--cyan); }
.loader.is-done { transform: translateY(-100%); transition: transform 0.9s var(--ease-io); }

/* ---------- Focus clavier ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .work:focus-visible, .row:focus-visible { outline-offset: 4px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 2px; }

/* ---------- Message de confirmation du formulaire ---------- */
.form-success {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 32px; padding: 18px 20px;
  border: 1px solid rgba(0, 200, 232, 0.4); border-radius: 8px; background: rgba(0, 200, 232, 0.07);
}
.form-success:focus { outline: none; }
.form-success b { display: block; margin-bottom: 4px; font-variation-settings: "wdth" 104, "wght" 650; }
.form-success p { font-size: 14px; color: var(--fg-2); }
.form-success .dot { flex: none; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--cyan); }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 10001; background: var(--cyan); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 8px; }

/* Variable-font width driven by GSAP on the hero */
.hero .h1 .line > span { --w: 112; font-variation-settings: "wdth" var(--w), "wght" 800; }
