/* ==========================================================================
   PatriFlux — feuille de style
   Palette extraite de la charte : crème #f3f1ee · rouge #ea0613 · noir #180708
   Esprit : "ledger" à la Stripe — graisse 300, filets 1px, rayon 4px, aucune ombre.
   ========================================================================== */

:root {
  /* Couleurs */
  --red: #ea0613;
  --red-hover: #c9050f;
  --ink: #180708;
  --slate: #6e6a66;
  --steel: #57534e;
  --smoke: #a39e97;
  --canvas: #f3f1ee;
  --white: #ffffff;
  --mist: #f9f8f6;
  --frost: #e4e1db;
  --rose-border: #f3b7bb;
  --rose-lilac: #f8d4d6;
  --rose-wash: #fdeceb;
  --deep: #5a0a10;

  /* Typo */
  --font: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max: 1320px;
  --gutter: 24px;
  --nav-h: 76px;

  /* Mouvement */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; }
::selection { background: var(--rose-lilac); color: var(--ink); }
section[id], .section[id] { scroll-margin-top: 72px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typographie ---------- */
.display { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.03em; font-weight: 300; }
.h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.025em; font-weight: 300; }
.h3 { font-size: 26px; line-height: 1.12; letter-spacing: -.01em; font-weight: 300; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: var(--slate); max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--smoke);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--red); }
.display em, .h2 em { color: var(--red); position: relative; }
.display em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-io) 1.1s;
}
.display.is-in em::after { transform: scaleX(1); }

.link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 400; font-size: 16px; }
.link .arrow { display: inline-block; font-size: 20px; line-height: 0; transition: transform .35s var(--ease); }
.link:hover .arrow { transform: translateX(5px); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--canvas);
  display: grid; place-items: center;
  transition: transform .9s var(--ease-io), visibility 0s .9s;
}
.loader.is-done { transform: translateY(-100%); visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.loader-mark { overflow: hidden; font-size: clamp(28px, 4vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; padding: 6px 0; }
.loader-mark > * { display: block; transform: translateY(110%); animation: rise .8s .1s var(--ease) forwards; }
.loader-mark img { height: clamp(44px, 6vw, 64px); width: auto; }
.loader-mark em { color: var(--red); font-weight: 300; }
.loader-bar { width: 160px; height: 1px; background: var(--frost); position: relative; overflow: hidden; }
.loader-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--red);
  transform: scaleX(0); transform-origin: left; animation: fillx 1s .25s var(--ease) forwards;
}
@keyframes rise { to { transform: none; } }
@keyframes fillx { to { transform: scaleX(1); } }

