/* ==========================================================================
   CMC 6 : système visuel
   Nuit violette + incandescence magenta (stratégie Committed).
   Display : Bricolage Grotesque. Body : Hanken Grotesk.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Couleur (fallback hex, puis OKLCH pour les navigateurs modernes) */
  --night: #171022;
  --night: oklch(17% 0.025 305);
  --night-deep: #100b18;
  --night-deep: oklch(13% 0.02 300);
  --night-raised: #221a30;
  --night-raised: oklch(22% 0.03 310);
  --ember: #f61942;
  --ember: oklch(60% 0.235 18);
  --magenta: #b81e8c;
  --magenta: oklch(52% 0.26 330);
  --violet: #4a2d6e;
  --violet: oklch(35% 0.12 295);

  /* Palette authentique des formes du fond (relevée sur cmc6.fr) */
  --shape-crimson: #f61942;
  --shape-periwinkle: #7979c9;
  --shape-lilac: #b5a3d6;
  --shape-sky: #7fb5e5;
  --shape-navy: #24245a;
  --cream: #f7f2f7;
  --cream: oklch(96% 0.008 320);
  --lavender: #c3b4cd;
  --lavender: oklch(78% 0.04 305);
  --lavender-dim: #93829f;
  --lavender-dim: oklch(62% 0.05 305);

  /* Variantes alpha */
  --lavender-08: rgba(195, 180, 205, 0.08);
  --lavender-08: oklch(78% 0.04 305 / 0.08);
  --lavender-15: rgba(195, 180, 205, 0.15);
  --lavender-15: oklch(78% 0.04 305 / 0.15);
  --lavender-30: rgba(195, 180, 205, 0.3);
  --lavender-30: oklch(78% 0.04 305 / 0.3);
  --ember-glow: rgba(232, 39, 95, 0.35);
  --ember-glow: oklch(58% 0.24 0 / 0.35);

  /* Typographie */
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --text-hero: clamp(2.5rem, 6.5vw + 0.5rem, 5.25rem);
  --text-h2: clamp(2rem, 3.2vw + 0.5rem, 3.25rem);
  --text-h3: 1.375rem;
  --text-lead: 1.1875rem;
  --text-body: 1.0625rem;
  --text-label: 0.8125rem;

  /* Espacement (base 4pt) */
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --section: clamp(5rem, 12vh, 9rem);

  /* Divers */
  --radius: 20px;
  --radius-pill: 999px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Grain : bruit SVG inline */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  /* Fond sombre sur la RACINE (pas seulement body) : sans ça, flash BLANC pendant
     la transition de page, car la View Transition snapshote le fond de l'élément
     racine, qui par défaut est blanc. */
  background: var(--night-deep);
  /* Filet de securite : body a deja overflow-x:clip, mais un debordement peut
     rester scrollable via html si body ne couvre pas toute la hauteur (audit
     QA 2026-07-02, cf. founder-portrait). clip plutot que hidden, meme raison
     que sur body (compat position:sticky descendant). */
  overflow-x: clip;
}

body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  letter-spacing: 0.01em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  /* clip (pas hidden) : empeche le scroll horizontal SANS creer de conteneur de
     scroll, ce qui casserait un futur position:sticky descendant. */
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.08;
  text-wrap: balance;
  letter-spacing: -0.025em;
  font-weight: 800;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--ember);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Lien d'évitement ---------- */
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  padding: 0.75rem 1.5rem;
  background: var(--night-raised);
  color: var(--cream);
  border: 1px solid var(--lavender-30);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Utilitaires ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: var(--s-4);
}

.lead {
  font-size: var(--text-lead);
  color: var(--lavender);
  max-width: 56ch;
}

.section {
  padding-block: var(--section);
  position: relative;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--cream);
  color: var(--night);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--ember-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border-color: var(--lavender-30);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--lavender);
  background: var(--lavender-08);
}

