/* Styles pour le menu mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Styles pour le menu mobile actif */
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Styles pour le menu de navigation en mode mobile */
@media (max-width: 768px) {
  /* Cacher le menu de navigation par défaut sur mobile */
  .nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #0a1929;
    padding: 0;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  }

  /* Afficher le bouton du menu sur mobile */
  .mobile-menu-btn {
    display: flex;
  }

  /* Style de base pour la liste du menu */
  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  /* Style des éléments de la liste */
  .nav li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Style des liens */
  .nav a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s ease;
  }

  /* Effet de survol */
  .nav a:hover,
  .nav a:focus {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* État actif du menu */
  .nav.active {
    display: block;
    max-height: 500px; /* Hauteur suffisante pour le menu déroulant */
    padding: 10px 0;
  }

  /* Empêcher le défilement du corps lorsque le menu est ouvert */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* Ajustement pour le conteneur du header */
  .header-content {
    position: relative;
    z-index: 1001;
  }

  /* S'assurer que le menu est au-dessus du contenu */
  .header {
    position: relative;
    z-index: 1000;
  }
}
