/* ============================================================
   CAG — Consulting Acquisition Group | style.css
   Palette : fond #0a0a0a · or #C9A84C · blanc cassé #F5F0E8
   ============================================================ */

/* ---------- IMPORTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Archivo+Black&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg-deep:        #080808;
  --bg-secondary:   #0f0f0f;
  --bg-card:        #141414;
  --bg-card-hover:  #1a1a1a;
  --accent:         #C9A84C;
  --accent-light:   #E8D5A0;
  --accent-dark:    #8B6914;
  --accent-glow:    rgba(201, 168, 76, 0.35);
  --accent-glow-sm: rgba(201, 168, 76, 0.15);
  --text-primary:   #F5F0E8;
  --text-secondary: #9A9080;
  --text-muted:     #5A5248;
  --border:         rgba(201, 168, 76, 0.18);
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --white:          #FFFFFF;
  --font-display:   'Archivo Black', sans-serif;
  --font-ui:        'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;
  --nav-h:          80px;
  --radius:         14px;
  --radius-lg:      22px;
  --transition:     0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-fast: 0.20s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Palette gris craie / pierre — contraste chaud avec l'univers spatial */
  --stone:       #C4C0B8;   /* gris craie clair */
  --stone-warm:  #B8B2A7;   /* gris pierre chaud */
  --stone-dark:  #8A857C;   /* gris pierre foncé */
  --chalk:       #E8E4DC;   /* craie très claire */
  --stone-bg:    #1E1C19;   /* version sombre du stone pour fonds */
  --stone-glow:  rgba(196, 192, 184, 0.12); /* halo pierre */
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; width: 100%; max-width: 100%; }

/* Le fond spatial est fourni par ::before DERRIÈRE le canvas.
   Le body lui-même est transparent pour que le canvas WebGL soit visible. */
html, body {
  background: transparent;
}

/* Fond spatial sombre DERRIÈRE le canvas (z-index -1) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, #06061a 0%, #01010a 70%, #000 100%);
  pointer-events: none;
}

body {
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

body.reduced-motion * {
  animation: none !important;
  transition: none !important;
}

::selection { background: var(--accent); color: var(--bg-deep); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: none; font-family: inherit; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- SCROLL PROGRESS BAR ---------- */
#scroll-progress {
  position: fixed;
  top: 0; right: 0;
  width: 3px;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  z-index: 9999;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: height 0.1s linear;
}

/* ---------- CUSTOM CURSOR ---------- */
#cursor-dot {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.3s;
  box-shadow: 0 0 10px var(--accent-glow);
  opacity: 0;
}

#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.2s, opacity 0.3s;
  opacity: 0;
}

#cursor-ring.hover-link { width: 50px; height: 50px; border-color: var(--accent-light); }
#cursor-ring.hover-btn {
  width: 54px; height: 54px;
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent-glow-sm);
}

.cursor-trail {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99996;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  transition: opacity 0.3s;
}

/* ---------- CANVAS BACKGROUND ---------- */
#canvas-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Atténuation du globe sur la page d'accueil — reste en fond discret */
body.home #canvas-bg {
  opacity: 0.62;
}

/* All page content sits above canvas */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), transform 0.4s ease;
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 8px 40px rgba(0,0,0,0.6);
}

.navbar.hidden { transform: translateY(-100%); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

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

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
  box-shadow: 0 0 6px var(--accent-glow);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  animation: pulse-cta 3s ease-in-out infinite;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 30px var(--accent-glow);
  animation: none;
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 16px var(--accent-glow); }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-overlay a:hover { color: var(--accent); }

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 8vw, 6rem) 6rem;
  position: relative;
}

.hero-inner { max-width: 900px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s 0.3s ease forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 1.15;          /* plus de hauteur pour les descenders */
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.75rem;
  padding-bottom: 0.18em;    /* espace pour g, p, y */
  overflow: visible;          /* jamais rogner les descenders */
  position: relative;
  z-index: 2;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.85),
    0 0  48px rgba(0, 0, 0, 0.55);
}

/* CORRECTION : le .word ne rogne plus les descenders */
.hero-title .word {
  display: inline-block;
  overflow: visible;         /* était hidden — causait le g coupé */
  vertical-align: baseline;  /* baseline plutôt que bottom */
  padding-bottom: 0.1em;
}

.hero-title .word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  overflow: visible;
}

.hero-title .accent-word { color: var(--accent); }

