/* ===== GREYCLIFF CF ===== */
@font-face { font-family: 'Greycliff CF'; src: url('../fonts/fonnts.com-Greycliff_CF_Thin.otf') format('opentype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Greycliff CF'; src: url('../fonts/fonnts.com-Greycliff_CF_Extra_Light.otf') format('opentype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Greycliff CF'; src: url('../fonts/fonnts.com-Greycliff_CF_Light.otf') format('opentype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Greycliff CF'; src: url('../fonts/fonnts.com-Greycliff_CF_Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Greycliff CF'; src: url('../fonts/fonnts.com-Greycliff_CF_Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Greycliff CF'; src: url('../fonts/fonnts.com-Greycliff_CF_Demi_Bold.otf') format('opentype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Greycliff CF'; src: url('../fonts/fonnts.com-Greycliff_CF_Bold.otf') format('opentype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Greycliff CF'; src: url('../fonts/fonnts.com-Greycliff_CF_Extra_Bold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Greycliff CF'; src: url('../fonts/fonnts.com-Greycliff_CF_Heavy.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #080808;
  --bg-mid: #0f0f0f;
  --gold: #b8963e;
  --gold-light: #d4af62;
  --cream: #ecebe8;        /* ink principal */
  --cream-muted: #9b9ba1;  /* ink-2 secondaire */
  --ink-3: #85858d;        /* labels */
  --font-display: 'Greycliff CF', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Greycliff CF', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html { scroll-behavior: auto; }

body {
  background: var(--bg-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* ===== LOADING SCREEN =====
   Port vanilla du composant LoadingScreen (classes Tailwind converties en CSS).
   z-index 10001 : le voile doit passer au-dessus de .cursor-dot (10000). */
#fmp-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #09090b;
  /* Filet de sécurité : si le JS n'hydrate jamais, le voile se masque seul après 5 s
     au lieu de piéger le visiteur. Le chemin normal le retire avant. */
  animation: fmp-loader-failsafe 0.01s linear 5s forwards;
}

#fmp-loading-screen.is-exiting {
  animation: fmp-fade-out 0.5s ease-in forwards;
}

/* Logo : h-[68px] w-[68px] rounded-2xl border-[#c19125]/20 bg-cover bg-center + glow */
.fmp-loader-logo {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(193, 145, 37, 0.2);
  background-image: url('../logo-fmp.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 50px -10px rgba(193, 145, 37, 0.5);
  animation: fmp-modal-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Piste : mt-9 h-px w-32 rounded-full bg-white/10 */
.fmp-loader-track {
  margin-top: 2.25rem;
  width: 8rem;
  height: 1px;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
}

/* Barre dorée */
.fmp-loader-bar {
  height: 100%;
  width: 0;
  border-radius: 9999px;
  background: #c19125;
  box-shadow: 0 0 12px rgba(193, 145, 37, 0.7);
  animation: fmp-load-bar 1.15s ease-out 0.15s both;
}

@keyframes fmp-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

@keyframes fmp-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes fmp-load-bar {
  from { width: 0; }
  to   { width: 100%; }
}

/* Filet de sécurité : masque le voile après 5 s si le JS n'hydrate jamais. */
@keyframes fmp-loader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.2s, transform 0.15s;
}

.cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(184, 150, 62, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.35s cubic-bezier(.23,1,.32,1),
              height 0.35s cubic-bezier(.23,1,.32,1),
              border-color 0.35s,
              opacity 0.2s;
}

.cursor-dot.is-hover {
  transform: translate(-50%, -50%) scale(3);
  background: var(--gold-light);
}

.cursor-ring.is-hover {
  width: 60px;
  height: 60px;
  border-color: var(--gold);
}

.cursor-dot.is-hidden,
.cursor-ring.is-hidden { opacity: 0; }


/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  mix-blend-mode: normal;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--cream);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

.nav-cta {
  border: 1px solid rgba(184, 150, 62, 0.5) !important;
  padding: 0.5rem 1.25rem;
  color: var(--cream) !important;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg-dark) !important;
}

/* ===== HERO STANDALONE ===== */
.hero-standalone {
  position: relative;
  height: 100vh;
  background: transparent;
  display: flex;
  align-items: flex-end;
  padding: 0 5vw 8vh;
  z-index: 2;
  overflow: hidden;
}

.hero-standalone::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(184, 150, 62, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 75vw;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--cream);
  margin: 1rem 0 1.5rem;
}

.hero-heading .hw {
  display: inline-block;
  will-change: transform, opacity;
}

/* Ligne 1 (« Des nouveaux clients qualifiés, ») un mini peu plus petite,
   sans toucher l'accent doré .hero-h1-accent (qui garde son propre 0.8em). */
.hero-heading .hw:not(.hero-h1-accent) {
  font-size: 0.9em;
}

.hero-heading .italic {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

/* Accent doré « brillance » — dégradé clipé au texte, reflet qui balaie
   en aller-retour (alternate + ease-in-out = le « in and out »).
   ⚠️ Doit rester UN SEUL élément : background-clip: text est peu fiable
   si le texte est découpé en <span> par mot. */
/* Taille/graisse propres au hero. L'effet doré lui-même est factorisé
   en fin de feuille, avec tous les autres accents dorés. */
.hero-h1-accent {
  font-size: 0.8em;           /* relatif au parent (.hero-heading) — un mini peu plus petit */
  font-weight: 600;
  font-style: italic;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--cream-muted);
  max-width: 38rem;
  line-height: 1.45;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.2rem;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.scroll-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(184, 150, 62, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg { width: 14px; height: 14px; color: var(--gold); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ===== CANVAS ===== */
.canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== DARK OVERLAY ===== */
#dark-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.91);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

/* ===== MARQUEE ===== */
.marquee-wrap {
  position: fixed;
  bottom: 6vh;
  left: 0;
  right: 0;
  z-index: 4;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184, 150, 62, 0.35);
  white-space: nowrap;
  will-change: transform;
  line-height: 1;
  text-transform: uppercase;
  font-style: italic;
}

/* ===== SCROLL CONTAINER ===== */
#scroll-container {
  position: relative;
  height: 350vh;
}

/* ===== SCROLL SECTIONS ===== */
.scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  padding: 0 5vw;
}

.scroll-section.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Side alignment */
.align-left { padding-left: 5vw; padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw; }
.align-left .section-inner,
.align-right .section-inner { max-width: 40vw; }

/* ===== SECTION CONTENT ===== */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0.8rem 0 1.2rem;
}

.section-heading em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

.section-body {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--cream-muted);
  max-width: 32rem;
}

/* ===== STATS SECTION ===== */
.section-stats {
  left: 0;
  right: 0;
  padding: 0 8vw !important;
  z-index: 6;
}

.stats-grid {
  display: flex;
  gap: 6vw;
  align-items: flex-end;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 9rem);
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.045em;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 600;
  color: var(--cream);
  display: inline;
  vertical-align: super;
  margin-left: 0.1em;
}

/* Préfixe « Jusqu'à » devant un chiffre (stat plafonnée). Doré = accent de la
   carte, centré verticalement contre le grand nombre. */
.stat-prefix {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.3vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: center;
  margin-right: 0.15em;
  white-space: nowrap;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.5rem;
}

/* ===== CTA SECTION =====
   .cta-button partage les règles « liquid glass » (voir plus bas, avec .viva-cta-link). */

.section-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ===== GRAIN OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 2%); }
  30% { transform: translate(-1%, 3%); }
  40% { transform: translate(2%, -2%); }
  50% { transform: translate(-3%, 1%); }
  60% { transform: translate(1%, -1%); }
  70% { transform: translate(-2%, 2%); }
  80% { transform: translate(3%, -3%); }
  90% { transform: translate(-1%, 2%); }
}

/* ===== PAGE SECTION (après scroll container) ===== */
.page-section {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
}

.page-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8vw;
}

.page-section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--cream);
  margin: 0.8rem 0 1.8rem;
}

