/* ============================================================
   DPC IDENTITY — Cameroun × Physique
   Design System camerounais pour la Diaspora Physique Cameroun
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---- Palette DPC — Vert · Rouge · Jaune (logo exclusivement) ---- */
:root {
  /* === Couleurs exactes du logo DPC === */
  --cm-green: #009E49;
  --cm-red:   #CE1126;
  --cm-yellow:#FECB00;

  /* === Versions profondes (fonds sombres) === */
  --cm-green-deep:  #006B32;
  --cm-green-hero:  #052B13;   /* vert quasi-noir pour les hero */
  --cm-red-deep:    #8B0D1A;
  --cm-yellow-deep: #C9A200;

  /* === Primaires site — tout en vert logo === */
  --primary:       #0A2818;   /* vert très sombre (remplace bleu marine) */
  --primary-light: #155A30;   /* vert moyen */
  --primary-hero:  #052B13;   /* fond hero sombre */

  /* === Accents === */
  --accent:        #009E49;   /* vert — action principale */
  --accent-hover:  #007A38;
  --accent-yellow: #FECB00;   /* jaune — CTA principal */
  --accent-yellow-hover: #C9A200;
  --accent-red:    #CE1126;   /* rouge — tags, alertes */

  /* === Surfaces === */
  --cream-bg: #F5FAF7;        /* fond clair légèrement vert */
  --white:    #ffffff;

  /* === Texte === */
  --text-dark: #061410;       /* quasi-noir vert */
  --text-gray: #4A5D52;       /* gris vert */

  /* === Glows === */
  --glow-green:  rgba(0, 158, 73, 0.45);
  --glow-yellow: rgba(254, 203, 0, 0.55);
  --glow-red:    rgba(206, 17, 38, 0.35);

  /* === Footer === */
  --footer-grad: linear-gradient(135deg, #071A0E 0%, #0D3A1F 100%);

  /* === Typographie & design tokens globaux === */
  --font:           'Inter', sans-serif;
  --radius-card:    24px;
  --radius-section: 60px;
  --radius-pill:    50px;
  --transition:     all 0.3s ease;
}

/* ============================================================
   0. GLOBAL RESETS — appliqués sur toutes les pages
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; object-fit: cover; }
html { scroll-behavior: smooth; }

/* ============================================================
   1. PREMIUM GLOBAL ENHANCEMENTS
   ============================================================ */

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-hero); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--cm-yellow));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
html { scrollbar-color: var(--accent) var(--primary-hero); scrollbar-width: thin; }

/* Page load fade-in */
@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}
body {
  font-family: var(--font);
  background: var(--cream-bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: pageEnter 0.6s ease-out;
  overflow-x: hidden;
}

/* Scroll-Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* Glassmorphism Navbar */
.navbar.glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(15, 30, 51, 0.12);
}

/* Gradient Text — static accent color, no shimmer */
.gradient-text {
  color: var(--cm-yellow);
  -webkit-text-fill-color: var(--cm-yellow);
}

/* Glow Button Enhancement */
.btn-glow {
  position: relative;
  z-index: 1;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  filter: blur(16px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.btn-glow:hover::after {
  opacity: 0.55;
}

/* Animated underlines for nav links */
.nav-animated a {
  position: relative;
}
.nav-animated a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cm-yellow));
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-animated a:hover::after {
  width: 100%;
  left: 0;
}

/* Premium Card Hover */
.card-hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(15, 30, 51, 0.15);
}

/* Gradient border card */
.gradient-border {
  position: relative;
  background: var(--white);
  border-radius: 40px;
  padding: 3px;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--cm-yellow), var(--cm-green), var(--accent));
  background-size: 300% 300%;
  animation: gradientRotate 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
