/*
 * header.css — v1.1
 * SENIRIS — Styles de la navigation et du menu mobile
 *
 * Dépend des variables CSS définies dans global.css.
 *
 * Modifications v1.1 :
 *   - Ajout de .nav-links a.active
 */

/* ── NAV ───────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 70px;
  padding: 0 60px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 30, 53, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  animation: fadeIn .5s ease both;
  transition: box-shadow .3s;
}

nav.scrolled {
  box-shadow: 0 4px 40px rgba(0, 0, 0, .4);
}

/* ── BRAND ─────────────────────────────────────────────────────────── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}

.nav-brand-icon {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .05em;
  color: white;
}

.nav-brand-text span {
  color: var(--teal);
}

/* ── LIENS ─────────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:not(.nav-cta):hover {
  color: white;
}

.nav-links a.active {
  color: rgba(255, 255, 255, .85);
}

.nav-cta {
  background: var(--teal) !important;
  color: white !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 500 !important;
  transition: background .2s, transform .2s !important;
}

.nav-cta:hover {
  background: var(--teal2) !important;
  transform: translateY(-1px) !important;
}

/* ── HAMBURGER ─────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255, 255, 255, .55);
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MENU MOBILE ───────────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(15, 30, 53, .98);
  backdrop-filter: blur(16px);
  padding: 28px 24px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: color .2s;
}

.mobile-menu a:last-child {
  color: var(--teal);
  border: none;
  margin-top: 8px;
}

.mobile-menu a:hover {
  color: white;
}

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (min-width: 961px) {
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
}

@media (max-width: 820px) {
  nav {
    padding: 0 24px;
  }
  .nav-brand-icon {
    height: 30px;
  }
  .nav-brand-text {
    font-size: 17px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
