/* ============================================================
   ASFH — Association des Sages-Femmes d'Haïti
   Stylesheet v1
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --rose: #E52E8A;
  --rose-dark: #7A1B5C;
  --rose-pale: #FFE3F6;
  --rose-soft: #FDA9D1;

  --aqua: #00CBFC;
  --aqua-dark: #084EC3;
  --aqua-soft: #4F8FD6;
  --aqua-pale: #E6F7FF;

  --marine: #084EC3;
  --marine-dark: #262262;
  --marine-deep: #0A1845;
  --violet: #6A52B5;

  --vert: #B0ED7E;
  --vert-dark: #5E9A3D;

  --peche: #FEE1B5;
  --peche-warm: #F5B27A;

  /* Neutrals */
  --noir: #1A1A2E;
  --gris-fonce: #262262;
  --gris: #6B6B80;
  --gris-clair: #BFBCC6;
  --gris-pale: #F4F2EF;
  --beige: #FBF8F4;
  --blanc: #ffffff;

  /* Type */
  --font-sans: 'Lato', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --font-serif: 'Lato', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1280px;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(20, 19, 26, 0.06);
  --shadow: 0 12px 36px rgba(20, 19, 26, 0.08);
  --shadow-lg: 0 28px 60px rgba(20, 19, 26, 0.14);
  --shadow-rose: 0 18px 40px rgba(229, 46, 138, 0.32);

  --nav-h: 78px;
  --activity-h: 56px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--noir);
  background: var(--blanc);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; font-weight: 900; letter-spacing: -0.01em; color: var(--marine-dark); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.serif { font-family: var(--font-serif); font-weight: 900; }

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--blanc);
  color: var(--noir);
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn i { font-size: 1em; line-height: 1; }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: #c9237a; box-shadow: var(--shadow-rose); }
.btn-secondary { background: #fff; color: var(--rose); }
.btn-marine { background: var(--marine); color: #fff; }
.btn-marine:hover { background: var(--marine-dark); }
.btn-outline { background: transparent; color: var(--noir); border-color: var(--gris-clair); }
.btn-outline:hover { background: var(--noir); color: #fff; border-color: var(--noir); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ---------- SECTION HEADERS ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  margin-bottom: 14px;
}
.section-divider {
  width: 56px;
  height: 4px;
  background: var(--rose);
  border-radius: 4px;
  margin: 18px auto 22px;
}
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header p { color: var(--gris); font-size: 1.05rem; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(20, 19, 26, 0.06);
  transition: box-shadow .2s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-logo-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-rose);
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-text strong { font-size: 1rem; color: var(--noir); }
.nav-logo-text span { font-size: 0.74rem; color: var(--gris); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav-menu > li { position: relative; }
.nav-link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--gris-fonce);
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--rose); background: var(--rose-pale); }
.has-sub > .nav-link::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  vertical-align: middle;
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 19, 26, 0.06);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
}
.has-sub:hover .nav-submenu,
.has-sub:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gris-fonce);
  transition: background .15s ease, color .15s ease;
}
.nav-submenu li a:hover { background: var(--rose-pale); color: var(--rose); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .social-icons { display: inline-flex; align-items: center; gap: 4px; }
.nav-actions .social-icons a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: var(--marine-dark); opacity: .85; transition: opacity .2s; }
.nav-actions .social-icons a:hover { opacity: 1; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--gris-clair);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button,
.lang-switch a,
.lang-switch .lang-btn {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gris);
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.lang-switch button.active,
.lang-switch a.active,
.lang-switch .lang-btn.active { background: var(--noir); color: #fff; }

.nav-burger {
  display: none;
  padding: 10px;
  font-size: 1.4rem;
  color: var(--noir);
}

/* ---------- ACTIVITY BAR ---------- */
.activity-bar {
  background: linear-gradient(90deg, var(--marine-dark) 0%, var(--rose-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.activity-bar.hidden { display: none; }
.activity-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--activity-h);
  padding: 10px 24px;
}
.activity-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
  flex-shrink: 0;
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--vert);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 0 rgba(176, 237, 126, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(176, 237, 126, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(176, 237, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 237, 126, 0); }
}
.activity-bar-rotator {
  flex: 1;
  position: relative;
  min-height: 36px;
}
.activity-bar-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all .5s ease;
  pointer-events: none;
}
.activity-bar-item.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}
.activity-bar-item strong { font-weight: 700; }
.activity-bar-item .activity-when {
  opacity: 0.75;
  font-size: 0.88rem;
}
.activity-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--vert);
  margin-left: auto;
  flex-shrink: 0;
}
.activity-cta:hover { color: #fff; }
.activity-bar-close {
  font-size: 1.4rem;
  color: #fff;
  opacity: 0.7;
  padding: 0 4px;
  flex-shrink: 0;
}
.activity-bar-close:hover { opacity: 1; }

.activity-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.activity-type.rose { background: var(--rose); color: #fff; }
.activity-type.aqua { background: var(--aqua); color: #003244; }
.activity-type.vert { background: var(--vert); color: #1f3d0a; }
.activity-type.peche { background: var(--peche); color: #6e3d05; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 620px;
  max-height: 880px;
  overflow: hidden;
  background: var(--marine-dark);
  color: #fff;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* fallback couleur si l'image ne charge pas */
  background-color: var(--marine-dark);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 7, 20, 0.55) 0%,
    rgba(8, 7, 20, 0.30) 50%,
    rgba(8, 7, 20, 0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-content h1 {
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.hero-content p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin: 0 auto 32px;
  max-width: 640px;
  opacity: 0.95;
}
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all .2s ease;
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.08); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all .2s ease;
}
.hero-dot.active { background: #fff; width: 28px; border-radius: 999px; }

.hero-scroll {
  position: absolute;
  bottom: 20px;
  right: 30px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 32px;
  background: #fff;
  margin: 8px auto 0;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  display: block;
}
.hero-shape svg { width: 100%; height: 100%; }
.hero-shape.s1 { top: 8%; left: 6%; width: 180px; height: 180px; opacity: 0.35; animation: floaty 12s ease-in-out infinite; }
.hero-shape.s2 { bottom: 12%; right: 8%; width: 220px; height: 220px; opacity: 0.28; animation: floaty 14s ease-in-out infinite reverse; }
.hero-shape.s3 { top: 18%; right: 14%; width: 60px; height: 60px; opacity: 0.6; animation: floaty 8s ease-in-out infinite; }
.hero-shape.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.7; }
.hero-shape.s4 { top: 22%; left: 18%; animation: floaty 6s ease-in-out infinite; }
.hero-shape.s5 { bottom: 28%; left: 12%; width: 12px; height: 12px; background: var(--vert); animation: floaty 9s ease-in-out infinite reverse; }
.hero-shape.s6 { top: 40%; right: 24%; width: 6px; height: 6px; background: var(--peche); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero-ecg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}

/* ---------- HERO FACTS (minimal strip) ---------- */
.hero-facts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  padding: 0 32px;
  color: #fff;
  pointer-events: none;
}
.hero-fact {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  max-width: 320px;
}
.hero-fact:not(:last-of-type)::after {
  content: "";
  position: absolute;
  right: clamp(-28px, -2vw, -14px);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
}
.hero-fact-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero-fact-num .sep { opacity: 0.45; margin: 0 1px; font-weight: 700; }
.hero-fact-text {
  font-size: 0.85rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  max-width: 220px;
}
.hero-fact-source {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

/* Hero scroll moved up since strip lives at the bottom */
.hero-scroll { bottom: 90px; }

/* Hero dots below the facts strip */
.hero-dots { bottom: 22px; }

@media (max-width: 900px) {
  .hero-facts {
    bottom: 90px;
    gap: 22px;
  }
  .hero-fact:not(:last-of-type)::after { display: none; }
  .hero-fact { max-width: none; flex: 1 1 100%; justify-content: center; }
  .hero-fact-text { max-width: 280px; }
  .hero-dots { bottom: 30px; }
  .hero-scroll { display: none; }
  .hero-facts { display: none; }
}
@media (max-height: 720px) {
  .hero-facts { display: none; }
  .hero-dots { bottom: 30px; }
}

/* ---------- FACTS ---------- */
.facts {
  padding: 80px 0;
  background: var(--beige);
  position: relative;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fact {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 19, 26, 0.05);
  position: relative;
  overflow: hidden;
}
.fact::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
}
.fact.rose::before { background: var(--rose); }
.fact.aqua::before { background: var(--aqua); }
.fact.vert::before { background: var(--vert-dark); }
.fact-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.fact.rose .fact-icon { background: var(--rose-pale); color: var(--rose); }
.fact.aqua .fact-icon { background: var(--aqua-pale); color: var(--marine); }
.fact.vert .fact-icon { background: #EAFBD9; color: var(--vert-dark); }
.fact-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--noir);
  margin-bottom: 8px;
}
.fact.rose .fact-num { color: var(--rose); }
.fact.aqua .fact-num { color: var(--marine); }
.fact.vert .fact-num { color: var(--vert-dark); }
.fact-text {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--gris-fonce);
}
.fact-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gris);
  letter-spacing: 0.06em;
}