@keyframes gradientRotate {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================================
   1. DIVISEUR TRICOLORE PROFESSIONNEL — Vert · Rouge · Jaune
   ============================================================ */

/* Remplacement des toghu-bands par un diviseur logo-fidèle épuré */
.tricolor-divider {
  display: flex;
  width: 100%;
  height: 5px;
  position: relative;
  z-index: 50;
}
.tricolor-divider span:nth-child(1) {
  flex: 1;
  background: var(--cm-green);
}
.tricolor-divider span:nth-child(2) {
  flex: 1;
  background: var(--cm-red);
}
.tricolor-divider span:nth-child(3) {
  flex: 1;
  background: var(--cm-yellow);
}
.tricolor-divider.slim {
  height: 3px;
}

/* Conservation de .toghu-band pour rétrocompatibilité (classes éventuellement restantes) */
.toghu-band { display: none; }

/* ============================================================
   2. ÉTOILE DE L'UNITÉ — SVG inline réutilisable
   ============================================================ */
.cm-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.cm-star svg { width: 100%; height: 100%; }
.cm-star--sm { width: 16px; height: 16px; }
.cm-star--lg { width: 40px; height: 40px; }
.cm-star--xl { width: 64px; height: 64px; }

/* Étoile comme puce de liste */
.star-list { list-style: none; padding: 0; }
.star-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; font-size: 14px; line-height: 1.6;
}
.star-list li::before {
  content: '';
  width: 12px; height: 12px;
  flex-shrink: 0; margin-top: 4px;
  background: var(--cm-yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Filigrane étoile (ENHANCED with pulse) */
.star-watermark {
  position: absolute;
  width: 400px; height: 400px;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
  animation: starPulse 8s ease-in-out infinite;
}
.star-watermark svg { width: 100%; height: 100%; fill: var(--cm-yellow); }
@keyframes starPulse {
  0%, 100% { opacity: 0.03; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.06; transform: scale(1.05) rotate(8deg); }
}

/* ============================================================
   3. ONDE SINUSOÏDALE — Séparateur de sections
   ============================================================ */
.wave-divider { width: 100%; overflow: hidden; line-height: 0; position: relative; z-index: 2; }
.wave-divider svg { display: block; width: 100%; height: 60px; }
.wave-divider.flip { transform: scaleY(-1); }
.wave-divider.cm-wave svg path { fill: var(--cm-green); }
.wave-divider.cream-wave svg path { fill: var(--cream-bg); }
.wave-divider.dark-wave svg path { fill: var(--primary-hero); }

/* ============================================================
   4. FOND HEXAGONAL — DÉSACTIVÉ
   Motif nid d'abeilles retiré (demande client). La couleur de
   fond du parent est conservée — aplat uni à la place.
   ============================================================ */

/* Conserver position: relative pour les éléments qui l'utilisent */
.hex-bg { position: relative; }

/* AUCUN motif — pas de ::before sur body ni sur .hex-bg */

/* ============================================================
   5. ACCENTS TRICOLORES
   ============================================================ */
.tricolor-bar { display: flex; width: 100%; height: 4px; }
.tricolor-bar span:nth-child(1) { flex: 1; background: var(--cm-green); }
.tricolor-bar span:nth-child(2) { flex: 1; background: var(--cm-red); }
.tricolor-bar span:nth-child(3) { flex: 1; background: var(--cm-yellow); }
.tricolor-bar.thick span { height: 6px; }

/* ============================================================
   6. TOGHU CORNERS — Coin décoratif pour les cards
   ============================================================ */
.toghu-corner { position: relative; overflow: hidden; }
.toghu-corner::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  background:
    linear-gradient(135deg, var(--cm-green) 25%, transparent 25%) -4px 0,
    linear-gradient(225deg, var(--cm-green) 25%, transparent 25%) -4px 0,
    linear-gradient(315deg, var(--cm-green) 25%, transparent 25%),
    linear-gradient(45deg, var(--cm-green) 25%, transparent 25%);
  background-size: 8px 8px;
  background-color: var(--cm-yellow);
  opacity: 0.15;
  border-radius: 0 0 0 24px;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.toghu-corner:hover::before { opacity: 0.3; }

/* ============================================================
   7. DRAPEAU STRIPE — Highlight latéral
   ============================================================ */
.flag-stripe { position: relative; }
.flag-stripe::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--cm-green) 0%, var(--cm-green) 33%, var(--cm-red) 33%, var(--cm-red) 66%, var(--cm-yellow) 66%, var(--cm-yellow) 100%);
  border-radius: 3px 0 0 3px;
}

/* ============================================================
   8. ANIMATIONS CAMEROUNAISES (ENHANCED)
   ============================================================ */
@keyframes toghu-scroll {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}
.toghu-band.animated { animation: toghu-scroll 2s linear infinite; }

@keyframes star-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================================================
   9. SECTION STAT avec étoile
   ============================================================ */