/* ── Animation GLITCH sur le mot "digitalise" ── */
@keyframes digitalGlitch {
  0%, 87%, 100% {
    text-shadow: 0 2px 24px rgba(0,0,0,0.85);
    transform: none;
    clip-path: none;
  }
  88% {
    text-shadow: -3px 0 #ff003c, 3px 0 #0055ff, 0 2px 24px rgba(0,0,0,0.85);
    transform: translate(-1px, 0) skewX(-1deg);
  }
  89% {
    text-shadow: 3px 0 #ff003c, -3px 0 #0055ff, 0 2px 24px rgba(0,0,0,0.85);
    transform: translate(1px, 0) skewX(1deg);
  }
  90% {
    text-shadow: -2px 0 #00ffcc, 2px 0 #ff003c, 0 2px 24px rgba(0,0,0,0.85);
    transform: translate(-2px, 0);
  }
  91%, 93% {
    text-shadow: 0 2px 24px rgba(0,0,0,0.85);
    transform: none;
  }
  92% {
    text-shadow: 2px 0 #0055ff, -2px 0 #ff003c, 0 2px 24px rgba(0,0,0,0.85);
    transform: translate(1px, 0);
  }
}

.word-glitch-target {
  animation: digitalGlitch 6s ease-in-out infinite;
  animation-delay: 2.5s;
  display: inline-block;
}

/* ── Scanline laser dorée — descend une fois au chargement ── */
@keyframes heroScanline {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 0.9; }
  92%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

body.home .hero-inner {
  position: relative;
}

body.home .hero-inner::after {
  content: '';
  position: absolute;
  top: -2px; left: -8%; right: -8%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201, 168, 76, 0.9) 30%,
    rgba(232, 213, 160, 1) 50%,
    rgba(201, 168, 76, 0.9) 70%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(201,168,76,0.7), 0 0 4px rgba(255,255,255,0.4);
  animation: heroScanline 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s 1.4s ease forwards;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s 1.7s ease forwards;
}

.hero-micro {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  animation: pulse-btn 3s ease-in-out infinite;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-2px);
  animation: none;
}

.btn-primary:hover::before { transform: translateX(100%); }

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 24px var(--accent-glow); }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow-sm);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--transition-fast), gap var(--transition-fast);
}

.btn-ghost:hover {
  border-color: var(--accent);
  gap: 0.8rem;
}

/* ---------- SECTION STRUCTURE ---------- */
.section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 8vw, 6rem);
  position: relative;
  /* Pages secondaires : verre pour voir l'animation 2D */
  background: rgba(6, 6, 16, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ---------- DIVIDER CIRCUIT ---------- */
.circuit-line {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.circuit-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: circuit-travel 4s linear infinite;
}

@keyframes circuit-travel {
  to { left: 160%; }
}

/* ---------- CARDS GRID ---------- */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow-sm), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow-sm);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.card-title {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: var(--accent);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition), transform var(--transition);
}

.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ---------- STATS / CHIFFRES ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px var(--accent-glow);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-clip.revealed { clip-path: inset(0 0% 0 0); }

/* Stagger children */
.stagger-children > * { opacity: 0; transform: translateY(30px); }
.stagger-children.revealed > *:nth-child(1) { animation: fadeInUp 0.7s 0.1s ease forwards; }
.stagger-children.revealed > *:nth-child(2) { animation: fadeInUp 0.7s 0.2s ease forwards; }
.stagger-children.revealed > *:nth-child(3) { animation: fadeInUp 0.7s 0.3s ease forwards; }
.stagger-children.revealed > *:nth-child(4) { animation: fadeInUp 0.7s 0.4s ease forwards; }
.stagger-children.revealed > *:nth-child(5) { animation: fadeInUp 0.7s 0.5s ease forwards; }
.stagger-children.revealed > *:nth-child(6) { animation: fadeInUp 0.7s 0.6s ease forwards; }
.stagger-children.revealed > *:nth-child(7) { animation: fadeInUp 0.7s 0.7s ease forwards; }
.stagger-children.revealed > *:nth-child(8) { animation: fadeInUp 0.7s 0.8s ease forwards; }
.stagger-children.revealed > *:nth-child(9) { animation: fadeInUp 0.7s 0.9s ease forwards; }
.stagger-children.revealed > *:nth-child(10) { animation: fadeInUp 0.7s 1.0s ease forwards; }
.stagger-children.revealed > *:nth-child(11) { animation: fadeInUp 0.7s 1.1s ease forwards; }
.stagger-children.revealed > *:nth-child(12) { animation: fadeInUp 0.7s 1.2s ease forwards; }
.stagger-children.revealed > *:nth-child(n+13) { animation: fadeInUp 0.7s 1.3s ease forwards; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Word-by-word reveal */
.word-reveal .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.25em;
}

.word-reveal .word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.word-reveal.revealed .word span { opacity: 1; transform: translateY(0); }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 5rem) clamp(1.5rem, 8vw, 6rem) 4rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  /* Semi-transparent pour laisser l'animation 2D respirer */
  background: rgba(8, 8, 14, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-hero-inner { max-width: 1200px; }

.page-hero-tag {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeInUp 0.7s 0.2s ease forwards;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.7s 0.4s ease forwards;
}

.page-hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.7s 0.6s ease forwards;
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 8vw, 6rem) 2rem;
  background: rgba(8, 8, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 220px;
}