/* ---------- MISSION ---------- */
.mission { padding: 120px 0; }
.mission-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.mission-text .section-divider { margin-left: 0; margin-right: auto; }
.mission-text h2 { margin-bottom: 22px; }
.mission-tagline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--noir);
  padding-left: 22px;
  border-left: 4px solid var(--rose);
  margin-bottom: 26px;
  line-height: 1.5;
}
.mission-text p { color: var(--gris-fonce); margin-bottom: 18px; }
.mission-text .btn { margin-top: 14px; }

.mission-img {
  position: relative;
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.placeholder {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--rose-dark) 0%, var(--rose) 50%, var(--rose-soft) 100%);
  display: grid;
  place-items: center;
  position: relative;
  color: #fff;
}
.ph-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.mission-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--noir);
  color: #fff;
  border-radius: 18px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.mission-badge-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--rose);
  line-height: 1;
}
.mission-badge-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- VALUES ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid rgba(20, 19, 26, 0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--rose-soft);
}
.value-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.3rem;
  background: var(--rose-pale);
  color: var(--rose);
  margin-bottom: 16px;
}
.value-card h4 { margin-bottom: 10px; }
.value-card p { color: var(--gris); margin: 0; font-size: 0.95rem; }

/* ---------- ACTIVITES ---------- */
.activites {
  padding: 120px 0;
  background: var(--beige);
  position: relative;
  overflow: hidden;
}
.float-blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.float-blob svg { width: 100%; height: 100%; }
.fb-1 { top: -80px; left: -120px; width: 360px; height: 360px; }
.fb-2 { bottom: -100px; right: -80px; width: 320px; height: 320px; }

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