.btn-note {
  display: block;
  margin-top: var(--s-3);
  font-size: 0.875rem;
  color: var(--lavender-dim);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  width: min(100%, 880px);
  padding: 0.6rem 0.6rem 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--night-raised) 82%, transparent);
  border: 1px solid var(--lavender-15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled .nav-pill {
  background: color-mix(in oklab, var(--night-raised) 95%, transparent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--cream);
  margin-right: auto;
  white-space: nowrap;
}

.nav-logo em {
  font-style: normal;
  color: var(--ember);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--lavender);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.nav-links a:hover {
  color: var(--cream);
  background: var(--lavender-08);
}

.nav-links a[aria-current="page"] {
  color: var(--cream);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 0.65rem 1.3rem;
  font-size: 0.9375rem;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(8rem, 18vh, 11rem) clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}

/* Voile de lisibilité LOCAL : un halo sombre derrière la colonne de
   texte seulement. Le reste du hero montre l'animation presque brute,
   comme l'overlay léger (~21%) du site d'origine. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      62% 80% at 22% 52%,
      rgba(13, 9, 20, 0.66) 0%,
      rgba(13, 9, 20, 0.34) 48%,
      transparent 72%
    ),
    linear-gradient(180deg, transparent 62%, rgba(13, 9, 20, 0.5) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--noise);
  opacity: 0.04;
  pointer-events: none;
}

/* Mobile : le texte du hero est pleine largeur (plus en colonne a gauche), donc
   le voile doit couvrir toute la zone de texte (haut/centre) sinon les lignes
   passent sur les stries claires du metal. */
@media (max-width: 760px) {
  .hero::before {
    background:
      radial-gradient(125% 62% at 50% 30%, rgba(13, 9, 20, 0.74) 0%, rgba(13, 9, 20, 0.44) 46%, transparent 80%),
      linear-gradient(180deg, rgba(13, 9, 20, 0.5) 0%, transparent 38%, rgba(13, 9, 20, 0.55) 100%);
  }
}

/* ---------- Fond animé : champ de formes floutées (technique du site
   d'origine : pilules colorées + blur 120px + grande ellipse en rotation
   continue, ~25 s par tour, échelle 1.22) ---------- */
:root {
  --shape-blur: 120px;
}

/* Structure du site d'origine : flou porté par chaque groupe, élément
   animé composité en 3D à l'intérieur (translate3d, comme Webflow IX2). */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(var(--shape-blur));
  pointer-events: none;
}

.hs {
  position: absolute;
  border-radius: 999vw;
}

/* Groupe A : l'ellipse motrice + satellites clairs.
   Chorégraphie relevée image par image sur le site d'origine (26 s/cycle) :
   - rotation 360° linéaire (élément interne)
   - dérive diagonale aller-retour vers le bas-droite, ~74vw, easeInOutCubic
   - respiration d'échelle 1.3 → 1.0 → 1.3, synchronisée sur la dérive */
.hs-rotor {
  width: 96vw;
  height: 140vw;
  left: -46vw;
  top: -40vw;
  border-radius: 0;
  /* État de repos (sans JS) : une phase vivante du cycle.
     Le mouvement est piloté en JS (script.js), comme le fait le site
     d'origine via Webflow IX2 : insensible aux réglages qui figent
     les animations CSS. */
  transform: translate3d(18vw, 9.5vw, 0) scale3d(1.2, 1.2, 1);
  will-change: transform;
}

.hs-rotor-core {
  width: 100%;
  height: 100%;
  border-radius: 999vw;
  background: linear-gradient(180deg, var(--shape-periwinkle), var(--shape-crimson));
  transform: rotate(340deg) translateZ(0);
  will-change: transform;
}

.hs-lilac {
  width: 43vw;
  height: 40vw;
  left: 15vw;
  top: -20vw;
  background: var(--shape-lilac);
}

.hs-sky {
  width: 40vw;
  height: 40vw;
  left: 30vw;
  top: -25vw;
  background: var(--shape-sky);
}

/* Groupe B : la nappe statique côté droit */
.hs-crimson-tall {
  width: 47vw;
  height: 119vw;
  left: 40vw;
  top: -17vw;
  background: var(--shape-crimson);
}

.hs-stripes {
  width: 30vw;
  height: 119vw;
  left: 69vw;
  top: -5vw;
  background: linear-gradient(296deg, var(--shape-navy), var(--shape-crimson));
}

.hs-crimson-wide {
  width: 65vw;
  height: 40vw;
  left: 0;
  top: -11vw;
  background: var(--shape-crimson);
}

.hs-peri {
  width: 30vw;
  height: 30vw;
  left: 35vw;
  top: -22vw;
  background: var(--shape-periwinkle);
}

.hs-sky-sm {
  width: 20vw;
  height: 13vw;
  left: 52vw;
  top: -4vw;
  background: var(--shape-sky);
}

.hs-navy {
  width: 66vw;
  height: 60vw;
  left: 59vw;
  top: -14vw;
  background: var(--shape-navy);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: var(--text-hero);
  margin-bottom: var(--s-6);
  margin-left: -0.04em;
}