.footer-col-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.footer-cta-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-bottom a { transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- CTA BLOCK ---------- */
.cta-block {
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
  background: rgba(8, 8, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(201, 168, 76, 0.07);
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow-sm) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block-inner { position: relative; max-width: 700px; margin: 0 auto; }

.cta-block-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cta-block-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ---------- ACCORDION (FAQ) ---------- */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; max-width: 760px; margin: 0 auto; }

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.accordion-item.open { border-color: var(--border); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  text-align: left;
  cursor: none;
  background: none;
  border: none;
}

.accordion-trigger span {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.accordion-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  transition: transform var(--transition), background var(--transition);
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--accent-glow-sm);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-body p {
  padding: 0 1.75rem 1.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.accordion-item.open .accordion-body { max-height: 400px; }

/* ---------- EXPERTISE LIST ---------- */
.expertise-category {
  margin-bottom: 3.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.expertise-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.expertise-category-icon { font-size: 1.8rem; }

.expertise-category-title {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.expertise-item {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.expertise-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.expertise-item::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent);
}

/* ---------- TIMELINE (méthode) ---------- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }

.timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), var(--border), transparent);
}

.timeline-item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-node {
  flex-shrink: 0;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.timeline-item.revealed .timeline-node {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.timeline-step {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.timeline-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.timeline-content { padding-top: 1rem; }

.timeline-title {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ---------- PARTENAIRES ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.partner-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow-sm);
  transform: translateY(-4px);
}

.partner-logo-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.partner-name {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.partner-sector {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.partner-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}

/* ---------- FORM STYLES ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-sm), 0 0 18px rgba(201,168,76,0.12);
  background: #191612;
  transition: border-color 0.2s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-select { cursor: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A84C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-select option { background: var(--bg-card); color: var(--text-primary); }

.form-textarea { resize: vertical; min-height: 120px; }

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form success overlay */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem;
}

.form-success.show { display: block; }
.form-card.submitted .form-main { display: none; }
.form-card.submitted .form-success { display: block; animation: fadeInUp 0.7s ease; }

.success-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: pulse-success 2s ease-in-out infinite;
}

@keyframes pulse-success {
  0%, 100% { text-shadow: 0 0 10px var(--accent-glow); }
  50% { text-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-glow); }
}

/* ---------- VALUES LIST ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.value-item {
  padding: 2rem;
  border-left: 2px solid var(--border);
  transition: border-color var(--transition);
}

.value-item:hover { border-color: var(--accent); }

.value-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.value-title {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.value-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- WHAT YOU GET (audit page) ---------- */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.benefit-item:hover { border-color: var(--border); }

.benefit-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--accent-glow-sm);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.benefit-content .benefit-title {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.benefit-content .benefit-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- GLOW BADGE ---------- */
.glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-glow-sm);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.glow-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--accent-glow-sm);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item-text .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.contact-item-text .value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* ---------- MENTIONS LÉGALES ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content p, .legal-content address {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: normal;
  margin-bottom: 0.5rem;
}

.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }

/* ---------- MANIFESTO TEXT ---------- */
.manifesto {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 820px;
}

.manifesto em {
  font-style: normal;
  color: var(--accent);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-overlay { display: flex; }

  .hero-title { font-size: clamp(2.2rem, 9vw, 3.5rem); }

  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

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

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

  .timeline::before { left: 28px; }
  .timeline-node { width: 56px; height: 56px; }
  .timeline-item { gap: 1.5rem; }

  #cursor-dot, #cursor-ring, .cursor-trail { display: none; }
  body { cursor: auto; }
  .hamburger, .btn-primary, .btn-secondary, .btn-ghost, .nav-cta,
  .accordion-trigger, .card, .partner-card, select { cursor: pointer; }

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

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
}

/* ============================================================
   GRIS CRAIE / PIERRE — sections chaudes, contraste spatial
   ============================================================ */

/* Section pierre sombre (utilisable sur pages secondaires) */
.stone-section {
  position: relative;
  background-color: var(--stone-bg);
  overflow: hidden;
}

/* Texture craie subtile via SVG turbulence */
.stone-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.stone-section > * { position: relative; z-index: 1; }

/* Cartes avec accent pierre */
.stone-card {
  background: var(--stone-bg);
  border: 1px solid rgba(196, 192, 184, 0.14);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.stone-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Tag / badge en couleur pierre */
.stone-tag {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  background: var(--stone-glow);
  border: 1px solid rgba(196, 192, 184, 0.20);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Texte en gris pierre */
.text-stone       { color: var(--stone); }
.text-stone-warm  { color: var(--stone-warm); }
.text-chalk       { color: var(--chalk); }

/* Diviseur horizontal pierre */
.stone-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,192,184,0.25), transparent);
  margin: 0;
}

