/* NAVBAR BASE */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 20px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.navbar .logo a {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #3498db;
}

/* BURGER MENU */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.burger div {
  width: 25px;
  height: 3px;
  background: #2c3e50;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 9999;
}

.dropdown-menu li {
  padding: 10px 20px;
  white-space: nowrap;
}

.dropdown-menu li a {
  color: #2c3e50;
  text-decoration: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    max-height: 1000px;
  }

  .dropdown:hover .dropdown-menu {
    display: none; /* désactive hover en mobile */
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    width: 100%;
  }

  .dropdown.open > .dropdown-menu {
    display: block;
  }
}
