body {
  font-weight: 500;
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
}


body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Ajouté pour éviter les dépassements horizontaux */
}

.main {
  width: 100%;
  height: fit-content;
  box-sizing: border-box;
}

.header {

  box-sizing: border-box;
  height: fit-content;
 
  width: 100%;
  display: flex;
  /* border: 2px solid black; */
  padding: 2px;
  position: relative;
}

.logo {
  height: auto;
  max-height: 200px;
  width: 25vw;
}


.header-menu {

  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 13px;

}

.header-link {
    position: relative; /* Nécessaire pour positionner le pseudo-élément */
    display: inline-block; /* Assure que le pseudo-élément est bien positionné */
  }
  
  .header-link a {
    text-transform: uppercase;
    text-decoration: none; /* Supprimer la décoration de texte par défaut */
    color: black;
    transition: color 0.3s ease; /* Ajout d'une transition pour la couleur */
  }
  
  .header-link a::after {
    content: ""; /* Nécessaire pour afficher le pseudo-élément */
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px; /* Épaisseur de la ligne de soulignement */
    background-color: black; /* Couleur de la ligne de soulignement */
    transform: scaleX(0); /* Initialement, la ligne est invisible */
    transform-origin: bottom left; /* Point d'origine de la transformation */
    transition: transform 0.5s ease; /* Transition de la ligne de soulignement */
  }
  
  .header-link a:hover::after {
    transform: scaleX(1); /* La ligne de soulignement devient visible */
  }
  
  .header-link a:hover {
    color: black; /* Optionnel, pour assurer la couleur du texte au survol */
  }
.current_page_item a {
   font-weight: bold;
  }

  
/*----------------------icone burger---------------------------------------------------*/

.burger-icon {
    position: absolute;
    bottom: 10px;
    /* transform: translateY(-50%); */
    right: 5px;
    height: fit-content;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: none;
    padding: 0;
   
    z-index: 999;
  }
  
  .line {
    fill: none;
    stroke: black;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
      stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
  .line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
  }
  .line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }
  .opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }
  .opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
  }
  .opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }
  
  /*----------------------fin icone burger---------------------------------------------------*/
  
  /*----------------------menu mobile---------------------------------------------------*/
  
  .navigation-mobile {
    height: fit-content;
    width: 100%;
    position: absolute;
    top: 100%;
    right: 0;
    box-sizing: border-box;
    padding: 10px;
    font-size: 15px;
    /* visibility: collapse; */
    z-index: 999;
    transition: visibility 0.4s; /* Ajout de la transition pour la propriété visibility */
    border-left: 1px solid rgb(232, 231, 231);
    border-bottom: 1px solid rgb(232, 231, 231);
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
  }
  
  .mobile-link {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .navigation-mobile.active {
    visibility: visible;
    animation: latteral 0.4s forwards;
  }
  
  .navigation-mobile.inactive {
    display: none;
  }
  
  .mobile_menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  @keyframes latteral {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
  
  @keyframes latteral-off {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(100%);
      display: none;
    }
  }
  
  /* Ajout de styles pour l'animation de fermeture */
  .navigation-mobile.closing {
    animation: latteral-off 0.4s forwards;
  }
  
  .navigation-mobile li {
    padding: 0.5rem;
    width: 100%;
  }
  
  .navigation-mobile a {
    color: black;
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    
  }
  
  /*---------------------- fin menu mobile---------------------------------------------------*/
  
  
/*    responsive */

@media (max-width: 900px) {

  body {
    font-weight: 500;
    line-height: 1.5;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
  }

    .header {
        height: fit-content;
    }
    .header-menu {
      display: none;
    }

    .logo {
        height: auto;
        width: 100%;
      }

      .logo-link {
        display: block; /* Assure que l'élément occupe uniquement l'espace nécessaire pour son contenu */
        width: 90%; /* Ajuste la largeur pour s'adapter au contenu */
        height: auto; /* S'ajuste automatiquement à la hauteur de l'image */
  
        padding: 0; /* Supprime tout remplissage */
        margin: 0; /* Supprime toute marge */
      }
      
  
    .burger-icon,
    .navigation-mobile {
      display: flex;
    }
  
    
   
  }
