/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  header {
    text-align: center;
    padding: 20px;
    background-color: #8BBE43;
    color: #16375C;
  }
  header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
    opacity: 0; /* Masque initialement */
    transform: translateY(-50px); /* Début de l'animation */
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1s; /* Démarre après le logo */
  }

  .logo-container {
    width: 4cm; 
    height: 4cm; /* Hauteur de 3 cm (forme circulaire) */
    background-color: white; /* Fond blanc */
    border-radius: 50%; /* Cercle parfait */
    display: flex; /* Centre l'image */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Coupe les parties de l'image en dehors du cercle */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre pour l'esthétique */
    margin: 10px auto; /* Centrage */
    opacity: 0; /* Masque initialement*/
    transform: translateY(-100px); /* Début de l'animation */
    animation: moveDown 2s ease-out forwards; /* Animation du logo */
  }
  
  .logo-container img {
    width: 110%;
    height: 110%;
    object-fit: cover;
  }
  
  nav {
    /*background-color: #8BBE43;*/
    background-color: #16375C;
    display: flex;
    justify-content: center; /* Centre le nav horizontalement */
    align-items: center; /* Aligne les éléments verticalement */
    padding: 10px;
    height: 50px;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
  }
  
  nav ul li {
    position: relative;
  }
  
  nav ul li a {
    text-decoration: none;
    color:  white;
    font-weight: bold;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s ease;
  }
  
  nav ul li a:hover {
    /*font-size: 14px;*/
    /*background-color: #16375C;*/
    /*color: #16375C;*/
    color:black;
  }
  
  /* Sous-menus - Affichés uniquement au survol de l'élément spécifique */
  nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background-color:#8BBE43 ;
    opacity: 80%;
    display: none;
    min-width: 200px;
    z-index: 1000;
  }
  
  nav ul li ul li a {
    padding: 10px 20px;
  }
  
  nav ul li:hover > ul {
    display: block;
  }
  
  nav ul li ul li ul {
    position: absolute;
    top: 0;
    left: 100%;
    display: none;
  }
  
  nav ul li ul li:hover ul {
    display: block;
  }
  
  /* Ajustement spécifique pour "Our Actions" */
  nav ul li ul li a:hover + ul {
    display: block;
  }

   h2 {
    margin: 10px;
    text-align: center;
    color: #16375C;
  }
  h3{
    text-align: center;
    color: #16375C;
    padding: 10px;
  }

  /*------------------------------------------Burger menu-------------------------------*/
  /* Conteneur des icônes */
.menu-icons {
  display: flex; /* Visible par défaut sur les grands écrans */
  align-items: center;
  gap: 15px; /* Espacement entre les icônes */
}

/* Style des icônes */
.menu-icons li {
  list-style: none;
}

.menu-icons a img {
  width: 24px; /* Taille des icônes */
  height: 24px;
  display: block;
}
  
  /* Bouton burger */
  .burger-menu {
    display: none; /* Masquer par défaut */
    background-color: #27cd54;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 10px;
  }
    


  /* Section About Us */
#about-us {
    padding: 20px;
    text-align: center;
    background-color: #f4f4f9;
  }
  
  #about-us h2 {
    margin-bottom: 10px;
    color: #16375C;
  }
  #about-us p {
    margin-top: 10px;
    font-size: 1rem;
    color: #16375C;
  }
  
  /* Section Our Approach */
  #our-approach {
    padding: 20px;
    text-align: center;
  }
  
  #our-approach h2 {
    margin-bottom: 20px;
    color: #16375C;
    /*color: #16375C;*/
  }
  
  .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
  }
  
  .card {
    background-color: white;
    border: 2px solid #16375C;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 450px;
    height: auto;
    padding: 15px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card h3 {
    margin-bottom: 10px;
    color: #16375C;
    font-size: 1.2rem;
  }
  
  .card p {
    font-size: 1rem;
    color: #555;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  }
  
  #carte_mada {
    margin:  auto; 
    height: 900px;
    width: auto;
    display: flex;
    background-color: #f4f4f9;
    /*background-image: url("./photo/modal-carte.png");*/
    /*background-size: 100%; */
    /*background-size: contain;*/
    background-position: center; 
    background-repeat: no-repeat; 
    border-radius: 10px; 
    overflow: hidden; 
    background-size: cover;
    /*border-radius: 20px;*/
  }
  
  #map {
    flex: 1;  /* Occupe l'espace restant de manière flexible */
    height: 80vh;  /* Limite la hauteur de la carte à 50% de la fenêtre */
    width: 100%;
}






  

  /* Style général des cartes---------------------------------------------*/