.hero .lead {
  margin-bottom: var(--s-8);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-8);
}

.hero-chips li {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lavender);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--lavender-15);
  border-radius: var(--radius-pill);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

.hero-numeral {
  position: absolute;
  z-index: 1;
  right: clamp(-2rem, 2vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.hero-numeral strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(13rem, 26vw, 24rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--lavender-30);
}

.hero-numeral span {
  display: block;
  margin-top: var(--s-3);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--lavender);
}

/* ---------- Bande de preuve ---------- */
.proof {
  padding-block: var(--s-12);
  border-block: 1px solid var(--lavender-08);
  background: var(--night-deep);
}

.proof .eyebrow {
  text-align: center;
  margin-bottom: var(--s-8);
}

.marquee {
  position: relative;
  overflow: hidden;
}

/* Fondus latéraux en overlay : évite le combo mask + animation
   (tuiles blanches non peintes dans Chromium) */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(3rem, 8vw, 8rem);
  z-index: 1;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--night-deep), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--night-deep), transparent);
}

.marquee-track {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  will-change: transform;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--lavender-dim);
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}

.marquee-track li:hover {
  color: var(--cream);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.proof-partners {
  margin-top: var(--s-8);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--lavender-dim);
}

.proof-partners strong {
  color: var(--lavender);
  font-weight: 600;
}

/* ---------- Bascule (statement) ---------- */
.statement .container {
  max-width: 1080px;
}

.statement p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw + 0.25rem, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.statement .line-2 {
  display: block;
  margin-top: var(--s-4);
  padding-left: clamp(0rem, 8vw, 7rem);
}

.statement .line-2 b {
  color: var(--ember);
  font-weight: inherit;
}

.statement .statement-note {
  margin-top: var(--s-8);
  font-family: var(--font-body);
  font-size: var(--text-lead);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--lavender);
  max-width: 52ch;
}

/* ---------- Résultats ---------- */
.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-12);
}

.results-head h2 {
  font-size: var(--text-h2);
  max-width: 16ch;
}

.results-head p {
  color: var(--lavender);
  max-width: 38ch;
}

.result {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-6);
  align-items: center;
  padding-block: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--lavender-15);
}

.result:last-of-type {
  border-bottom: 1px solid var(--lavender-15);
}

.result-metric {
  grid-column: 1 / 6;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.result-metric sup {
  font-size: 0.45em;
  vertical-align: 0.7em;
  letter-spacing: 0;
}

.result-body {
  grid-column: 6 / 13;
}

.result:nth-of-type(even) .result-metric {
  grid-column: 8 / 13;
  order: 2;
  text-align: right;
}

.result:nth-of-type(even) .result-body {
  grid-column: 1 / 8;
  order: 1;
}

.result-body h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.result-body p {
  color: var(--lavender);
  max-width: 48ch;
}

.result-source {
  display: block;
  margin-top: var(--s-3);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender-dim);
}

.results-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.results-foot small {
  color: var(--lavender-dim);
  font-size: 0.875rem;
  max-width: 46ch;
}

.link-arrow {
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--lavender-30);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.link-arrow:hover {
  color: var(--ember);
  border-color: var(--ember);
}

/* ---------- Carte glass : version de base (pages internes) ----------
   Sur la home, styles-fx.css surcharge cette regle (tilt 3D + halo au pointeur).
   Ici on garantit qu'une .glass-card hors home (ex. services d'offres.html) a un
   vrai fond, du padding et un feedback de survol coherent. Le lift passe par
   --lift, comme sur la home, pour ne jamais ecraser le transform de styles-fx. */
.glass-card {
  position: relative;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: color-mix(in oklab, var(--night-raised) 92%, var(--night-deep));
  box-shadow: inset 0 0 0 1px var(--lavender-15), 0 18px 50px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.glass-card:hover {
  box-shadow: inset 0 0 0 1px var(--lavender-30), 0 30px 70px -28px rgba(0, 0, 0, 0.9);
}

/* Grille des cartes (engagements home, services offres) */
.pledges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-6);
}