.page-section-heading em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

/* Blocks inside page section */
.ps-block {
  padding: 8vh 0;
}

/* Méthode : on descend le bloc de texte SANS changer la hauteur de la section
   (donc « 002 / Réalisations » ne bouge pas) — on ajoute en haut ce qu'on
   retire en bas : 12vh + 4vh = 16vh = le 8vh+8vh d'origine. */
#methode .ps-block {
  padding-top: 12vh;
  padding-bottom: 4vh;
}

.ps-divider {
  border: none;
  border-top: 1px solid rgba(184, 150, 62, 0.12);
}

/* Split 2-column */
.ps-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
}

.ps-split-text {}

.ps-centered {
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.ps-centered .page-section-heading {
  font-size: clamp(1.8rem, 2.8vw, 3.4rem);
}

.ps-body-centered {
  margin: 0 auto;
}

.sw {
  display: inline-block;
  max-width: 100%;          /* laisse les accents fusionnés se couper sur mobile */
  will-change: transform, opacity;
}

#wp-heading {
  font-size: clamp(1.9rem, 3.2vw, 4.2rem);
}

.ps-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--cream-muted);
  max-width: 30rem;
}

/* Stats */
.ps-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

/* ===== LIQUID GLASS STAT CARDS ===== */
.ps-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 2.1rem 2rem 1.8rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              inset 0 -1px 0 rgba(0, 0, 0, 0.2),
              0 24px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(.23, 1, .32, 1),
              border-color 0.45s, box-shadow 0.45s;
}

