/* ==========================================================================
   /assets/css/header.css
   LA BARRE DE NAVIGATION SUPÉRIEURE
========================================================================== */

.ac-header {
  background: rgba(22, 22, 30, 0.85); /* Utilise la couleur bg2 avec de la transparence */
  backdrop-filter: blur(10px); /* L'effet "verre dépoli" magique */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ac-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* On force la couleur de fond transparente à s'adapter au thème clair s'il est actif */
[data-theme="light"] .ac-header {
  background: rgba(234, 234, 239, 0.85);
}

.ac-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Permet de passer à la ligne sur mobile */
  gap: 20px;
}

/* Le Logo / Nom du site */
.ac-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--ac-font-h1);
  font-size: 1.4rem;
  color: var(--ac-text);
  transition: transform 0.2s;
}
.ac-brand:hover {
  transform: scale(1.05);
}
.ac-brand__mark {
  color: var(--ac-accent1); /* L'étoile dorée */
  font-size: 1.6rem;
}

/* Les liens de navigation */
.ac-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.ac-nav__link {
  color: var(--ac-text);
  font-family: var(--ac-font-h2);
  font-size: 1.1rem;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}
.ac-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ac-accent2);
  transition: width 0.3s ease;
}
.ac-nav__link:hover::after {
  width: 100%; /* Ligne violette qui s'anime au survol */
}

/* Zone Utilisateur (Boutons de droite) */
.ac-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ac-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Adaptation pour téléphones portables */
@media (max-width: 768px) {
  .ac-header__inner {
    flex-direction: column;
    text-align: center;
  }
  .ac-header__actions {
    width: 100%;
    justify-content: center;
  }
}