/* =============================================================
# Fichier     : header.css
# Chemin      : 3x0c3t.com/css/header.css
# Auteur      : 3x0c3t
# Version     : 1.1
# Date        : 20250619-10:45
# Description : Styles spécifiques au header + menu burger
#               Responsive Mobile First + Desktop + TV
============================================================== */

/* Style général du header */
header {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Logo */
.logo {
  font-weight: bold;
  font-size: 1.2em;
}

/* Menu desktop (visible par défaut) */
nav.desktop-menu {
  display: block;
}

nav.desktop-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav.desktop-menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav.desktop-menu ul li a.active,
nav.desktop-menu ul li a:hover {
  text-decoration: underline;
}

/* Menu burger (caché par défaut, visible en mobile) */
.burger {
  cursor: pointer;
  display: none; /* caché par défaut */
  flex-direction: column;
  gap: 5px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* Mobile menu (affiché via JS) */
.mobile-menu {
  display: none;
  background-color: #222;
  position: fixed;
  top: 60px; /* hauteur du header */
  right: 0;
  width: 200px;
  padding: 10px;
  z-index: 1500;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu ul li {
  margin: 10px 0;
}

.mobile-menu ul li a {
  color: white;
  text-decoration: none;
}

.mobile-menu ul li a:hover {
  text-decoration: underline;
}

/* ====== MEDIA QUERIES ====== */

/* Mobile-first: écran ≤ 768px */
@media (max-width: 768px) {
  /* Cacher menu desktop */
  nav.desktop-menu {
    display: none;
  }

  /* Afficher burger */
  .burger {
    display: flex;
  }
}

/* Desktop: écran > 768px */
@media (min-width: 769px) {
  /* Cacher menu mobile */
  .mobile-menu {
    display: none !important;
  }
}