/* Reflet supérieur — sheen liquid glass */
.ps-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.ps-stat:hover {
  transform: translateY(-7px);
  border-color: rgba(184, 150, 62, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 30px 60px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(184, 150, 62, 0.12);
}

.ps-stat-value {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.08em;
}

.page-section--stats {
  position: relative;
  overflow: hidden;
}

/* Halo ambiant doré pour donner de la matière au verre */
.page-section--stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 60% at 18% 25%, rgba(184, 150, 62, 0.12), transparent 70%),
    radial-gradient(42% 60% at 82% 78%, rgba(184, 150, 62, 0.08), transparent 70%);
  pointer-events: none;
}

.page-section--stats .page-section-inner {
  position: relative;
  z-index: 1;
}

.page-section--stats .stat-number {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
}

.page-section--stats .stat-suffix {
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  color: var(--gold);
  vertical-align: baseline;
  margin-left: 0;
}

/* CTA block */
.ps-cta {
  padding-bottom: 12vh;
}

.ps-cta-heading {
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4vw;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(184, 150, 62, 0.12);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.step-body {
  font-family: var(--font-body);
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--cream-muted);
}

/* ===== VIVA SCROLL SECTION ===== */
.viva-section {
  position: relative;
  height: 660vh;
  background: var(--bg-dark);
  z-index: 10;
  overflow: clip;
}

.viva-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.viva-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5vw;
}

.viva-progress-marker {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

#viva-marker-1 { top: 200vh; }
#viva-marker-2 { top: 270vh; }

.viva-frame--placeholder {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
}

/* ===== WORK PROCESS SCROLL STACK ===== */
.wp-scroll-section {
  position: relative;
  height: 440vh;
}

.wp-marker {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

#wp-m1 { top: 5vh; }
#wp-m2 { top: 65vh; }
#wp-m3 { top: 125vh; }
#wp-m4 { top: 185vh; }
#wp-m5 { top: 245vh; }
#wp-m6 { top: 305vh; }

.wp-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.wp-cards-clip {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
  flex-shrink: 0;
}

.wp-card-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

/* ---- Timeline indicateur ---- */
.wp-timeline {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-100%, -50%);
  padding-right: 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  pointer-events: none;
}

.wp-tl-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  animation: wp-tl-bounce 1.6s ease-in-out infinite;
}

.wp-tl-scroll-hint svg {
  width: 12px;
  height: 22px;
}

@keyframes wp-tl-bounce {
  0%, 100% { transform: translateY(-4px); opacity: 0.5; }
  50%       { transform: translateY(4px);  opacity: 1; }
}

.wp-tl-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.wp-tl-track {
  position: relative;
  width: 2px;
  height: 5.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.wp-tl-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gold);
  border-radius: 2px;
  transition: height 0.5s cubic-bezier(.23, 1, .32, 1);
}

.wp-tl-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.wp-tl-word {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.wp-tl-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  font-style: normal;
}

.wp-tl-num em {
  font-style: normal;
}

#wp-card-0 { z-index: 1; }
#wp-card-1 { z-index: 2; }
#wp-card-2 { z-index: 3; }
#wp-card-3 { z-index: 4; }
#wp-card-4 { z-index: 5; }
#wp-card-5 { z-index: 6; }

.wp-card-inner {
  position: relative;
  width: 100%;
  height: 500px;
  background: #111111;
  border-radius: 20px;
  box-shadow: inset 0 1px 12px rgba(255, 255, 255, 0.08), 0 40px 100px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3rem 4rem;
}

