/* ─── RESET ─── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── NAVBAR ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fffd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 85px;
}

/* LOGO */
.logo img {
  height: 75px;
}

/* ─── MENU DESKTOP ─── */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #0060a0;
  font-size: 13px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #004080;
}

/* ─── SOUS-MENU ─── */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  width: 220px;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s ease;
  z-index: 999;
}

/* Items sous-menu */
.submenu li {
  padding: 10px 20px;
}

.submenu li a {
  color: #0060a0;
  font-size: 13px;
  display: block;
}

/* Hover effet */
.submenu li:hover {
  background: #f5f5f5;
}

/* Affichage au survol (desktop) */
.nav-links li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ─── HAMBURGER ─── */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #000;
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Animation hamburger */
.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(7px, -6px);
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 0;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 998;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 15px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
  }

  .logo img {
    height: 90px;
  }

  /* ─── SOUS-MENU MOBILE ─── */
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-submenu.active .submenu {
    display: block;
  }
}

/* Couleur jaune doré */
:root {
  --gold: #d4af37;
}

/* MENU PRINCIPAL */
.nav-links a:hover {
  color: var(--gold);
}

/* Effet fond + texte sur hover */
.nav-links li:hover > a {
  color: var(--gold);
}

/* ─── SOUS-MENU ─── */
.submenu li a:hover {
  color: var(--gold);
}

/* Fond doré léger au survol */
.submenu li:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* OPTION BONUS (effet luxe 🔥) */
.nav-links li > a {
  position: relative;
}

/* Ligne animée dorée */
.nav-links li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: 0.3s ease;
}

.nav-links li:hover > a::after {
  width: 100%;
}

/* Lien avec icône */
.has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Flèche toujours visible */
.has-submenu > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid #d4af37;
  border-bottom: 2px solid #d4af37;
  transform: rotate(45deg); /* pointe vers le bas */
  margin-left: 5px;
  transition: 0.3s ease;
}

/* Au survol → rotation vers le haut */
.has-submenu:hover > a::after {
  transform: rotate(225deg);
}

/* Mobile (quand ouvert) */
.has-submenu.active > a::after {
  transform: rotate(225deg);
}

.has-submenu > a::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid #d4af37;
  border-bottom: 2px solid #d4af37;
}