/* ---------- Lifts au survol (mouvement) ----------
   Centralises et gates : `hover: hover` evite le hover collant apres un tap sur
   tactile ; `no-preference` respecte prefers-reduced-motion. La specificite des
   selecteurs .reveal.*.in:hover (0,4,0) bat la regle de reveal qui pose
   `transform: none` sur les elements reveles (.reveal.in / [data-fx].is-in). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-ghost:hover { transform: translateY(-2px); }
  .btn-ghost:active { transform: translateY(0); }
  .glass-card:hover { transform: translateY(-4px); }
  .reveal.glass-card.in:hover { transform: translateY(-4px); }
  .reveal.formula.in:hover { transform: translateY(-4px); }
  .formula:hover { transform: translateY(-4px); }
  .project-card:hover .project-card-media img { transform: scale(1.04); }
}

/* ---------- Méthode ---------- */
.method {
  background: var(--night-deep);
  overflow: hidden;
}

.method-watermark {
  position: absolute;
  right: -2%;
  bottom: -6%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16rem, 32vw, 30rem);
  line-height: 0.8;
  color: var(--lavender);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.method .container {
  position: relative;
  z-index: 1;
}

.method-head {
  max-width: 620px;
  margin-bottom: var(--s-16);
}

.method-head h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--s-4);
}

.method-head p {
  color: var(--lavender);
}

.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
  padding-top: var(--s-8);
}

.phases::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), var(--magenta), var(--lavender-30));
}

.phase {
  position: relative;
}

.phase::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--s-8) - 5px);
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ember);
}

.phase-days {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ember);
  margin-bottom: var(--s-3);
}

.phase h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: var(--s-3);
}

.phase p {
  color: var(--lavender);
  font-size: 1rem;
}

.method-foot {
  margin-top: var(--s-16);
}

/* ---------- Fondateur ---------- */
.founder .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.founder blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw + 0.25rem, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.founder blockquote b {
  color: var(--ember);
  font-weight: inherit;
}

.founder figcaption {
  margin-top: var(--s-6);
  color: var(--lavender);
}

.founder figcaption strong {
  display: block;
  color: var(--cream);
  font-weight: 700;
}

.founder-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 75% 15%, var(--ember) 0%, transparent 65%),
    radial-gradient(70% 60% at 15% 90%, var(--violet) 0%, transparent 70%),
    var(--night-raised);
  display: flex;
  align-items: flex-end;
  padding: var(--s-6);
  /* audit QA 2026-07-02 : en grid item stretch (.founder-grid), aspect-ratio
     calcule une largeur preferee depuis la hauteur etiree par la rangee, qui
     peut depasser la piste (min-width:auto par defaut sur un item de grille
     l'y autorise). min-width:0 laisse la piste reprendre la main. */
  min-width: 0;
}

.founder-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
}

.founder-portrait .monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 9vw, 8rem);
  letter-spacing: -0.04em;
  color: var(--cream);
  opacity: 0.92;
}

.founder-portrait figcaption,
.founder-portrait .portrait-label {
  position: relative;
  z-index: 1;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

/* ---------- Engagements ---------- */
.pledges {
  background: var(--night-deep);
}

.pledges h2 {
  font-size: var(--text-h2);
  max-width: 18ch;
  margin-bottom: var(--s-12);
}

.pledges ol {
  list-style: none;
  padding: 0;
  counter-reset: pledge;
  max-width: 880px;
}

.pledges li {
  counter-increment: pledge;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s-6);
  align-items: baseline;
  padding-block: var(--s-6);
  border-top: 1px solid var(--lavender-15);
}

.pledges li:last-child {
  border-bottom: 1px solid var(--lavender-15);
}

.pledges li::before {
  content: "0" counter(pledge);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--lavender-30);
}

.pledges li strong {
  display: block;
  font-size: var(--text-h3);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
}

.pledges li p {
  color: var(--lavender);
  font-size: 1rem;
  max-width: 52ch;
}

/* ---------- FAQ ---------- */
.faq .container {
  max-width: 880px;
}

.faq h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--s-12);
}

.faq details {
  border-top: 1px solid var(--lavender-15);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--lavender-15);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-6);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  transition: color 0.25s var(--ease-out);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--ember);
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--lavender);
  border-bottom: 2px solid var(--lavender);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
  margin-right: 4px;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq details p {
  padding-bottom: var(--s-6);
  color: var(--lavender);
  max-width: 65ch;
}

/* ---------- RDV ---------- */
.rdv {
  position: relative;
  overflow: hidden;
}

.rdv::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 60% at 15% 0%, var(--shape-crimson) 0%, transparent 60%),
    radial-gradient(45% 50% at 60% 10%, var(--shape-periwinkle) 0%, transparent 55%),
    radial-gradient(50% 55% at 90% 100%, var(--shape-navy) 0%, transparent 65%);
  opacity: 0.4;
}

.rdv::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.035;
  pointer-events: none;
}

