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

:root {
  --bg-primary: #EAF0FB;
  --bg-secondary: #DCE5F5;
  --bg-card: rgba(29,78,216,0.06);
  --accent-neon: #1D4ED8;
  --accent-lavender: #60A5FA;
  --accent-pink: #93C5FD;
  --accent-mint: #38BDF8;
  --text-primary: #1E1B4B;
  --text-secondary: #1E3A8A;
  --text-light: #1D4ED8;
  --border: rgba(29,78,216,0.15);
  --footer-bg: #1E1B4B;
  --radius: 16px;
  --transition: 0.3s ease;
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .space-font {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Glassmorphism */
.glass {
  background: #F6F8FD;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(29,78,216,0.12);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(29,78,216,0.08);
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(90deg, var(--accent-neon), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-alt {
  background: linear-gradient(90deg, var(--accent-lavender), var(--accent-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-secondary {
  color: var(--text-secondary);
}

/* Layout Core */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 8rem 0;
  position: relative;
  z-index: 2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2rem;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent-neon);
  color: #fff;
  box-shadow: 0 0 20px rgba(29, 78, 216, 0.4);
}
.btn-primary:hover {
  background: #1E40AF;
  box-shadow: 0 0 30px rgba(29, 78, 216, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-neon);
  border: 2px solid var(--accent-neon);
}
.btn-secondary:hover {
  background: rgba(29, 78, 216, 0.1);
  box-shadow: 0 0 20px rgba(29, 78, 216, 0.3);
  transform: translateY(-2px);
}

/* Header — Light */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition);
  background: rgba(240,244,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(29,78,216,0.1);
}
header.scrolled {
  background: rgba(240,244,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(29,78,216,0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 5%;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1E1B4B;
}
.logo span {
  color: var(--accent-neon);
}
.logo img {
  height: 68px;
  width: auto;
  border-radius: 0 !important;
  border: none !important;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  color: #1E3A8A;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-neon);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: #1D4ED8;
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  width: 30px;
  height: 3px;
  background: #1E1B4B;
  border-radius: 3px;
  transition: var(--transition);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(30, 27, 75, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.5rem;
    color: #FFFFFF;
  }
  .nav-links a:hover, .nav-links a.active {
    color: var(--accent-lavender);
  }
  .menu-toggle.active span {
    background: #fff;
  }
}

/* Hero Section — Dark with image overlay */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: #1E1B4B;
}

.hero .container {
  position: relative;
  z-index: 3;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  min-height: 180px;
  color: #FFFFFF;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #E2E8F0;
  margin-bottom: 3rem;
}
.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-secondary {
  color: #fff;
  border-color: #fff;
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Page Hero (subpages) — Dark */
.page-hero {
  background: #1E1B4B;
  color: #FFFFFF;
}
.page-hero h1, .page-hero h2, .page-hero h3 {
  color: #FFFFFF;
}
.page-hero p {
  color: #E2E8F0;
}

/* Content Sections */
.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* Stat Cards (Chiffres) */
.chiffres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.stat-card {
  padding: 3rem 2rem;
  text-align: center;
  transition: transform var(--transition);
  background: #F6F8FD;
  border: 1px solid rgba(29,78,216,0.12);
  box-shadow: 0 2px 16px rgba(29,78,216,0.08);
  border-radius: 16px;
}
.stat-card:hover {
  transform: translateY(-10px);
}
.stat-number,
.stat-number-static {
  font-size: 4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--accent-neon);
  margin-bottom: 1rem;
  display: inline-block;
}
.stat-desc {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Event Cards */
.event-card {
  overflow: hidden;
  padding: 0;
}
.event-card .event-image img {
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.badge-statut {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Missions Cards */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.mission-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  background: #F6F8FD;
  border: 1px solid rgba(29,78,216,0.12);
  box-shadow: 0 2px 16px rgba(29,78,216,0.08);
  border-radius: 16px;
  color: var(--text-primary);
}
.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(29, 78, 216, 0.1), transparent 70%);
  opacity: 0;
  transition: var(--transition);
}
.mission-card:hover {
  transform: translateY(-10px) translateY(-5px);
  box-shadow: 0 20px 40px rgba(29,78,216,0.12), 0 0 30px rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.3);
}
.mission-card:hover::before {
  opacity: 1;
}
.mission-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29, 78, 216, 0.1);
  border-radius: 50%;
  color: var(--accent-neon);
  font-size: 2rem;
}
.mission-title {
  font-size: 1.5rem;
}

/* Event Cards */
.event-card {
  background: #F6F8FD;
  border: 1px solid rgba(29,78,216,0.12);
  box-shadow: 0 2px 16px rgba(29,78,216,0.08);
  border-radius: 16px;
  color: var(--text-primary);
}

/* FAQ Items */
.faq-item {
  background: #F6F8FD;
  border: 1px solid rgba(29,78,216,0.12);
  box-shadow: 0 2px 16px rgba(29,78,216,0.08);
  border-radius: 16px;
  color: var(--text-primary);
}

/* CTA Urgence — Dark */
.cta-urgence {
  background: #1E1B4B;
  border-top: 1px solid rgba(29,78,216,0.2);
  border-bottom: 1px solid rgba(29,78,216,0.2);
  padding: 2rem 0;
  text-align: center;
}
.cta-urgence h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: #FFFFFF;
}
.phone-highlight {
  color: var(--accent-pink);
  font-weight: 700;
}

/* Footer — Dark */
footer {
  background: var(--footer-bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(29,78,216,0.2);
  color: #FFFFFF;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links a {
  color: #E2E8F0;
}
.footer-links a:hover {
  color: var(--accent-lavender);
  padding-left: 5px;
}
footer .logo {
  color: #FFFFFF;
}
footer p {
  color: #E2E8F0;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #E2E8F0;
  font-size: 0.9rem;
}

/* Inputs — Light theme */
input, textarea, select {
  background: #FFFFFF;
  border: 1px solid rgba(29,78,216,0.2);
  color: #1E1B4B;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 3018 Mobile Widget & Back to top */
.floating-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.widget-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-size: 1.2rem;
}
.widget-3018 {
  background: #DC2626;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(220,38,38,0.4);
  text-decoration: none;
}
.widget-3018:hover {
  background: #B91C1C;
  transform: scale(1.1);
  box-shadow: 0 4px 24px rgba(220,38,38,0.6);
}
.widget-totop {
  background: #FFFFFF;
  color: var(--accent-neon);
  border: 1px solid rgba(29,78,216,0.15);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}
.widget-totop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.widget-totop:hover {
  background: var(--accent-neon);
  color: #fff;
  border-color: var(--accent-neon);
}

/* Value cards */
.value-card {
  background: #F6F8FD;
  border: 1px solid rgba(29,78,216,0.12);
  box-shadow: 0 2px 16px rgba(29,78,216,0.08);
  border-radius: 16px;
  color: var(--text-primary);
}

/* Founder avatars override — keep circles */
.member-avatar {
  border-radius: 50% !important;
}

/* Animations Keyframes */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}