.activites-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 50px;
}
.activites-head h2 { margin-bottom: 0; }
.activites-head p {
  color: var(--gris);
  max-width: 540px;
  margin-top: 14px;
  margin-bottom: 0;
}
.activites-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gris-fonce);
  border: 1px solid rgba(20, 19, 26, 0.08);
  transition: all .15s ease;
}
.filter:hover { border-color: var(--rose); color: var(--rose); }
.filter.active { background: var(--noir); color: #fff; border-color: var(--noir); }

.activites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.activite {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20, 19, 26, 0.05);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.activite.hidden { display: none; }
.activite:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.activite.featured {
  grid-column: span 3;
  flex-direction: row;
}
.activite.featured .activite-img { width: 46%; flex-shrink: 0; }
.activite.featured .activite-body { padding: 40px 44px; }
.activite-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.activite.featured .activite-img { aspect-ratio: auto; min-height: 380px; }
.activite-flag {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--noir);
  box-shadow: var(--shadow-sm);
}
.activite-date-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  font-family: var(--font-serif);
  line-height: 1.05;
  box-shadow: var(--shadow-sm);
}
.activite-date-badge .d { display: block; font-size: 1.6rem; font-weight: 900; color: var(--rose); }
.activite-date-badge .m { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gris-fonce); }
.activite-date-badge .y { display: block; font-size: 0.65rem; color: var(--gris); }
.activite-date-badge.sm { padding: 8px 12px; }
.activite-date-badge.sm .d { font-size: 1.2rem; }

.activite-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.activite-body h3 { line-height: 1.25; }
.activite-body > p {
  color: var(--gris);
  font-size: 0.95rem;
  margin: 0;
}
.activite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--gris);
}
.activite-meta span { display: inline-flex; align-items: center; gap: 5px; }
.activite-meta i { color: var(--rose); }