.wp-card-content {
  position: relative;
  z-index: 1;
  width: 75%;
  max-width: 75%;
}

.wp-card-icon {
  position: absolute;
  top: 50%;
  right: 4rem;
  transform: translateY(-50%);
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.wp-card-icon svg {
  width: 2.1rem;
  height: 2.1rem;
}

.wp-ghost-num {
  position: absolute;
  right: -1rem;
  bottom: -3.5rem;
  font-family: var(--font-display);
  font-size: 18rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.wp-card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.85rem;
}

.wp-card-bar {
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.wp-card-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.wp-card-body {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--cream-muted);
  max-width: 36rem;
}

.wp-card-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.45rem 1rem;
}

@media (max-width: 1280px) {
  .wp-timeline { display: none; }
}

@media (max-width: 768px) {
  .wp-card-inner { height: auto; min-height: 360px; padding: 2.5rem 2rem; }
  .wp-ghost-num { font-size: 9rem; bottom: -1rem; right: 0; }
  .wp-card-title { font-size: 2.25rem; }
}

/* ===== VIVA ZOOM BUTTON ===== */
.viva-zoom-btn {
  position: absolute;
  bottom: 0.875rem;
  right: 0.875rem;
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(8, 8, 8, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  z-index: 5;
}

.viva-zoom-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #080808;
  transform: scale(1.08);
}

.viva-zoom-btn svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* ===== LIGHTBOX ===== */
.viva-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.viva-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.viva-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.viva-lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas-zoom {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
}

.viva-lightbox-close {
  position: absolute;
  top: -1.2rem;
  right: -1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}

.viva-lightbox-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #080808;
}

.viva-lightbox-close svg {
  width: 0.9rem;
  height: 0.9rem;
}

.viva-layout {
  display: flex;
  align-items: center;
  gap: 5vw;
  width: 100%;
  max-width: 1400px;
  transform-origin: center center;
  will-change: transform, opacity;
}

#viva-slide-2 .viva-layout {
  flex-direction: row-reverse;
}

.viva-video-col {
  width: 62%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.viva-frame {
  width: 100%;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
  position: relative;
  isolation: isolate;
}

.viva-text {
  flex: 1;
  color: var(--cream);
}

.viva-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0.8rem 0 1.5rem;
}

.viva-heading em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

.viva-body {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--cream-muted);
  max-width: 28rem;
}

/* Le CTA vit désormais sous le texte (et non sous la vidéo). */
.viva-text .viva-cta-link { margin-top: 2rem; }

/* ===== LIQUID GLASS BUTTON =====
   Port vanilla du composant <LiquidButton size="xl" className="rounded-full px-10
   text-[0.95rem] font-semibold tracking-[-0.02em] text-ink">.
   Classes Tailwind résolues, conflits arbitrés comme twMerge (la dernière gagne) :
   rounded-full > rounded-md · px-10 > px-8 · text-[0.95rem] > text-sm
   font-semibold > font-medium · text-ink > text-primary · transition > transition-colors */
.viva-cta-link,
.cta-button {
  position: relative;              /* relative */
  display: inline-flex;            /* inline-flex */
  align-items: center;             /* items-center */
  justify-content: center;         /* justify-center */
  gap: 0.5rem;                     /* gap-2 */
  height: 3rem;                    /* h-12 (size xl) */
  padding: 0 2.5rem;               /* px-10 */
  border: 0;                       /* preflight */
  border-radius: 9999px;           /* rounded-full */
  background-color: transparent;   /* bg-transparent */
  color: #ecebe8;                  /* text-ink */
  font-family: var(--font-body);   /* Greycliff CF */
  font-size: 0.95rem;              /* text-[0.95rem] */
  font-weight: 600;                /* font-semibold → DemiBold */
  letter-spacing: -0.02em;         /* tracking-[-0.02em] */
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;             /* whitespace-nowrap */
  cursor: pointer;                 /* cursor-pointer */
  flex-shrink: 0;                  /* shrink-0 */
  outline: none;                   /* outline-none */
  /* Contour verre liquide appliqué directement (les shadows inset se peignent
     au-dessus du fond mais SOUS le texte -> contour glass, libellé net). */
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.12),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 0, 0, 0.15);
  align-self: flex-start;          /* conserve le placement dans la colonne */
  /* transition + duration-300 */
  transition-property: color, background-color, border-color, text-decoration-color,
                       fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.viva-cta-link:hover,