.cm-stat-value { position: relative; display: inline-block; }
.cm-stat-value::after {
  content: '';
  position: absolute; top: -4px; right: -10px;
  width: 10px; height: 10px;
  background: var(--cm-yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ============================================================
   10. FLOATING PARTICLES — Hero background decoration
   ============================================================ */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particles span {
  position: absolute;
  display: block;
  width: 6px; height: 6px;
  background: rgba(212, 168, 67, 0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
.particles span:nth-child(1) { left: 10%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: 0s; bottom: -10px; }
.particles span:nth-child(2) { left: 25%; width: 6px; height: 6px; animation-duration: 22s; animation-delay: 2s; bottom: -10px; }
.particles span:nth-child(3) { left: 40%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: 4s; bottom: -10px; }
.particles span:nth-child(4) { left: 55%; width: 5px; height: 5px; animation-duration: 20s; animation-delay: 1s; bottom: -10px; }
.particles span:nth-child(5) { left: 70%; width: 4px; height: 4px; animation-duration: 24s; animation-delay: 3s; bottom: -10px; }
.particles span:nth-child(6) { left: 85%; width: 7px; height: 7px; animation-duration: 19s; animation-delay: 5s; bottom: -10px; }
.particles span:nth-child(7) { left: 15%; width: 5px; height: 5px; animation-duration: 21s; animation-delay: 7s; bottom: -10px; }
.particles span:nth-child(8) { left: 65%; width: 3px; height: 3px; animation-duration: 17s; animation-delay: 6s; bottom: -10px; }

@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================================
   11. DECORATIVE QUOTATION MARKS
   ============================================================ */
.quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 20px;
  left: 30px;
  pointer-events: none;
}

/* ============================================================
   12. UTILITAIRES
   ============================================================ */
.cm-green-text { color: var(--cm-green); }
.cm-red-text { color: var(--cm-red); }
.cm-yellow-text { color: var(--cm-yellow); }
.cm-green-bg { background-color: var(--cm-green); }
.cm-red-bg { background-color: var(--cm-red); }
.cm-yellow-bg { background-color: var(--cm-yellow); }

/* ============================================================
   13. PHYSIQUE — Orbite atomique animée
   Modèle de Bohr avec 3 orbites et électrons
   ============================================================ */
.atom-orbit {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.atom-orbit .nucleus {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--cm-yellow);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(252, 209, 22, 0.6);
}
.atom-orbit .orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1.5px solid rgba(212, 168, 67, 0.15);
  border-radius: 50%;
}
.atom-orbit .orbit-1 {
  width: 120px; height: 120px;
  margin: -60px 0 0 -60px;
  animation: orbitSpin 8s linear infinite;
}
.atom-orbit .orbit-2 {
  width: 200px; height: 200px;
  margin: -100px 0 0 -100px;
  transform: rotate(60deg);
  animation: orbitSpin 12s linear infinite reverse;
}
.atom-orbit .orbit-3 {
  width: 280px; height: 280px;
  margin: -140px 0 0 -140px;
  transform: rotate(-30deg);
  animation: orbitSpin 16s linear infinite;
}
.atom-orbit .electron {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.7), 0 0 4px rgba(252, 209, 22, 0.9);
  top: -4px; left: 50%;
  margin-left: -4px;
}
.atom-orbit .orbit-2 .electron {
  background: var(--cm-yellow);
  box-shadow: 0 0 12px rgba(252, 209, 22, 0.7);
}
.atom-orbit .orbit-3 .electron {
  background: var(--cm-green);
  box-shadow: 0 0 12px rgba(0, 122, 94, 0.7);
  width: 6px; height: 6px;
  top: -3px; margin-left: -3px;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Taille variante */
.atom-orbit.atom-sm { transform: scale(0.5); }
.atom-orbit.atom-lg { transform: scale(1.4); }
.atom-orbit.atom-xl { transform: scale(2); }

/* ============================================================
   14. PHYSIQUE — Watermark Équations
   Fond de formules E=mc², ∇²ψ, ℏ, ∫, Δ
   ============================================================ */
.physics-equations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}
.physics-equations span {
  position: absolute;
  font-family: 'Times New Roman', serif;
  font-style: italic;
  color: var(--white);
  white-space: nowrap;
  animation: eqFloat 30s linear infinite;
}
.physics-equations span:nth-child(1) { font-size: 48px; top: 10%; left: 5%; animation-delay: 0s; animation-duration: 35s; }
.physics-equations span:nth-child(2) { font-size: 36px; top: 25%; left: 75%; animation-delay: -5s; animation-duration: 28s; }
.physics-equations span:nth-child(3) { font-size: 56px; top: 50%; left: 20%; animation-delay: -12s; animation-duration: 40s; }
.physics-equations span:nth-child(4) { font-size: 32px; top: 70%; left: 60%; animation-delay: -8s; animation-duration: 32s; }
.physics-equations span:nth-child(5) { font-size: 42px; top: 85%; left: 35%; animation-delay: -15s; animation-duration: 38s; }
.physics-equations span:nth-child(6) { font-size: 28px; top: 40%; left: 90%; animation-delay: -20s; animation-duration: 25s; }
.physics-equations span:nth-child(7) { font-size: 38px; top: 60%; left: 10%; animation-delay: -3s; animation-duration: 42s; }
.physics-equations span:nth-child(8) { font-size: 44px; top: 15%; left: 50%; animation-delay: -18s; animation-duration: 36s; }
@keyframes eqFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  5%   { opacity: 1; }
  45%  { opacity: 1; }
  50%  { opacity: 0; transform: translateY(-60px) rotate(5deg); }
  50.1%{ transform: translateY(60px) rotate(-3deg); opacity: 0; }
  55%  { opacity: 1; }
  95%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(0) rotate(0deg); }
}
/* Dark variant for light sections */
.physics-equations.dark span { color: var(--primary); }

