/* Styles pour le header */
header {
  background-color: #1B4332;
  color: white;
  padding: 20px 0;
  position: relative;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 2rem;
  font-weight: bold;
}

/* Styles pour la navigation (desktop) */
header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

header nav ul li a:hover {
  text-decoration: underline;
  color: #D4AF37;
}

/* Styles pour le menu burger (mobile) */
.burger {
  display: none; /* Masqué par défaut */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation du burger en X quand le menu est actif */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Styles responsives */
@media (max-width: 768px) {
  .burger {
    display: flex; /* Affiché en mobile */
  }

  /* Overlay avec flou d'arrière-plan */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 67, 50, 0.3);
    backdrop-filter: blur(5px);
    z-index: 999;
    transition: all 0.3s ease-in-out;
  }

  .menu-overlay.active {
    display: block;
  }

  #nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background-color: #1B4332;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  }

  #nav-menu.active {
    display: flex;
  }

  #nav-menu ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  #nav-menu ul li a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
  }

  #nav-menu ul li a:hover {
    color: #D4AF37;
    text-decoration: none;
  }
}
