.navbar {
  position: fixed;
  top: -80px;
  left: 0;
  right: 0;
  width: 100%;
  background: #efe7db00 !important;
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;


  transition: top 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  animation: slideDown 0.5s forwards;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;                     
  max-width:80%;              
  margin: 0 auto;                  
  padding: 1.2rem 2rem; 
  box-sizing: border-box;
}

.navbar.scrolled {
  top: 0;
  background: #17181be7 !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
  padding: 1.2rem 1.4rem; 
}


@keyframes slideDown {
  0% {
    top: -80px;
  }
  100% {
    top: 0;     
  }
}




.nav-links li a.active {
  color: #ffffff;         
  font-weight: 700;        
  position: relative;
  border-radius: 6px;      
  padding: 0.4rem 0.8rem;  
  background: rgba(255, 255, 255, 0.1); 
  overflow: hidden; 
}

/* Effet glossy animé en continu */
.nav-links li a.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  border-radius: 10PX;
  background: linear-gradient(
    90deg,
    transparent,
    #4facfe6b,
    transparent
  );
  animation: glossyMove 4s linear infinite; 
}

/* Keyframes effet aller-retour */
@keyframes glossyMove {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}



.navbar .logo,
.navbar .nav-links li a {
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
}


.navbar.scrolled .logo,
.navbar.scrolled .nav-links li a {
  color: #ffffff ;
}
.navbar.scrolled .nav-links li a:hover {
  color: #ffffff86 ;

}


.navbar.scrolled  .nav-toggle span {
  display: block;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

.navbar.scrolled  .nav-toggle i {
  font-size: 2rem;
  color: #ffffff;
  transition: color 0.3s ease;
}



.navbar.scrolled .btn {
  background: #efe7db;
  color: #ffffff;
  padding: 0.8rem 2rem; /* on réduit juste le padding vertical */
  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;
  margin-top: 0;        
  align-self: center;    
}







.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 {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  overflow: hidden; 
}


.nav-links li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    #4facfe52, 
    transparent
  );
  transition: left 0.6s ease;
}

/* Hover */
.nav-links li a:hover {
  color: #f0f0f0f8 !important;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.nav-links li a:hover::before {
  left: 100%; 
}



.header-buttons {
    display: flex;
    gap: 1rem; 
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* espace entre icône et texte */
    background: #4facfe;
    color: white;
    padding: 0.6rem 1.2rem;
         border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(21, 86, 139, 0.1);
    position: relative;
    overflow: hidden;   
}

.btn-primary:hover {
    background: #4facfea2;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 30px rgba(79, 172, 254, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}







.btn-secondary {
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
          padding: 0.6rem 1.2rem;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 700;
    font-size: 0.9rem;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            position: relative;
            overflow: hidden; 
                        background: var(--glass-bg);
            color: white;
            border: 2px solid var(--glass-border);
            backdrop-filter: blur(20px);
}

.btn-secondary:hover {
      background: rgba(255, 255, 255, 0.15);
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 25px 70px rgba(255, 255, 255, 0.2);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}











.nav-toggle {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    color: white !important;
    cursor: pointer;
    z-index: 10000;
}


.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white; 
    border-radius: 2px;
    transition: all 0.3s ease;
}


.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: white; 
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: white; 
}



@media (max-width: 2000px) {
  .navbar-container {
    max-width: 82% !important; 
    padding: 0.8rem 2rem; 
  }


}




@media (max-width: 1600px) {
  .navbar-container {
    max-width: 96% !important; 
    padding: 0.8rem 2rem; 
  }

  .logo {
    font-size: 1.4rem; 
  }

  .nav-links li a {
    font-size: 1rem; 
    padding: 0.35rem 0.7rem; 
  }

  .header-buttons {
    gap: 0.8rem; 
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.95rem; 
    padding: 0.55rem 1.2rem;
  }
   .hero-banner {
margin-top: 2%;
}

}



@media (max-width: 1060px) {
  .navbar-container {
    max-width: 90%;
    padding: 0.8rem 5%;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-links li a {
    font-size: 0.95rem;
  }
}

@media (max-width: 800px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
   background: rgba(0,0,0,0.95); 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 9999;
    gap: 1rem;
    overflow-y: auto;
  }

  .nav-links li {
    margin-bottom: 1.2rem;
    list-style: none;
  }

  .nav-links li a {
    color: #242322;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .nav-links li a:hover {
    color: #1f1e1cbd;
  }

  .nav-links.open {
    transform: translateX(0);
  }


  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
color: white !important;
    cursor: pointer;
    z-index: 10000;
  }

  .nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #3f3f3a;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .header-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn-primary,
  .btn-secondary {
display: none;
  }
}
