:root {
  --secondary-color: #0066cc;
  --text-color: #333;
  --background-color: #fff;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  width: 100%;
  position: sticky;
  top: 0;
  background: transparent;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  z-index: 999;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2rem;
  max-width: 1600px;
}

img.navbar-logo-img {
  width: 60px; /* sécurité pour éviter un logo trop gros sur grands écrans */
  height: auto;
}

.navbar-container .navbar-menu {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  list-style: none;
}

.navbar-container .navbar-menu li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 500;
  padding: 3px 20px;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.7s ease;
  white-space: nowrap;
}

.navbar-container .navbar-menu li a:hover,
.navbar-container .navbar-menu li a.active {
  color: var(--blue);
  border: 2px solid var(--blue);
}

/* Burger button */
button.navbar-toggle {
  display: none;
  background: transparent;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: var(--text-color);
  transition: all 0.3s ease;
}

/* ---------- MOBILE ---------- */
@media (max-width: 992px) {
  .navbar {
    backdrop-filter: none;
  }

  /* Menu mobile caché par défaut */
  .navbar-container .navbar-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.7rem;
    position: fixed;
    top: 0;
    right: -260px;              /* hors écran */
    width: 260px;
    height: 100vh;
    padding: 5rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    transition: right 0.35s ease;
    z-index: 998;
  }

  /* Style normal des liens */
  .navbar-container .navbar-menu a,
  .navbar-container .navbar-menu a:hover {
    color: var(--text-color) !important; /* noir */
    background: transparent !important;
    border: none !important;
  }

  /* Lien actif */
  .navbar-container .navbar-menu a.active {
    color: var(--secondary-color) !important; /* bleu */
    background: transparent !important;
    border: none !important;
  }

  /* Menu ouvert */
  .navbar-container .navbar-menu.active {
    right: 0;
  }

  /* Burger visible */
  button.navbar-toggle {
    display: block;
    position: relative;
    z-index: 999;
  }

  /* Animation burger → X */
  button.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  button.navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  button.navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
  .navbar-container {
    padding: 0 1rem;
  }

  .navbar-logo {
    font-size: 1.7rem;
  }

  .navbar-container .navbar-menu li a {
    font-size: 1.2rem;
    padding: 3px 15px;
  }
}