/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #083c08;
  line-height: 1.6;
}
html {
    height: 100%;
    overflow-x: hidden;
    background-color: #f9fafb;
  
    } 
    html{
      scroll-behavior: smooth;
    }


/* Personnalisation des icônes de contrôle */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(4, 86, 33);
  border-radius: 50%;
}

/* Responsivité du contenu */

@media (max-width: 768px) {


/* Titres plus petits sur mobile */




  .titre-carousel {
    font-size: 1.5rem !important;
  }

  .texte-carousel {
    font-size: 1rem !important;
  }

  .contenu-carousel {
    padding: 0.6rem !important;
  }

  .btn-projects {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
  }
}



/* .section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
} */

.vide {
    padding: 60px 20px;
    background-color: #f9fafb;
  }
.section-dark {
  background-color: rgba(144, 177, 146, 0.7);
  } 
  .section-light {
  background-color: rgba(233, 238, 233, 0.9);
  color: var(--dark-text);}

  h2 {
    font-size: 34px;
    font-weight: bold !important;
    text-align: center;
    margin-bottom: 30px;
  }
  
  
 h1{
    font-size: 3rem !important;
    margin-bottom: 10px;
    color:#4a6852 !important;
    line-height: 1.2 !important;
    font-weight: bold !important;
    text-align: center;
}
p{
  color: black;
}
/* .navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 80px;
  background-color: rgba(227, 243, 232, 0.92);
  display: flex;
  align-items: center !important ;
  justify-content: space-between !important;
  padding: 0 5% !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  z-index: 999 !important;
} */

.logo {
  height: 90px;
}




.nav-item:hover {
  background-color: #093109;
  color: white;
}

.dropdown {
  position: relative;
  
}
/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
    margin-top: 5px;
    padding: 0;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

/* Dropright */
.dropright:hover .dropright-menu {
    display: block;
}

.dropright-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 0;
    z-index: 11;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  min-width: 200px;
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

.dropdown-item {
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  border-left: 3px solid transparent;
  transition: background-color 0.3s, border-left 0.3s;
}

.dropdown-item:hover {
  background-color: rgba(55, 148, 65, 0.2);
  border-left: 3px solid #379441;
  padding-left: 25px;
}

/* barre de recherche  */

.search-bar {
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 1rem;
}

/* Champ texte */
.search-bar input[type="text"] {
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  width: 60%;
  max-width: 400px;
  transition: all 0.3s ease;
}

/* Bouton */
.search-bar button {
  padding: 10px 15px;
  font-size: 1rem;
  border: none;
  background-color: #2c5f2d;
  color: #fff;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-bar button:hover {
  background-color: #1e4020;
}
.search-overlay {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    max-height: 70vh;
    overflow-y: auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 10px;
    z-index: 9999;
    padding: 15px;
}

.search-box .close-btn {
    float: right;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.btn–contact {
    background-color: rgb(157, 31, 31);
    color: white;
    cursor: pointer;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 5px 10px rgb(236, 178, 178);
    position: relative;
    overflow: hidden;
    padding: 15px 35px;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 6px;
}



/* .pagination{
  width: 5px ;
  height: 5px;
}
 */




.social-links a {
  color: #9ce19c;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}

.social-links a:hover {
  text-decoration: underline;
}





/* Responsive */

@media screen and (max-width: 768px) {

  /* titre mission*/
  .title_mission {
    font-size: 20px;

  }

  /*la barre de navigation*/
  /* .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 50%;
    height: calc(100vh - 80px);
    background-color: rgba(227, 243, 232, 0.97);
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
    transition: left 0.3s ease;
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }

  .burger {
    display: flex;
  }

  .search-bar {
    display: none;
  } */

  

  .title{
  font-size: 36px;
}
    h1{
    font-size: 2rem !important;
    margin-bottom: 10px;
    
    line-height: 1.2;
  
}
}

@media (min-width: 768px) and (max-width: 1024px ) {
  /* .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 50%;
    height: calc(100vh - 80px);
    background-color: rgba(227, 243, 232, 0.97);
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .burger {
    display: flex;
  }
 
  .search-bar {
    margin-top: 1rem;
    width: 100%;
  }

  .search-bar input {
    width: 70%;
  }

  .search-bar button {
    width: 25%;
  } */
    /* titre mission*/
  .title_mission {
    font-size: 20px;

  }
}

@media (max-width: 1024px) {
  .burger {
    display: block;
  }

  .nav-menu {
     
    position: absolute;
   top: 10%;
    left: 0%;
   
    flex-direction: column;
    background-color: rgba(215, 219,216, 0.8);
    padding: 1rem;
    display: none; /* caché par défaut */
    text-align: justify;
    z-index: 999;
 
  
  }

  .nav-menu.show {
    display: flex;
  }
  

.search-bar input[type="text"] {

  font-size: 1rem;
  
  width: 40%;
  max-width: 200px;
 
}

}

.modal-sheet .modal-dialog {
  width: 380px;
  transition: bottom .75s ease-in-out;
  align-items: center;
}
.modal-sheet .modal-footer {
  padding-bottom: 2rem;
}

/*caroussel */

/* Ajuste la hauteur et la position du contenu */
.carousel .carousel-item {
    height: 60vh;
}

/* Pour que les textes soient lisibles sur les images */
.carousel .carousel-item .text-center {
    max-width: 800px;
    margin: auto;
}

/* Optionnel : transition plus douce */
.carousel .carousel-item {
    transition: transform 2s ease-in-out;
}

/* TABLETTES : entre 768px et 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .carousel-caption-box h1 {
    font-size: 2rem;
  }

  .carousel-caption-box p {
    font-size: 1.1rem;
  }

  .carousel-caption-box {
    width: 90%;
    padding: 1.5rem;
  }
}

/* MOBILES : en dessous de 768px */
@media (max-width: 768px) {
  .carousel-slide {
    height: 60vh;
  }

  .carousel-caption-box h1 {
    font-size: 1.5rem;
  }

  .carousel-caption-box p {
    font-size: 1rem;
  }

  .carousel-caption-box {
    width: 100%;
    padding: 1rem;
  }
  
}


@media (max-width: 1024px) {
  #burger {
    display: flex;
  }

  #mobile-menu {
    display: none;
  }

  #mobile-menu.active {
    display: flex;
  }


}