.cta-button:hover { transform: scale(1.05); }                 /* hover:scale-105 */

.viva-cta-link:focus-visible,
.cta-button:focus-visible {                                   /* focus-visible:ring-[3px] ring-ink-3/50 */
  box-shadow: 0 0 0 3px rgba(133, 133, 141, 0.5);
}

/* Contour « verre » — halos blancs internes (visibles sur sombre). */
.lg-glass {
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.09),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.85),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset -1px -1px 1px -0.5px rgba(255, 255, 255, 0.6),
    inset 0 0 6px 6px rgba(255, 255, 255, 0.12),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.06),
    0 0 12px rgba(0, 0, 0, 0.15);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);          /* transition-all */
}

/* Distorsion « liquide » de l'arrière-plan (filtre SVG). */
.lg-distort {
  position: absolute;
  top: 0; left: 0;
  isolation: isolate;   /* isolate */
  z-index: -10;         /* -z-10 */
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
}

/* <div className="pointer-events-none z-10">{children}</div>
   inline-flex + gap 0.5rem pour espacer libellé/flèche (l'intention du gap-2). */
.lg-content {
  position: relative;
  z-index: 10;              /* z-10 */
  pointer-events: none;     /* pointer-events-none */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.viva-cta-link svg,
.cta-button svg {
  width: 1rem;              /* [&_svg:not([class*='size-'])]:size-4 */
  height: 1rem;
  flex-shrink: 0;           /* [&_svg]:shrink-0 */
  pointer-events: none;     /* [&_svg]:pointer-events-none */
}

.lg-hidden { display: none; }   /* hidden */

/* Flottement — va sur un wrapper séparé, JAMAIS sur le bouton (constrainte 4). */
@keyframes fmp-cta-float {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(7px, -6px); }
  50%  { transform: translate(0, -11px); }
  75%  { transform: translate(-7px, -6px); }
  100% { transform: translate(0, 0); }
}

.hero-cta-float {
  animation: fmp-cta-float 6s ease-in-out infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta-float { animation: none; }
}

#canvas2,
#canvas3 {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero-heading { font-size: clamp(3.5rem, 14vw, 6rem); }
  .hero-standalone { padding: 0 6vw 10vh; }

  .align-left, .align-right {
    padding-left: 6vw !important;
    padding-right: 6vw !important;
  }
  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
    background: rgba(8, 8, 8, 0.85);
    padding: 1.5rem;
    backdrop-filter: blur(4px);
  }

  .stats-grid { flex-direction: column; gap: 2rem; }
  .section-stats { padding: 0 6vw !important; }

  #scroll-container { height: 250vh; }
  .nav-links li:not(:last-child) { display: none; }

  .marquee-text { font-size: 18vw; }
}

.page-section--stats .ps-block { padding: 8rem 0 6rem; }

/* ===== LIGHT SECTION ===== */
.page-section--light {
  background: #fff;
}

.page-section--light .section-label {
  color: rgba(0, 0, 0, 0.4);
}

.page-section--light .page-section-heading {
  color: #0a0a0a;
}

.page-section--light .page-section-heading em {
  color: var(--gold);
}

.page-section--light .ps-body {
  color: rgba(0, 0, 0, 0.5);
}

/* ===== FAN CAROUSEL LIGHT ===== */
.fan-carousel-section.fan-carousel-section--light {
  background: #fff;
}

.fan-carousel-section--light .section-label {
  color: rgba(0, 0, 0, 0.4);
}

.fan-carousel-section--light .fan-btn {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.45);
}

.fan-carousel-section--light .fan-btn:hover {
  border-color: rgba(0, 0, 0, 0.35);
  color: rgba(0, 0, 0, 0.8);
}

.fan-carousel-section--light .fan-dot {
  background: rgba(0, 0, 0, 0.15);
}

.fan-carousel-section--light .fan-dot.active {
  background: var(--gold);
}

/* ===== RÉALISATIONS + VIDEO CROSSFADE (section pinnée) ===== */
.rs-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#canvas4,
#canvas5 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

#canvas4 { z-index: 2; }
#canvas5 { z-index: 3; }

