.nav__header {
  background: var(--dark-color);
  color: white;
  padding: .5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 95%;
  margin: 0 auto;
}

.nav__container .logo {
  font-size: 2rem; 
  font-weight: bold;
  align-items: center;
}

.nav {
  display: flex;
  flex-grow: 1;
}

.nav__item {
  margin: auto;
}

.nav__container, 
.nav__item--center {
  display: flex;
  gap: 1.6rem;
  font-size: 1.2rem;
}

.nav__item--right {
  display: flex;
  justify-content: flex-end;
  gap: 1.6rem;
  margin: 0px;
}

.hamburger__menu {
  display: none;
  cursor: pointer;
}

.nav__link {
  padding: 0.5rem 1rem 0.5rem 1rem;
  transition: 0.5s;
}

.nav__link:hover{
  background-color: #1a4c72;
  cursor: pointer;
}

.nav__icon {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* ###### NAVBAR MEDIA ###### */

@media (max-width: 1000px) {
  .nav__container .logo {
    font-size: 1.2rem;
    z-index: 2;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%; /* Cache le menu hors écran à gauche */
    bottom: 0;
    width: 70%;
    
    flex-direction: column;
    gap: 2rem;
    padding-top: 6rem;
    background-color: var(--dark-color);
    transition: left 0.3s ease-in-out; /* Animation pour le slide-in */
  }

  .nav.active {
    left: 0; /* Affiche le menu quand il est actif */
  }

  .nav__item--center,
  .nav__item--right {
    flex-direction: column;
    gap: 1.2rem;
  }

  .hamburger__menu {
    display: block;
    z-index: 2;
    cursor: pointer;
  }
  
  .nav__link {
    text-align: left; /* Alignement à gauche pour chaque item */
  }

  .nav__icon {
    justify-content: flex-start; /* Aligne les icônes à gauche */
  }
}