.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;

  background-color: #464444;
  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 20px;

  z-index: 1000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
  overflow: hidden;

  transition: transform 0.4s ease, opacity 0.4s ease;
  
  font-family: 'DM Sans', 'Outfit', sans-serif; /* ← ajoute */
  font-size: 16px;  
}

.navbar.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.navbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  height: 40px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 1100;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.navbar-menu li a {
  color: white;
  text-decoration: none;
  padding: 20px;
  font-size: 14px;
  white-space: nowrap;
}

.navbar-menu li a:hover {
  background-color: rgba(255,255,255,0.2);
}

.mobile-logo {
  display: none;
}

.nav-marg-r {
  padding-right: 20px;
}

li a.active-menu {
  color: #FABD3F;
  font-weight: bold;
}

@media (max-width: 768px) {

  .navbar {
    position: relative;

    width: auto;              /* 🔥 important */
    margin: 10px;             /* marge extérieure */

    height: 70px;

    padding: 0 15px;

  /*  border-radius: 6px; */

    box-sizing: border-box;   /* 🔥 clé */
  }



  /* hamburger */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
  }

  /* MENU MOBILE (FERMÉ) */
.navbar-menu {
  position: fixed;

  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;

  background-color: #464444;

/*  border-radius: 6px; */

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  padding-top: 90px;
  gap: 20px;

  /* 🔥 IMPORTANT : pas de width du tout */
  width: auto;

  box-sizing: border-box;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.3s ease;

  z-index: 999;
}

  /* MENU OUVERT */
  .navbar-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* liens */
  .navbar-menu li a {
    font-size: 1.2em;
    text-align: center;
  }

  /* logo mobile */
  .mobile-logo {
    display: block;
    margin-top: 40px;
  }

  .mobile-logo img {
    height: 140px;
  }

.menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    z-index: 1100;
  }
 
  /* sécurité overflow */
  html, body {
    overflow-x: hidden;
  }
}