/* ========================================
   STYLES NAVIGATION - Menu & Boutons
   ======================================== */

/* Menu de Navigation Sticky */
.nav-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.menu-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1e90ff, #4da6ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30,144,255,0.5);
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.2);
}

.menu-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(30,144,255,0.7);
  border-color: white;
}

.menu-icon {
  font-size: 1.8rem;
  color: white;
  transition: transform 0.3s ease;
}

.menu-toggle.active .menu-icon {
  transform: rotate(90deg);
}

/* Bouton Dashboard fixe en haut à droite */
.btn-dashboard-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1e90ff, #4da6ff);
  color: white;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30,144,255,0.5);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-dashboard-fixed:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(30,144,255,0.7);
  border-color: white;
}

.nav-menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(13,13,13,0.98), rgba(20,20,30,0.98));
  backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 5px 0 30px rgba(0,0,0,0.5);
  overflow-y: auto;
  padding: 100px 30px 30px;
  border-right: 2px solid rgba(30,144,255,0.3);
  z-index: 999;
}

.nav-menu-container.open {
  transform: translateX(0);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e90ff;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(30,144,255,0.3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(30,144,255,0.1);
  border: 1px solid rgba(30,144,255,0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 12px;
}

.nav-item:hover {
  background: linear-gradient(135deg, #1e90ff, #4da6ff);
  border-color: #1e90ff;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(30,144,255,0.4);
}

.nav-item .icon {
  font-size: 1.5rem;
  min-width: 30px;
  text-align: center;
}

.nav-item.active {
  background: linear-gradient(135deg, #1e90ff, #4da6ff);
  border-color: #1e90ff;
  box-shadow: 0 4px 15px rgba(30,144,255,0.4);
}

/* Bouton Retour en Haut */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #1e90ff, #4da6ff);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30,144,255,0.4);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  border: 2px solid transparent;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(30,144,255,0.6);
  border-color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-dashboard-fixed {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .nav-menu-container {
    width: 100%;
    max-width: 320px;
  }

  .menu-title {
    font-size: 1.3rem;
  }

  .nav-item {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.3rem;
  }

  .menu-toggle {
    width: 55px;
    height: 55px;
  }

  .menu-icon {
    font-size: 1.6rem;
  }
}