.rdv .container {
  position: relative;
  z-index: 1;
}

.rdv-head {
  max-width: 640px;
  margin-bottom: var(--s-12);
}

.rdv-head h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--s-4);
}

.rdv-head p {
  color: var(--lavender);
  font-size: var(--text-lead);
}

.cal-frame {
  background: var(--night-raised);
  border: 1px solid var(--lavender-15);
  border-radius: var(--radius);
  min-height: 640px;
  overflow: hidden;
  display: grid;
}

.cal-frame > * {
  grid-area: 1 / 1;
}

.cal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  color: var(--lavender-dim);
  font-size: 0.9375rem;
}

.cal-loading .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
    transform: scale(0.8);
  }
}

.rdv-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-6);
  color: var(--lavender-dim);
  font-size: 0.9375rem;
}

.rdv-alt a {
  color: var(--lavender);
  font-weight: 600;
}

.rdv-alt a:hover {
  color: var(--cream);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--night-deep);
  border-top: 1px solid var(--lavender-08);
  padding-block: var(--s-16) var(--s-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: var(--s-16);
}

.footer-brand .nav-logo {
  font-size: 1.5rem;
}

.footer-brand p {
  margin-top: var(--s-4);
  color: var(--lavender-dim);
  font-size: 0.9375rem;
  max-width: 32ch;
}

.footer h4 {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender-dim);
  margin-bottom: var(--s-4);
}

.footer-col li {
  margin-bottom: var(--s-3);
}

.footer-col a {
  text-decoration: none;
  color: var(--lavender);
  font-size: 0.9375rem;
  transition: color 0.25s var(--ease-out);
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-tool {
  border: 1px solid var(--lavender-15);
  border-radius: var(--radius);
  padding: var(--s-6);
}

.footer-tool strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.footer-tool p {
  color: var(--lavender-dim);
  font-size: 0.875rem;
  margin-bottom: var(--s-4);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-8);
  border-top: 1px solid var(--lavender-08);
  font-size: 0.875rem;
  color: var(--lavender-dim);
}

.footer-legal {
  display: flex;
  gap: var(--s-6);
}

.footer-legal a {
  color: var(--lavender-dim);
}

.footer-legal a:hover {
  color: var(--cream);
}