/* ===== DUAL VIDEO SCRUB (frames6 → frames7) ===== */
.dual-video-section {
  position: relative;
  height: 560vh;
  margin-top: -100vh;      /* remonte pour enchaîner juste après le zoom-out de Viva */
  background: transparent;  /* n'intrude pas tant que la slide Projections est visible */
  pointer-events: none;
  z-index: 10;
}

.dv-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: transparent;
}

#canvas6,
#canvas7 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

#canvas6 { z-index: 1; }
#canvas7 { z-index: 2; }

/* Calque d'assombrissement de la vidéo pendant que le panneau monte */
.dv-dim {
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

/* ===== NOM DU CLIENT SUR LES VIDÉOS PLEIN ÉCRAN ===== */
.video-name {
  position: absolute;
  left: 4vw;
  bottom: 8vh;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
}

/* Les noms de la double-vidéo passent SOUS le calque d'assombrissement */
#name-6, #name-7 { z-index: 3; }

.video-name-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.video-name-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #ffffff;
}

@media (max-width: 768px) {
  .video-name { left: 6vw; bottom: 12vh; }
}

/* La section Processus monte par-dessus la dernière frame figée, façon panneau inséré */
#resultats-section {
  margin: -115vh auto 0;
  max-width: 78vw;
  padding-top: 8rem;
  z-index: 11;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  border-top: 1px solid rgba(184, 150, 62, 0.28);
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.32);
}

/* ===== FAN CAROUSEL ===== */
.fan-carousel-section {
  position: relative;
  height: 500vh;
  background: var(--bg-dark);
  z-index: 10;
}

.fan-carousel-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 90rem;
  padding: 10vh 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform-origin: center top;
  will-change: transform, opacity;
}

.fan-container {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 80rem;
  height: 22rem;
}

.fan-card {
  position: absolute;
  width: 12rem;
  height: 21rem;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  background: #141414;
}

.fan-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.fan-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  position: relative;
  z-index: 30;
  margin-top: 5rem;
}

.fan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  outline: none;
}

.fan-btn:hover {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.9);
}

.fan-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.fan-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fan-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: all 0.3s;
}

.fan-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

@media (max-width: 768px) {
  .fan-container { height: 28rem; }
  .fan-card { width: 10rem; height: 17rem; }
}

/* ==================================================================
   MOBILE RESPONSIVE (≤768px) — n'altère JAMAIS le desktop
   ================================================================== */
@media (max-width: 768px) {

  /* --- Pas de curseur custom sur tactile --- */
  .cursor-dot,
  .cursor-ring { display: none !important; }
  body { cursor: auto; }

  /* --- Layout global --- */
  .page-section-inner { padding: 0 6vw; }

  /* --- Header --- */
  .site-header { padding: 1.1rem 6vw; }
  .nav-logo { font-size: 1.25rem; }

  /* --- Hero --- */
  .hero-standalone { padding: 0 6vw 12vh; align-items: flex-end; }
  .hero-inner { max-width: 100%; }
  .hero-heading { font-size: clamp(2.3rem, 11vw, 3.2rem); }

  /* --- Méthode / titres de section centrés --- */
  .ps-centered .page-section-heading { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }

  /* --- Viva : empiler vidéo + texte --- */
  .viva-slide { padding: 0 6vw; }
  .viva-layout,
  #viva-slide-2 .viva-layout {
    flex-direction: column;
    gap: 3rem;
    max-width: 100%;
  }
  .viva-video-col { width: 100%; }
  .viva-text { width: 100%; }
  .viva-heading { font-size: clamp(1.5rem, 6.5vw, 2.1rem); }
  .viva-body { max-width: 100%; }
  /* Le rendu exact (h-12 / px-10 / 0.95rem) déborde à 375px avec ce libellé
     long en whitespace-nowrap. On resserre, la pilule de verre reste identique. */
  .viva-cta-link { height: 2.75rem; padding: 0 1.4rem; font-size: 0.82rem; }

  /* --- Stats : 1 colonne --- */
  .ps-stats { grid-template-columns: 1fr; gap: 1rem; }
  .page-section--stats .ps-block { padding: 5rem 0; }
  .ps-stat { padding: 1.8rem 1.6rem; }
  .page-section--stats .stat-number { font-size: clamp(2.6rem, 12vw, 3.4rem); }

  /* --- Panneau Processus : pleine largeur sur mobile --- */
  #resultats-section {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-top: 5rem;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
  }

  /* --- Cartes Processus : empilement animé conservé, mais adapté mobile --- */
  /* Transitions plus espacées = animation plus lente (le scroll va vite au doigt) */
  .wp-scroll-section { height: 560vh; }
  #wp-m1 { top: 5vh; }
  #wp-m2 { top: 90vh; }
  #wp-m3 { top: 175vh; }
  #wp-m4 { top: 260vh; }
  #wp-m5 { top: 345vh; }
  #wp-m6 { top: 430vh; }

  .wp-card-inner { height: 500px; min-height: 0; padding: 1.7rem 1.5rem; }
  .wp-card-content { width: 100%; max-width: 100%; }
  .wp-card-icon { display: none; }
  .wp-card-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); margin-bottom: 1rem; }
  .wp-card-body { font-size: 0.85rem; line-height: 1.4; }
  .wp-card-label { margin-bottom: 0.6rem; }
  .wp-ghost-num { font-size: 7rem; }
  .wp-timeline { display: none; }

  /* --- CTA final --- */
  .ps-cta-heading { font-size: clamp(2rem, 9vw, 2.9rem) !important; }
  .ps-cta { padding-bottom: 9vh; }
  /* .cta-button : le libellé est court, le rendu exact (h-12 / px-10 / 0.95rem) tient à 375px. */

  /* --- Nom du client sur les vidéos --- */
  .video-name { left: 6vw; bottom: 9vh; }
  .video-name-text { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .video-name-label { font-size: 0.6rem; }
}

