/* ═══════════════════════════════════════════════════════════════
   NAV.CSS — Styles pour le menu hamburger des pages Identité
   Chemin : /identite/assets/nav.css
   ═══════════════════════════════════════════════════════════════ */

/* ========== BOUTON HAMBURGER ========== */
.menu-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 99999;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #0a0e27;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation hamburger -> X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ========== OVERLAY ========== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== MENU LATÉRAL ========== */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 2px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  overflow-y: auto;
  border-right: 2px solid rgba(251, 191, 36, 0.3);
  padding-top: 20px;
}

.side-menu.active {
  transform: translateX(0);
}

/* Titre du menu */
.side-menu .menu-title {
  font-size: 1.3em;
  font-weight: 700;
  padding: 15px 20px 20px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  margin-bottom: 10px;
}

/* Liens du menu */
.side-menu a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  margin: 4px 10px;
  border-radius: 0 10px 10px 0;
  background: rgba(30, 41, 59, 0.3);
}

.side-menu a:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
  border-left-color: #fbbf24;
  padding-left: 28px;
  color: #fbbf24;
}

.side-menu a.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
  border-left-color: #fbbf24;
  color: #fbbf24;
}

.side-menu a.small {
  font-size: 0.9rem;
  padding: 10px 20px;
  color: #94a3b8;
}

.side-menu a.small:hover {
  color: #fbbf24;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .menu-toggle {
    width: 45px;
    height: 45px;
    top: 12px;
    left: 12px;
  }
  
  .menu-toggle span {
    width: 20px;
    height: 2.5px;
  }
  
  .side-menu {
    width: 280px;
  }
  
  .side-menu a {
    font-size: 0.95rem;
    padding: 12px 18px;
  }
}

@media (max-width: 400px) {
  .side-menu {
    width: 100%;
  }
}
