:root {
  --paper: #f3efe6;
  --ink: #15130f;
  --soft: #5d564b;
  --line: rgba(21, 19, 15, 0.14);
  --nexa: #2f6bff;
  --nexa-hi: #6b9bff;
  --nexa-deep: #070d26;
  --nexa-ink: #dfe7ff;
  --nexa-soft: #b9c6ec;
  --nexa-line: rgba(223, 231, 255, 0.14);
  --display: "Syne", "Arial", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(820px 520px at 100% 0%, rgba(47, 107, 255, 0.10), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--nexa); outline-offset: 3px; }

.bar, main, .nexa, .outro, .foot {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---------- En-tête ---------- */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.bar-brand img { width: 40px; height: 40px; border-radius: 50%; filter: grayscale(1) contrast(1.1); }
.bar-nexa { font-family: var(--display); font-size: 0.95rem; text-decoration: none; color: var(--soft); }
.bar-nexa b { color: var(--nexa); font-weight: 800; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 11vw, 130px) 0 clamp(36px, 6vw, 72px);
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft);
}
.kicker i { width: 28px; height: 1px; background: currentColor; }
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.4rem, 19vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.1em 0.02em;
  margin: -0.1em -0.02em;
  vertical-align: bottom;
}
.ch { display: inline-block; will-change: transform; }
h1 .dot { display: inline-block; color: var(--nexa); transform-origin: 50% 80%; }
.hero-sub {
  margin: 18px 0 0;
  font-style: italic;
  font-size: clamp(1.6rem, 4.4vw, 2.8rem);
  line-height: 1.1;
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(28px, 5vw, 48px) 0 0;
  font-family: var(--label);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--soft);
}
.scroll-hint span {
  position: relative;
  width: 54px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}
.scroll-hint span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: hint 1.8s cubic-bezier(.6, 0, .2, 1) infinite;
}
@keyframes hint {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* États de départ de l’intro (seulement si l’animation tourne). */
html.fx .hero .ch { transform: translateY(115%) rotate(6deg); }
html.fx h1 .dot { transform: scale(0); }
html.fx .kicker,
html.fx .scroll-hint { opacity: 0; }
html.fx .hero-sub { opacity: 0; transform: translateY(24px); }

/* ---------- Lettre ---------- */
.letter {
  max-width: 680px;
  margin-left: auto;
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.letter p { margin: 0 0 1.1em; }
.letter .lead { font-size: clamp(1.45rem, 3.2vw, 1.9rem); line-height: 1.3; font-style: italic; }
.letter .sign {
  margin-top: 1.8em;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.letter .sign::before { content: "— "; }

/* ---------- Chiffres ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 clamp(56px, 9vw, 110px);
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--ink);
}
.stats li { padding: 22px 8px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stats span {
  font-family: var(--label);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}

/* ---------- Zone de fin (sombre) ---------- */
.end { background: var(--nexa-deep); color: var(--nexa-ink); }

.finale {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}
.finale-stage {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  height: 100%;
  padding: 0 16px;
  text-align: center;
}
.finale-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 50% 110%, rgba(47, 107, 255, 0.35), transparent 65%),
    var(--nexa-deep);
}
.finale-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(80vw, 720px);
  aspect-ratio: 1;
  margin: calc(min(80vw, 720px) / -2) 0 0 calc(min(80vw, 720px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.55), rgba(47, 107, 255, 0) 65%);
  filter: blur(20px);
  pointer-events: none;
}
.finale-kicker,
.finale-word,
.finale-line { position: relative; margin: 0; }
.finale-kicker {
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9db8ff;
}
.finale-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(5rem, 22vw, 18rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--nexa);
  filter: drop-shadow(0 0 36px rgba(47, 107, 255, 0.55));
  white-space: nowrap;
}
.finale-line {
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  color: var(--nexa-soft);
}
.finale-line b { color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.9em; }

.marquee {
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px) 0;
  border-block: 1px solid var(--nexa-line);
  white-space: nowrap;
}
.marquee-track { display: inline-flex; }
.marquee-track span {
  padding-right: 0.4em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(223, 231, 255, 0.55);
}
.marquee-track i { font-style: normal; color: var(--nexa); -webkit-text-stroke: 0; font-size: 0.5em; vertical-align: middle; }

.nexa {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(64px, 10vw, 120px) 0;
}
@media (min-width: 900px) {
  .nexa { grid-template-columns: 1.05fr 1fr; align-items: start; }
}
.nexa p { margin: 0 0 1em; }
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9db8ff;
}
.nexa h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
}
.nexa-ask { color: #fff; font-style: italic; font-size: 1.35rem; line-height: 1.3; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-solid { background: var(--nexa); color: #fff; box-shadow: 0 10px 30px rgba(47, 107, 255, 0.45); }
.btn-solid:hover { background: #4a7fff; box-shadow: 0 14px 40px rgba(47, 107, 255, 0.65); }
.btn-line { border: 1px solid rgba(223, 231, 255, 0.4); color: #fff; }
.btn-line:hover { background: rgba(223, 231, 255, 0.08); }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 18px;
  overflow: hidden;
  background: var(--nexa-line);
}
.services li { padding: 22px; background: #0b1435; transition: background 0.3s ease; }
.services li:hover { background: #102055; }
.services small { font-family: var(--label); color: var(--nexa); letter-spacing: 0.18em; font-weight: 600; }
.services h3 { margin: 6px 0; font-family: var(--display); font-weight: 700; font-size: 1.08rem; color: #fff; }
.services p { margin: 0; font-size: 1.05rem; line-height: 1.4; color: var(--nexa-soft); }

.outro {
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: clamp(40px, 8vw, 100px) 0 clamp(64px, 10vw, 120px);
  text-align: center;
}
.outro-big {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #fff;
}
.outro-big span { color: var(--nexa); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--nexa-line);
  font-family: var(--label);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nexa-soft);
}
.foot b { color: var(--nexa-hi); font-family: var(--display); letter-spacing: 0; text-transform: none; }

@media (max-width: 560px) {
  .stats li { padding: 18px 4px; }
  .stats span { font-size: 0.75rem; letter-spacing: 0.12em; }
  .bar-brand span { font-size: 0.82rem; }
}
