* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  color: inherit;
}

:root {
  --primary: #316cb1; /* BLEU */
  --primary-dark: #2a5a9b;
  --primary-light: #4a8ad8;
  --secondary: #2e7d32; /* VERT */
  --secondary-dark: #1b5e20;
  --accent: #ff9800; /* Orange d'accent */
  --dark: #1a1f2e;
  --light: #ffffff;
  --light-bg: #f8fafc;
  --gray: #64748b;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --glass: rgba(255, 255, 255, 0.95);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Loader Styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's on top of everything */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Allow interaction with elements behind after fading out */
}

.spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px; /* Size of the spinner container */
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    var(--secondary),
    var(--primary-light)
  ); /* Green/blue gradient */
  box-shadow: 0 0 20px rgba(46, 125, 50, 0.4);
  animation: pulse-border 1.5s infinite ease-out; /* Pulsing effect for the container */
}

.loader-icon {
  font-size: 3.5rem; /* Size of the leaf icon */
  color: white; /* White leaf */
  animation: spin 2s linear infinite; /* Spinning animation for the leaf */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(46, 125, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
  }
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: none;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  padding: 30px 25px;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(49, 108, 177, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-top: none;
  animation: slideDown 0.8s ease-out;
  height: 70px;
  display: flex;
  align-items: center;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

header.scrolled {
  top: 0;
  width: 100%;
  border-radius: 0;
  padding: 30px 25px;
  background: white;
  backdrop-filter: blur(25px) saturate(180%) contrast(1.1);
  -webkit-backdrop-filter: blur(25px) saturate(180%) contrast(1.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
  animation: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  opacity: 0.95;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-glow {
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.btn-glow1 {
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

/* Animation de pulse léger */
@keyframes gentlePulse {
  50%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.btn-glow:hover {
  animation:
    glow 1.5s infinite alternate,
    popEffect 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(1.05);
}

@keyframes popEffect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(49, 108, 177, 0.3);
  }
  to {
    box-shadow: 0 0 30px rgba(49, 108, 177, 0.6);
  }
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
  z-index: -1;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 40px rgba(49, 108, 177, 0.5);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Centre horizontalement */
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
}

/* Conteneur principal */
.hero .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre horizontalement le contenu */
  justify-content: center; /* Centre verticalement le contenu */
  height: 100%; /* Prend toute la hauteur disponible */
}

/* Contenu du hero */
.hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center; /* Centre le texte */
  margin: 0 auto;
  padding: 20px;
}

/* Titre centré */
.hero-content .hero-title {
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* Sous-titre centré */
.hero-content .hero-subtitle {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto; /* Centre le bloc */
}

/* Boutons centrés */
.hero-content .hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center; /* Centre les boutons */
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Animation d'entrée seulement pour le hero */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Indicateur de scroll centré */
#scrollIndicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

/* Pour les très grands écrans */
@media (min-height: 900px) {
  .hero-content {
    padding: 3rem 2rem;
  }
}

/* Ajustement mobile */
@media (max-width: 768px) {
  .hero .container {
    padding: 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-content .hero-cta a {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  animation: subtleZoom 20s infinite alternate;
}

@keyframes subtleZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

/* CSS à ajouter */
.hero-title {
  margin: 0;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  /* taille responsive : minimum 22px, maximum 64px, idéal selon viewport */
  font-size: clamp(22px, 5vw, 64px);
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

/* empêche le retour à la ligne pour la partie concernée */
.no-wrap {
  white-space: nowrap; /* pas de retour à la ligne */
  display: inline-block; /* respect des margins/paddings si besoin */
}

/* si malgré tout l'écran est vraiment trop petit, on réduit encore la taille */
@media (max-width: 420px) {
  .hero-title {
    font-size: clamp(18px, 6.5vw, 40px);
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandLine {
  to {
    transform: scaleX(1);
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: white;
  max-width: 600px;
  animation: fadeInUp 1s ease-out 1s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid white;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(49, 108, 177, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  animation: bounce 2s infinite;
  z-index: 2;
  cursor: pointer;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Stats Section - Design Moderne */
.stats {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 15px auto 0;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 80px;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
/* Animation continue sur les cartes */
.stat-card {
  animation: pulseZoom 4s ease-in-out infinite;
}

/* Keyframes de l'animation */
@keyframes pulseZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03); /* Zoom léger et élégant */
  }
  100% {
    transform: scale(1);
  }
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-light);
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.15);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: white;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.stat-content {
  margin-bottom: 20px;
  position: relative;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: blue;
  display: inline-block;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
}

.stat-plus {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 5px;
  display: inline-block;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  margin-top: 10px;
  display: block;
}

.stat-description {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.5;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
}

/* Animation du compteur */
@keyframes countUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.stat-number.animated {
  animation: countUp 0.8s ease-out;
}

/* Footer des stats */
.stats-footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.impact-note {
  font-size: 0.9rem;
  color: var(--gray);
  font-style: italic;
}

/* Pillars Section - LIGHT BLUE BACKGROUND */
.pillars {
  padding: 100px 0;
  background: #f0f7ff;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-tag {
  display: inline-block;
  background: var(--gradient);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
  animation: tagFloat 3s ease-in-out infinite;
}

@keyframes tagFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.pillar-card {
  background: white;
  border-radius: 25px;
  padding: 50px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  cursor: pointer;
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.pillar-card:nth-child(2) {
  animation-delay: 0.2s;
}

.pillar-card:nth-child(3) {
  animation-delay: 0.4s;
}

.pillar-card:nth-child(4) {
  animation-delay: 0.6s;
}

.pillar-card:hover {
  transform: translateY(-25px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 40px 80px rgba(49, 108, 177, 0.2);
  animation: none;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: white;
  transition: var(--transition);
  transform: rotate(0deg);
}

.pillar-card:hover .pillar-icon {
  transform: rotate(360deg) scale(1.1);
  background: var(--secondary);
}

.pillar-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}

.pillar-card:hover .pillar-title {
  color: var(--secondary);
}

.pillar-desc {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
  transition: var(--transition);
}

.pillar-card:hover .pillar-desc {
  color: var(--dark);
}

/* Donation Section - WHITE */
.donation {
  padding: 150px 0;
  background: white;
  position: relative;
}

.donation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(49, 108, 177, 0.03),
    rgba(46, 125, 50, 0.03)
  );
  clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
  z-index: 1;
}

.donation .container {
  position: relative;
  z-index: 2;
}

.donation-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 60px;
}

.donation-card {
  background: white;
  border-radius: 25px;
  padding: 50px 40px;
  width: 320px;
  transition: var(--transition);
  position: relative;
  text-align: center;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  cursor: pointer;
}

.donation-card.popular {
  transform: scale(1.05);
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 20px 50px rgba(46, 125, 50, 0.1);
  animation: popularPulse 3s infinite;
}

@keyframes popularPulse {
  0%,
  100% {
    transform: scale(1.05);
  }
  50% {
    transform: scale(1.08);
  }
}

.donation-card.popular .popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: white;
  padding: 8px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
  animation: badgeShake 0.5s ease-in-out 3;
}

@keyframes badgeShake {
  0%,
  100% {
    transform: translateX(-50%) rotate(0);
  }
  25% {
    transform: translateX(-50%) rotate(-3deg);
  }
  75% {
    transform: translateX(-50%) rotate(3deg);
  }
}

.donation-card:hover {
  transform: translateY(-25px) scale(1.05);
  box-shadow: 0 40px 80px rgba(49, 108, 177, 0.25);
  border-color: var(--primary);
}

.donation-card.popular:hover {
  transform: scale(1.08) translateY(-25px);
  animation: none;
}

.donation-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  transition: var(--transition);
}

.donation-card:hover .donation-price {
  color: var(--secondary);
  transform: scale(1.1);
}

.donation-currency {
  color: var(--gray);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.donation-name {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  font-weight: 700;
}

.donation-features {
  list-style: none;
  margin-bottom: 40px;
  text-align: left;
}

.donation-features li {
  padding: 12px 0;
  color: var(--gray);
  position: relative;
  padding-left: 35px;
  border-bottom: 1px solid rgba(49, 108, 177, 0.05);
  transition: var(--transition);
}

.donation-card:hover .donation-features li {
  color: var(--dark);
  padding-left: 40px;
}

.donation-features li:last-child {
  border-bottom: none;
}

.donation-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
  transition: var(--transition);
}

.donation-card:hover .donation-features li::before {
  transform: scale(1.5);
  left: 5px;
}

/* Testimonials - LIGHT BLUE BACKGROUND */
/* Section Témoignages - Design Moderne */
.testimonials {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f7ff 100%);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(49, 108, 177, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(46, 125, 50, 0.05) 0%,
      transparent 50%
    );
}

/* Contrôles du carrousel */
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 800px;
}

.testimonial-prev,
.testimonial-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(49, 108, 177, 0.3);
}

.testimonial-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(49, 108, 177, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator.active {
  background: var(--primary);
  transform: scale(1.3);
}

.indicator:hover {
  background: var(--primary);
  transform: scale(1.2);
}

/* Carrousel */
.testimonial-carousel {
  max-width: 100%; /* Défilement doit utiliser 100% de la largeur du container */
  margin: 0 auto;

  /* PROPRIÉTÉS CLÉS POUR LE DÉFILEMENT */
  overflow-x: scroll; /* Active le défilement horizontal */
  overflow-y: hidden;
  scroll-snap-type: x mandatory; /* Force le point d'arrêt sur chaque slide */
  -webkit-overflow-scrolling: touch; /* Améliore le feeling sur mobile */
  padding-bottom: 20px; /* Espace pour la barre de défilement (si visible) */
}
.testimonial-carousel::-webkit-scrollbar {
  display: none;
}
.testimonial-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonial-track {
  display: flex; /* Aligne les slides horizontalement */
  flex-wrap: nowrap; /* Empêche les slides de s'empiler */
  gap: 30px; /* Espace entre les cartes */
  /* On retire la transition 'transform' ici car le défilement est géré par JS/Scroll */
}

.testimonial-slide {
  /* Largeur de la carte: 90% de la fenêtre de visualisation sur les petits écrans, 
       et taille fixe sur les grands pour un bel effet de défilement. */
  min-width: 320px;
  width: 90vw; /* Sur mobile, occupe 90% de la largeur de l'écran */
  max-width: 450px; /* Sur desktop, limite la taille à 450px */

  flex-shrink: 0; /* Empêche la carte de rétrécir */
  padding: 10px; /* Maintient le padding du design original */

  /* PROPRIÉTÉ CLÉ POUR L'ARRÊT */
  scroll-snap-align: center; /* Centre chaque slide lors de l'arrêt */

  /* RETRAIT DES CLASSES DE VISIBILITÉ INUTILES */
  opacity: 1;
  transform: none;
  display: block;
}

.testimonial-slide.active {
  /* La classe active n'est plus nécessaire pour la visibilité ou le mouvement, 
       mais elle peut servir pour l'indicateur ou d'autres styles visuels. */
  border: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Carte de témoignage */
.testimonial-card {
  background: white;
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 25px 60px rgba(49, 108, 177, 0.1);
  border: 1px solid rgba(49, 108, 177, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: 20px;
  animation: quoteFloat 4s ease-in-out infinite;
}

@keyframes quoteFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.testimonial-content {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 40px;
  position: relative;
  padding-left: 30px;
}

.testimonial-content p {
  margin: 0;
}

/* Auteur */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(49, 108, 177, 0.1);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.testimonial-card:hover .author-avatar img {
  transform: scale(1.1);
}

.author-info h4 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 700;
}

.author-position {
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.author-status {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.author-rating {
  display: flex;
  gap: 3px;
  color: #ffd700;
  font-size: 0.9rem;
}

/* Statistiques */
.testimonial-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  padding: 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(49, 108, 177, 0.1);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Animation automatique */
.testimonial-slide {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.testimonial-slide.active {
  animation-name: slideInRight;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .testimonial-card {
    padding: 40px 30px;
  }

  .testimonial-content {
    font-size: 1.2rem;
    padding-left: 20px;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .testimonial-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 80px 0;
  }

  .testimonial-controls {
    margin: 30px auto;
    gap: 20px;
  }

  .testimonial-prev,
  .testimonial-next {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .testimonial-card {
    padding: 30px 25px;
  }

  .testimonial-content {
    font-size: 1.1rem;
    padding-left: 15px;
  }

  .testimonial-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 25px 20px;
  }

  .testimonial-content {
    font-size: 1rem;
    padding-left: 0;
  }

  .author-avatar {
    width: 70px;
    height: 70px;
  }

  .author-info h4 {
    font-size: 1.2rem;
  }
}

/* News Grid - WHITE */
.news {
  padding: 100px 0;
  background: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.news-card {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-20px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 40px 80px rgba(49, 108, 177, 0.15);
}

.news-image {
  height: 250px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.news-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
  transition: var(--transition);
}

.news-card:hover .news-image::after {
  background: linear-gradient(to bottom, transparent, rgba(49, 108, 177, 0.7));
}

.news-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--secondary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
  transition: var(--transition);
}

.news-card:hover .news-badge {
  transform: translateY(-5px);
  background: var(--primary);
}

.news-date {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-weight: 600;
  z-index: 2;
}

.news-content {
  padding: 30px;
}

.news-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
  transition: var(--transition);
}

.news-card:hover .news-title {
  color: var(--secondary);
}

.news-desc {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.news-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.news-link:hover {
  color: var(--secondary);
  gap: 15px;
}

.news-link i {
  transition: var(--transition);
}

.news-card:hover .news-link i {
  transform: translateX(10px);
}

/* Partners Section - WHITE */
.partners {
  padding: 100px 0;
  background: white;
  position: relative;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.partner-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 10px 30px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  height: 150px;
  cursor: pointer;
  animation: floatUpDown 6s ease-in-out infinite;
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.partner-card:nth-child(2n) {
  animation-delay: 0.2s;
}

.partner-card:nth-child(3n) {
  animation-delay: 0.4s;
}

.partner-card:hover {
  transform: translateY(-15px) scale(1.1);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(49, 108, 177, 0.15);
  animation: none;
}

.partner-logo {
  max-width: 120px;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.2);
}

/* Events Section - LIGHT BLUE */
.events {
  padding: 100px 0;
  background: #f0f7ff;
  position: relative;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.event-card {
  background: white;
  border-radius: 25px;
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  cursor: pointer;
  animation: cardFloat 8s ease-in-out infinite;
}

.event-card:nth-child(2) {
  animation-delay: 0.3s;
}

.event-card:nth-child(3) {
  animation-delay: 0.6s;
}

.event-card:hover {
  transform: translateY(-20px) scale(1.03);
  border-color: var(--secondary);
  box-shadow: 0 40px 80px rgba(46, 125, 50, 0.15);
  animation: none;
}

.event-date {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.event-day {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(49, 108, 177, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.event-card:hover .event-day {
  background: var(--gradient);
  color: white;
  transform: rotate(360deg) scale(1.1);
}

.event-month {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
}

.event-year {
  color: var(--gray);
  font-size: 0.9rem;
}

.event-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
  transition: var(--transition);
}

.event-card:hover .event-title {
  color: var(--secondary);
}

.event-desc {
  color: var(--gray);
  margin-bottom: 25px;
  line-height: 1.7;
}

.event-countdown {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(49, 108, 177, 0.05);
  padding: 15px 10px;
  border-radius: 15px;
  min-width: 70px;
  transition: var(--transition);
}

.event-card:hover .countdown-item {
  background: rgba(46, 125, 50, 0.1);
  transform: translateY(-5px);
}

.countdown-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  transition: var(--transition);
}

.event-card:hover .countdown-value {
  color: var(--secondary);
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Local Impact Section - WHITE */
.local-impact {
  padding: 100px 0;
  background: white;
  position: relative;
}

.impact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .impact-container {
    grid-template-columns: 1fr;
  }
}

.map-container {
  position: relative;
  background: white;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  animation: mapFloat 10s ease-in-out infinite;
}

@keyframes mapFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

/* Carte Interactive - Styles Optimisés */
.map-container {
  position: relative;
  background: white;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  animation: mapFloat 10s ease-in-out infinite;
  overflow: hidden;
}

@keyframes mapFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(0.5deg);
  }
}

.mali-map {
  position: relative;
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, #e6f2ff 0%, #cce0ff 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(49, 108, 177, 0.2);
  margin-bottom: 25px;
}

/* Points sur la carte - Design amélioré */
.map-point {
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(49, 108, 177, 0.3);
  animation: pulsePoint 3s infinite;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
}

.map-point::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  z-index: 1;
}

.map-point::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(49, 108, 177, 0.5);
}

@keyframes pulsePoint {
  0% {
    box-shadow: 0 0 0 0 rgba(49, 108, 177, 0.4);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(49, 108, 177, 0);
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(49, 108, 177, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* NOM DE LA VILLE - APPARAIT AU CLIC */
.map-point-label {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* Label visible au hover */
.map-point:hover .map-point-label {
  opacity: 1;
  visibility: visible;
  top: -55px;
}

/* Label TOUJOURS visible quand le point est actif (après clic) */
.map-point.active .map-point-label {
  opacity: 1;
  visibility: visible;
  top: -55px;
  background: var(--secondary);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 15px 30px rgba(46, 125, 50, 0.3);
}

/* Effet spécial pour le label actif */
.map-point.active .map-point-label::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--secondary);
}

.map-point:hover {
  transform: translate(-50%, -50%) scale(1.4);
  background: var(--secondary);
  animation: none;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4);
}

.map-point:hover::after {
  background: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.map-point.active {
  background: var(--secondary);
  transform: translate(-50%, -50%) scale(1.4);
  animation: activePulse 2s infinite;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4);
}

.map-point.active::after {
  background: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

@keyframes activePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
    transform: translate(-50%, -50%) scale(1.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(46, 125, 50, 0);
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Légende de la carte */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 30px;
  flex-wrap: wrap;
  padding: 20px;
  background: rgba(49, 108, 177, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(49, 108, 177, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.legend-color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Indicateur "Cliquez sur un point" */
.map-instruction {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 5;
  animation: instructionPulse 2s infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes instructionPulse {
  0%,
  100% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

.map-instruction i {
  color: var(--secondary);
}

/* Animation d'apparition des labels */
@keyframes labelAppear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.map-point.active .map-point-label {
  animation: labelAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .mali-map {
    height: 300px;
  }

  .map-point {
    width: 28px;
    height: 28px;
  }

  .map-point-label {
    font-size: 0.85rem;
    padding: 6px 15px;
  }

  .map-instruction {
    font-size: 0.8rem;
    padding: 8px 15px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .mali-map {
    height: 250px;
  }

  .map-point {
    width: 24px;
    height: 24px;
  }

  .map-point-label {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .map-point:hover .map-point-label,
  .map-point.active .map-point-label {
    top: -45px;
  }

  .map-instruction {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

.impact-story {
  background: white;
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  cursor: pointer;
}

.impact-story:hover {
  transform: translateX(10px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(49, 108, 177, 0.1);
}

.impact-story.active {
  border-color: var(--secondary);
  background: rgba(46, 125, 50, 0.05);
}

.impact-location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: 600;
}

.impact-location i {
  color: var(--secondary);
}

.impact-numbers {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.impact-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.impact-label {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Team Section - LIGHT BLUE */
.team {
  padding: 100px 0;
  background: #f0f7ff;
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.team-card {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  cursor: pointer;
  animation: cardFloat 7s ease-in-out infinite;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-card:nth-child(2) {
  animation-delay: 0.2s;
}
.team-card:nth-child(3) {
  animation-delay: 0.4s;
}
.team-card:nth-child(4) {
  animation-delay: 0.6s;
}
.team-card:nth-child(5) {
  animation-delay: 0.8s;
}
.team-card:nth-child(6) {
  animation-delay: 1s;
}
.team-card:nth-child(7) {
  animation-delay: 1.2s;
}
.team-card:nth-child(8) {
  animation-delay: 1.4s;
}

.team-card:hover {
  transform: translateY(-15px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 30px 60px rgba(49, 108, 177, 0.15);
  animation: none;
}

.team-image {
  height: 280px;
  position: relative;
  overflow: hidden;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(10%);
}

.team-card:hover .team-photo {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.team-role {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--secondary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.team-card:hover .team-role {
  background: var(--primary);
  transform: translateY(-5px);
}

.team-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--primary);
  transition: var(--transition);
  line-height: 1.2;
}

.team-card:hover .team-name {
  color: var(--secondary);
}

.team-position {
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 0.95rem;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(49, 108, 177, 0.1);
}

.team-desc {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
  flex-grow: 1;
}

.team-social {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.team-social a {
  width: 38px;
  height: 38px;
  background: rgba(49, 108, 177, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.team-social a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  transition: 0.5s;
  z-index: 1;
}

.team-social a i {
  position: relative;
  z-index: 2;
}

.team-card:hover .team-social a::before {
  left: 0;
}

.team-card:hover .team-social a {
  color: white;
  transform: translateY(-5px);
}

/* Badge pour les réseaux sociaux au hover */
.team-social a:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
}

/* Animation d'entrée des cartes */
@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .team {
    padding: 80px 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-image {
    height: 220px;
  }

  .team-content {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .team-image {
    height: 250px;
  }
}

/* Effet de bordure animée */
.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  padding: 2px;
  background: linear-gradient(
    45deg,
    var(--primary),
    var(--secondary),
    var(--primary)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.team-card:hover::before {
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* FAQ Section - WHITE */
.faq {
  padding: 100px 0;
  background: white;
  position: relative;
}

.faq-container {
  max-width: 800px;
  margin: 60px auto 0;
}

.faq-item {
  background: white;
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(49, 108, 177, 0.1);
}

.faq-question {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item.active .faq-question {
  background: rgba(49, 108, 177, 0.05);
}

.faq-question h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 0;
  transition: var(--transition);
}

.faq-item.active .faq-question h3 {
  color: var(--secondary);
}

.faq-toggle {
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  color: var(--secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 30px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 30px 25px;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.7;
}

/* Resources Section - LIGHT BLUE */
.resources {
  padding: 100px 0;
  background: #f0f7ff;
  position: relative;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.resource-card {
  background: white;
  border-radius: 25px;
  padding: 40px;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  cursor: pointer;
  animation: cardFloat 9s ease-in-out infinite;
}

.resource-card:nth-child(2) {
  animation-delay: 0.3s;
}

.resource-card:nth-child(3) {
  animation-delay: 0.6s;
}

.resource-card:hover {
  transform: translateY(-15px) scale(1.03);
  border-color: var(--secondary);
  box-shadow: 0 30px 60px rgba(46, 125, 50, 0.1);
  animation: none;
}

.resource-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: white;
  transition: var(--transition);
}

.resource-card:hover .resource-icon {
  background: var(--secondary);
  transform: rotate(360deg) scale(1.1);
}

.resource-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}

.resource-card:hover .resource-title {
  color: var(--secondary);
}

.resource-desc {
  color: var(--gray);
  margin-bottom: 25px;
  line-height: 1.7;
}

.resource-size {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(49, 108, 177, 0.3);
}

/* Volunteer Section - GRADIENT */
.volunteer {
  padding: 150px 0;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.volunteer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
  animation: waveAnimation 20s linear infinite;
}

.volunteer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  color: white;
}

.volunteer-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
  animation: titleGlow 2s infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

.volunteer-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
}

.volunteer-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.volunteer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.volunteer-number {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}

.volunteer-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.volunteer-form {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Réduction hauteur générale */
.volunteer {
  padding: 90px 0; /* avant : 150px */
}

/* Réduction espace sous le titre */
.volunteer-title {
  margin-bottom: 15px; /* avant : 20px */
}

/* Réduction espace sous description */
.volunteer-desc {
  margin-bottom: 35px; /* avant : 50px */
}

/* Réduction espace sous les statistiques */
.volunteer-stats {
  gap: 30px; /* avant : 40px */
  margin-bottom: 40px; /* avant : 60px */
}

/* Réduction padding du formulaire */
.volunteer-form {
  padding: 35px; /* avant : 50px */
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: white;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-select {
  width: 100%;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: white;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px);
}

.form-select option {
  background: var(--primary);
  color: white;
}

.form-textarea {
  width: 100%;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: white;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
  min-height: 120px;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px);
}

.form-button {
  background: white;
  color: var(--primary);
  border: none;
  padding: 20px 50px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: block;
  margin: 0 auto;
  width: 200px;
}

.form-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-5px) scale(1.05);
  letter-spacing: 1px;
}

/* Newsletter - GRADIENT SECTION */
.newsletter {
  padding: 150px 0;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
/* Réduction hauteur générale */
.newsletter {
  padding: 90px 0; /* avant : 150px */
}

/* Réduction espace sous le titre */
.newsletter-title {
  margin-bottom: 15px; /* avant : 20px */
}

/* Réduction espace sous description */
.newsletter-desc {
  margin-bottom: 35px; /* avant : 50px */
}

/* Réduction espace sous le formulaire */

/* Réduction espace entre les stats */
.newsletter-stats {
  gap: 30px; /* avant : 40px */
}

.newsletter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
  animation: waveAnimation 20s linear infinite;
}

@keyframes waveAnimation {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-100%) translateY(0);
  }
}

.newsletter-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  color: white;
}

.newsletter-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
  animation: titleGlow 2s infinite alternate;
}

.newsletter-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 50px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.newsletter-form:focus-within {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.newsletter-input {
  flex: 1;
  padding: 20px 30px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.newsletter-input:focus {
  outline: none;
  padding-left: 35px;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-button {
  background: white;
  color: var(--primary);
  border: none;
  padding: 0 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-button:hover {
  background: rgba(255, 255, 255, 0.9);
  padding: 0 50px;
  letter-spacing: 1px;
}

.newsletter-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgb(0, 0, 0);
  margin-bottom: 10px;
  animation: countUp 2s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-label {
  color: rgba(14, 13, 13, 0.8);
}

/* Footer - BLUE SECTION */
footer {
  background: var(--primary);
  padding: 100px 0 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 200px;
  animation: floatingShapes 20s linear infinite;
}

@keyframes floatingShapes {
  0% {
    transform: translateY(0) rotate(0);
  }
  100% {
    transform: translateY(-200px) rotate(360deg);
  }
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  animation: socialFloat 3s ease-in-out infinite;
}

@keyframes socialFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.social-link:nth-child(2) {
  animation-delay: 0.1s;
}
.social-link:nth-child(3) {
  animation-delay: 0.2s;
}
.social-link:nth-child(4) {
  animation-delay: 0.3s;
}
.social-link:nth-child(5) {
  animation-delay: 0.4s;
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-5px) scale(1.2);
  animation: none;
}

.footer-column h3 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: white;
  transition: var(--transition);
}

.footer-column:hover h3::after {
  width: 100px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: white;
  padding-left: 10px;
}

.footer-links a i {
  transition: var(--transition);
}

.footer-links a:hover i {
  transform: rotate(90deg);
  color: var(--secondary);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.contact-info li:hover {
  color: white;
  transform: translateX(10px);
}

.contact-info i {
  color: var(--secondary);
  margin-top: 5px;
  transition: var(--transition);
}

.contact-info li:hover i {
  color: white;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--secondary);
}

.footer-bottom i {
  transition: var(--transition);
}

.footer-bottom:hover i {
  color: red;
  transform: scale(1.3);
}

/* MODALES */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  border-radius: 25px;
  padding: 50px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-title {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  font-size: 1rem;
  transition: var(--transition);
}

.modal-input:focus {
  outline: none;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.modal-select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: var(--transition);
}

.modal-select:focus {
  outline: none;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.modal-textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  font-size: 1rem;
  min-height: 120px;
  resize: vertical;
  transition: var(--transition);
}

.modal-textarea:focus {
  outline: none;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.modal-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.modal-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(49, 108, 177, 0.3);
}

/* NOTIFICATIONS */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary);
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  display: none;
  align-items: center;
  gap: 15px;
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.active {
  display: flex;
}

.notification i {
  font-size: 1.2rem;
}

/* TOAST */
.toast {
  position: fixed;
  top: 100px;
  right: 30px;
  background: var(--primary);
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  display: none;
  align-items: center;
  gap: 15px;
  animation: slideInRight 0.5s ease;
}

.toast.active {
  display: flex;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .container {
    padding: 0 30px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(49, 108, 177, 0.1);
    margin-top: 20px;
    animation: slideDown 0.5s ease-out;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .donation-card.popular {
    transform: scale(1);
    animation: popularPulseMobile 3s infinite;
  }

  @keyframes popularPulseMobile {
    0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.03);
    }
  }
}

@media (max-width: 768px) {
  header {
    top: 0;
    /* CORRECTION : On définit la largeur à 100% sans soustraction */
    width: 100%;
    /* Si votre header est en position fixe/absolue, assurez-vous que left et right sont à 0 */
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .testimonial-slider {
    padding: 40px 30px;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 25px;
  }

  .newsletter-input {
    border-radius: 25px 25px 0 0;
  }

  .newsletter-button {
    border-radius: 0 0 25px 25px;
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .donation-cards {
    flex-direction: column;
    align-items: center;
  }

  .donation-card {
    width: 100%;
    max-width: 350px;
  }
}

/* ANIMATIONS */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient);
  z-index: 1001;
  transition: width 0.1s ease;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(49, 108, 177, 0.1);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  to {
    transform: translateY(-100vh);
  }
}

.logo-image {
  width: 80px;
  height: auto;
  display: block;
}

.typing-text {
  display: inline-block;
}

.typing-cursor {
  display: inline-block;
  animation: blink 1s infinite;
  font-weight: bold;
  color: var(--primary);
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-subtitle:not(:has(.typing-text)) {
  visibility: hidden;
  height: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: white;
  animation: bounce 2s infinite;
  z-index: 2;
  cursor: pointer;
  text-decoration: solid;
}
.logo {
  position: relative;
  z-index: 1000;
}

.logo-link {
  display: inline-block;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 50%;
}

/* Animation 1: Effet 3D au survol */
.logo-link:hover .logo-image {
  transform: scale(1.1) rotateY(20deg) rotateX(10deg);
  filter: drop-shadow(0 10px 20px rgba(49, 108, 177, 0.3)) brightness(1.1);
}

/* Animation 2: Effet de halo */
.logo-hover-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(49, 108, 177, 0.3) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 1;
}

.logo-link:hover .logo-hover-effect {
  width: 160px;
  height: 160px;
  opacity: 1;
  animation: pulseHalo 2s infinite ease-in-out;
}

@keyframes pulseHalo {
  0%,
  100% {
    width: 160px;
    height: 160px;
    opacity: 0.7;
  }
  50% {
    width: 180px;
    height: 180px;
    opacity: 0.3;
  }
}

/* Animation 3: Étincelles tournoyantes */
.logo-sparkles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

.logo-link:hover .logo-sparkles {
  opacity: 1;
  animation: rotateSparkles 8s linear infinite;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(45deg, #316cb1, #4caf50, #ffd700);
  border-radius: 50%;
  filter: blur(1px);
}

.sparkle:nth-child(1) {
  top: 0;
  left: 50%;
  animation: sparkleGlow 1.5s infinite;
}
.sparkle:nth-child(2) {
  top: 50%;
  right: 0;
  animation: sparkleGlow 1.5s infinite 0.3s;
}
.sparkle:nth-child(3) {
  bottom: 0;
  left: 50%;
  animation: sparkleGlow 1.5s infinite 0.6s;
}
.sparkle:nth-child(4) {
  top: 50%;
  left: 0;
  animation: sparkleGlow 1.5s infinite 0.9s;
}

@keyframes rotateSparkles {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes sparkleGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
    box-shadow: 0 0 15px currentColor;
  }
}

/* Animation 4: Effet de particules (option avancée) */
.logo-link::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(49, 108, 177, 0.2) 90deg,
    transparent 180deg,
    rgba(76, 175, 80, 0.2) 270deg,
    transparent 360deg
  );
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.logo-link:hover::before {
  opacity: 1;
  animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Animation 5: Effet de shake au clic */
.logo-link:active .logo-image {
  animation: logoClickShake 0.3s ease;
}

@keyframes logoClickShake {
  0%,
  100% {
    transform: scale(1.1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(-5deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
  75% {
    transform: scale(1.1) rotate(-3deg);
  }
}

/* Animation 6: Effet de profondeur avec ombre portée */
.logo-link {
  perspective: 1000px;
}

.logo-link:hover {
  filter: drop-shadow(0 15px 30px rgba(49, 108, 177, 0.4));
}

/* Animation 7: Effet de couleur changeante (si votre logo le permet) */
.logo-link:hover .logo-image {
  animation: colorShift 3s infinite alternate;
}

@keyframes colorShift {
  0% {
    filter: drop-shadow(0 10px 20px rgba(49, 108, 177, 0.3)) sepia(0.1)
      saturate(1.2);
  }
  100% {
    filter: drop-shadow(0 10px 20px rgba(76, 175, 80, 0.3)) sepia(0.2)
      saturate(1.5);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .logo-image {
    width: 80px;
    height: 80px;
  }

  .logo-link:hover .logo-hover-effect {
    width: 110px;
    height: 110px;
  }

  @keyframes pulseHalo {
    0%,
    100% {
      width: 110px;
      height: 110px;
    }
    50% {
      width: 130px;
      height: 130px;
    }
  }

  .logo-sparkles {
    width: 100px;
    height: 100px;
  }
}

/* Pour les préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  .logo-link:hover .logo-image,
  .logo-hover-effect,
  .logo-sparkles,
  .logo-link::before {
    animation: none !important;
    transition: none !important;
  }

  .logo-link:hover .logo-image {
    transform: scale(1.05);
  }
}
.hero {
  position: relative;
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* assombrit légèrement la vidéo */
  z-index: 1;
}

/* Texte au-dessus de la vidéo */
.hero-content {
  position: relative;
  z-index: 3 !important;
}

/* Effet de meilleure lisibilité */
.hero-title,
.hero-subtitle {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}
.btn-glow,
.btn-outline {
  min-width: 230px;
  text-align: center;
}
/* Footer général */
footer {
  padding: 60px 0; /* avant : souvent 100px ou plus */
}

/* Footer description */
.footer-desc {
  margin-bottom: 10px; /* avant : 30px */
  font-size: 0.95rem; /* optionnel : légèrement plus petit pour compacter */
}

/* Colonnes du footer */
.footer-column h3 {
  margin-bottom: 10px; /* avant : 20-25px */
}

/* Liens du footer */
.footer-links li,
.contact-info li {
  margin-bottom: 5px; /* avant : 12px */
}

/* Footer bottom */
.footer-bottom {
  margin-top: 20px; /* avant : 40px */
  font-size: 0.9rem; /* optionnel pour réduire la hauteur */
}

.mali-map {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto; /* image par défaut */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  overflow: hidden;
  transition: background-image 0.5s ease-in-out; /* transition fluide */
}
.map-container {
  position: relative;
  background: white;
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(49, 108, 177, 0.05);
  border: 1px solid rgba(49, 108, 177, 0.1);
  animation: mapFloat 10s ease-in-out infinite;
  overflow: hidden;
}

@keyframes mapFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(0.5deg);
  }
}

.mali-map {
  position: relative;
  width: 100%;
  height: 450px; /* Carte générale du Mali */
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(49, 108, 177, 0.2);
  margin-bottom: 25px;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Overlay pour les images de fond spécifiques */
.map-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

/* Classes pour chaque ville */
.mali-map[data-active="bamako"] .map-background-overlay {
  background-image: url("asset/carte_bamako.jpg"); /* Image de carte de Bamako */
  opacity: 1;
}

.mali-map[data-active="kayes"] .map-background-overlay {
  background-image: url("asset/carte_kayes.jpg"); /* Image de carte de Kayes */
  opacity: 1;
}

.mali-map[data-active="segou"] .map-background-overlay {
  background-image: url("asset/carte_segou.jpg"); /* Image de carte de Ségou */
  opacity: 1;
}

.mali-map[data-active="sikasso"] .map-background-overlay {
  background-image: url("asset/carte_sikasso.jpg"); /* Image de carte de Sikasso */
  opacity: 1;
}

.mali-map[data-active="tombouctou"] .map-background-overlay {
  background-image: url("asset/carte_tombouctou.jpg"); /* Image de carte de Tombouctou */
  opacity: 1;
}

/* Assurer que les points restent au-dessus des images */
.map-point {
  position: absolute;
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(49, 108, 177, 0.3);
  animation: pulsePoint 3s infinite;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
}

.map-point::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  z-index: 1;
}

.map-point::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(49, 108, 177, 0.5);
}

@keyframes pulsePoint {
  0% {
    box-shadow: 0 0 0 0 rgba(49, 108, 177, 0.4);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(49, 108, 177, 0);
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(49, 108, 177, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

/* NOM DE LA VILLE */
.map-point-label {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* Label visible au hover */
.map-point:hover .map-point-label {
  opacity: 1;
  visibility: visible;
  top: -55px;
}

/* Label visible quand le point est actif */
.map-point.active .map-point-label {
  opacity: 1;
  visibility: visible;
  top: -55px;
  background: var(--secondary);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 15px 30px rgba(46, 125, 50, 0.3);
}

/* Effet spécial pour le label actif */
.map-point.active .map-point-label::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--secondary);
}

.map-point:hover {
  transform: translate(-50%, -50%) scale(1.4);
  background: var(--secondary);
  animation: none;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4);
}

.map-point:hover::after {
  background: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.map-point.active {
  background: var(--secondary);
  transform: translate(-50%, -50%) scale(1.4);
  animation: activePulse 2s infinite;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4);
}

.map-point.active::after {
  background: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

@keyframes activePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
    transform: translate(-50%, -50%) scale(1.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(46, 125, 50, 0);
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Légende */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 30px;
  flex-wrap: wrap;
  padding: 20px;
  background: rgba(49, 108, 177, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(49, 108, 177, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.legend-color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Indicateur */
.map-instruction {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 5;
  animation: instructionPulse 2s infinite;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20; /* Assurer qu'il est au-dessus des images */
}

@keyframes instructionPulse {
  0%,
  100% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

.map-instruction i {
  color: var(--secondary);
}

/* Animation de l'image de fond */
@keyframes fadeInMap {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mali-map[data-active] .map-background-overlay {
  animation: fadeInMap 0.8s ease-out forwards;
}

/* Indicateur de la ville active */
.active-city-indicator {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 15;
  display: none;
}

.mali-map[data-active] .active-city-indicator {
  display: block;
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bouton pour revenir à la carte générale */
.back-to-mali-map {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(49, 108, 177, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 15;
  display: none;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.mali-map[data-active] .back-to-mali-map {
  display: flex;
}

.back-to-mali-map:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .mali-map {
    height: 300px;
  }

  .map-point {
    width: 28px;
    height: 28px;
  }

  .map-point-label {
    font-size: 0.85rem;
    padding: 6px 15px;
  }

  .map-instruction {
    font-size: 0.8rem;
    padding: 8px 15px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .mali-map {
    height: 250px;
  }

  .map-point {
    width: 24px;
    height: 24px;
  }

  .map-point-label {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .map-point:hover .map-point-label,
  .map-point.active .map-point-label {
    top: -45px;
  }

  .map-instruction {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

.mobile-break {
  display: none; /* Cache les sauts de ligne <br> sur les grands écrans */
}

@media (max-width: 768px) {
  .hero-title {
    /* Assurez-vous que le titre ne dépasse pas la taille du conteneur */
    font-size: 2rem; /* Réduisez la taille de la police pour les petits écrans */
    padding: 0 15px; /* Ajoutez un peu de padding horizontal pour ne pas coller les bords */
    white-space: normal; /* TRÈS IMPORTANT : annule tout 'white-space: nowrap' forcé */
  }

  /* Afficher les sauts de ligne forcés uniquement sur mobile */
  .mobile-break {
    display: block; /* Affiche les sauts de ligne <br> sur les petits écrans */
  }
}
/* --- Style général pour le défilement horizontal sur mobile (Media Query) --- */
/* --- Styles pour les grands écrans (version Web/Desktop) --- */
/* (Définissez ici l'affichage par défaut qui n'est PAS un défilement) */
.team-grid {
  display: grid;
  /* Exemple: 4 colonnes sur desktop, ajustez selon votre design initial */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0;
}

/* --- Styles pour les petits écrans (Version Mobile, max 768px) --- */
@media (max-width: 768px) {
  /* 1. Configuration du conteneur de défilement */
  .team-carousel {
    overflow-x: scroll; /* ACTIVER le défilement horizontal */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Améliore l'expérience sur iOS */
    padding-bottom: 20px; /* Espace pour la barre de défilement */
  }

  /* 2. Configuration des éléments sur une seule ligne */
  .team-grid {
    display: flex; /* Utiliser Flexbox pour aligner les cartes horizontalement */
    flex-wrap: nowrap; /* EMPÊCHER le retour à la ligne */
    gap: 20px; /* Espace entre chaque carte */
    padding: 0 20px; /* Padding latéral pour le look 'carousel' */
  }

  /* 3. Configuration de chaque carte individuelle pour la taille mobile */
  .team-card {
    /* Donne une taille visible à la carte pour qu'elle puisse défiler */
    width: 80vw; /* La carte prend 80% de la largeur de la vue (viewport) */
    min-width: 280px; /* Assure une taille minimale */
    flex-shrink: 0; /* Empêche les cartes de rétrécir et force le défilement */
  }

  /* Optionnel: Masquer la barre de défilement (Scrollbar) si vous le souhaitez */
  .team-carousel::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari, Opera */
  }
  .team-carousel {
    -ms-overflow-style: none; /* Pour Internet Explorer et Edge */
    scrollbar-width: none; /* Pour Firefox */
  }
}
/*
 * RÈGLE GLOBALE POUR RÉDUIRE L'ESPACE ENTRE LES SECTIONS
 * Ajustez les valeurs de 'padding-top' et 'padding-bottom' selon l'effet souhaité.
 */
section {
  /* Réduit le padding par défaut (utilisé si vous n'avez pas de classes spécifiques) */
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* Cible les sections spécifiques que vous avez déjà : */

/* 1. Réduction pour la section Leadership & Expertise (Team) */
.team {
  padding: 80px 0 !important; /* Réduit 120px à 80px */
}

/* 2. Réduction pour la section Histoires de Réussite (Testimonials/Impact) */
.testimonials {
  padding: 80px 0 !important; /* Réduit 120px à 80px */
}

/* 3. Réduction pour la section Actualités (News) */
.news {
  padding: 80px 0 !important; /* Réduit 100px à 80px */
}

/* --- OPTIONNEL : Si vos sections ont des marges intérieures --- */
/* Cible les en-têtes de section pour réduire l'espace sous les titres si nécessaire */
.section-header {
  margin-bottom: 40px !important; /* Réduit la marge sous les titres des sections */
}

/* --- Réduction pour Mobile (si les espaces mobiles sont trop grands) --- */
@media (max-width: 768px) {
  section,
  .team,
  .testimonials,
  .news {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  .section-header {
    margin-bottom: 30px !important;
  }
}
/* Masquer l'icône par défaut (affichée seulement sur mobile) */
.mobile-donation-icon {
  display: none;
}

/* Styles pour l'icône de don mobile */
.mobile-donation-icon {
  background-color: #4caf50; /* Couleur de fond, ajustez selon votre design */
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
}

.mobile-donation-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.mobile-donation-icon:active {
  transform: translateY(-1px);
}

/* Media query pour mobile */
@media screen and (max-width: 768px) {
  /* Masquer le bouton texte sur mobile */
  .desktop-donation-btn {
    display: none;
  }

  /* Afficher l'icône sur mobile */
  .mobile-donation-icon {
    display: flex;
  }
}

/* Media query pour desktop */
@media screen and (min-width: 769px) {
  /* Masquer l'icône sur desktop */
  .mobile-donation-icon {
    display: none;
  }

  /* Afficher le bouton texte sur desktop */
  .desktop-donation-btn {
    display: block;
  }
}
/* Masquer l'icône par défaut (affichée seulement sur mobile) */
.mobile-donation-icon {
  display: none;
}

/* Styles pour l'icône de don mobile */
.mobile-donation-icon {
  position: relative;
  background: linear-gradient(
    135deg,
    #2e7d32 0%,
    #316cb1 100%
  ); /* Dégradé vert à bleu */
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.9rem;
  box-shadow: 0 6px 20px rgba(49, 108, 177, 0.3);
  transition: all 0.4s ease;
  overflow: visible;
  border: 2px solid white;
  z-index: 100;
}

/* Animation de battement de cœur avec couleurs de la charte */
.heartbeat-icon {
  animation: heartbeat 2s ease-in-out infinite both;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
    color: white;
  }
  5% {
    transform: scale(1.12);
    color: #ffebee; /* Blanc légèrement rosé */
  }
  10% {
    transform: scale(1);
    color: white;
  }
  15% {
    transform: scale(1.18);
    color: #ffcdd2; /* Rose très clair */
  }
  20% {
    transform: scale(1);
    color: white;
  }
  25% {
    transform: scale(1.08);
    color: white;
  }
  30% {
    transform: scale(1);
    color: white;
  }
  100% {
    transform: scale(1);
    color: white;
  }
}

/* Anneaux de pulsation avec couleurs alternées */
.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  z-index: 1;
  box-sizing: border-box;
}

/* Premier anneau - vert */
.pulse-ring:nth-child(2) {
  border: 2px solid #2e7d32;
  animation: pulse 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

/* Deuxième anneau - bleu */
.pulse-ring:nth-child(3) {
  border: 2px solid #316cb1;
  animation: pulse 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite 0.8s;
}

/* Troisième anneau - mélange */
.pulse-ring:nth-child(4) {
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: pulse 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite 1.6s;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  70% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Effet au survol */
.mobile-donation-icon:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow:
    0 12px 30px rgba(49, 108, 177, 0.5),
    0 4px 15px rgba(46, 125, 50, 0.4);
  background: linear-gradient(
    135deg,
    #316cb1 0%,
    #2e7d32 100%
  ); /* Inversion des couleurs au survol */
}

.mobile-donation-icon:hover .heartbeat-icon {
  animation: heartbeat-hover 0.8s ease-in-out infinite both;
}

@keyframes heartbeat-hover {
  0% {
    transform: scale(1);
    color: white;
  }
  25% {
    transform: scale(1.2);
    color: #e8f5e9; /* Vert très clair */
  }
  50% {
    transform: scale(1);
    color: white;
  }
  75% {
    transform: scale(1.15);
    color: #e3f2fd; /* Bleu très clair */
  }
  100% {
    transform: scale(1);
    color: white;
  }
}

.mobile-donation-icon:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 4px 15px rgba(49, 108, 177, 0.4);
}

/* Effet de brillance avec couleurs de la charte */
.mobile-donation-icon::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #316cb1,
    #2e7d32,
    white,
    #316cb1,
    #2e7d32
  );
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(8px);
}

.mobile-donation-icon:hover::before {
  opacity: 0.4;
  animation: rotate-glow 3s linear infinite;
}

@keyframes rotate-glow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Effet de lumière intérieure */
.mobile-donation-icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 70%
  );
  z-index: 1;
  pointer-events: none;
}

/* Animation de flottement avec couleurs subtiles */
@keyframes gentle-float {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(49, 108, 177, 0.3);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(46, 125, 50, 0.4);
  }
}

.mobile-donation-icon {
  animation: gentle-float 6s ease-in-out infinite;
}

/* Media query pour mobile */
@media screen and (max-width: 768px) {
  /* Masquer le bouton texte sur mobile */
  .desktop-donation-btn {
    display: none;
  }

  /* Afficher l'icône sur mobile */
  .mobile-donation-icon {
    display: flex;
  }

  /* Ajustements pour petits écrans */
  .mobile-donation-icon {
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
  }
}

/* Media query pour desktop */
@media screen and (min-width: 769px) {
  /* Masquer l'icône sur desktop */
  .mobile-donation-icon {
    display: none;
  }

  /* Afficher le bouton texte sur desktop */
  .desktop-donation-btn {
    display: block;
  }
}

/* Style optionnel pour correspondre au bouton desktop existant */
.desktop-donation-btn {
  background: linear-gradient(135deg, #316cb1, #2e7d32);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.desktop-donation-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(49, 108, 177, 0.4);
}
/* Boutons d'action pour contact */
.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  margin-left: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.contact-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.1);
}

.contact-action-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Sur mobile, rendre les boutons plus accessibles */
@media (max-width: 768px) {
  .contact-action-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}
