/* --- NAVIGATION (Header & Menu) --- */

:root {
  --nav-height: 90px; /* Augmenté de 80 à 90px */
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 2rem;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

.navbar {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* --- LOGO --- */
.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem; /* Plus grand (était 1.6) */
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.logo strong {
  font-weight: 700;
}

.logo .dot {
  color: var(--accent-purple);
  font-size: 3rem; /* Plus grand */
  line-height: 0;
  margin-left: 2px;
  position: relative;
  top: 4px;
}

/* --- LIENS PRINCIPAUX --- */
.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

.nav-links li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 1rem; /* Plus grand (était 0.85) */
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
}

.nav-links > li > a:hover {
  color: var(--text-primary);
}

/* --- ACTIONS (Connexion & Paramètres) --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.btn-login {
  color: var(--text-primary);
  font-size: 0.95rem; /* Plus grand (était 0.8) */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.btn-login:hover {
  color: var(--accent-purple);
}

/* Roue dentée (Paramètres) */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
  border: none;
  cursor: pointer;
}

.btn-icon svg {
  width: 24px; /* Plus grand (était 20px) */
  height: 24px;
}

.btn-icon:hover {
  color: var(--accent-purple);
  transform: rotate(90deg);
}

/* --- MOBILE MENU --- */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: var(--accent-purple);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #050505;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 120px;
  gap: 1.5rem;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--accent-purple);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 850px) {
  .navbar .nav-links,
  .navbar .nav-actions {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  header {
    padding: 0 1.5rem;
    height: 80px;
  }
  .mobile-menu .nav-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
  }
}

.nav-user-avatar {
  width: 42px; /* Plus grand (était 35px) */
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
  display: block;
}

#nav-login-btn.logged-in {
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
}

#nav-login-btn.logged-in:hover .nav-user-avatar {
  transform: scale(1.05);
  transition: transform 0.2s ease;
  box-shadow: 0 0 10px rgba(162, 56, 255, 0.5);
}