/* ============================================================
   15. PHYSIQUE — Spectral Emission Lines
   Bandes colorées inspirées du spectre d'émission
   ============================================================ */
.spectral-card {
  position: relative;
  overflow: hidden;
}
.spectral-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #7B42F5 4%, transparent 5%,
    transparent 12%,
    #4287f5 14%, transparent 15%,
    transparent 25%,
    var(--cm-green) 27%, transparent 28%,
    transparent 38%,
    #42f5a1 40%, transparent 41%,
    transparent 52%,
    var(--cm-yellow) 54%, transparent 56%,
    transparent 65%,
    #f5a142 67%, transparent 69%,
    transparent 78%,
    var(--cm-red) 80%, transparent 82%,
    transparent 90%,
    #f54242 92%, transparent 94%,
    transparent 100%
  );
  opacity: 0.7;
  transition: opacity 0.3s ease, height 0.3s ease;
}
.spectral-card:hover::after {
  height: 6px;
  opacity: 1;
}

/* ============================================================
   16. PHYSIQUE — Constellation / Node Network
   Réseau de points connectés — Structure moléculaire
   ============================================================ */
.node-network {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.node-network svg { width: 100%; height: 100%; }
.node-network circle {
  fill: rgba(212, 168, 67, 0.25);
}
.node-network line {
  stroke: rgba(212, 168, 67, 0.08);
  stroke-width: 1;
}
.node-network .node-pulse {
  animation: nodePulse 3s ease-in-out infinite;
}
.node-network .node-pulse:nth-child(even) { animation-delay: 1.5s; }
@keyframes nodePulse {
  0%, 100% { r: 3; opacity: 0.3; }
  50% { r: 5; opacity: 0.7; }
}

/* ============================================================
   17. PHYSIQUE — Animated Sine Wave Divider
   Onde continue animée
   ============================================================ */
.sine-wave-divider {
  width: 100%;
  height: 80px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.sine-wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: sineScroll 6s linear infinite;
}
@keyframes sineScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   18. PHYSIQUE — Lab Grid Background — DÉSACTIVÉ
   Quadrillage "cahier de labo" retiré (demande client).
   La couleur de fond du parent est conservée.
   ============================================================ */
.lab-grid-bg {
  position: relative;
}
/* AUCUN motif quadrillé — pas de ::before ni ::after */

/* ============================================================
   19. PHYSIQUE — Physics Symbol Badges
   Badges avec symboles physiques (ψ, α, β, γ, Δ)
   ============================================================ */
.physics-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(212, 168, 67, 0.12);
  border: 1.5px solid rgba(212, 168, 67, 0.2);
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 24px;
  font-style: italic;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.physics-badge:hover {
  background: var(--accent);
  color: var(--white);
  transform: rotate(8deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

/* Large variant */
.physics-badge.badge-lg {
  width: 72px; height: 72px;
  font-size: 36px;
  border-radius: 20px;
}

/* ============================================================
   20. LOGO NAVBAR — Intégration image logo DPC
   ============================================================ */

/* Remplace le texte "DPC" par l'image du logo */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(254, 203, 0, 0.30));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo-img:hover {
  filter: drop-shadow(0 4px 18px rgba(254, 203, 0, 0.55))
          drop-shadow(0 0 8px rgba(0, 158, 73, 0.3));
  transform: scale(1.05);
}

/* Logo footer (légèrement plus petit + teinte blanche) */
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(254, 203, 0, 0.4));
  margin-bottom: 16px;
}

/* ============================================================
   21. ORBITES ATOMIQUES EN FOND — inspirées du logo DPC
   SVG orbites entrelacées tricolores en filigrane
   ============================================================ */