/* ---------- Curseur ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 300; display: none; opacity: 0; transition: opacity .3s; }
.cursor.is-visible { opacity: 1; }
.cursor.is-text { opacity: 0; }
body.has-cursor .cursor { display: block; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: none; }
body.has-cursor input, body.has-cursor textarea { cursor: text; }
body.has-cursor select { cursor: pointer; }
.cursor-dot {
  position: absolute; top: 0; left: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--red); transform: translate(var(--x, -100px), var(--y, -100px));
  transition: width .2s, height .2s, margin .2s;
}
.cursor-ring {
  position: absolute; top: 0; left: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1px solid var(--rose-border);
  transform: translate(var(--x, -100px), var(--y, -100px)) scale(var(--s, 1));
  transition: border-color .3s, background-color .3s;
}
.cursor.is-hover .cursor-ring { --s: 1.8; border-color: var(--red); background: rgba(234, 6, 19, .06); }
.cursor.is-hover .cursor-dot { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; }
.cursor.is-down .cursor-ring { --s: .75; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(243, 241, 238, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), height .4s var(--ease), border-color .4s, background-color .4s;
}
.nav.is-scrolled .brand-logo { height: 32px; }
.nav.is-scrolled { height: 64px; border-bottom-color: var(--frost); background: rgba(243, 241, 238, .88); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; display: block; transition: transform .6s var(--ease), opacity .3s; }
.brand:hover .brand-logo { transform: translateX(3px); }
.brand-logo-sm { height: 32px; }
.brand-mark { width: 28px; height: 28px; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: translateX(3px) rotate(-6deg); }
.brand-word { font-size: 20px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.brand-word em { color: var(--red); font-weight: 300; }

.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 8px 12px; font-size: 14px; font-weight: 400; color: var(--ink); transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; gap: 8px; }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--red);
  transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .12s linear;
}

.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; margin-right: -8px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger.is-open span:first-child { top: 22px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--canvas);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 96px var(--gutter) 48px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.mm-link {
  display: block; font-size: clamp(32px, 9vw, 48px); letter-spacing: -.03em; line-height: 1.1;
  padding: 14px 0; border-top: 1px solid var(--frost);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu nav .mm-link:last-child { border-bottom: 1px solid var(--frost); }
.mobile-menu.is-open .mm-link { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * 60ms); }
.mm-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 4px;
  font-size: 14px; font-weight: 400; letter-spacing: -.01em; line-height: 1; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .35s, border-color .35s, background-color .35s, transform .5s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn .arrow { display: inline-block; font-size: 18px; line-height: 0; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 0; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary::before { background: var(--red-hover); transform: translateX(-110%) skewX(-12deg); transition: transform .5s var(--ease-io); }
.btn-primary:hover::before { transform: translateX(0) skewX(0); }

.btn-ghost { background: transparent; color: var(--red); border: 1px solid var(--rose-border); }
.btn-ghost::before { background: var(--rose-wash); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); }
.btn-ghost:hover { border-color: var(--red); }
.btn-ghost:hover::before { transform: scaleY(1); }

.btn-light { background: #fff; color: var(--red); }
.btn-light::before { background: var(--rose-wash); transform: translateX(-110%) skewX(-12deg); transition: transform .5s var(--ease-io); }
.btn-light:hover::before { transform: translateX(0) skewX(0); }

.btn-sm { padding: 11px 16px; }

/* ---------- Révélations au scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-io); }
[data-reveal="line"].is-in { transform: scaleX(1); }
[data-reveal="scale"] { transform: scale(.94) translateY(16px); }
[data-reveal="left"] { transform: translateX(-40px); }

.reveal-group > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal-group.is-in > * { opacity: 1; transform: none; }

.rule { border: 0; height: 1px; background: var(--frost); margin: 0; }

/* Découpage mot à mot */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .16em; margin: -.1em 0 -.16em; }
[data-split] .w > span {
  display: inline-block; transform: translateY(130%) rotate(3deg); transform-origin: left bottom;
  transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0) * 1ms);
}
[data-split].is-in .w > span { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 64px) 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image: linear-gradient(var(--frost) 1px, transparent 1px), linear-gradient(90deg, var(--frost) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 45%, #000 0%, transparent 70%);
  animation: gridmove 28s linear infinite;
}
@keyframes gridmove { to { background-position: 80px 80px; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; width: 100%; }
.hero-copy { display: flex; flex-direction: column; gap: 32px; }
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--steel); }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.hero-visual { position: relative; min-height: 460px; }
.flux { position: absolute; inset: -12% -10%; width: 120%; height: 124%; overflow: visible; pointer-events: none; }
.flux-path {
  fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; opacity: .85;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s 1.3s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.flux-ball { fill: var(--red); }
.flux-halo { fill: var(--red); opacity: .14; }

.ledger {
  position: relative; background: #fff; border: 1px solid var(--frost); border-radius: 4px; padding: 20px 24px 6px;
  will-change: transform;
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px;
  font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--smoke);
}
.ledger-count { color: var(--ink); white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 10px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); position: relative; }
.live i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--red); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.ledger-list { display: flex; flex-direction: column; }
.ledger-item {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "p s" "m s";
  column-gap: 12px; row-gap: 4px; padding: 14px 0; border-top: 1px solid var(--frost);
  max-height: 220px;
  animation: ledgerIn .6s var(--ease); /* entrée pilotée en CSS : ne dépend pas de requestAnimationFrame */
  transition: opacity .5s var(--ease), transform .5s var(--ease), max-height .5s var(--ease), padding .5s var(--ease);
}
@keyframes ledgerIn { from { opacity: 0; transform: translateY(-14px); max-height: 0; padding-top: 0; padding-bottom: 0; } }
.ledger-item.is-out { animation: none; opacity: 0; transform: translateY(10px); max-height: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.ledger-p { grid-area: p; font-size: 16px; }
.ledger-m { grid-area: m; font-size: 13px; color: var(--slate); display: flex; gap: 14px; flex-wrap: wrap; }
.ledger-m b { font-weight: 400; color: var(--ink); }
.score {
  grid-area: s; align-self: center; font-size: 12px; font-weight: 400; padding: 4px 10px; border-radius: 9999px;
  background: var(--rose-wash); color: var(--red); border: 1px solid var(--rose-lilac); white-space: nowrap;
}
.score.b { background: var(--mist); color: var(--steel); border-color: var(--frost); }

.chip { position: absolute; will-change: transform; }
.chip-inner {
  background: #fff; border: 1px solid var(--frost); border-radius: 4px; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 2px; animation: float 6s ease-in-out infinite;
}
.chip-k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--smoke); font-weight: 400; }
.chip-v { font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.chip-a { top: -22px; right: -18px; }
.chip-a .chip-v { color: var(--red); }
.chip-b { bottom: -24px; left: -20px; }
.chip-b .chip-inner { animation-duration: 7s; animation-delay: 1.2s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--frost); border-bottom: 1px solid var(--frost); padding: 18px 0;
  -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 { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; font-size: 14px; font-weight: 400; color: var(--steel); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section .rule { margin-bottom: 64px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head .h2 { margin-top: 24px; }
.section-head .lead { margin-bottom: 8px; }

/* Chiffres */
.stats-section { padding: 80px 0 48px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-left: 1px solid var(--frost); padding-left: 24px; }
.stat-num { font-size: clamp(44px, 5vw, 64px); letter-spacing: -.03em; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.stat-num small { font-size: .38em; color: var(--slate); letter-spacing: -.01em; }
.stat p { margin-top: 16px; font-size: 15px; color: var(--slate); max-width: 24ch; line-height: 1.45; }

/* Manifeste */
.manifesto-section { padding: 48px 0 96px; }
.manifesto { margin-top: 64px; font-size: clamp(28px, 4vw, 52px); line-height: 1.15; letter-spacing: -.025em; max-width: 24ch; }
.manifesto .mw { color: #d2cec7; transition: color .45s var(--ease); }
.manifesto .mw.is-on { color: var(--ink); }
.manifesto .mw.is-on.accent { color: var(--red); }

/* Méthode */
.steps { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.steps-sticky { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; gap: 24px; }
.timeline { position: relative; padding-left: 56px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 1px; background: var(--frost); }
.timeline-fill { position: absolute; left: 12px; top: 0; width: 1px; height: 0; background: var(--red); }
.step { position: relative; padding: 8px 0 72px; opacity: .35; transition: opacity .6s var(--ease); }
.step:last-child { padding-bottom: 8px; }
.step.is-active { opacity: 1; }
.step::before {
  content: ""; position: absolute; left: -49px; top: 14px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--canvas); border: 1px solid var(--frost);
  transition: background-color .4s, border-color .4s, transform .5s var(--ease-back), outline-color .4s;
  outline: 6px solid transparent;
}
.step.is-active::before { background: var(--red); border-color: var(--red); transform: scale(1.2); outline-color: var(--rose-wash); }
.step-num { font-size: 12px; font-weight: 400; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.step h3 { margin-top: 12px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.1; font-weight: 300; max-width: 22ch; }
.step p:not(.step-num) { margin-top: 16px; color: var(--steel); max-width: 50ch; line-height: 1.5; }
.step-tag { display: inline-block; margin-top: 20px; font-size: 12px; font-weight: 400; padding: 5px 12px; border-radius: 9999px; border: 1px solid var(--frost); color: var(--slate); }

/* Cartes de leads */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-wrap { display: flex; }
.card {
  position: relative; flex: 1; background: #fff; border: 1px solid var(--frost); border-radius: 4px;
  padding: 32px; display: flex; flex-direction: column; gap: 16px; min-height: 380px; overflow: hidden;
  transition: transform .25s ease-out, border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(234, 6, 19, .09), transparent 45%);
}
.card:hover { border-color: var(--rose-border); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-num { font-size: 12px; font-weight: 400; letter-spacing: .08em; color: var(--smoke); display: flex; justify-content: space-between; align-items: center; }
.card-num i { width: 28px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.card:hover .card-num i { transform: scaleX(1); }
.card h3 { font-size: 30px; letter-spacing: -.02em; line-height: 1.08; font-weight: 300; }
.card p:not(.card-num) { color: var(--steel); line-height: 1.5; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 400; padding: 4px 10px; border-radius: 9999px; background: var(--mist); border: 1px solid var(--frost); color: var(--steel); transition: background-color .3s, color .3s, border-color .3s; }
.card:hover .tag { background: var(--rose-wash); border-color: var(--rose-lilac); color: var(--red); }
.card .link { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.card-link .link { opacity: 1; transform: none; }
.card-link h3 { font-size: 26px; }
.card:hover .link { opacity: 1; transform: none; }

/* Luxembourg — récit sticky */
.lux { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.lux-left { position: sticky; top: 120px; align-self: start; }
.lux-left .h2 { margin-top: 24px; }
.lux-left .lead { margin-top: 24px; }
.lux-nav { margin-top: 40px; }
.lux-nav li { border-top: 1px solid var(--frost); }
.lux-nav li:last-child { border-bottom: 1px solid var(--frost); }
.lux-nav button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 14px 0; font-size: 18px; text-align: left; color: var(--smoke); transition: color .4s; }
.lux-nav .n { font-size: 12px; font-weight: 400; letter-spacing: .08em; width: 24px; }
.lux-nav .bar { width: 0; height: 1px; background: var(--red); transition: width .6s var(--ease); }
.lux-nav li.is-active button, .lux-nav button:hover { color: var(--ink); }
.lux-nav li.is-active .bar { width: 32px; }
.lux-items { display: flex; flex-direction: column; }
.lux-item {
  min-height: 70vh; display: grid; grid-template-columns: 120px 1fr; gap: 40px; align-items: center;
  border-top: 1px solid var(--frost); padding: 48px 0; opacity: .3; transition: opacity .6s var(--ease);
}
.lux-item:first-child { border-top: 0; }
.lux-item.is-active { opacity: 1; }
.lux-icon { width: 120px; height: 120px; overflow: visible; }
.lux-icon * {
  fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease);
}
.lux-icon *:nth-child(2) { transition-delay: .15s; }
.lux-icon *:nth-child(3) { transition-delay: .3s; }
.lux-icon *:nth-child(4) { transition-delay: .45s; }
.lux-icon *:nth-child(5) { transition-delay: .6s; }
.lux-icon *:nth-child(6) { transition-delay: .75s; }
.lux-item.is-active .lux-icon * { stroke-dashoffset: 0; }
.lux-item h3 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.02em; line-height: 1.08; font-weight: 300; }
.lux-item p { margin-top: 16px; color: var(--steel); line-height: 1.5; max-width: 52ch; }

/* Fiche lead */
.fiche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.fiche-grid .h2 { margin-top: 24px; }
.fiche-grid .lead { margin-top: 24px; }
.checklist { margin-top: 40px; border-top: 1px solid var(--frost); }
.checklist li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--frost); }
.checklist b { font-weight: 400; display: block; }
.checklist span:not(.check) { font-size: 14px; color: var(--slate); }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--rose-border); display: grid; place-items: center; margin-top: 1px; background: #fff; }
.check svg { width: 12px; height: 12px; overflow: visible; }
.check path {
  fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + .35s);
}
.reveal-group.is-in .check path { stroke-dashoffset: 0; }
.fiche-col { display: flex; }
.fiche { position: sticky; top: 120px; align-self: start; width: 100%; background: #fff; border: 1px solid var(--frost); border-radius: 4px; padding: 28px 32px; }
.fiche-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--frost); }
.fiche-id { font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--smoke); }
.fiche-rows { display: flex; flex-direction: column; }
.fiche-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--frost); font-size: 15px; }
.fiche-k { color: var(--slate); }
.fiche-val { color: var(--ink); min-height: 1.4em; font-weight: 400; }
.fiche-val.is-typing::after { content: ""; display: inline-block; width: 1px; height: 1em; background: var(--red); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fiche-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; font-size: 13px; color: var(--slate); }
.fiche-stamp {
  display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--rose-border); padding: 6px 12px; border-radius: 4px;
  transform: rotate(-4deg) scale(0); transition: transform .6s var(--ease-back);
}
.fiche.is-stamped .fiche-stamp { transform: rotate(-4deg) scale(1); }

