/* Import de la police Dancing Script depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&display=swap');

/* ============================================================
   RESET NAVIGATEUR
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* NAVBAR MODERNE */
.navbar {
  background: linear-gradient(90deg, #1a4a8a 0%, #0d2b5e 20%, #0a1628 40%, #020818 50%, #0a1628 60%, #0d2b5e 80%, #1a4a8a 100%);
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9000 !important; /* Réduit pour laisser passer les sidebars/modales */
  font-family: 'Dancing Script', cursive;
  height: 60px;
  overflow: visible;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  height: 60px;
}

.navbar li {
  display: flex;
  align-items: center;
  margin: 0;
  height: 100%;
}

/* Logo à gauche */
.navbar-logo {
  margin-right: auto;
  margin-left: 10px;
}

.navbar-logo a {
  padding: 5px 10px !important;
}

.logo-img {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
  filter: brightness(2.1) contrast(1.1) sepia(1) saturate(3) hue-rotate(340deg);
}

.navbar-logo a:hover {
  background-color: transparent !important;
  transform: scale(1.05) !important;
}

.navbar-logo a:hover .logo-img {
  filter: brightness(4) contrast(1.1) sepia(1) saturate(3) hue-rotate(340deg) drop-shadow(0 0 10px rgba(255, 140, 0, 0.5));
}

/* Liens de navigation */
.navbar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.15em;
  position: relative;
  line-height: 1;
}

.navbar a > *:first-child {
  display: inline-flex;
  align-items: center;
  font-size: 1.2em;
  line-height: 1;
}

.navbar a:hover {
  background-color: transparent;
  color: white;
  transform: scale(1.05);
  filter: brightness(1.1);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 
               0 0 20px rgba(255, 255, 255, 0.6), 
               0 0 30px rgba(255, 255, 255, 0.4);
}

.navbar a.active {
  color: #ffd700;
}

/* Liens avec icône uniquement (pas de texte) */
.navbar a.icon-only {
  padding: 15px 10px;
  font-size: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Avatar dans la navbar */
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.profile-nav-item {
  margin-right: 20px;
}

.profile-nav-item a {
  padding: 15px 10px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-nav-item a:hover .nav-avatar {
  border-color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.profile-nav-item a.active .nav-avatar {
  border-color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Spacer pour pousser les éléments à droite */
.navbar-spacer {
  margin-left: auto;
  pointer-events: none;
}

/* Notification icon dans la navbar */
.notification-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.notification-icon {
  cursor: pointer;
  padding: 15px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.notification-icon svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.notification-text {
  display: inline-block;
}

.notification-icon:hover {
  background-color: transparent;
  transform: scale(1.05);
  filter: brightness(1.1);
}

.notification-icon:hover svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Liens avec icône uniquement (pas de texte) */
.navbar a.icon-only {
  padding: 15px 10px;
  font-size: 1.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge de notification */
.notification-badge {
  position: absolute;
  top: 6px;
  right: 2px;
  background: #ff4444;
  color: white;
  border-radius: 20px;
  padding: 2px 7px;
  min-width: 22px;
  height: 16px;
  font-size: 10px !important;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0d2b5e !important;
  animation: pulse 2s infinite;
  font-family: Arial, sans-serif;
}

.message-badge {
  position: absolute;
  top: 8px;
  right: 2px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  border-radius: 20px;
  padding: 2px 7px;
  min-width: 22px;
  height: 16px;
  font-size: 10px !important;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.8),
              0 0 20px rgba(255, 68, 68, 0.6),
              0 0 30px rgba(255, 68, 68, 0.4);
  animation: badgePulse 1.5s ease-in-out infinite, badgeBlink 2s linear infinite;
  z-index: 10;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive - cacher les labels sur petit écran */
@media (max-width: 768px) {
  .nav-label,
  .notification-text {
    display: none;
  }
  
  .navbar a {
    padding: 12px 15px;
    font-size: 1.3em;
  }
  
  .navbar ul {
    gap: 2px;
  }
  
  .logo-img {
    height: 42px;
  }
}
/* MASQUER LE TEXTE "AUCUNE NOTIFICATION" */
.notification-empty {
  display: none !important;
}