/* Grand filigrane orbital (réplique logo) pour hero/CTA */
.orbit-watermark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  animation: orbitWatermarkPulse 12s ease-in-out infinite;
}
.orbit-watermark svg { width: 100%; height: 100%; }
@keyframes orbitWatermarkPulse {
  0%, 100% { opacity: 0.05; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.09; transform: scale(1.04) rotate(6deg); }
}

/* Variante plus visible pour certaines sections */
.orbit-watermark.strong { opacity: 0.11; }

/* ============================================================
   22. GRADIENT TEXT tricolore logo (vert → rouge → jaune)
   ============================================================ */
/* gradient-text-logo — static yellow, no shimmer */
.gradient-text-logo {
  color: var(--cm-yellow);
  -webkit-text-fill-color: var(--cm-yellow);
}

/* ============================================================
   23. HERO AMBIENT GLOW — halo tricolore calqué logo
   Aura verte à gauche, rouge centre, jaune à droite
   ============================================================ */
.hero-tricolor-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 40% 60% at 15% 60%, rgba(0,158,73,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 35% 55% at 50% 40%, rgba(206,17,38,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 60%, rgba(254,203,0,0.12) 0%, transparent 70%);
}

/* ============================================================
   24. TOGHU BAND — couleurs mises à jour palette logo
   ============================================================ */
.toghu-band {
  background:
    linear-gradient(135deg, var(--cm-green) 25%, transparent 25%) -7px 0,
    linear-gradient(225deg, var(--cm-green) 25%, transparent 25%) -7px 0,
    linear-gradient(315deg, var(--cm-green) 25%, transparent 25%),
    linear-gradient( 45deg, var(--cm-green) 25%, transparent 25%);
  background-size: 14px 14px;
  background-color: var(--cm-yellow);
}

/* ============================================================
   25. SPECTRAL CARD — override couleurs logo
   ============================================================ */
.spectral-card::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--cm-green)  6%, transparent  8%,
    transparent 18%,
    #42c6f5 20%, transparent 22%,
    transparent 35%,
    var(--cm-yellow) 37%, transparent 39%,
    transparent 52%,
    var(--cm-red)   54%, transparent 56%,
    transparent 68%,
    var(--cm-green)  70%, transparent 72%,
    transparent 85%,
    var(--cm-yellow) 87%, transparent 90%
  );
}

/* ============================================================
   26. SCROLL-REVEAL — inchangé
   ============================================================ */

/* ============================================================
   27. PREMIUM FIXED NAVBAR — Floating White Pill Design
   ============================================================ */

/* === Header Container (Invisible, handles scroll padding) === */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  padding: 30px 40px !important;
  background: transparent !important;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease !important;
  pointer-events: none; /* Let clicks pass through empty areas */
}

/* On scroll: reduce padding slightly and maybe add a very faint backdrop */
.header.scrolled {
  padding: 16px 40px !important;
}

/* === Navbar Floating Pill === */
.navbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 10px 14px 10px 32px !important; /* asymétrique pour le bouton a droite */
  background: #ffffff !important;
  border-radius: 100px !important; /* Fully rounded ends */
  box-shadow: 0 16px 40px rgba(7, 21, 37, 0.12), 
              0 0 0 1px rgba(0,0,0,0.03) !important;
  pointer-events: auto; /* Re-enable clicks for the pill */
  position: relative;
  transition: box-shadow 0.4s ease !important;
}

.header.scrolled .navbar {
  box-shadow: 0 20px 50px rgba(7, 21, 37, 0.2), 
              0 0 0 1px rgba(0,0,0,0.05) !important;
}

/* Supprimer la bordure/scrolled inutile des versions précédentes */
.navbar::after, .header::before {
  display: none !important;
}

/* === Logo === */
.navbar .logo {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar .logo-img {
  height: 50px !important;
  width: auto !important;
  transition: transform 0.3s ease !important;
}
.navbar .logo-img:hover {
  transform: scale(1.06) !important;
}

/* === Navigation Links === */
.navbar .nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: transparent !important;
}

.navbar .nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--primary) !important; /* Vert sombre brand */
  border-radius: 50px;
  transition: color 0.25s ease !important;
}

/* Hover : texte devient Vert logo */
.navbar .nav-links a:hover {
  color: var(--cm-green) !important;
}

/* Underline tricolore (Jaune/Rouge) animé au survol */
.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cm-yellow), var(--cm-red));
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
  width: calc(100% - 32px);
  left: 16px;
  opacity: 1;
}

.navbar .nav-links a.active {
  color: var(--cm-green) !important;
}