.activite-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  background: var(--rose-pale);
  border-radius: 14px;
}
.activite-countdown > div {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 6px;
}
.cd-n {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--rose);
  line-height: 1;
}
.cd-l {
  display: block;
  font-size: 0.65rem;
  color: var(--gris);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 700;
}

.activite.featured .btn { align-self: flex-start; margin-top: auto; }

/* Inline "lire l'article" link for non-featured cards */
.activite-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rose);
  transition: gap .2s ease, color .2s ease;
  align-self: flex-start;
}
.activite-link:hover { gap: 12px; color: var(--rose-dark); }

.activites-foot { text-align: center; margin-top: 50px; }

/* ---------- STATS ---------- */
.stats {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--marine-dark) 0%, var(--rose-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Soft rose glow (matches CTA banner) */
.stats::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 46, 138, 0.35), transparent 65%);
  pointer-events: none;
}
.stats::after {
  content: "";
  position: absolute;
  bottom: -25%; left: -15%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 203, 252, 0.18), transparent 65%);
  pointer-events: none;
}
.stats > .container { position: relative; z-index: 2; }

/* Decorative floating dots */
.stats .deco-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}
.stats .deco-dots span {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: floaty 8s ease-in-out infinite;
}
.stats .deco-dots span:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.stats .deco-dots span:nth-child(2) { top: 35%; left: 22%; width: 4px; height: 4px; background: var(--vert); animation-delay: 1.5s; }
.stats .deco-dots span:nth-child(3) { top: 75%; left: 12%; width: 10px; height: 10px; background: var(--peche); animation-delay: 3s; }
.stats .deco-dots span:nth-child(4) { top: 22%; right: 14%; width: 8px; height: 8px; background: var(--aqua); animation-delay: 0.5s; }
.stats .deco-dots span:nth-child(5) { top: 60%; right: 6%; width: 5px; height: 5px; animation-delay: 2s; }
.stats .deco-dots span:nth-child(6) { bottom: 18%; right: 28%; width: 4px; height: 4px; background: var(--rose-soft); animation-delay: 2.8s; }

/* ECG line crossing the section */
.stats .deco-ecg {
  position: absolute;
  left: 0; right: 0;
  bottom: 60px;
  height: 50px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.stats .deco-ecg svg { width: 100%; height: 100%; }

/* "Depuis 2004" ribbon */
.stats-since {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 20px;
}
.stats-since .live-dot { background: var(--vert); }

.stats .section-eyebrow { color: var(--rose-soft); }
.stats .section-divider { background: var(--rose); }
.stats .section-header p { color: rgba(255, 255, 255, 0.78); }
.stats h2, .stats h3, .stats h4 { color: #fff; }
.stats-since { color: rgba(255, 255, 255, 0.95); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
/* Dotted connecting line between stat cards on desktop */
.stats-grid::before {
  content: "";
  position: absolute;
  top: 96px;
  left: 12%; right: 12%;
  height: 1px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 50%, transparent 50%);
  background-size: 12px 1px;
  z-index: 0;
}
.stat-card {
  text-align: center;
  padding: 36px 24px 30px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all .25s ease;
  position: relative;
  z-index: 1;
}
.stat-card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-4px); }
.stat-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  font-size: 1.6rem;
  color: #fff;
  position: relative;
  z-index: 2;
}
/* Decorative pulsing ring around icon */
.stat-icon::before,
.stat-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1.5px solid var(--rose-soft);
  opacity: 0;
  animation: statPulse 2.6s ease-out infinite;
}
.stat-icon::after { animation-delay: 1.3s; }
@keyframes statPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, var(--rose-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; margin: 0 0 14px; }
/* Mini trend chip */
.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(176, 237, 126, 0.18);
  border: 1px solid rgba(176, 237, 126, 0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--vert);
  letter-spacing: 0.04em;
}
.stat-trend i { font-size: 0.85em; }
.stat-trend.flat {
  background: rgba(0, 203, 252, 0.15);
  border-color: rgba(0, 203, 252, 0.35);
  color: var(--aqua);
}

