/* Polices hébergées sur le site (pas d'appel à Google) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("assets/fonts/geist-latin.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: "Geist"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("assets/fonts/geist-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/geist-mono-latin.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: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/geist-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --black: #0a0a0a;
  --ink: #111;
  --white: #fafaf8;
  --grey-1: #f0f0ed;
  --grey-2: #d9d9d4;
  --grey-3: #8a8a86;
  --grey-4: #4a4a47;
  --grey-5: #1c1c1b;
  --accent: #f2c811;
  --display-weight: 400;
  --display-tracking: -.035em;
  --em-style: normal;
  --display: "Geist", system-ui, -apple-system, sans-serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: var(--em-style); font-family: var(--display); font-weight: var(--display-weight); }

/* ---------- Typo ---------- */
.display, .h2, .step h3, .timeline h3, .path h3, .facts dt, .about-text .about-hook, #viz .t-serif, #viz .t-big { font-weight: var(--display-weight); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 24px;
}
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 116px);
  line-height: .98;
  letter-spacing: var(--display-tracking);
  max-width: 12ch;
}
.display em { color: var(--grey-3); }
.display-sm { font-size: clamp(40px, 6vw, 84px); max-width: 15ch; }
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: var(--display-tracking);
  max-width: 18ch;
}
.h2 em { color: var(--grey-3); }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 46ch; color: var(--grey-4); margin-top: 32px; }
.section-lead { font-size: 19px; max-width: 48ch; color: var(--grey-3); margin-top: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  background: var(--black); color: var(--white);
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn::after { content: "→"; transition: transform .3s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:hover { background: var(--grey-5); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-small::after { display: none; }
.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.btn-invert { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-invert:hover { background: var(--grey-2); }
.btn-ghost-invert { background: transparent; color: var(--white); border-color: var(--grey-4); }
.btn-ghost-invert:hover { border-color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(250, 250, 248, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--grey-1); }
.nav.on-dark { color: var(--white); }
.nav.on-dark.scrolled { background: rgba(10, 10, 10, .8); border-bottom-color: var(--grey-5); }
.nav.on-dark .btn-small { background: var(--white); color: var(--black); border-color: var(--white); }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 22px; height: 28px; }
.wordmark { font-family: var(--sans); font-weight: 500; letter-spacing: .32em; font-size: 14px; }
.nav-links { display: flex; gap: 36px; font-size: 14px; }
.nav-links a { opacity: .7; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; }
.lang span { opacity: .35; }
.lang button { opacity: .4; padding: 4px 2px; }
.lang button[aria-pressed="true"] { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.hero-mark {
  position: absolute; z-index: 1;
  right: var(--gutter); top: 50%;
  height: min(88vh, 900px); width: auto;
  transform: translateY(-50%);
  color: var(--grey-2);
}
.hero-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) .2s forwards; }
.hero-mark path + path { animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .reveal-line { display: block; }
.scroll-hint {
  position: absolute; bottom: 32px; left: var(--gutter);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-3);
}
.scroll-hint i { display: block; width: 48px; height: 1px; background: var(--grey-2); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--black); transform: translateX(-100%); animation: slide 2.2s var(--ease) infinite; }
@keyframes slide { 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- Clients ---------- */
.clients { padding: 72px 0 64px; border-top: 1px solid var(--grey-1); border-bottom: 1px solid var(--grey-1); }
.kpis { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); }
.kpi { padding: 8px 48px 8px 0; }
.kpi + .kpi { border-left: 1px solid var(--grey-2); padding-left: 48px; }
.kpi-value { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: var(--display-tracking); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.kpi p { font-size: 16px; line-height: 1.4; max-width: 30ch; }
.kpi strong { font-weight: 500; color: var(--ink); }
.kpi p span { color: var(--grey-3); }

.marquee {
  margin-top: 72px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { list-style: none; display: flex; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  flex: none; padding: 0 clamp(48px, 6vw, 96px);
  font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.01em;
  color: var(--grey-3); white-space: nowrap;
}
/* hauteur calculée dans main.js pour que chaque logo occupe la même surface */
.marquee-track img { display: block; width: auto; filter: brightness(0); opacity: .42; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section-head { max-width: var(--max); margin: 0 auto 72px; }

/* ---------- Story (scroll) ---------- */
.story { background: var(--black); color: var(--white); padding: 140px var(--gutter) 80px; }
.story .eyebrow, .story .section-lead { color: var(--grey-3); }
.story .h2 em { color: var(--grey-3); }
.story-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px;
}
.story-steps { padding-bottom: 30vh; }
.step {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: .22; transition: opacity .5s var(--ease);
}
.step.active { opacity: 1; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--grey-3); letter-spacing: .1em; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; margin: 14px 0 18px; max-width: 16ch; }
.step p { color: #b9b9b4; max-width: 40ch; }
.story-stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
.screen {
  background: #141413;
  border: 1px solid #2a2a28;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.screen-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #242422;
  font-family: var(--mono); font-size: 11px; color: var(--grey-3);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2e2e2c; }
.screen-title { flex: 1; color: #d8d8d3; }
#viz { display: block; width: 100%; height: auto; }
.screen-note { font-family: var(--mono); font-size: 11px; color: var(--grey-4); margin-top: 14px; }

/* viz typography */
#viz text { font-family: var(--mono); font-size: 11px; }
#viz text:not([fill]) { fill: #8a8a86; }
#viz .t-strong:not([fill]), #viz .t-serif:not([fill]), #viz .t-big:not([fill]) { fill: #f5f5f0; }
#viz .t-serif { font-family: var(--display); font-size: 34px; }
#viz .t-big { font-family: var(--display); font-size: 64px; }

/* ---------- Expertise ---------- */
.expertise { padding: 160px var(--gutter); }
.exp-list { list-style: none; max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--grey-2); }
.exp-item {
  display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--grey-2);
}
.exp-icon { width: 48px; height: 48px; color: var(--ink); }
.exp-icon * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.exp-item.in .exp-icon * { stroke-dashoffset: 0; }
.exp-item h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.exp-item p { color: var(--grey-4); font-size: 17px; max-width: 46ch; }

/* ---------- Versus ---------- */
.versus { background: var(--black); color: var(--white); padding: 160px var(--gutter); }
.versus-inner { max-width: var(--max); margin: 0 auto; }
.versus .h2 { max-width: 22ch; }
.versus-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 80px; background: #2a2a28; border: 1px solid #2a2a28; }
.versus-cols > div { background: var(--black); padding: 40px; }
.versus-cols h3 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-3); margin-bottom: 28px; }
.versus-cols > div:last-child h3 { color: var(--white); }
.versus-cols ul { list-style: none; }
.versus-cols li { padding: 18px 0; border-top: 1px solid #222220; font-size: 18px; }
.versus-cols > div:first-child li { color: var(--grey-3); text-decoration: line-through; text-decoration-color: #3a3a38; }

/* ---------- Method ---------- */
.method { padding: 160px var(--gutter); }
.timeline { list-style: none; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--grey-2); }
.timeline li { position: relative; padding-top: 48px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 1px solid var(--black); }
.t-num { font-family: var(--mono); font-size: 12px; color: var(--grey-3); }
.timeline h3 { font-family: var(--display); font-weight: 400; font-size: 36px; margin: 8px 0 14px; }
.timeline p { color: var(--grey-4); max-width: 34ch; }
.method-note { max-width: var(--max); margin: 72px auto 0; font-family: var(--mono); font-size: 13px; color: var(--grey-3); }

/* ---------- About ---------- */
.about { padding: 140px var(--gutter); border-top: 1px solid var(--grey-1); }
.about-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.about-role { font-family: var(--mono); font-size: 13px; color: var(--grey-3); margin-top: 16px; }
.about-text p { font-size: 18px; color: var(--grey-4); margin-bottom: 20px; max-width: 58ch; }
.about-text .about-hook { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--ink); margin-bottom: 32px; max-width: 26ch; }
.facts { display: grid; gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--grey-2); }
.facts dt { font-family: var(--display); font-size: 48px; line-height: 1; }
.facts dd { font-size: 14px; color: var(--grey-3); margin-top: 6px; }
.path { list-style: none; max-width: var(--max); margin: 120px auto 0; border-top: 1px solid var(--grey-2); }
.path li { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--grey-2); transition: padding .4s var(--ease); }
.path li:hover { padding-left: 12px; }
.path-date { font-family: var(--mono); font-size: 13px; color: var(--grey-3); }
.path h3 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.path p { color: var(--grey-4); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { background: var(--black); color: var(--white); padding: 180px var(--gutter); overflow: hidden; }
.contact > * { position: relative; z-index: 2; max-width: var(--max); margin-left: auto; margin-right: auto; }
.contact .display em { color: var(--grey-3); }
.contact .lead { color: #b9b9b4; margin-left: auto; margin-right: auto; }
.contact .lead, .contact .hero-ctas { max-width: var(--max); }
.contact-mark { position: absolute; z-index: 1; right: var(--gutter); top: 50%; transform: translateY(-50%); height: min(84%, 760px); width: auto; color: #1f1f1e; max-width: none; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--grey-3); border-top: 1px solid #1f1f1e; padding: 28px var(--gutter); display: flex; justify-content: space-between; font-size: 13px; font-family: var(--mono); }
.footer a:hover { color: var(--white); }
.footer-tag { color: var(--grey-4); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage { order: -1; top: 56px; height: auto; padding: 12px 0 20px; background: var(--black); z-index: 3; }
  .story-steps { padding-bottom: 10vh; }
  .step { min-height: 60vh; }
  .exp-item { grid-template-columns: 48px 1fr; gap: 12px 20px; padding: 28px 0; }
  .exp-item p { grid-column: 2; }
  .versus-cols, .timeline, .about-grid { grid-template-columns: 1fr; }
  .path li { grid-template-columns: 1fr; gap: 4px; }
  .footer { flex-direction: column; gap: 8px; }
  .timeline::before { display: none; }
  .hero-mark { opacity: .35; right: -30vw; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding-top: 14px; padding-bottom: 14px; }
  .nav .btn-small { display: none; }
  .kpis { grid-template-columns: 1fr; gap: 28px; }
  .kpi, .kpi + .kpi { border-left: 0; padding: 0; }
  .kpi + .kpi { border-top: 1px solid var(--grey-2); padding-top: 28px; }
  .marquee { margin-top: 48px; }
  .expertise, .versus, .method, .about { padding-top: 100px; padding-bottom: 100px; }
  .contact { padding: 120px var(--gutter); }
  .versus-cols > div { padding: 28px 20px; }
  .facts { grid-template-columns: 1fr; }
  .screen-note { display: none; }
  .dots { display: none; }
  .screen-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* grand N de fond : entier et centré sur mobile */
  .hero-mark, .contact-mark { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); height: min(72vh, 100vw); width: auto; }
  .hero-mark { opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark path { animation: none; stroke-dashoffset: 0; }
  .scroll-hint i::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .exp-icon * { stroke-dashoffset: 0; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Mentions légales ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 160px var(--gutter) 120px; }
.legal h1 { margin-bottom: 56px; }
.legal h2 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-3); margin: 48px 0 14px; }
.legal p { color: var(--grey-4); margin-bottom: 12px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; gap: 24px; }

/* ---------- Email visible + copie ---------- */
.contact-email { margin-top: 28px; color: #8a8a86; font-size: 15px; }
.copy-email { color: var(--white); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px);
  background: var(--white); color: var(--black); padding: 12px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