/* ---------- Motion : progressive enhancement ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .cal-loading .dot {
    animation: none;
  }

  .btn,
  .nav-pill {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-numeral {
    right: -8%;
    opacity: 0.5;
  }

  .founder .container {
    grid-template-columns: 1fr;
  }

  /* audit QA 2026-07-02 : .founder .container ne matche rien dans le DOM actuel
     (la section fondateur est .section > .container > .results-grid, pas
     .founder .container) ; regle orpheline conservee telle quelle (hors
     perimetre), fix reel cible la vraie classe posee sur l'element. */
  .founder-grid {
    grid-template-columns: 1fr !important;
  }

  .founder-portrait {
    max-width: 380px;
    aspect-ratio: 16 / 10;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  /* Menu mobile anime : les deux blocs (liens, CTA) montent en fondu a
     l'ouverture, redescendent a la fermeture. `display ... allow-discrete` +
     @starting-style permettent d'animer malgre display:none <-> flex (le slide
     est porte par les CONTENEURS, qui togglent display : c'est le seul element
     a qui @starting-style s'applique de facon fiable. Degrade en snap si non
     supporte). Le CTA est legerement decale pour un mini-stagger entre blocs. */
  .nav-links,
  .nav-cta {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.32s var(--ease-out), transform 0.44s var(--ease-spring),
      display 0.44s allow-discrete;
  }

  .nav-burger {
    display: flex;
  }

  .nav-pill {
    flex-wrap: wrap;
    padding: 0.6rem 0.6rem 0.6rem 1.2rem;
  }

  .nav-pill.open .nav-links,
  .nav-pill.open .nav-cta {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-pill.open .nav-cta { transition-delay: 0.06s; }
  @starting-style {
    .nav-pill.open .nav-links,
    .nav-pill.open .nav-cta { opacity: 0; transform: translateY(12px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .nav-links,
    .nav-cta { transition: none; transform: none; }
  }

  .nav-pill.open .nav-links {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: var(--s-3);
  }

  .nav-pill.open .nav-links a {
    padding: 0.85rem 1rem;
  }

  .nav-pill.open .nav-cta {
    flex-basis: 100%;
    padding: 0 0.4rem 0.6rem;
  }

  .nav-pill.open .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-pill.open .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-pill.open .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-pill.open .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    display: block;
  }

  :root {
    --shape-blur: 80px;
  }

  .hero-numeral {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: var(--s-12);
    opacity: 0.65;
    text-align: left;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-numeral strong {
    font-size: clamp(8rem, 36vw, 13rem);
  }

  .result,
  .result:nth-of-type(even) {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .result-metric,
  .result:nth-of-type(even) .result-metric {
    grid-column: 1;
    order: 0;
    text-align: left;
  }

  .result-body,
  .result:nth-of-type(even) .result-body {
    grid-column: 1;
    order: 1;
  }

  .phases {
    grid-template-columns: 1fr;
    gap: var(--s-8);
    padding-top: 0;
    padding-left: var(--s-6);
  }

  .phases::before {
    width: 1px;
    height: 100%;
    right: auto;
    background: linear-gradient(180deg, var(--ember), var(--magenta), var(--lavender-30));
  }

  .phase::before {
    top: 6px;
    left: calc(-1 * var(--s-6) - 5px);
  }

  .pledges li {
    grid-template-columns: 64px 1fr;
    gap: var(--s-4);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cal-frame {
    min-height: 560px;
  }
}

/* ==========================================================================
   Pages internes
   ========================================================================== */

/* ---------- Hero compact ---------- */
.hero-compact {
  min-height: auto;
  padding-block: clamp(9rem, 20vh, 12rem) clamp(3rem, 8vh, 5rem);
}

.hero-compact .hero-content {
  max-width: 720px;
}

.hero-compact h1 {
  font-size: clamp(2.25rem, 4.5vw + 0.5rem, 4rem);
}

/* ---------- Réalisations : projets vedettes ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.project-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--night-raised);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.project-card-tag {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  z-index: 1;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.project-card-body h2 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  margin-bottom: var(--s-3);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.project-meta li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lavender);
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--lavender-15);
  border-radius: var(--radius-pill);
}

.project-card-body p {
  color: var(--lavender);
  margin-bottom: var(--s-4);
  flex: 1;
}

.project-card-body .link-arrow {
  align-self: flex-start;
}

/* ---------- Réalisations : témoignages ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.testimonial-stars {
  color: var(--ember);
  letter-spacing: 0.15em;
  margin-bottom: var(--s-3);
}

.testimonial-card p {
  color: var(--cream);
  margin-bottom: var(--s-4);
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lavender);
}

.testimonial-author small {
  font-weight: 500;
  color: var(--lavender-dim);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA avec avatar (bandeau de fin) ---------- */
.cta-avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.6rem 1.5rem 0.6rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--night);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.cta-avatar-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--ember-glow);
}

.cta-avatar-pill:active {
  transform: translateY(0);
}

.cta-avatar-pill img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cta-avatar-pill span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.cta-avatar-pill strong {
  font-size: 1rem;
  font-weight: 700;
}

.cta-avatar-pill small {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--night);
  opacity: 0.65;
}

/* ---------- Réalisations : autres missions ---------- */
.missions {
  background: var(--night-deep);
}

.missions h2 {
  font-size: var(--text-h2);
  max-width: 20ch;
  margin-bottom: var(--s-4);
}

.missions-intro {
  color: var(--lavender);
  max-width: 56ch;
  margin-bottom: var(--s-12);
}

.mission-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: var(--s-6);
  align-items: baseline;
  padding-block: var(--s-6);
  border-top: 1px solid var(--lavender-15);
}

.mission-row:last-of-type {
  border-bottom: 1px solid var(--lavender-15);
}

.mission-row h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.mission-row p {
  color: var(--lavender);
  font-size: 0.9375rem;
}

.mission-row .mission-year {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--lavender-dim);
}

/* ---------- Méthode : déroulé jour par jour ---------- */
.days {
  max-width: 880px;
  position: relative;
  padding-left: clamp(2.5rem, 6vw, 4rem);
}

.days::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--ember), var(--magenta), var(--lavender-30));
}

.day {
  position: relative;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}

.day::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(2.5rem, 6vw, 4rem) + 3px);
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ember);
}

.day-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ember);
  margin-bottom: var(--s-2);
}

.day h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--s-2);
}

.day p {
  color: var(--lavender);
  max-width: 58ch;
}

.day ul {
  margin-top: var(--s-3);
  color: var(--lavender);
  display: grid;
  gap: var(--s-2);
}

.day ul li {
  padding-left: 1.2em;
  position: relative;
}

.day ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavender-30);
}