/* ==================================================================
   ACCENT DORÉ « BRILLANCE » — appliqué à TOUS les textes dorés.
   Dégradé or clipé au texte, reflet qui balaie en aller-retour
   (alternate + ease-in-out = le « in and out »).

   ⚠️ Chaque accent doit rester UN SEUL élément : background-clip: text
   est peu fiable si le texte est découpé en <span> par mot.

   Placé en fin de feuille exprès : il doit l'emporter sur les
   `color: var(--gold)` déclarés plus haut. Indispensable pour Firefox,
   qui ignore -webkit-text-fill-color et s'appuie sur `color: transparent`.
   ================================================================== */
.hero-h1-accent,
.section-heading em,
.page-section-heading em,
.page-section--light .page-section-heading em,
.viva-heading em,
.page-section--stats .stat-suffix {
  display: inline-block;      /* la boîte du dégradé épouse le texte */
  max-width: 100%;            /* autorise le retour à la ligne interne */
  background-image: linear-gradient(
    100deg,
    #c19125 0%,
    #c19125 38%,
    #ffe7b0 50%,              /* le reflet clair qui passe */
    #c19125 62%,
    #c19125 100%
  );
  background-size: 200% auto; /* 2× la largeur : il reste de la marge à balayer */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fmp-shine 5s ease-in-out infinite alternate;
}

@keyframes fmp-shine {
  from { background-position: 150% center; }
  to   { background-position: -50% center; }
}

/* Accessibilité : pas de balayage, or plein. */
@media (prefers-reduced-motion: reduce) {
  .hero-h1-accent,
  .section-heading em,
  .page-section-heading em,
  .page-section--light .page-section-heading em,
  .viva-heading em,
  .page-section--stats .stat-suffix {
    animation: none;
    background: none;
    -webkit-text-fill-color: #c19125;
    color: #c19125;
  }
}

/* Les accents sont en italique : le dernier glyphe déborde de sa boîte, et les
   jambages (q, p) dépassent en bas. Or `background-clip: text` ne peint jamais
   hors du padding-box → ces débordements restent transparents (« coupés »).
   On élargit donc la boîte, puis on annule l'élargissement par des marges
   négatives : la peinture couvre tout le glyphe, la mise en page ne bouge pas.
   `content-box` est obligatoire : sous le `border-box` global, `max-width: 100%`
   plafonne la boîte padding compris, si bien que le padding rogne le texte au
   lieu de l'entourer et que le dernier glyphe reste coupé.
   Exclut .stat-suffix (droit, et flex item → une marge négative le décalerait). */
.hero-h1-accent,
.section-heading em,
.page-section-heading em,
.page-section--light .page-section-heading em,
.viva-heading em {
  box-sizing: content-box;
  padding: 0.14em 0.18em;
  margin: -0.14em -0.18em;
}

