/* ====== RESET ====== */
 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;


}

.container {
  max-width: 1200px;               /* Largeur max du contenu */
  margin: 0 auto;                  /* Centre horizontalement */
  padding: 0 20px;                 /* Espacement interne gauche/droite */
  justify-content: center;
}

/* ====== HEADER ====== */
header {
    background: #6c1c2b;
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    width: max;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 20px;
}
.logo p {
    color: white;
}
header div img {
    width: 80px;
    height: auto;
    margin: 5px;
}


header nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  position; absolute;
  right: 0;
}


header nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}
header nav ul li a:hover {
  color: #fbc02d; /* jaune */
}

/*-------------------------------------------*/
/* Styles pour les petits écrans (max 768px) */
/*-------------------------------------------*/
@media (max-width: 768px) {
  /* La section de l'en-tête */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    position: sticky;
    top: 0;
    width: 100%;
  }

  /* Le logo reste en haut à gauche */
  header .logo {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  header p {
    display: none;
  }
  /* Masque le bouton "Faire un don" sur mobile */
  .geze {
    display: none;
  }

  /* Cache le menu de navigation par défaut sur mobile */
  header nav {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    position: static;
    background: #6c1c2b;
    padding: 10px 0;
  }

  /* Affiche le menu quand la classe 'active' est ajoutée par JS */
  header nav.active {
    display: flex;
  }

  /* Les éléments de liste s'empilent verticalement */
  header nav ul {
    flex-direction: column;

    gap: 10px;
    width: 100%;
  }

  /* Le bouton du menu hamburger est affiché sur mobile */
  .hamburger-menu {
    display: block;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
  }
}

/* Cache le bouton du menu hamburger sur les grands écrans */
@media (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }

}


/* ====== Bouton de retour en haut de page ====== */
#scroll-to-top-button {
  /* Assure que le bouton reste toujours visible */
  position: fixed;
  bottom: 20px;
  right: 20px;

  /* Garantit que le bouton est au-dessus de tout le reste */
  z-index: 9999;

  /* Styles pour l'apparence */
  display: block;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  text-decoration: none;
  transition: background-color 0.3s, opacity 0.3s;
  opacity: 0.8;
}

#scroll-to-top-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
}



/* ====== DYNAMISME ====== */


/* ====== HERO ====== */

.hero {
    position: relative;
    height: 100vh; /* prendre toute la lareur de la fenetre */
    overflow: hidden; /* cache les imagees qui débordent*/
    text-align: center;
    display: flex;
    align-items: center;  /*permet de centrer un élément à la foi verticalement et horizontalement*/
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* place le diapo derrère le contenu */
}

.overlay {
  /* La couche de superposition */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 50, 40, 0.7); /* Couleur noire avec 50% de transparence */
  z-index: -1; /* Placez l'overlay juste au-dessus du diaporama */
}

.slideshow-container img {
  /* Styles pour chaque image */
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0; /* Les images sont invisibles par défaut */
  transition: opacity 1s ease-in-out, transform 8s linear;
}

.slideshow-container img.active {
  /* L'image active est visible et subit l'effet de zoom */
  opacity: 1;
  transform: scale(1.1); /* L'effet de zoom */
}

.hero-content {
    color: white;
    z-index: 1;
}

.hero h1 {
  font-size:40px;
  margin-bottom: 0px;
}

.hero p {
  font-size: 25px;
  margin-bottom: 70px;
  margin-top: 0;
}

.btn {
  background: #fbc02d;
  color: #2e7d32;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #fff;
}

.hero .appels {
    margin: 50px;
}

@media (max-width: 768px) {
   .hero {
        height: auto;
  }
}

/* ====== SECTIONS ====== */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section.alt {
  background: #f9f9f9;
}

.section h2 {
  color: #2e7d32;
  margin-bottom: 20px;
  font-size: 3em;
  font-weight: bod;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .section h2 {
  
  margin-bottom: 15px;
  font-size: 8vw;
  font-weight: bod;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
 }
}

/* ====== SECTIONS about ====== */
#about  {
    max-width: 1200px;
    text-align: left;
}
#about2  {
    max-width: 1200px;
    text-align: left;
}

#about p {
    gap: 20px;
    color: #555;
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 300px;
}