/* === Bouton CTA "FAIRE UN DON" (Couleurs du Logo) === */
.navbar .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  /* Fond Jaune (du logo) pour s'harmoniser avec le vert/rouge */
  background: var(--cm-yellow) !important;
  color: var(--primary) !important; /* Vert très sombre — fort contraste */
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 12px 14px 12px 28px !important;
  border-radius: 50px !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(254, 203, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap;
}

.navbar .btn-primary:hover {
  /* Nuance légèrement différente au survol + ombre verte */
  background: #ffd633 !important;
  box-shadow: 0 10px 30px rgba(254, 203, 0, 0.5), 
              0 0 0 3px rgba(0, 158, 73, 0.15) !important; /* Glow vert doux */
  transform: translateY(-2px) !important;
}

/* Cercle flèche dans le bouton CTA */
.navbar .btn-primary .arrow-circle {
  width: 34px !important;
  height: 34px !important;
  background: var(--primary) !important; /* Vert sombre */
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  transition: transform 0.3s ease, background 0.3s ease !important;
}

.navbar .btn-primary:hover .arrow-circle {
  background: var(--cm-green) !important; /* Devient vert au survol */
  transform: translateX(3px) !important;
}

/* === body padding === */
body { padding-top: 0 !important; }

/* Ajustement hero */
.home-hero,
.about-hero-wrapper,
.contact-hero,
.blog-hero-section,
.offres-hero,
.connexion-hero,
.don-hero,
.hero {
  padding-top: 140px !important;
}

/* ============================================================
   28. HAMBURGER MENU — Mobile Navigation
   ============================================================ */

/* Hamburger Button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary, #0A2818);
  border: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1001;
  gap: 5px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hamburger.active {
  background: var(--cm-red, #CE1126);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 21, 37, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 120px 40px 60px;
  overflow-y: auto;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-overlay a {
  display: block;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1.5px;
  padding: 14px 32px;
  border-radius: 16px;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
}
.mobile-nav-overlay.active a {
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav-overlay.active a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav-overlay.active a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav-overlay.active a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav-overlay.active a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav-overlay.active a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav-overlay.active a:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav-overlay.active a:nth-child(7) { transition-delay: 0.35s; }
.mobile-nav-overlay.active a:nth-child(8) { transition-delay: 0.4s; }

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active {
  color: var(--cm-yellow, #FECB00);
  background: rgba(255,255,255,0.05);
}
.mobile-nav-overlay .mobile-cta {
  margin-top: 24px;
  background: var(--cm-yellow, #FECB00);
  color: var(--primary, #0A2818) !important;
  font-weight: 900;
  padding: 16px 40px;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(254, 203, 0, 0.3);
}

/* ============================================================
   29. RESPONSIVE — Global shared overrides
   ============================================================ */

/* ---- 1280px : compact desktop ---- */
@media (max-width: 1280px) {
  .navbar .nav-links {
    gap: 4px !important;
  }
  .navbar .nav-links a {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  .navbar .btn-primary {
    font-size: 10px !important;
    padding: 10px 12px 10px 18px !important;
  }
  .navbar .btn-primary .arrow-circle {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
  }
}

/* ---- 1024px : tablet → hamburger mode ---- */
@media (max-width: 1024px) {
  .header {
    padding: 16px 20px !important;
  }
  .header.scrolled {
    padding: 10px 20px !important;
  }
  /* Hide desktop nav items */
  .navbar .nav-links {
    display: none !important;
  }
  .navbar .btn-primary {
    display: none !important;
  }
  /* Show hamburger */
  .hamburger {
    display: flex !important;
  }
  /* Push lang-toggle + hamburger to the right */
  .nav-right {
    margin-left: auto !important;
    gap: 12px !important;
  }
  /* Footer responsive */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }
  .footer-nav-links {
    grid-template-columns: 1fr !important;
  }
}