/* ---------- APPROACH ---------- */
.approach { padding: 120px 0; background: var(--beige); }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.approach-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 44px 32px 36px;
  overflow: hidden;
  border: 1px solid rgba(20, 19, 26, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.approach-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.approach-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
}
.approach-card.rose::before { background: var(--rose); }
.approach-card.bleu::before { background: var(--marine); }
.approach-card.aqua::before { background: var(--aqua); }
.approach-step {
  position: absolute;
  top: 22px; right: 28px;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 900;
  color: rgba(20, 19, 26, 0.06);
  line-height: 1;
}
.approach-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.approach-card.rose .approach-icon { background: var(--rose-pale); color: var(--rose); }
.approach-card.bleu .approach-icon { background: var(--aqua-pale); color: var(--marine); }
.approach-card.aqua .approach-icon { background: #DBF7FF; color: var(--marine); }
.approach-card h3 { margin-bottom: 12px; }
.approach-card p { color: var(--gris); margin: 0; font-size: 0.96rem; }

/* ---------- DOMAINS ---------- */
.domains { padding: 120px 0; }
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.domain-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(20, 19, 26, 0.06);
  transition: all .25s ease;
}
.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--rose-soft);
}
.domain-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #fff;
}
.domain-icon.p1 { background: linear-gradient(135deg, var(--rose), var(--rose-dark)); }
.domain-icon.p2 { background: linear-gradient(135deg, var(--aqua), var(--marine)); }
.domain-icon.p3 { background: linear-gradient(135deg, var(--vert), var(--vert-dark)); }
.domain-icon.p4 { background: linear-gradient(135deg, var(--peche-warm), var(--rose)); }
.domain-icon.p5 { background: linear-gradient(135deg, var(--violet), var(--marine-dark)); }
.domain-icon.p6 { background: linear-gradient(135deg, var(--rose-soft), var(--rose)); }
.domain-card h3 { margin-bottom: 10px; }
.domain-card p { color: var(--gris); margin: 0; font-size: 0.95rem; }

/* ---------- WHY ---------- */
.why { padding: 120px 0; background: var(--gris-pale); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.why-img {
  position: relative;
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.why-img > img,
.mission-img > img {
  border-radius: inherit;
}
.why-badge {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  color: var(--noir);
}
.why-badge i { color: var(--rose); }
.why-badge.top { top: 28px; right: -16px; }
.why-badge.bot { bottom: 28px; left: -16px; }

.why-content h2 { margin-bottom: 18px; }
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(20, 19, 26, 0.08);
}
.why-item:last-child { border-bottom: none; }
.why-item-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--rose-pale);
  color: var(--rose);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.why-item h4 { margin-bottom: 6px; }
.why-item p { color: var(--gris); margin: 0; font-size: 0.94rem; }

/* ---------- HIGHLIGHTS ---------- */
.highlights { padding: 120px 0; }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.highlight-card {
  text-align: center;
  padding: 32px 22px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 19, 26, 0.06);
  transition: all .25s ease;
}
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.highlight-icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--rose-pale);
  color: var(--rose);
  font-size: 1.4rem;
}
.highlight-card h4 { margin-bottom: 10px; }
.highlight-card p { color: var(--gris); margin: 0; font-size: 0.92rem; }

/* ---------- PARTNERS MARQUEE ---------- */
.partners { padding: 80px 0; background: var(--beige); }
.partners-eyebrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gris);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}
.partners-eyebrow span {
  width: 60px;
  height: 1px;
  background: var(--gris-clair);
}
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item { flex-shrink: 0; }
.logo-pill {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gris-fonce);
  border: 1px solid rgba(20, 19, 26, 0.06);
  white-space: nowrap;
}