/* Encadré attentes client */
.callout {
  border: 1px solid var(--lavender-15);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 880px;
  background: var(--night-raised);
}

.callout h2 {
  font-size: 1.375rem;
  margin-bottom: var(--s-3);
}

.callout p {
  color: var(--lavender);
}

/* ---------- Offres ---------- */
.formulas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.formula {
  border: 1px solid var(--lavender-15);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.formula:hover {
  border-color: var(--lavender-30);
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.85);
}

.formula.featured:hover {
  border-color: var(--ember);
  box-shadow: 0 24px 60px -28px var(--ember-glow);
}

.formula.featured {
  border-color: var(--ember);
  background: var(--night-raised);
  position: relative;
}

.formula .formula-badge {
  position: absolute;
  top: -12px;
  left: clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ember);
  color: var(--cream);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.formula h2 {
  font-size: 1.5rem;
}

.formula .formula-sub {
  color: var(--lavender-dim);
  font-size: 0.9375rem;
  min-height: 2.6em;
}

.formula ul {
  display: grid;
  gap: var(--s-3);
  color: var(--lavender);
  font-size: 0.9375rem;
  flex-grow: 1;
}

.formula ul li {
  padding-left: 1.4em;
  position: relative;
}

.formula ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ember);
}

.formula .btn {
  align-self: flex-start;
}

/* Tableau comparatif */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--lavender-15);
  border-radius: var(--radius);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 640px;
}

.compare th,
.compare td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--lavender-08);
}

.compare thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--night-raised);
}

.compare tbody th {
  font-weight: 600;
  color: var(--lavender);
  width: 34%;
}

.compare td {
  color: var(--cream);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare tbody tr {
  transition: background-color 0.2s var(--ease-out);
}

.compare tbody tr:hover {
  background: var(--lavender-08);
}

.compare .yes {
  color: var(--ember);
  font-weight: 700;
}

.compare .muted {
  color: var(--lavender-dim);
}

/* ---------- Audit gratuit (landing) ---------- */
.audit-points {
  max-width: 880px;
  counter-reset: pt;
}

.audit-points li {
  counter-increment: pt;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--s-6);
  align-items: baseline;
  padding-block: var(--s-6);
  border-top: 1px solid var(--lavender-15);
}

.audit-points li:last-child {
  border-bottom: 1px solid var(--lavender-15);
}

.audit-points li::before {
  content: "0" counter(pt);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--lavender-30);
}

.audit-points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
}

.audit-points p {
  color: var(--lavender);
  max-width: 52ch;
}

/* ---------- Prose légale ---------- */
.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: var(--s-12);
  margin-bottom: var(--s-4);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--lavender);
  margin-bottom: var(--s-3);
}

.prose a {
  color: var(--cream);
}

.prose .todo {
  color: var(--ember);
  font-weight: 600;
}

/* ---------- 404 ---------- */
.error-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.error-hero .error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 22vw, 18rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--lavender-30);
  display: block;
}

.error-hero h1 {
  font-size: var(--text-h2);
  margin-block: var(--s-6);
}

.error-hero p {
  color: var(--lavender);
  margin-bottom: var(--s-8);
  max-width: 46ch;
}

/* ---------- Bandeau CTA (pages internes) ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--night-deep);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 70% at 85% 20%, var(--shape-crimson) 0%, transparent 60%),
    radial-gradient(45% 60% at 10% 90%, var(--shape-navy) 0%, transparent 65%);
  opacity: 0.35;
}

.cta-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 22ch;
}

.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* ---------- Responsive pages internes ---------- */
@media (max-width: 860px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .formulas {
    grid-template-columns: 1fr;
  }

  .mission-row {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }

  .audit-points li {
    grid-template-columns: 52px 1fr;
    gap: var(--s-4);
  }
}

/* ==========================================================================
   CTA audit glassmorphisme (porté du concept React "concept")
   Bouton qui se déplie en capture email inline. Le backdrop-filter capte
   les couleurs du fond animé du hero. Bordure degradee masquee facon
   liquid-glass. PE : sans JS, le bouton reste un lien vers /audit-gratuit.
   ========================================================================== */
.audit-cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
}

/* Coquille glass commune au bouton et au formulaire */
.audit-glass {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}
.audit-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.16) 22%,
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.16) 78%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Bouton */
.audit-glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.audit-glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.audit-glass-btn:active { transform: translateY(0); }

/* Formulaire */
.audit-glass-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 360px);
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
}
.audit-glass-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.audit-glass-form input::placeholder { color: rgba(247, 242, 247, 0.5); }
.audit-glass-form input:read-only { cursor: default; }

