.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

/* Logo */
.logo img {
  height: 40px;
  width: auto;
}

/* Liens de navigation */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: color 0.3s ease-in-out;
  font-weight: 500;
}

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

/* Bouton Contact */
.btn-contact {
  padding: 8px 18px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s ease-in-out;
  font-weight: 500;
  white-space: nowrap;
}

.btn-contact:hover {
  background: #0056b3;
}

/* Bouton contact desktop */
.desktop-contact {
  display: block;
}

/* Bouton contact mobile */
.mobile-contact {
  display: none;
}

/* -------------------------
   BURGER MENU (MOBILE)
-------------------------- */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* -------------------------
   RESPONSIVE DESIGN
-------------------------- */
@media screen and (max-width: 950px) {
  .navbar {
    padding: 15px 20px;
  }
  
   /* Ajustement de la taille du logo en mobile */
  .logo img {
    height: 35px;
  }

  /* Cacher les liens par défaut */
  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    height: calc(100vh - 70px);
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 0;
    overflow-x: hidden;
    transition: width 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding-top: 30px;
  }

  /* Activer le menu */
  .nav-links.nav-active {
    width: 70%;
  }

  /* Espacement entre les liens */
  .nav-links li {
    opacity: 0;
    margin: 15px 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-links li a {
    display: block;
    padding: 10px;
    font-size: 18px;
  }

  /* Menu burger visible sur mobile */
  .burger {
    display: flex;
  }

  /* Animation du menu burger */
  .burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .burger.toggle .line2 {
    opacity: 0;
  }

  .burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Bouton contact en mobile */
  .desktop-contact {
    display: none;
  }
  
  .mobile-contact {
    display: block;
    margin: 0 15px;
  }
  
  /* Réorganisation de la navbar en mode mobile */
  .navbar {
    display: flex;
    justify-content: space-between;
  }
  
  .logo {
    order: 1;
  }
  
  .mobile-contact {
    order: 2;
    margin-left: auto;
  }
  
  .burger {
    order: 3;
  }
}

/* Animation fade-in des liens */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}