/* ---------------------------- BARRE DE NAVIGATION ----------------------------- */

.custom-navbar {
    background: rgba(0, 19, 45, 0.9); /* Couleur de fond */
    position: fixed; /* Fixé au scroll */
    top: 10px; /* Décollement du haut */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Largeur = 90% de la fenêtre (sur PC) */
    z-index: 1000; /* Force l'affichage au-dessus du reste */
    padding: 0.8rem 1rem; /* Largeur, Longueur */
}

.navbar-nav .nav-link {
    margin: 0 15px; /* Espace horizontal entre les menus */
}

@media (max-width: 992px) { /* Mobile */

  .custom-navbar {
    border-radius: 0 !important; /* Plus d’arrondi */
    width: 100% !important; /* Pleine largeur */
    top: 0px;                                      
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding-left: 20px !important;                              
    padding-right: 20px !important;
  }

  /* Tout plus petit */
  .custom-navbar .logo {
    max-height: 40px; /* Réduit légèrement le logo */
  }
  .navbar-toggler {
    padding: 0.25rem 0.5rem; /* Réduit la taille du bouton hamburger */
    font-size: 1.1rem;
  }
  .custom-navbar .btn-custom {
    font-size: 0.85rem; /* Réduit le texte du bouton */
    padding: 0.45rem 0.9rem; /* Réduit la hauteur et largeur */
  }

  .navbar-collapse {
    margin-top: 15px; /* Espace entre la navbar et le menu */
  }

}

/* Bouton utilisateur */
.btn-user {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 50px;
    padding: 6px 16px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-user:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.custom-dropdown {
    background: rgba(0, 19, 45, 0.95);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.custom-dropdown .dropdown-item {
    color: white;
    font-weight: 500;
    transition: 0.3s;
}
.custom-dropdown .dropdown-item:hover {
    background: rgba(255, 77, 166, 0.15);
    color: #ff4da6;
}