.audit-glass-submit {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}
.audit-glass-submit:hover { background: oklch(64% 0.235 18); transform: scale(1.05); }
.audit-glass-submit:active { transform: scale(0.96); }
.audit-glass-submit svg { width: 18px; height: 18px; }

/* Bascule bouton <-> formulaire */
.audit-state { animation: auditPop 0.2s var(--ease-out); }
@keyframes auditPop {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 860px) {
  .hero-actions .audit-cta { width: 100%; }
  .audit-glass-btn { width: 100%; justify-content: center; }
  .audit-glass-form { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .audit-state { animation: none; }
  .audit-glass-btn:hover,
  .audit-glass-submit:hover,
  .audit-glass-submit:active { transform: none; }
}

/* Liens preuve sur la page audit : rangee compacte de sites clients */
.audit-proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin-block: var(--s-4) var(--s-6);
}
.audit-proof-links a {
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--lavender-30);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.audit-proof-links a:hover {
  color: var(--ember);
  border-color: var(--ember);
}

/* ==========================================================================
   Aurore de fond du site (partagee, toutes les pages)
   Les formes colorees (anciennement dans le hero) deviennent le fond du site.
   - Accueil (body.shell-page) : masquee tant que le hero metal remplit l'ecran,
     revelee a partir de la bascule par .past-hero (posee au scroll, motion.js).
   - Pages internes (body sans .shell-page) : toujours visible (pas de grand hero
     a cacher derriere).
   Le shader metal du hero, lui, reste propre a l'accueil (styles-fx.css).
   ========================================================================== */
.site-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;                  /* derriere le contenu, au-dessus du fond du body */
  opacity: 0;
  pointer-events: none;
  overflow: hidden;             /* clippe les formes : sinon elles debordent et
                                   creent un scroll horizontal en desktop etroit */
  background: var(--night-deep); /* base sombre sous les formes */
  transition: opacity 0.6s var(--ease-out);
}
.site-aurora .hero-shapes { position: absolute; inset: 0; }
/* Voile de lisibilite par-dessus les formes (texte clair lisible sur l'aurore) */
.site-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(16, 11, 24, 0.66);
}
body.past-hero .site-aurora { opacity: 1; }          /* accueil : revelee au scroll */
body:not(.shell-page) .site-aurora { opacity: 1; }   /* pages internes : toujours la */

/* Le pied de page laisse transparaitre un soupcon d'aurore. */
.footer { background: color-mix(in oklab, var(--night-deep) 88%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .site-aurora { transition: none; }
}

/* ==========================================================================
   Transitions de page (View Transitions API, navigation cross-document).
   L'API anime un SNAPSHOT (image), pas le DOM live : un transform ici ne casse
   donc pas les elements position:fixed (cf piege connu). La nav est nommee pour
   PERSISTER pendant la transition (le contenu glisse en fondu, la nav reste).
   Progressive enhancement : navigation normale si non supporte.
   ========================================================================== */
@view-transition { navigation: auto; }

.nav { view-transition-name: cmc-nav; }
.nav-frame { view-transition-name: cmc-navframe; }

/* ANTI-FLASH BLANC : le canvas WebGL du hero (.hero-metal) se relit en BLANC
   dans le snapshot d'une View Transition (contexte preserveDrawingBuffer:false ;
   cf "GPU stall due to ReadPixels" en console). Pendant la capture, on le masque
   pour laisser apparaitre le degrade SOMBRE de .shell-bg a la place : plus de
   rectangle blanc. La classe est posee/retiree par motion.js (pageswap/pagereveal). */
html.vt-capture .hero-metal { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  /* L'ancienne page reste OPAQUE dessous (juste un leger recul de profondeur) :
     pas de fondu vers 0, donc pas de creux de transparence ni d'artefact.
     La nouvelle page monte en fondu PAR-DESSUS. */
  ::view-transition-old(root) {
    animation: cmcPageOut 0.34s var(--ease-out) both;
    z-index: 1;
  }
  ::view-transition-new(root) {
    animation: cmcPageIn 0.42s var(--ease-spring, cubic-bezier(0.22,1,0.36,1)) both;
    z-index: 2;
  }
}
@keyframes cmcPageOut { to { transform: scale(0.992); } }
@keyframes cmcPageIn { from { opacity: 0; transform: translateY(12px); } }

/* reduced-motion : coupe toute animation de transition de page (cut instantane) */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}