#about2 p {
    gap: 20px;
    color: #555;
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 300;
}

#about img {
    width: 500px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 5px;
}

#abouthead {
    display: flex;
    gap: 20px;
    text-align: left;
    margin-bottom: 0;
}

.aboutdiv1 {
    padding: 20px;
}

#recepice {
    background: #fbc02d;
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 12px;
    color: white;
    text-align: left;
    justify-content: center;
    height: auto;
}

#siege {
    background: url("image/img9.jpg")  no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 350px;
    width: 100%;
    color: white;
    justify-content: center;
    align-items: center;

}
#siege .ps {
  text-align: center;
  padding: 20px;
  font-size: 1.1em;
  color: #fbc02d;
  height: auto;
}

#info {
    display: flex;
    justify-content: center;
    gap: 100px;
    text-align: center;
    max-width: 1400px;
    margin-top: 60px;
}
#info p {
     justify-content: center;

}


/* Styles pour les petits écrans (max 768px) */
/*-------------------------------------------*/

@media (max-width: 768px) {
  #abouthead {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
   #siege {
    height: 800px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #siege .ps {
    font-size: 2rem;
    color: #fbc02d;
    height: auto;
  }

  #info {
    flex-direction: column;
    gap: 30px;
    font-size: 7vw;
    min-height: auto;
    margin: 20px;
  }

   #info h1 {
    font-size: 1em;
    margin-bottom: 5px;
  }

  #info p {
    font-size: 1em;
  }

  /*#abouthead .aboutp1 {
    max-width: 100px;
    padding: 20px;
    text-align: center;
    justify-content: cener;
    align-items: center;

  }*/

  .aboutdiv1 {
    width: auto;
    padding: 20px;
    font-weight: auto;
  }

  .aboutp1 {
    width: auto;
    height: auto;
    display: flex;
  }

  #about img {
    padding: 10px;
    max-width: 90vw;
    border-radius: 2rem;
  }

  #recepice {
    width: 80vw;
    
  }
  }



/* ====== About2 ====== */
.hidden-block {
    display: none;
}


/* ====== Nos réalisation ====== */
#realisation {
    background: #F4EDDE;
    height: auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.card {
  background: white;
  border: 4px solid #ddd;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 250px;
  height: 300px;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btnimg {
  position: absolute;
  width: 150px;
  background: #2e7d32;
  color: white;
  padding: 10px 10px;
  bottom: 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.btnimg:hover {
  background: #fbc02d;
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
  color: #fbc02d;
  margin-bottom: 10px;
}
.card p {
    margin-bottom: 40px;
}

/*media queries */
@media (max-width: 768px) {
    .btnimg {
        margin:0;
        bottom: 10px;
    }

}

/* ====== SECTIONS mission ====== */
#mission {
    background: #fbc02d;
    display: flex;
    justify-content: center;
}
#mission li {
    max-width: 800px;
    text-align: left;
    font-size: 1.3em;
}

/* ====== SECTIONS Actions ====== */
#actions {
    background: #2e7d32;

}
#actions h2 {
    color: white;
}


/* ====== SECTIONS insert trait de 8 ====== */
#para {
    display: grid;
    place-items: center;
}


/* ====== CARDS ====== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
  color: #fbc02d;
  margin-bottom: 10px;
}

/*media queries */
@media (max-width: 768px) {
    .card {
        height: auto;
    }
}

/* ====== Galerie ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Styles pour la visionneuse modale */
.modal {
  display: none; /* Cache la modale par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* ====== Section main serrée ====== */
#main {
    background: url("image/galerie/main.jpg") no-repeat center;
    background-size: cover;
    height: 500px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#main h2 {
    font-size: 3em;
}

/* ====== Section Contact ====== */
#contact {
    background: url("image/galerie/contact.jpg") no-repeat center /*#312f2f*/;
    background-size: cover;
    color: white;
}

#contact h2 {
    color: white;
}

#contact h3 {
    color: white;
    font-size: 1.5em;
}

#contactdiv {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

#contactdiv .appel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 95%;
    padding: 5px;
}

#contactdiv .appels {
    display: flex;
    gap: 20px;
}

