:root {
  --primary: #2C5E92;
  --secondary: #F39C12;
  --accent: #27AE60;
  --light: #F9F9F9;
  --dark: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: #ffffff;
  overflow-x: hidden; /* Prévient le défilement horizontal accidentel */
}

.child-font {
  font-family: 'Comic Neue', cursive;
}

/* Header Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary), #1a3d66);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: white !important;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
}

.navbar-brand i {
  color: var(--secondary);
  margin-right: 10px;
  font-size: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 15px !important;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(44, 94, 146, 0.9), rgba(26, 61, 102, 0.9)), url('https://images.unsplash.com/photo-1523875194681-bedd468c58bf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1471&q=80') center/cover no-repeat;
  color: white;
  padding: 80px 0; /* Padding réduit pour être plus versatile */
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 2.8rem; /* Taille de base ajustée */
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem; /* Taille de base ajustée */
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-btn {
  background-color: var(--accent);
  border: none;
  padding: 12px 30px; /* Padding ajusté */
  font-size: 1.1rem; /* Taille de police ajustée */
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
  background-color: #219653;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Section Styles */
.section-title {
  position: relative;
  margin-bottom: 50px; /* Espace augmenté */
  text-align: center;
  color: var(--primary);
  font-weight: 600;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.mission-card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  height: 100%;
  transition: transform 0.3s ease;
  border: 1px solid rgba(44, 94, 146, 0.1);
}

.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.mission-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), #1a3d66);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.mission-icon i {
  font-size: 30px;
  color: white;
}

.event-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  background: linear-gradient(135deg, #f9f9f9, #ffffff);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.event-card .card-header {
  background: linear-gradient(135deg, var(--secondary), #e67e22);
  color: white;
  padding: 20px;
  border-bottom: none;
  font-weight: 600;
  font-size: 1.3rem;
}

.event-card .card-body {
  padding: 25px;
}

.event-card .card-footer {
  background-color: rgba(39, 174, 96, 0.1);
  border-top: none;
  padding: 15px 25px;
  font-weight: 500;
}

.activity-item {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--accent);
  transition: all 0.3s ease;
}

.activity-item:hover {
  border-left-width: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Supporter Styles */
.supporter-card {
  text-align: center;
  padding: 25px 15px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(44, 94, 146, 0.1);
}

.supporter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.supporter-img {
  width: 80px; /* Taille réduite */
  height: 80px; /* Taille réduite */
  border-radius: 50%;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 2.2rem; /* Taille d'icône ajustée */
  color: var(--primary);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #1a3d66, var(--primary));
  color: white;
  padding: 60px 0 20px;
  margin-top: 50px;
  text-align: center; /* Centrer le texte du footer sur mobile par défaut */
}

.footer-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
  font-weight: 600;
}

.footer-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%; /* Centrer le soulignement */
  transform: translateX(-50%); /* Centrer le soulignement */
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.footer-links {
  padding-left: 0; /* Retirer le padding par défaut de la liste */
}

.footer-links li {
  margin-bottom: 12px;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center; /* Centrer les icônes */
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* --- Animation --- */
/* Préparer les éléments à animer */
.animate {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Définir l'état visible de l'animation */
.animate.in-view {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Appliquer les délais */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/*
==============================================
  AJUSTEMENTS RESPONSIVES (MOBILES)
==============================================
*/
@media (max-width: 767.98px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem; /* Taille de police réduite pour mobile */
  }
  
  .hero p {
    font-size: 1rem; /* Taille de police réduite pour mobile */
  }

  .section-title {
    font-size: 1.8rem;
  }
  
  /* Ajouter de l'espace sous les cartes lorsqu'elles s'empilent */
  .mission-card, .supporter-card {
    margin-bottom: 20px;
  }
  
  /* S'assurer que la dernière carte n'a pas de marge en bas */
  .row > .col-md-4:last-child .mission-card,
  .row > .col-6:last-child .supporter-card {
    margin-bottom: 0;
  }

  /* Ajuster le titre de l'événement et des activités */
  .event-card .card-title, .activity-item h4 {
    font-size: 1.2rem;
  }

  /* Ajuster la colonne des événements à venir */
  .col-lg-4 .section-title {
    margin-top: 30px; /* Ajouter de l'espace quand les colonnes s'empilent */
  }

  .footer {
    text-align: center;
  }

  .footer-title:after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }
}