/* ============================================
   BOTTOM NAVIGATION - Mobile only
   ============================================ */

/* Masquer sur desktop */
.bottom-nav {
  display: none;
}

/* Afficher sur mobile */
@media (max-width: 991.98px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e3e6f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1040;
    height: 60px;
    padding: 0;
  }
  
  .bottom-nav-user,
  .bottom-nav-coach {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
  }
  
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 4px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
  }
  
  .bottom-nav-item span {
    font-size: 0.7rem;
    white-space: nowrap;
  }
  
  .bottom-nav-item:hover,
  .bottom-nav-item:focus {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
  }
  
  .bottom-nav-item.active {
    color: #0d6efd;
    font-weight: 600;
  }
  
  .bottom-nav-item.active i {
    transform: scale(1.1);
  }
  
  /* Ajuster le main content pour le bottom nav */
  .app-wrapper {
    padding-bottom: 70px !important; /* Espace pour bottom nav */
  }
  
  /* Masquer sidebar mobile */
  .pe-app-sidebar {
    transform: translateX(-100%) !important;
  }
  
  .pe-app-sidebar.show {
    transform: translateX(-100%) !important; /* Forcer masquage même avec .show */
  }
  
  .sidebar-backdrop {
    display: none !important;
  }
}

/* ============================================
   OVERLAY MENU "Plus"
   ============================================ */

.bottom-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 1060;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: none;
}

@media (max-width: 991.98px) {
  .bottom-nav-overlay {
    display: block;
  }
  
  .bottom-nav-overlay.show {
    transform: translateY(0);
  }
}

.bottom-nav-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e3e6f0;
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.bottom-nav-overlay-header h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
}

.btn-close-overlay {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  padding: 0.25rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-close-overlay:hover {
  color: #212529;
}

.bottom-nav-overlay-content {
  padding: 0.5rem 0;
}

.overlay-section {
  padding: 0.5rem 0;
}

.overlay-section-title {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.overlay-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  color: #212529;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.overlay-item:hover {
  background: #f8f9fa;
}

.overlay-item i {
  font-size: 1.25rem;
  margin-right: 1rem;
  width: 24px;
  text-align: center;
}

.overlay-item.text-danger {
  color: #dc3545;
}

.overlay-divider {
  height: 1px;
  background: #e3e6f0;
  margin: 0.5rem 0;
}

/* Animation d'apparition */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
