/* ================================
   NAVBAR PRINCIPALE
================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #0072ff;
  position: relative;
  z-index: 10000;
}

/* ================================
   LOGO
================================ */
.logo-container {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.logo {
  width: 80px;
  height: auto;
}

/* ================================
   MENU DESKTOP
================================ */
.desktop-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu li a {
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  transition: color 0.3s ease;
}

.desktop-menu li a:hover {
  color: #ffd700;
}

/* ================================
   MENU MOBILE
================================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 10001;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 4px;
  margin: 5px 0;
  background-color: #ffd700;
  transition: 0.4s;
}

.nav-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================================
   MODALE MOBILE
================================ */
.menu-modal {
  display: none;
  position: fixed;
  top: 60px;
  left: 60px;
  width: 25%;
  /*border-radius: 0.5rem;*/
  background: rgba(255, 255, 255, 0.95);
  z-index: 10001;
  animation: fadeSlide 0.4s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-bottom: 1px solid #ccc;
}

.menu-modal.show {
  display: block;
}

.menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  text-decoration: none;
  color: #0072ff;
  font-weight: bold;
  font-size: 1rem;
} 

/* ================================
   OVERLAY
================================ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: none;
}

.menu-overlay.show {
  display: block;
}

/* ================================
   ANIMATION
================================ */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-menu a {
    font-size: 1rem;
  }

  .menu-content {
    padding: 1rem;
  }
}