/* ---- 768px : mobile adjustments ---- */
@media (max-width: 768px) {
  .header {
    padding: 12px 16px !important;
  }
  .header.scrolled {
    padding: 8px 16px !important;
  }
  .navbar {
    padding: 8px 10px 8px 20px !important;
  }
  .navbar .logo-img {
    height: 36px !important;
  }
  /* Footer */
  .footer {
    padding: 40px 20px 30px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-bottom p {
    font-size: 11px !important;
    text-align: center;
  }
  /* Hero sections padding */
  .home-hero,
  .about-hero-wrapper,
  .contact-hero,
  .blog-hero-section,
  .offres-hero,
  .connexion-hero,
  .don-hero,
  .hero {
    padding-top: 100px !important;
  }
  /* Toghu band */
  .toghu-band {
    height: 10px !important;
  }
}

/* ---- 480px : small phones ---- */
@media (max-width: 480px) {
  .header {
    padding: 8px 12px !important;
  }
  .navbar {
    padding: 6px 8px 6px 16px !important;
  }
  .navbar .logo-img {
    height: 30px !important;
  }
  .hamburger {
    width: 38px;
    height: 38px;
  }
  .hamburger span {
    width: 18px;
  }
  .mobile-nav-overlay {
    padding: 100px 24px 60px;
  }
  .mobile-nav-overlay a {
    font-size: 16px;
    padding: 12px 24px;
  }
  .lang-btn {
    padding: 4px 10px !important;
    font-size: 9px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
.cta-content h2 {
  font-size: clamp(26px, 2.6vw, 36px);   /* ← AVANT : clamp(36px, 4vw, 52px) */
  font-weight: 900; 
  text-transform: uppercase;
  color: var(--white); 
  line-height: 1.2; 
  max-width: 700px;                       /* ← AVANT : 520px */
  letter-spacing: -0.3px;
}
}

/* ============================================================
   30. MON ESPACE — Dropdown Navigation
   ============================================================ */

.nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* The trigger button (same visual as nav links) */
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: var(--primary) !important;
  background: transparent;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  transition: color 0.25s ease !important;
}

.nav-dropdown-caret {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
  line-height: 1;
}

/* Hover / active state — same green as nav links */
.nav-dropdown-wrap:hover .nav-dropdown-trigger,
.nav-dropdown-wrap.active .nav-dropdown-trigger,
.nav-dropdown-wrap.is-current .nav-dropdown-trigger {
  color: var(--cm-green) !important;
}
.nav-dropdown-wrap:hover .nav-dropdown-caret,
.nav-dropdown-wrap.active .nav-dropdown-caret,
.nav-dropdown-wrap.is-current .nav-dropdown-caret {
  transform: rotate(180deg);
}

/* Underline animation — matches .navbar .nav-links a::after */
.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cm-yellow), var(--cm-red));
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.nav-dropdown-wrap:hover .nav-dropdown-trigger::after,
.nav-dropdown-wrap.active .nav-dropdown-trigger::after,
.nav-dropdown-wrap.is-current .nav-dropdown-trigger::after {
  width: calc(100% - 32px);
  left: 16px;
  opacity: 1;
}

/* The floating panel */
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(7, 21, 37, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 500;
  overflow: hidden;
}

/* Tricolor accent bar at top of panel */
.nav-dropdown-panel::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--cm-green) 0%, var(--cm-red) 50%, var(--cm-yellow) 100%);
  margin: -8px -8px 8px -8px;
}

.nav-dropdown-wrap:hover .nav-dropdown-panel,
.nav-dropdown-wrap.active .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.nav-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px 14px !important;
  border-radius: 14px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--primary) !important;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease !important;
  line-height: 1 !important;
}

.nav-dropdown-item:hover {
  background: var(--cream-bg) !important;
  color: var(--cm-green) !important;
}

/* Override the global nav-links a::after on dropdown items */
.nav-dropdown-item::after {
  display: none !important;
}

/* Icon container in dropdown items */
.nav-dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(0, 158, 73, 0.1);
  border-radius: 10px;
  transition: background 0.2s ease;
}
.nav-dropdown-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--cm-green);
  flex-shrink: 0;
}
.nav-dropdown-item:hover .nav-dropdown-icon {
  background: rgba(0, 158, 73, 0.18);
}

/* Mobile nav separator label */
.mobile-nav-sep {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(254, 203, 0, 0.75);
  padding: 16px 0 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.33s, transform 0.4s ease 0.33s;
  pointer-events: none;
  text-align: center;
}
.mobile-nav-overlay.active .mobile-nav-sep {
  opacity: 1;
  transform: translateY(0);
}

/* Adjust mobile overlay stagger for extra links */
.mobile-nav-overlay.active a:nth-child(8)  { transition-delay: 0.35s; }
.mobile-nav-overlay.active a:nth-child(9)  { transition-delay: 0.40s; }
.mobile-nav-overlay.active a:nth-child(10) { transition-delay: 0.45s; }
.mobile-nav-overlay.active a:nth-child(11) { transition-delay: 0.50s; }

/* Hide dropdown on tablet/mobile (hamburger nav takes over) */
@media (max-width: 1024px) {
  .nav-dropdown-wrap { display: none !important; }
}

/* ============================================================
   31. SÉLECTEUR DE LANGUE — FR | EN
   ============================================================ */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(10, 40, 24, 0.07);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1;
}

