/***************************** Header ******************************/

/* Zone logo et navigation */

.logo-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  @media (max-width: 767.98px) {
    flex-direction: column;
  }

  /* Zone logo Booki */

  .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;

    #logo-booki {
      width: 61px;

      @media (max-width: 767.98px) {
        width: 100px;
      }
    }
  }
  
  /* Zone navigation */
  
  .navbar {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 40px;
    
    @media (max-width: 767.98px) {
      gap: 0;
    }
    
    .navbar-link {
      display: flex;
      
      @media (max-width: 767.98px) {
        text-align: center;
        flex: 1;
      }
      
      a {
        position: relative;
        transition: color 0.3s ease;
        padding: 30px 0px 20px 0px;
        display: block;
        /* pour que l'élément a prenne toute la largeur (disponible) de son parent */
        width: 100%;
        font-weight: 500;
        
        &::before {
          content: "";
          position: absolute;
          width: 100%;
          /* pour que l'élément ::before soit sur toute la largeur du lien */
          height: 3px;
          background: transparent;
          top: 0;
          left: 0;
          transition: background 0.3s ease;
          pointer-events: none;
          /* pour que l'élément ::before ne soit pas interactif */
          
          @media (max-width: 767.98px) {
            display: none;
          }
        }
        
        &:hover {
          color: var(--main-color);
          font-weight: 450;
        }
        
        &:hover::before {
          background: var(--main-color);
        }
        
        @media (max-width: 767.98px) {
          &::after {
            content: "";
            position: absolute;
            bottom: 0;
            /* ligne en dessous */
            left: 0;
            height: 3px;
            width: 100%;
            background-color: var(--main-bg-color);
            transition: background-color 0.3s ease;
            pointer-events: none;
            /* empêche que la ligne soit "hoverable" */
          }
          
          &:hover::after {
            background-color: var(--main-color);
          }
        }
      }
    }
  }
}


/* === CSS classique, pour le validator W3, car il ne comprends pas le nesting === checked */

/* .logo-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 767.98px) {
  .logo-nav-container {
    flex-direction: column;
  }
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo-booki {
  width: 61px;
}

@media (max-width: 767.98px) {
  #logo-booki {
    width: 100px;
  }
}

.navbar {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  gap: 40px;
}

@media (max-width: 767.98px) {
  .navbar {
    gap: 0;
  }
}

.navbar-link {
  display: flex;
}

@media (max-width: 767.98px) {
  .navbar-link {
    text-align: center;
    flex: 1;
  }
}

.navbar-link a {
  position: relative;
  transition: color 0.3s ease;
  padding: 30px 0px 20px 0px;
  display: block;
  width: 100%;
  font-weight: 500;
}

.navbar-link a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background: transparent;
  top: 0;
  left: 0;
  transition: background 0.3s ease;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .navbar-link a::before {
    display: none;
  }
}

.navbar-link a:hover {
  color: var(--main-color);
  font-weight: 450;
}

.navbar-link a:hover::before {
  background: var(--main-color);
}

@media (max-width: 767.98px) {
  .navbar-link a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--main-bg-color);
    transition: background-color 0.3s ease;
    pointer-events: none;
  }

  .navbar-link a:hover::after {
    background-color: var(--main-color);
  }
} */