/* ===============================
   HEADER / NAVIGATION
   =============================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff; 
  
  /* background-color: rgb(255, 181, 145, 0.99); */
 padding: 0.5rem 1rem 0.5rem 0rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  position:fixed;
  width:100%;
z-index: 999;   
  top: 0;          /* Colle le menu au haut de l'écran */
  left: 0;
}

.logo a {
  font-size: 1.5rem;
  color: var(--main-color);
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--main-color);
  font-weight: 700;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  background-color:white;
  position: absolute;
  top: 100%;
  left: 0;
  /* background-color: #fff; */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 180px;
  z-index: 10;
  flex-direction: column;
}

.dropdown-content li {
  width: 100%;
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--main-color);
}

.dropdown-content a:hover {
  background-color: #f5f8fb;
  color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* ---------- Menu mobile ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--main-color);
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 100%;
    display: none;
    border-top: 1px solid #eee;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
  }
}
ul {
  list-style-type: none;
}

.brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  text-decoration:none;
  color:inherit;
}
.logo{height:32px;width:auto;border-radius:8px}
.brand-text{font-weight:700;letter-spacing:.2px}