.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 8%;
  background: #efe7db18;
  backdrop-filter: blur(10px); 


  font-family: 'Poppins', sans-serif;
  position: fixed;
  top: -80px;      
  left: 0;
  right: 0;
  z-index: 100;
  transition: top 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
  animation: slideDown 0.5s forwards;
}

@keyframes slideDown {
  0% {
    top: -80px;
  }
  100% {
    top: 0;     
  }
}



#villas, #studios, #calendrier, #contact {
  padding-top: 140px;  
  margin-top: -140px;  
}
.navbar.scrolled {
  top: 0; 
    color: #efe7db !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #3f3f3a;
  padding: 0.8rem 8%; 
}


.navbar .logo,
.navbar .nav-links li a {
  transition: color 0.3s ease, transform 0.3s ease;
}


.navbar.scrolled .logo,
.navbar.scrolled .nav-links li a {
  color: #efe7db !important;
}
.navbar.scrolled .nav-links li a:hover {
  color: #ddd6c386 !important;
  transform: scale(1.1); 
}


.navbar.scrolled  .nav-toggle span {
  display: block;
  height: 3px;
  background: #efe7db;
  border-radius: 2px;
}

.navbar.scrolled  .nav-toggle i {
  font-size: 2rem;
  color: #efe7db;
  transition: color 0.3s ease;
}



.navbar.scrolled .btn {
  background: #efe7db;
  color: #3f3f3a;

  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}






.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #3f3f3a;
  text-decoration: none;
  letter-spacing: 1px;
  user-select: none;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2REM;
}

.nav-links li a {
  color: #3f3f3a;
  text-decoration: none;
  font-weight: 600;
  font-size:1rem;
  transition: color 0.3s ease;
}

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


.btn {
  background: #fbf8f6;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #3f3f3a;
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: #d8d0c2;
  color: #2c2c28;
}


.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px; 
  z-index: 9999;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: #3f3f3a;
  border-radius: 2px;
}

.nav-toggle i {
  font-size: 2rem;
  color: #3f3f3a;
  transition: color 0.3s ease;
}

.nav-toggle i.fa-times {
  display: none;
}

.nav-links.open ~ .nav-toggle i.fa-bars {
  display: none;
}

.nav-links.open ~ .nav-toggle i.fa-times {
  display: block;
}




@media (max-width: 1200px) {


  .navbar {
    padding: 1rem 5%;
  }

  .logo {
    font-size: 1.4rem;
  }
  .nav-links li a {
    font-size: 0.95rem;
  }
  .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
  }

 
}



@media (max-width: 1060px) {


  .navbar {
    padding: 0.8rem 4%;
  }


  .logo {
    font-size: 1.3rem;
  }
  .nav-links li a {
    font-size: 0.9rem;
  }


  .btn {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
  }

}



@media (max-width: 800px) {
  .nav-links {
    position: fixed;
    top: 20px;
    right: 0;
    height: 100vh;
    width: 100vw;
    background: #efe7db;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-radius: 0;
    z-index: 9999;
      gap: 10PX;
    overflow-y: auto;
  }


  .nav-links.open,
  .navbar.scrolled .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    margin-bottom: 1.5rem;
    list-style: none;
    
  }

  .nav-links li a {
    color: #242322;
    font-size: 1.4rem;
      padding: 1rem 0; 
    font-weight: 600;

    text-decoration: none;
    transition: color 0.3s ease;
  }
  .nav-links li a:hover {
    color: #1f1e1cbd;
  }

  .navbar.scrolled .nav-links {
    background: rgba(63, 63, 58, 0.95);
  }

  .navbar.scrolled .nav-links li a {
    color: #e7dbd0;
  }
  .navbar.scrolled .nav-links li a:hover {
    color: #e7dbd0b6;
  }

  .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}