/* Tarifs */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-wrap { display: flex; }
.plan {
  position: relative; flex: 1; background: #fff; border: 1px solid var(--frost); border-radius: 4px; padding: 40px 32px;
  display: flex; flex-direction: column; gap: 24px;
  transition: transform .5s var(--ease), border-color .35s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--rose-border); }
.plan.is-featured { border-color: var(--red); }
.plan.is-featured::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--red); border-radius: 4px 4px 0 0; }
.plan-badge { position: absolute; top: -12px; left: 32px; font-size: 12px; font-weight: 400; background: var(--red); color: #fff; padding: 4px 12px; border-radius: 9999px; }
.plan-name { font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--smoke); }
.plan-price { display: flex; align-items: baseline; gap: 8px; font-size: clamp(44px, 4.5vw, 60px); letter-spacing: -.03em; line-height: 1; }
.plan-price small { font-size: 15px; color: var(--slate); letter-spacing: -.01em; }
.plan-desc { color: var(--steel); line-height: 1.5; min-height: 3em; }
.plan ul { border-top: 1px solid var(--frost); flex: 1; }
.plan li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--frost); font-size: 14px; color: var(--steel); line-height: 1.4; }
.plan li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: var(--red); }
.plan .btn { width: 100%; }

/* Témoignages */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote-wrap { display: flex; }
.quote {
  position: relative; flex: 1; padding: 44px 32px 32px; border: 1px solid var(--frost); border-radius: 4px; background: var(--mist);
  display: flex; flex-direction: column; gap: 24px; overflow: hidden;
  transition: border-color .35s, background-color .35s, transform .5s var(--ease);
}
.quote::before {
  content: "\201C"; position: absolute; top: 6px; left: 24px; font-size: 110px; line-height: 1; color: var(--rose-lilac); font-weight: 300;
  transition: color .4s, transform .6s var(--ease);
}
.quote:hover { border-color: var(--rose-border); background: #fff; transform: translateY(-4px); }
.quote:hover::before { color: var(--red); transform: translateY(-6px); }
.quote p { font-size: 20px; line-height: 1.35; letter-spacing: -.015em; position: relative; flex: 1; }
.quote figcaption { font-size: 13px; color: var(--slate); position: relative; }
.quote figcaption b { font-weight: 400; color: var(--ink); display: block; }

/* FAQ */
.faq { max-width: 880px; }
.faq-item { border-top: 1px solid var(--frost); }
.faq-item:last-child { border-bottom: 1px solid var(--frost); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left;
  font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.015em; line-height: 1.2; transition: color .3s;
}
.faq-q:hover { color: var(--red); }
.plus { flex: none; width: 28px; height: 28px; position: relative; border-radius: 50%; border: 1px solid var(--frost); transition: border-color .3s, background-color .3s, transform .5s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--ease); }
.faq-item.is-open .faq-q { color: var(--red); }
.faq-item.is-open .plus { border-color: var(--red); background: var(--rose-wash); transform: rotate(180deg); }
.faq-item.is-open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 52px 28px 0; color: var(--steel); line-height: 1.55; max-width: 66ch; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; transition-delay: .15s; }

