:root {
  --primary: #2563eb;
  --primary-hover: #1e40af;
  --text-light: #ffffff;
  --nav-height: 60px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  padding: 0 20px;
  height: var(--nav-height);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light);
  text-decoration: none;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin-left: 20px;
}

.menu li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
}

.menu li a:hover {
  color: #ffd700;
}

/* Icône burger animée */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* État actif : transformation en croix */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mode mobile */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--primary);
    position: absolute;
    top: var(--nav-height);
    right: 0;
    width: 200px;
    padding: 10px;
    border-bottom-left-radius: 8px;
    animation: slideDown 0.3s ease forwards;
  }

  .menu.show {
    display: flex;
  }

  .burger {
    display: flex;
  }
}

/* Animation du menu burger */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