/* ===== DÉGRADÉ BLANC « ÉCLAIRÉ PAR LE HAUT » — TITRES PRINCIPAUX =====
   Blanc chaud en haut → gris atténué en bas, clippé au texte.
   Appliqué directement aux SPANS de mots des titres animés (hero, méthode,
   processus, CTA), PAS au conteneur <h*> : avec background-clip:text sur le
   parent, le dégradé est clippé à l'ensemble des glyphes et l'opacité/translate
   par mot du reveal n'a plus d'effet (cascade d'un bloc). Chaque mot porte donc
   son propre dégradé. Les viva-heading ne sont pas animés → niveau conteneur.
   Les accents dorés (.hero-h1-accent et les <em>) sont exclus / gardent leur or
   via leur propre background-clip (bloc « brillance » plus haut). */
.title-gradient,
.hero-heading .hw:not(.hero-h1-accent),
.page-section-heading .sw:not(:has(em)),
.wp-card-title,
.viva-heading {
  background-image: linear-gradient(to bottom, #fafaf9 0%, #f5f4f2 35%, #9b9ba1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Section CLAIRE (Méthode) : le titre reste FONCÉ — le dégradé blanc y serait
   invisible sur fond blanc. L'accent doré (<em>) garde son or via son propre
   background-clip (bloc « brillance »). Spécificité (0,3,0) > la règle ci-dessus. */
.page-section--light .page-section-heading .sw {
  background-image: none;
  -webkit-text-fill-color: #0a0a0a;
  color: #0a0a0a;
}

/* Filet de sécurité : navigateurs sans background-clip:text → texte jamais invisible. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .title-gradient,
  .hero-heading .hw:not(.hero-h1-accent),
  .page-section-heading .sw,
  .wp-card-title,
  .viva-heading {
    color: #f5f4f2;
    -webkit-text-fill-color: #f5f4f2;
  }
}

/* Noms clients : BLANC PLEIN (aucun dégradé). Posés sur vidéo, le dégradé des
   titres n'y rendait pas bien (bas gris qui bave sur les fonds clairs). Blanc
   plein + l'ombre du parent .video-name = net et lisible sur n'importe quel fond.
   Reset explicite pour annuler tout background-clip/fill hérité. */
.video-name-text {
  background-image: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}

/* Laptop (au-dessus du mobile, sous les grands écrans desktop) : le titre BLANC
   du hero (ligne 1, hors accent doré) un mini peu plus petit. 0.9em → 0.84em.
   Les très grands écrans (>1600px) et le mobile (≤768px) restent inchangés. */
@media (min-width: 769px) and (max-width: 1600px) {
  .hero-heading .hw:not(.hero-h1-accent) { font-size: 0.84em; }
}

/* Laptop : l'éventail (fan carousel) est trop grand — sur laptop les offsets en
   rem donnent la même taille absolue que sur un grand moniteur, donc énorme sur
   petit écran. On met à l'échelle tout le conteneur : cartes ET écartement
   rétrécissent ensemble. Le JS transforme les cartes DANS ce conteneur, et la
   pagination est en dehors → non affectée. */
@media (min-width: 1024px) and (max-width: 1600px) {
  .fan-container { transform: scale(0.75); }
  /* Flèches un peu plus rapprochées + remontées vers le fan : le scale 0.75 laisse
     un grand vide sous le fan, on le compense avec un margin-top négatif. */
  .fan-pagination { gap: 0.75rem; margin-top: 1rem; }
}

/* Laptop : la section CTA finale manque d'air. Son padding est en vh (8vh haut /
   12vh bas) → trop petit sur les écrans courts des laptops. On passe à un padding
   fixe en rem, plus généreux, pour l'écarter du Processus (au-dessus) et du
   footer (en dessous). Les grands écrans (>1600px) gardent le vh. */
@media (min-width: 769px) and (max-width: 1600px) {
  #contact { padding-top: 8rem; padding-bottom: 11rem; }
}

/* Laptop : les 6 cartes du Processus sont trop hautes et larges. On réduit la
   hauteur (500→450px) et on resserre le panneau (78→72vw) → les cartes rétrécissent
   en largeur. La timeline « Étape x/6 » reste alignée : elle est ancrée au bord
   gauche de la carte (centré verticalement), donc hauteur + largeur suivent. */
@media (min-width: 1024px) and (max-width: 1600px) {
  #resultats-section { max-width: 72vw; }
  .wp-cards-clip,
  .wp-card-inner { height: 450px; }
}
