/* Navbar mobile flottante avec fond noir */
.mobile-bottom-navbar {
  position: fixed !important;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999 !important;
  width: auto;
  max-width: 90%;
  min-width: 280px;
  display: flex !important;
  visibility: visible !important;
  opacity: 1;
}

.mobile-navbar-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  background-color: #000000;
  border-radius: 30px;
  padding: 0 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  min-width: 280px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.1s ease;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  font-family: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.mobile-nav-item:active {
  transform: translateY(1px) scale(0.95);
  background-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-item.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

/* Styles pour les icônes Bootstrap Icons */
.mobile-nav-item i {
  font-size: 18px;
  margin-bottom: 0;
  transition: all 0.1s ease;
  color: inherit;
}

.mobile-nav-item:hover i {
  transform: scale(1.1);
}

/* Mode header uniquement - seulement quand le bouton est actif */
.mobile-nav-item.active + * #header,
body:has(.mobile-nav-item#header-toggle.active) #header {
  display: block !important;
  visibility: visible !important;
}

/* Styles pour les tablettes */
@media (min-width: 768px) and (max-width: 991.98px) {
  .mobile-bottom-navbar {
    bottom: 30px;
    min-width: 320px;
  }

  .mobile-navbar-container {
    height: 70px;
    padding: 0 25px;
    border-radius: 35px;
    min-width: 320px;
  }

  .mobile-nav-item {
    padding: 15px;
    min-width: 50px;
    min-height: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }

  .mobile-nav-item i {
    font-size: 20px;
  }
}

/* Masquer sur desktop */
@media (min-width: 992px) {
  .mobile-bottom-navbar {
    display: none !important;
  }
}

/* Animation d'apparition plus subtile */
.mobile-bottom-navbar {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Effet de pulsation pour l'état actif */
.mobile-nav-item.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Suppression des styles par défaut des boutons */
.mobile-nav-item::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Amélioration de l'accessibilité */
.mobile-nav-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Animation de rebond pour les interactions */
.mobile-nav-item:hover {
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(-2px);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-1px);
  }
}

/* État désactivé si nécessaire */
.mobile-nav-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.mobile-nav-item:disabled:hover {
  background-color: transparent;
  transform: none;
}