#work-cards, #what-cards, #focus-cards, #action-cards{
  display: flex;
  flex-wrap: wrap;
 
  gap: 40px;
  justify-content: center;
  padding: 5px;
  
}


/* Style de chaque carte */
.work-card , .what-card, .focus-card {
  width: 400px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column; 
  transition: all 0.3s ease;
  background-color: #fff;
  position: relative; 


  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); 
  transform-origin: center; 
  
  }

/* Description (titre en haut) */
.card-description {
  font-size: 1rem;
  font-weight: bold;
  color: #16375C;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

/* Image */
.work-card img , .what-card img, .focus-card img{
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Bouton "Read More" */
.read-more-btn {
  align-self: flex-end;
  margin: 10px;
  padding: 5px 15px;
  border: none;
  background-color: #16375C;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  
}

/* Détails masqués par défaut */
.details {
  display: none;
  padding: 10px;
  text-align: justify;
  color: #555;
}





.work-card.expanded, .what-card.expanded , .focus-card.expanded{
  width: 80%; 
  height: auto;
  display: flex;
  flex-direction: column; 
  align-items: stretch; 
  gap: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  border-radius: 5px; 
  margin: auto; 
}


.work-card.expanded .content-left, .what-card.expanded .content-left , .focus-card.expanded .content-left{
  display: flex;
  flex-direction: column; 
  flex-shrink: 0;
  width: 100%; 
  margin-bottom: 0;
}


.work-card.expanded img, .what-card.expanded img, .focus-card.expanded img{
  width: 100%; 
  height: 400px; 
  border-radius: 5px; 
  object-fit: cover;
}


.work-card.expanded .details, .what-card.expanded .details , .focus-card.expanded .details{
  display: flex;
  flex-direction: column; 
  flex-grow: 1; 
  width: 100%; 
  padding: 15px; 
  background-color: #ffffff; 
  color: #333; 
  border-radius: 5px; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
  text-align: justify; 
  overflow-y: auto; 
}





  
  
  
  footer {
    background-color: #8BBE43; /* Couleur de fond */
    color: white; /* Couleur du texte */
    text-align: center; /* Centre le texte horizontalement */
    padding: 10px 0; /* Espacement vertical */
    margin-top: auto; /* Pousse le footer vers le bas si le contenu est court */
  }  

  /* Responsivité */
  @media (max-width: 768px) {
    /*nav ul {
      flex-direction: column;
      background-color: #003a85;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      display: none;
    }
  
    nav ul.active {
      display: flex;
    }
  
    nav ul li {
      width: 100%;
    }
  
    nav ul li ul {
      position: static;
    }
  
  
    nav ul li a {
      padding: 15px;
    }*/
    nav ul li a {
      text-decoration: none;
      color:  white;
      font-size: 12px;
      font-weight: normal;
      padding: 15px 20px;
      display: block;
      transition: background-color 0.3s ease;
    }
    nav ul li a {
      text-decoration: none;
      size: 11px;
      color: white;
      padding: 5px 10px;
      display: block;
      transition: background-color 0.3s ease;
    }


    .work-card.expanded, .what-card.expanded , .focus-card.expanded {
      width: 100%; /* Carte pleine largeur pour les petits écrans */
    }
  
    .work-card.expanded .content-left {
      margin-bottom: 10px; /* Espace sous l'image */
      width: 100%; /* Prend toute la largeur disponible */
    }
  
    .work-card.expanded .details {
      margin-top: 10px; /* Espace au-dessus des détails */
      width: 100%; /* Les détails occupent toute la largeur */
      padding: 20px;
      font-size: 1rem; /* Assure une taille de texte lisible */
    }

    /*ABOUT*/
    .contact{
      padding: 50px;
    }
    .container{
      flex-direction: column;
    }
    .container .contactInfo{
      margin-bottom: 40px;
    }
    .container .contactInfo,
    .contactForm
    {
      margin-bottom: 40px;
    }


  }

/* Animation pour le logo */
@keyframes moveDown {
    0% {
      opacity: 0;
      transform: translateY(-100px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Animation pour le titre */
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(-50px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }


/* Style commun pour #why et #focus */
.card-content {
  display: none;
  margin-top: 10px;
}
.card-content.show {
  display: block;
}




.contact{
  position: relative;
  min-height: 100vh;
  padding: 50px 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #f9f9f9;
  background-size: cover;
}

.contact .content{
  max-width: 800px;
  text-align: center;
}
.contact .content h2{
  font-size: 36px;
  font-weight: 500;
  color:#16375C;
}
.contact .content p{
  font-size: 300;
  color: #16375C;
}
.container{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}
.container .contactInfo{
  width: 50%;
  display:flex;
  flex-direction: column;
}
.container .contactInfo .box{
  position: relative;
  padding: 20px 0;
  display:flex;
}
.container .contactInfo .box .icon{
  min-width: 60px;
  height: 60px;
  background: #16375C;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  font-size: 22px;
}
.container .contactInfo .box .icon .text{
  display: flex;
  margin-left: 20px;
  font-size: 16px;
  color: #16375C;
  flex-direction: column;
  font-weight: 300;
}
.container .contactInfo .box .icon .text h3{
  font-weight: 500;
  color:#8BBE43;
}
.contactForm{
  width: 40%;
  padding:40px;
  background: #f4f4f9;
}
.contactForm h2{
  font-size: 30px;
  color:#333;
  font-weight: 500;
}
.contactForm .inputBox{
  position: relative;
  width: 100%;
  margin-top: 10px;
}
.contactForm .inputBox input, .contactForm .inputBox .texarea{
  width: 100%;
  padding: 5px 0;
  font-size: 16px;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid #333;
  outline: none;
  resize: none;
}
.contactForm .inputBox span{
  position:absolute;
  left:0;
  padding: 5px 0;
  font-size: 16px;
  margin:10px 0; 
  pointer-events: none;
  transition: 0.5s;
  color: #666;
}
.contactForm .inputBox input:focus ~ span, 
.contactForm .inputBox input:valid ~ span,
.contactForm .inputBox textarea:focus ~ span, 
.contactForm .inputBox textarea:valid ~ span
{
  color: #e91e63;
  font-size: 12px;
  transform: translateY(-20px);
}
.contactForm .inputBox input[type="submit"]{
  width: 100px;
  background: #27aa51;
  color:#fff;
  border: none;
  cursor:pointer;
  padding:10px;
  font-size: 18px;
}




/*dddd*/
/* Global Styles */


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}



/* Header Section */
.about-header {
  background: #8BBE43;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.about-header h1 {
  font-size: 2.5rem;
  margin: 0;
}

.about-header p {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Description Section */
.description-section {
  padding: 40px 20px;
  background: #f9f9f9;
  text-align: center;
}

.description-section p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Contact Section */
.contact-section {
  padding: 40px 20px;
  background: #ffffff;
}

.contact-section .contact-info p {
  font-size: 1.1rem;
  margin: 10px 0;
}

/* Message Section */
.message-section {
  padding: 40px 20px;
  background: #f9f9f9;
  text-align: center;
}

.message-form {
  max-width: 600px;
  margin: 0 auto;
}

.message-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.message-form input,
.message-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.message-form textarea {
  resize: vertical;
}

.message-form .btn-submit {
  background: #22bf63;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.message-form .btn-submit:hover {
  background: #0056b3;
}

/* Footer */


.about-footer p {
  margin: 0;
  font-size: 0.9rem;
}


.leaflet-tooltip {
  background-color: rgba(255, 255, 255, 0.9); /* Fond blanc semi-transparent */
  color:#16375C;
  font-size: 14px;
  font-weight: bold;
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


.container-donnation {
  max-width: 600px;
  margin: auto;
}

.inspiring-text {
  font-size: 24px;
  font-weight: bold;
  margin: 40px;
  color:  #fff;
  animation: fadeIn-donnation 2s ease-in-out;
}

.boxes-donnation {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.box-donnation {
  width: 120px;
  height: 120px;
  background-color:  #8BBE43;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  animation: bounceIn-donnation 1s ease-out;
}

.box-donnation:hover {
  transform: scale(1.1);
}

#donate-box{
  background-color: #fff;
}

.message-box {
  margin-top: 40px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.message-box h3 {
  margin-bottom: 10px;
  color: #333;
}

.message-box input,
.message-box textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.message-box button {
  padding: 10px 20px;
  background-color: #16375C;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  
}

.message-box button:hover {
  background-color: #8BBE43;
}

.box {
  flex: 1;
  min-width: 300px; /* Empêche que les divs soient trop petites */
  padding: 20px;
  margin: 10px;
  background-color: #f4f4f4;
  text-align: center;
  border-radius: 8px;
}

@keyframes fadeIn-donnation {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn-donnation {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

#join-us-photo {
  background-image: url(photo/location/Mahavavy2.JPG) ;
  background-repeat: no-repeat;
  background-size: cover; /* Ajuste l'image pour couvrir tout le div */
  background-position: center; /* Centre l'image pour un meilleur rendu */
  width: 100%; /* Assure que le div prend toute la largeur */
  min-height: 500px; /* Ajuste selon la hauteur désirée */
}





.cards-container-new {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.cardnews {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
}

.cardnews img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.cardnews h3 {
  font-size: 18px;
  margin: 10px 0;
}

.cardnews p {
  font-size: 14px;
  color: #555;
}