:root {
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r1: 6px; --r2: 10px; --r3: 16px;
  --h-sm: 28px; --h-md: 34px; --h-lg: 40px;
  --paper: #07060f;
  --card: #0e0d18;
  --ground: rgba(255, 255, 255, 0.04);
  --ink: #ffffff;
  --muted: #a1a1a6;
  --faint: #86868b;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --fill: #ffffff;
  --fill-ink: #07060f;
  --accent: #6a4c93;
  --accent-text: #c1aed7;
  --glow: rgba(106, 76, 147, 0.28);
}
html.light {
  --paper: #ffffff;
  --card: #ffffff;
  --ground: #f4f4f2;
  --ink: #1a1a1a;
  --muted: #666666;
  --faint: #808080;
  --line: #e7e7e3;
  --line-strong: #1a1a1a;
  --fill: #1a1a1a;
  --fill-ink: #ffffff;
  --accent-text: #6a4c93;
  --glow: rgba(106, 76, 147, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv02", "cv03", "cv11";
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-weight: 400; font-variant-numeric: tabular-nums; }
.wrap { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: var(--s5);
  height: 64px; padding: 0 var(--s6);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.solid {
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: var(--s3); font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }
.brand img { width: 64px; height: 26px; object-fit: cover; object-position: 50% 38%; display: none; }
html.dark .brand .on-dark { display: block; mix-blend-mode: screen; }
html.light .brand .on-light { display: block; mix-blend-mode: multiply; }
.links { display: flex; gap: var(--s5); margin-left: var(--s4); }
.links a { font-size: 14px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.theme {
  height: var(--h-md); padding: 0 var(--s3);
  border: 1px solid var(--line); border-radius: var(--r1);
  font-size: 13px; color: var(--muted);
}
.theme:hover { color: var(--ink); border-color: var(--line-strong); }

/* boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h-lg); padding: 0 var(--s4);
  border-radius: var(--r1); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
}
.btn.md { height: var(--h-md); padding: 0 var(--s3); font-size: 13px; }
.btn.primary { background: var(--fill); color: var(--fill-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--fill) 88%, var(--paper)); }
.btn.ghost { color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* titres de section */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.h2 { margin: var(--s3) 0 0; font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; max-width: 18ch; }
.lede { margin: var(--s4) 0 0; max-width: 52ch; font-size: 16px; line-height: 1.55; color: var(--muted); }
.block { padding: 120px 0 0; }

/* grille à filets */
.grid {
  margin-top: var(--s7);
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.grid > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s6); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.cell .mono { font-size: 12px; color: var(--faint); }
.cell h3 { margin: var(--s4) 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.cell p { margin: var(--s3) 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

.burger {
  display: none;
  height: var(--h-md); padding: 0 var(--s3);
  border: 1px solid var(--line); border-radius: var(--r1);
  font-size: 13px;
}
.sheet {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 19;
  display: flex; flex-direction: column;
  padding: var(--s3) var(--s4) var(--s5);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.sheet[hidden] { display: none; }
.sheet a { padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.sheet a[aria-current="page"] { color: var(--accent-text); }

/* En-tête de page intérieure */
.page-head { padding: 168px 0 0; }
.page-head h1 { margin: var(--s3) 0 0; font-size: clamp(44px, 6.4vw, 80px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; max-width: 16ch; }
.page-head .lede { font-size: 18px; }

/* Ouverture : le logo en métal occupe la scène */
.stage { position: relative; height: 180svh; }
.pin {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
  /* Le fond reprend le bord des rendus 3D, sinon un rectangle se voit. */
  background: #091120;
}
html.light .pin { background: #e1e1df; }
.pin::after {
  content: ""; position: absolute; inset: auto 0 0; height: 18svh;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.wave { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; }
.wave img {
  width: min(1180px, 112vw); height: auto; display: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 64% at 50% 48%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 64% at 50% 48%, #000 60%, transparent 100%);
}
html.dark .wave .night { display: block; }
html.light .wave .day { display: block; }
.title {
  position: absolute; left: 0; right: 0; bottom: 9svh; z-index: 2;
  text-align: center; padding: 0 var(--s6);
  will-change: transform, opacity;
}
.title h1 { margin: 0; font-size: clamp(44px, 7.6vw, 104px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.98; }
.title p { margin: var(--s5) auto 0; max-width: 46ch; font-size: 17px; line-height: 1.5; color: var(--muted); }
.title .actions { display: flex; justify-content: center; gap: var(--s3); margin-top: var(--s6); }
.cue {
  position: absolute; left: 50%; bottom: var(--s5); z-index: 2;
  transform: translateX(-50%); width: 1px; height: 32px;
  background: linear-gradient(var(--line-strong), transparent);
}
.claim { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 0 var(--s6); opacity: 0; pointer-events: none; }
.claim p { margin: 0; max-width: 22ch; text-align: center; font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; }
.claim p span { color: var(--muted); }

.door {
  margin-top: var(--s7);
  display: grid; grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--line); border-radius: var(--r3);
  overflow: hidden; background: var(--card);
}
.door .txt { padding: var(--s7); display: flex; flex-direction: column; gap: var(--s4); }
.door .txt h3 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.door .txt p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.door .txt .btn { align-self: flex-start; margin-top: var(--s4); }
.door .shots { position: relative; min-height: 340px; border-left: 1px solid var(--line); background: var(--ground); overflow: hidden; }
.door .shots img {
  position: absolute; width: 78%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: var(--r2);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.5);
}
.door .shots img:nth-child(1) { left: 8%; top: 12%; }
.door .shots img:nth-child(2) { left: 22%; top: 34%; }
.door .shots img:nth-child(3) { left: 36%; top: 56%; }

@media (max-width: 760px) {
  .stage.short .title { width: calc(100% - 32px); }
  .stage { height: 150svh; }
  .wave img { width: 150vw; }
  .cue { display: none; }
  .title { bottom: 7svh; padding: 0 var(--s4); text-align: left; }
  .title p { margin-left: 0; }
  .title .actions { justify-content: flex-start; flex-wrap: wrap; }
  .claim { padding: 0 var(--s4); }
  .claim p { text-align: left; }
  .door { grid-template-columns: 1fr; }
  .door .txt { padding: var(--s5); }
  .door .shots { min-height: 240px; border-left: 0; border-top: 1px solid var(--line); }
}
/* Variante intérieure de l'ouverture : plus courte, titre à gauche */
.stage.short { height: 150svh; }
/* Ancré par le haut : le titre reste visible même sur un écran bas ou sous le Dock. */
.stage.short .title { text-align: left; left: 0; right: 0; top: 30svh; bottom: auto; width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 0; }
.stage.short .title h1 { font-size: clamp(48px, 7vw, 96px); max-width: 13ch; }
.stage.short .title p { margin-left: 0; }
.stage.short .title .actions { justify-content: flex-start; }
.stage.short .title .kicker { margin-bottom: var(--s4); }

/* Pages éditoriales : un libellé simple, de la prose, des images */
.kicker { margin: 0; font-size: 14px; color: var(--muted); }
.prose p { margin: 0 0 var(--s5); font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 36em; }
.prose p:first-child { color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.link-arrow { display: inline-flex; gap: var(--s2); font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.link-arrow:hover { border-bottom-color: var(--ink); }
.photo { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--r3); background: var(--ground); }
.caption { margin-top: var(--s3); font-size: 13px; color: var(--faint); }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: var(--s6) var(--s5); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats .num { font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.stats .lbl { margin-top: var(--s3); font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Révélation au défilement */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* Appel final, commun aux pages */
.cta { position: relative; margin-top: 140px; padding: 120px 0 120px; text-align: center; overflow-x: clip; }
/* Le dégradé s'éteint avant le bord de sa boîte : aucune arête visible. */
.cta .halo {
  position: absolute; left: 50%; top: 50%; width: min(1100px, 140%); height: 640px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.cta h2 { position: relative; margin: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.cta p { position: relative; margin: var(--s5) auto 0; max-width: 44ch; font-size: 16px; line-height: 1.55; color: var(--muted); }
.cta .actions { position: relative; display: flex; justify-content: center; gap: var(--s3); margin-top: var(--s6); }

/* Bandeau des partenaires */
.trust { padding: var(--s7) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .lbl { margin: 0 0 var(--s6); text-align: center; font-size: 13px; color: var(--faint); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.track { display: flex; width: max-content; animation: defile 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track ul { display: flex; align-items: center; gap: 88px; margin: 0; padding: 0 44px; list-style: none; }
.track li { flex: none; display: flex; align-items: center; }
.track img { display: block; width: auto; opacity: .62; transition: opacity .2s; }
.track li:hover img { opacity: 1; }
html.light .track img { filter: invert(1); }
@keyframes defile { to { transform: translateX(-50%); } }

footer.foot {
  margin-top: 140px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}
.foot-in {
  width: min(1120px, calc(100% - 64px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6);
  padding: var(--s7) 0;
}
.foot-brand, .foot-col { display: flex; flex-direction: column; gap: var(--s2); }
.foot-brand b, .foot-col b { color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: var(--s1); }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--ink); }
.foot-base {
  width: min(1120px, calc(100% - 64px)); margin: 0 auto;
  display: flex; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) 0 var(--s6);
  border-top: 1px solid var(--line);
}
.foot-base a { color: var(--muted); }

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .foot-in { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .links { display: none; }
  .burger { display: inline-flex; align-items: center; }
  .nav-end .btn.primary, .nav-end .theme { display: none; }
  .page-head { padding-top: 120px; }
  .cta { text-align: left; }
  .cta p { margin-left: 0; }
  .cta .actions { justify-content: flex-start; flex-wrap: wrap; }
  .foot-in, .foot-base { width: calc(100% - 32px); }
  .track ul { gap: 56px; padding: 0 28px; }
  .nav { padding: 0 var(--s4); }
  .wrap { width: calc(100% - 32px); }
  .g2, .g4 { grid-template-columns: 1fr; }
  .grid > * { padding: var(--s5); }
  .block { padding-top: var(--s8); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; width: auto; }
  .track ul { flex-wrap: wrap; justify-content: center; row-gap: var(--s6); }
  .rv { opacity: 1; transform: none; }
  .track ul[aria-hidden] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  * { transition: none !important; animation: none !important; }
}
.track li.word { gap: var(--s3); }
.track li.word span { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); opacity: .62; white-space: nowrap; }
.track li.word:hover span { opacity: 1; }