/* Contact */
.cta {
  position: relative; background: var(--red); color: #fff; border-radius: 4px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; padding: 80px 64px;
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 64px 64px; animation: gridmove64 22s linear infinite;
}
@keyframes gridmove64 { to { background-position: 64px 64px; } }
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(640px circle at var(--mx, 30%) var(--my, 30%), rgba(255, 255, 255, .16), transparent 45%);
}
.cta:hover::after { opacity: 1; }
.cta > * { position: relative; z-index: 1; }
.cta .eyebrow { color: rgba(255, 255, 255, .72); }
.cta .eyebrow::before { background: #fff; }
.cta .h2 { color: #fff; margin-top: 24px; }
.cta .lead { color: rgba(255, 255, 255, .82); margin-top: 24px; }
.cta-meta { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .78); }
.cta-meta span { display: flex; align-items: center; gap: 8px; }
.cta-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }

.form {
  display: flex; flex-direction: column; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .28); border-radius: 4px; padding: 32px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.form-fields { display: flex; flex-direction: column; gap: 10px; }
.field { position: relative; padding-top: 18px; }
.field input, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .38); border-radius: 0;
  color: #fff; font: inherit; font-size: 16px; padding: 8px 0 12px; outline: none; appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.field select option { color: var(--ink); background: #fff; }