.lang-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(10, 40, 24, 0.25);
}

.lang-btn:hover:not(.active) {
  color: var(--primary);
}

/* lang-toggle stays visible on all screen sizes */

/* ============================================================
   32. FOOTER — fond dégradé vert sombre + étoile en filigrane
   ============================================================ */

.footer {
  background: var(--footer-grad);
  padding: 60px 40px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 30px; max-width: 280px; }
.newsletter-form { display: flex; align-items: center; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.2); border-radius: var(--radius-pill, 100px); padding: 8px 8px 8px 24px; max-width: 340px; }
.newsletter-form input { flex: 1; background: transparent; border: none; color: var(--white); font-family: var(--font); font-size: 14px; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; flex-shrink: 0; transition: background .3s; }
.newsletter-btn:hover { background: var(--accent-hover); }
.newsletter-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-nav h4, .footer-social h4 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; color: var(--white); }
.footer-nav ul { display: flex; flex-direction: column; gap: 14px; }
.footer-nav ul li a { font-size: 13px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,.65); letter-spacing: .5px; transition: color .3s; }
.footer-nav ul li a:hover { color: var(--white); }
.footer-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.footer-nav-links li a { font-size: 13px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,.65); letter-spacing: .5px; transition: color .3s; }
.footer-nav-links li a:hover { color: var(--white); }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 120px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: rgba(212,168,67,.25); border-radius: 14px; cursor: pointer; transition: all .3s; text-decoration: none; }
.social-icon:hover { background: var(--accent); transform: translateY(-2px); }
.social-icon svg { width: 20px; height: 20px; fill: var(--white); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { font-size: 13px; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,.5); }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-nav-links { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .footer { padding: 40px 20px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom p { font-size: 11px; text-align: center; }
}

/* Star watermark inside footer */
.footer-star-bg {
  position: absolute;
  top: -40px;
  right: 4%;
  width: 420px;
  height: 420px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: footerStarPulse 10s ease-in-out infinite;
}
.footer-star-bg svg { width: 100%; height: 100%; }

@keyframes footerStarPulse {
  0%, 100% { opacity: 0.045; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.09;  transform: scale(1.04) rotate(6deg); }
}

/* All footer content above the star */
.footer-grid, .footer-bottom { position: relative; z-index: 1; }

/* ============================================================
   33. HEX PATTERN SUR BLOCS — DÉSACTIVÉ
   Motif nid d'abeilles retiré (demande client). On garde
   uniquement les règles de positionnement utiles, sans le
   pseudo-élément ::before qui dessinait le motif.
   ============================================================ */

.cta-banner,
.values-section,
.partners-section,
.mission-section,
.projects-section,
.faq-section,
.member-cta,
.hero-bg-shape {
  position: relative;
}

.hero-bg-shape { overflow: hidden; }

/* AUCUN motif hex — pas de ::before sur ces sections */

/* ============================================================
   34. TAILLES DE TITRES — Réduction raisonnable
   Réduit les gros titres sans les rendre invisibles.
   Utilise clamp() : taille fluide entre minimum et maximum.
   ============================================================ */

h1,
.hero-title,
.home-hero h1,
.about-hero-wrapper h1,
.contact-hero h1,
.blog-hero-section h1,
.offres-hero h1,
.connexion-hero h1,
.don-hero h1 {
  font-size: clamp(28px, 4.2vw, 52px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.5px;
}

h2,
.section-title,
.stats-title,
.values-section h2,
.partners-section h2,
.mission-section h2,
.projects-section h2,
.cta-banner h2,
.faq-section h2,
.member-cta h2 {
  font-size: clamp(24px, 3.2vw, 40px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.3px;
}

h3 {
  font-size: clamp(18px, 2vw, 26px) !important;
  line-height: 1.3 !important;
}

/* Tailles mobiles : reprend le bas du clamp */
@media (max-width: 768px) {
  h1, .hero-title { font-size: clamp(24px, 7vw, 34px) !important; }
  h2, .section-title { font-size: clamp(22px, 6vw, 28px) !important; }
  h3 { font-size: clamp(16px, 4.5vw, 20px) !important; }
}

/* ============================================================
   36. CTA BANNER — toutes pages
   ============================================================ */

.cta-banner {
  background: var(--footer-grad);
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  padding: 55px 60px 65px;
  margin-top: 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.cta-content h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.15;
  max-width: 600px;
  letter-spacing: -0.3px;
  text-wrap: balance;
}

.cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .cta-banner { padding: 40px 24px 50px; }
  .cta-content { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline-white { width: 100%; justify-content: center; }
}