/* ============================================================
   GRILLE PHOTOS HUMAINES — page agence
   ============================================================ */
.human-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.human-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition), transform var(--transition);
}

.human-photo-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.human-photo-card img {
  display: block;
  filter: brightness(0.82) saturate(0.75);
  transition: filter var(--transition), transform var(--transition);
}

.human-photo-card:hover img {
  filter: brightness(0.92) saturate(0.9);
  transform: scale(1.03);
}

.human-caption {
  padding: 1rem 1.2rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-style: italic;
  background: var(--bg-card);
  margin: 0;
}

@media (max-width: 900px) {
  .human-grid { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .human-grid { grid-template-columns: 1fr 1fr; }
  .human-photo-card:last-child { display: none; }
}

/* ============================================================
   BANDEAU SUR-MESURE — accueil, section expertises
   ============================================================ */
.surmesure-band {
  background: linear-gradient(90deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.14) 50%, rgba(201,168,76,0.08) 100%);
  border-top: 1px solid rgba(201,168,76,0.22);
  border-bottom: 1px solid rgba(201,168,76,0.22);
  padding: 1.1rem clamp(1.5rem, 8vw, 6rem);
  text-align: center;
  font-family: var(--font-ui);
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   HOME PAGE — Globe mise en scène
   Canvas fixe plein écran, hero scindé, sections en verre
   ============================================================ */

/* Hero : texte à gauche, globe visible à droite */
body.home .hero {
  text-align: left;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  min-height: 100vh;
  padding-top: var(--nav-h);
  padding-bottom: 4rem;
}

body.home .hero-inner {
  max-width: none;
  padding-right: 2rem;
}

body.home .hero-subtitle {
  margin-left: 0;
  max-width: 480px;
}

body.home .hero-cta-group {
  align-items: flex-start;
}

body.home .hero-eyebrow {
  justify-content: flex-start;
}

/* Globe placeholder — right column is empty (globe shows through canvas) */
body.home .hero-globe-placeholder {
  display: block;
  height: 100%;
  min-height: 60vh;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   HOME PAGE — Globe toujours visible pendant tout le scroll
   PRINCIPE : sections très transparentes = globe respire
   Les composants internes (cards, stat-items) gardent leurs fonds
════════════════════════════════════════════════════════════ */

/* Hero : voile sombre dégradé derrière le titre — globe visible mais atténué */
body.home .hero {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
}

/* Dégradé sombre centré sur la zone texte — s'évanouit vers les bords */
body.home .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 80% at 28% 50%,
    rgba(4, 4, 18, 0.82) 0%,
    rgba(4, 4, 18, 0.50) 40%,
    rgba(4, 4, 18, 0.18) 70%,
    transparent 100%
  );
}

/* Tout le contenu du hero au-dessus du voile */
body.home .hero-inner,
body.home .hero-eyebrow,
body.home .hero-title,
body.home .hero-subtitle,
body.home .hero-cta-group,
body.home .scroll-hint {
  position: relative;
  z-index: 2;
}

/* Sections : très faible opacité → la Terre reste visible à travers */
body.home .section {
  background: rgba(4, 4, 14, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: 1px solid rgba(201, 168, 76, 0.05);
}

/* Bandeau sur-mesure : quasi invisible, le globe domine */
body.home .surmesure-band {
  background: rgba(201, 168, 76, 0.06) !important;
  backdrop-filter: none !important;
}

/* Navbar scrollée : garde son effet glass pour la lisibilité */
body.home .navbar.scrolled {
  background: rgba(4, 4, 14, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* CTA block : légèrement plus sombre pour le contraste du texte */
body.home .cta-block {
  background: rgba(4, 4, 14, 0.45) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border-top: 1px solid rgba(201, 168, 76, 0.07);
}

/* Footer : seul endroit vraiment opaque (besoin de lisibilité complète) */
body.home .footer {
  background: rgba(4, 4, 14, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

/* Responsive : retour en colonne unique sur mobile */
@media (max-width: 900px) {
  body.home .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 8rem; /* laisse de la place pour le globe en dessous */
  }
  body.home .hero-inner { padding-right: 0; }
  body.home .hero-inner::after { left: 0; right: 0; }
  body.home .hero-subtitle { margin: 0 auto 3rem; }
  body.home .hero-cta-group { align-items: center; }
  body.home .hero-eyebrow { justify-content: center; }
  body.home .hero-globe-placeholder { display: none; }
}

/* ---------- PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #canvas-bg { display: none; }
  .reveal { opacity: 1; transform: none; }
  .stagger-children > * { opacity: 1; transform: none; }
}