.field label {
  position: absolute; left: 0; top: 26px; font-size: 16px; color: rgba(255, 255, 255, .68); pointer-events: none;
  transition: top .35s var(--ease), font-size .35s var(--ease), color .3s, letter-spacing .35s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 0; font-size: 11px; color: #fff; letter-spacing: .08em; text-transform: uppercase; }
.field-select label { position: static; display: block; font-size: 11px; color: #fff; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.form .btn { margin-top: 16px; align-self: flex-start; }
.form-note { font-size: 12px; color: rgba(255, 255, 255, .62); line-height: 1.5; margin-top: 8px; }
.form-success { display: none; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0; }
.form.is-sent .form-fields { display: none; }
.form.is-sent .form-success { display: flex; }
.form-success svg { width: 56px; height: 56px; overflow: visible; }
.form-success circle, .form-success path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 1s var(--ease) forwards; }
.form-success path { animation-delay: .5s; }
.form-success .h3 { color: #fff; }
.form-success p:not(.h3) { color: rgba(255, 255, 255, .82); }
@keyframes drawIn { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--mist); border-top: 1px solid var(--frost); padding: 80px 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; }
.footer-brand p { margin: 20px 0 16px; color: var(--slate); font-size: 14px; max-width: 34ch; line-height: 1.5; }
.footer h4 { font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--smoke); margin-bottom: 16px; }
.footer li { margin: 10px 0; }
.footer li a { font-size: 14px; color: var(--steel); position: relative; transition: color .3s; }
.footer li a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.footer li a:hover { color: var(--red); }
.footer li a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-legal { margin-top: 64px; padding: 24px 0; border-top: 1px solid var(--frost); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--smoke); line-height: 1.5; }
.footer-legal p:last-child { max-width: 62ch; }
.footer-giant {
  font-size: clamp(96px, 20vw, 300px); font-weight: 300; letter-spacing: -.05em; line-height: .78; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px #d3cfc7; user-select: none; padding: 24px var(--gutter) 0; margin-bottom: -.1em;
  transform: translateX(var(--gx, 0)); will-change: transform;
}
.footer-giant em { -webkit-text-stroke-color: var(--rose-border); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .pricing, .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 48px; }
}
@media (max-width: 960px) {
  .nav-links, .nav-actions { display: none; }
  .burger { display: block; }
  .hero { padding-top: calc(var(--nav-h) + 32px); min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 0; margin: 20px 0 16px; }
  .steps, .lux, .fiche-grid, .cta, .section-head { grid-template-columns: 1fr; }
  .steps { gap: 48px; }
  .steps-sticky, .lux-left, .fiche { position: static; }
  .lux { gap: 40px; }
  .lux-nav { display: none; }
  .lux-item { min-height: 0; grid-template-columns: 80px 1fr; gap: 24px; opacity: 1; padding: 40px 0; }
  .lux-icon { width: 80px; height: 80px; }
  .cta { padding: 48px 24px; gap: 40px; }
  .section { padding: 72px 0; }
  .section .rule { margin-bottom: 48px; }
  .section-head { gap: 16px; margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .cards, .stats { grid-template-columns: 1fr; }
  .stats { row-gap: 32px; }
  .card { min-height: 0; }
  .hero-visual { margin: 48px 0 52px; }
  .chip-a { right: 8px; top: -44px; }
  .chip-b { left: 8px; bottom: -52px; }
  .ledger-head { font-size: 11px; letter-spacing: .04em; }
  .footer-grid { grid-template-columns: 1fr; }
  .lux-item { grid-template-columns: 1fr; gap: 16px; }
  .lux-icon { width: 64px; height: 64px; }
  .fiche { padding: 24px 20px; }
  .fiche-row { grid-template-columns: 1fr; gap: 2px; }
  .cta-meta { flex-direction: column; gap: 10px; }
  .form { padding: 24px 20px; }
  .ledger { padding: 16px 18px 4px; }
  .ledger-m { gap: 10px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .reveal-group > *, [data-split] .w > span { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .loader { display: none; }
}