/* ---------- INVOLVE ---------- */
.involve { padding: 120px 0; background: var(--beige); }
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.involve-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 1px solid rgba(20, 19, 26, 0.06);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.involve-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.involve-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 140px; height: 140px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  transform: translate(40%, -40%);
}
.involve-card.rose::after { background: var(--rose); }
.involve-card.peche::after { background: var(--peche-warm); }
.involve-card.aqua::after { background: var(--aqua); }
.involve-icon {
  position: relative;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 1.6rem;
  margin-bottom: 22px;
  color: #fff;
}
.involve-card.rose .involve-icon { background: linear-gradient(135deg, var(--rose), var(--rose-dark)); }
.involve-card.peche .involve-icon { background: linear-gradient(135deg, var(--peche-warm), var(--rose)); }
.involve-card.aqua .involve-icon { background: linear-gradient(135deg, var(--aqua), var(--marine)); }
.involve-card h3 { margin-bottom: 12px; }
.involve-card p { color: var(--gris); margin-bottom: 22px; font-size: 0.96rem; }
.involve-card .btn { background: var(--noir); color: #fff; }
.involve-card .btn:hover { background: var(--rose); }

/* ---------- NEWSLETTER ---------- */
.newsletter { padding: 120px 0; }
.newsletter-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--rose-pale) 0%, #fff 60%, var(--aqua-pale) 100%);
  border-radius: var(--radius-xl);
  padding: 60px 64px;
  border: 1px solid rgba(20, 19, 26, 0.06);
}
.newsletter-card h2 { margin-bottom: 14px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--gris-clair);
  font: inherit;
  background: #fff;
}
.newsletter-form input:focus { outline: 2px solid var(--rose); outline-offset: 2px; }
.newsletter-illu { max-width: 340px; margin-left: auto; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--marine-dark) 0%, var(--rose-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 46, 138, 0.4), transparent 70%);
}
.cta-content { text-align: center; position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.cta-content h2 { margin-bottom: 16px; color: #fff; }
.cta-content p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- FOOTER ---------- */
.footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(229, 46, 138, 0.15), transparent 45%),
    radial-gradient(circle at 92% 100%, rgba(0, 203, 252, 0.10), transparent 50%),
    linear-gradient(180deg, var(--marine-deep) 0%, #050E2B 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 90px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(229, 46, 138, 0.6) 50%, transparent 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-logo-text strong { color: #fff; }
.footer-logo-text span { color: rgba(255, 255, 255, 0.55); }
.footer-desc { color: rgba(255, 255, 255, 0.7); margin-bottom: 22px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1rem;
  transition: all .2s ease;
}
.footer-social a:hover { background: var(--rose); color: #fff; transform: translateY(-2px); }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 1rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--rose-soft); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.footer-contact i { color: var(--rose); margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- AOS-LIKE (custom lightweight) ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="zoom-in"] { transform: scale(0.94); }
[data-aos].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ============================================================
   GLASSMORPHISM + 3D LAYER
   Overrides applied to card surfaces for a modern depth look.
   ============================================================ */

:root {
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-border-dark: rgba(255, 255, 255, 0.12);
  --glass-blur: 18px;
  --glass-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 30px rgba(20, 19, 26, 0.08),
    0 28px 60px -20px rgba(20, 19, 26, 0.18);
  --glass-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(255, 255, 255, 0.25) inset,
    0 14px 36px rgba(20, 19, 26, 0.10),
    0 40px 80px -20px rgba(20, 19, 26, 0.28);
}

/* Section background washes (so glass has something to refract) */
.facts {
  background: linear-gradient(140deg, var(--beige) 0%, var(--rose-pale) 60%, var(--aqua-pale) 100%);
}
.activites {
  background: linear-gradient(160deg, var(--beige) 0%, #FFF1FA 50%, var(--aqua-pale) 100%);
}
.approach {
  background: linear-gradient(140deg, var(--aqua-pale) 0%, var(--beige) 50%, var(--rose-pale) 100%);
}
.domains {
  background: radial-gradient(circle at 10% 0%, var(--rose-pale) 0%, transparent 45%),
              radial-gradient(circle at 100% 100%, var(--aqua-pale) 0%, transparent 50%),
              #fff;
}
.why {
  background: linear-gradient(150deg, #EFEEFB 0%, var(--gris-pale) 50%, var(--rose-pale) 100%);
}
.highlights {
  background: radial-gradient(circle at 80% 20%, var(--aqua-pale) 0%, transparent 45%),
              radial-gradient(circle at 0% 100%, var(--rose-pale) 0%, transparent 45%),
              #fff;
}
.involve {
  background: linear-gradient(150deg, var(--rose-pale) 0%, #fff 50%, var(--aqua-pale) 100%);
}

/* Glass card base (shared) */
.fact, .value-card, .activite, .approach-card,
.domain-card, .highlight-card, .involve-card,
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), box-shadow .35s ease, background .35s ease;
}

/* Top reflective highlight strip */
.fact::after,
.value-card::after,
.activite::after,
.approach-card::after,
.domain-card::after,
.highlight-card::after,
.involve-card::before,
.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Hover: 3D lift */
.fact:hover, .value-card:hover, .activite:hover,
.approach-card:hover, .domain-card:hover,
.highlight-card:hover, .involve-card:hover {
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-8px);
}

/* Card-level 3D tilt — driven by JS mouse position via CSS vars */
[data-tilt] {
  transform:
    perspective(900px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translateY(var(--tilt-lift, 0px));
  transition: transform .15s ease-out, box-shadow .35s ease;
}
[data-tilt].is-tilting {
  transition: transform .05s linear, box-shadow .35s ease;
}

/* Facts: keep colored accent bar visible above the glass */
.fact::before { z-index: 2; }
.fact .fact-icon {
  box-shadow: 0 8px 20px rgba(229, 46, 138, 0.18), 0 1px 0 rgba(255,255,255,0.7) inset;
}

/* Stats section already dark — invert the glass */
.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--glass-border-dark);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 20px 50px -10px rgba(0, 0, 0, 0.5);
}
.stat-card::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 30px 70px -10px rgba(0, 0, 0, 0.7);
}
.stat-icon {
  box-shadow:
    0 12px 30px rgba(229, 46, 138, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -2px 4px rgba(0, 0, 0, 0.15) inset;
}

/* Featured activité: extra depth */
.activite.featured {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 80px -20px rgba(229, 46, 138, 0.25),
    0 50px 100px -30px rgba(20, 19, 26, 0.25);
}

/* Icons inside cards get a small floating shadow */
.value-icon,
.approach-icon,
.domain-icon,
.highlight-icon,
.involve-icon,
.why-item-icon {
  box-shadow:
    0 10px 24px rgba(229, 46, 138, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform .3s ease;
}
.value-card:hover .value-icon,
.approach-card:hover .approach-icon,
.domain-card:hover .domain-icon,
.highlight-card:hover .highlight-icon,
.involve-card:hover .involve-icon {
  transform: scale(1.08) translateZ(20px);
}

/* Newsletter card → glass too */
.newsletter-card {
  background:
    linear-gradient(135deg, rgba(255, 227, 246, 0.6) 0%, rgba(255, 255, 255, 0.65) 60%, rgba(230, 247, 255, 0.6) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
}
.newsletter {
  background: radial-gradient(circle at 0% 50%, var(--rose-pale) 0%, transparent 40%),
              radial-gradient(circle at 100% 50%, var(--aqua-pale) 0%, transparent 40%),
              #fff;
}

/* Mission and Why image frames — add inner glow */
.mission-img,
.why-img {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 30px 60px -20px rgba(20, 19, 26, 0.35),
    0 50px 100px -40px rgba(229, 46, 138, 0.3);
}

/* Nav — slight glass uplift on scroll */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 30px rgba(20, 19, 26, 0.08);
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  [data-tilt] { transform: none !important; }
  .fact, .value-card, .activite, .approach-card,
  .domain-card, .highlight-card, .involve-card {
    transition: box-shadow .2s ease;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav-menu { display: none; }
  .nav-burger { display: inline-flex; }
  .mission-grid, .why-grid, .newsletter-card { grid-template-columns: 1fr; gap: 48px; }
  .mission-img, .why-img { aspect-ratio: 16 / 11; max-width: 640px; margin: 0 auto; }
  .why-badge.top, .why-badge.bot { right: 20px; left: auto; }
  .why-badge.bot { bottom: 20px; }
  .activites-head { grid-template-columns: 1fr; }
  .activite.featured { grid-column: span 3; flex-direction: column; }
  .activite.featured .activite-img { width: 100%; min-height: 280px; }
  .activite.featured .activite-body { padding: 28px; }
}

@media (max-width: 820px) {
  h1 { font-size: clamp(2rem, 7vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .facts-grid, .values-grid, .activites-grid, .stats-grid, .approach-grid,
  .domains-grid, .highlights-grid, .involve-grid {
    grid-template-columns: 1fr;
  }
  .activite.featured { grid-column: span 1; }
  .stats-grid::before { display: none; }
  .mission, .activites, .stats, .approach, .domains, .why, .highlights, .involve, .newsletter, .cta-banner {
    padding: 80px 0;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .activity-bar-inner { flex-wrap: wrap; }
  .activity-cta { margin-left: 0; }
  .hero-arrow { width: 42px; height: 42px; }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
  .hero-scroll { display: none; }
  .newsletter-card { padding: 40px 28px; }
  .newsletter-illu { display: none; }
  .activites-filters { width: 100%; overflow-x: auto; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .mission-badge { left: 0; bottom: -20px; padding: 14px 20px; }
  .mission-badge-num { font-size: 2rem; }
  .nav-actions .btn { display: none; }
  .lang-switch { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   POPUP NEWSLETTER
   ══════════════════════════════════════════════════════════════ */

/* Overlay */
.nl-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(14, 12, 30, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .35s ease;
}
.nl-popup-overlay:not([hidden]) { opacity: 1; }
/* hide via [hidden] attribute but keep transition */
.nl-popup-overlay[hidden] {
  display: none;
}
/* entry animation trigger */
.nl-popup-overlay.is-open {
  display: flex;
  animation: nlFadeIn .35s ease forwards;
}
.nl-popup-overlay.is-closing {
  animation: nlFadeOut .25s ease forwards;
}
@keyframes nlFadeIn  { from { opacity: 0; } to   { opacity: 1; } }
@keyframes nlFadeOut { from { opacity: 1; } to   { opacity: 0; } }

/* Modal card */
.nl-popup {
  position: relative;
  background: var(--glass-bg-strong, rgba(255,255,255,.92));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 30px 80px -20px rgba(229,46,138,.28),
    0 50px 120px -40px rgba(20,19,26,.3);
  border-radius: var(--radius-xl, 32px);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
}
.nl-popup-overlay.is-open .nl-popup { transform: translateY(0) scale(1); }

/* Decorative blobs */
.nl-popup-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.nl-popup-blob.b1 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(229,46,138,.25), transparent 70%);
  top: -80px; right: -60px;
}
.nl-popup-blob.b2 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(0,203,252,.18), transparent 70%);
  bottom: -60px; left: -40px;
}

/* Close button */
.nl-popup-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(20,19,26,.07);
  border: 1px solid rgba(20,19,26,.08);
  font-size: 1.15rem;
  color: var(--gris-fonce);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.nl-popup-close:hover {
  background: var(--rose);
  color: #fff;
  border-color: transparent;
  transform: rotate(90deg);
}

/* Inner content */
.nl-popup-inner {
  position: relative;
  z-index: 1;
  padding: 48px 44px 40px;
  text-align: center;
}
.nl-popup-icon {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff;
  font-size: 1.7rem;
  box-shadow:
    0 14px 32px rgba(229,46,138,.38),
    0 1px 0 rgba(255,255,255,.4) inset;
}
.nl-popup-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 10px;
  font-weight: 600;
}
.nl-popup-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--marine-dark);
  margin: 0 0 12px;
  line-height: 1.2;
}
.nl-popup-sub {
  color: var(--gris);
  font-size: .95rem;
  margin: 0 0 24px;
  line-height: 1.55;
}

/* Form */
.nl-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nl-popup-field {
  position: relative;
}
.nl-popup-field input[type="email"] {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--gris-clair);
  font: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--noir);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nl-popup-field input[type="email"]:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(229,46,138,.12);
}
.nl-popup-form .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: .98rem;
}

/* Feedback message */
.nl-popup-msg {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--gris);
  min-height: 1.2em;
}

/* Skip link */
.nl-popup-skip {
  margin-top: 16px;
  font-size: .82rem;
  color: var(--gris);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nl-popup-skip:hover { color: var(--noir); background: rgba(20,19,26,.05); }
.nl-popup-skip i { font-size: .85em; }

/* Responsive */
@media (max-width: 540px) {
  .nl-popup-inner { padding: 40px 24px 32px; }
  .nl-popup-title { font-size: 1.35rem; }
}