#contactdiv .adresse {
    background: rgba(255, 255, 255, 0.7)/*rgba(251, 192, 45, 1)*/;
    color: black;
    border-radius: 12px;
    height: 200px;
    padding: 20px;
    margin: 10px;
    display: flex;
    align-items: center;
    text-align: left;
    width: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.adresse a:hover {
    color: #2e7d32;
}

/*bouton*/
.btnc {
  width: auto;
  background: #2e7d32;
  color: white;
  padding: 10px 10px;
  bottom: 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.btnc:hover {
  background: #fbc02d;
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* adaptation petit écran */
@media (max-width: 768px) {

    #contact {
    background: url("image/galerie/contact.jpg") no-repeat center /*#312f2f*/;
    background-size: cover;
    color: white;
    }
    .appels {
        display: flex;
        flex-direction: column;
    }

    #contact h3 {
        font-size: 1.5em;
        width: 95vw;
    }

    #contactdiv .adresse {
        padding: 10px;
        width: auto;
        height: auto;
    }

    #main {
        text-align: center;

    }
    #main h2 {
        font-size: 2rem;
    }
}

/* ====== FOOTER ====== */
footer {
   background: url("image/galerie/footer.jpg") no-repeat center;
   background-size: cover;
   color: white;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding: 15px;
  gap: 50px;
}

#footer img {
  width: 100px;
}

#footer .logo {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  text-align: left;
  gap: 20px;
  max-width: 300px;
  margin: 20px;
}

#footer a {
  color: white;
}
#footer a:hover {
  color: #fbc02d;
}

#footer .icone {
    display: flex;
    gap: 10px;
}

.droit {
    background: #0b3412;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: green;
    padding: 10px;
}


@media (max-width: 768px) {
    #para {
        display: none;
    }

    .footer-content {
      display: flex;
      flex-direction: column;

      text-align: center;
      padding: 10px;
      gap: 20px;
    }

    .droit {
      display: flex;
      flex-direction: column;
      color: green;
    }
}

#donation {
    background: black;
    height: 500px;
}


/*------------------*/
/* Nous rejoindre */
/*-----------------*/
#actionid {
    background: #f4e8cd;
}
.action {
    background: url("image/galerie/footer.jpg") no-repeat center;
    background-size: cover;
    background-attachment: fixed;
    height: 500px;
}

.action h3 {
    color: white;
    font-size: 3rem;
}

#insertblank {
    background: #f4e8cd;
    height: 300px;
    display: flex;
}

@media (max-width: 768px) {
    .action {
        min-height: 80px;
        padding: 5px;
    }
    .action h3 {
        color: white;
        font-size: 1.7rem;
        width: max;
    }
}

#don {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('image/galerie/imgdon25.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#don p {
    color: white;
    font-size: 2rem;
    max-width: 500px;

    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#don img {
    width: 800px;
    height: auto;
}

#donbtn a {
    background: dark-green;
    color: white;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 12px;
    text-decoration: none;
    margin: 20px;

 /*   display: flex;
    justify-content: center;
    align-items: cneter;
    gap: 20px;
    margin: 20ox;
   */
}
#donbtn a:hover {
    background: #5e5b55;
}

#rejoindre {
  background: #3d3c39;
  padding: 60px 20px;
  text-align: center;
  color: gray;
}

#contactForm {
  display: flex;
  flex-direction: column;          /* Champs les uns sous les autres */
                         /* Espace entre les champs */
  max-width: 500px;
  margin: 0 auto;
}

#contactForm input,
#contactForm #email {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
}

#sendEmailBtn {
  background-color:  #0b3412;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
}

#sendEmailBtn:hover {
  background-color: #104318;       /* Vert un peu plus foncé */
}

#don .img101 {
  display: none;
}

#vouloir {
    display: flex;
    text-align: center;
    color: #464441;
    font-size: 4rem;
    align-items: center;
    font-weight: bold;
    padding: 20px;
}

@media (max-width: 768px){
    #don {
      height: auto;
      text-align: center;
      gap: 10px;
      padding: 20px;
    }

    #don a {
        margin-bottom: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    #don .img100 {
      display: none;
    }

    #don .img101 {
        display: flex;
        justify-content: center;
        width: 300px;

    }

    #don p {
        font-size: 1rem;
        padding: 10px;
        margin-bottom: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    #insertblank {
        height: auto;
    }

    #vouloir {
        padding: 10px;
        font-size: 2rem;
    }
}
