/**
 * Navigation moderne pour les pages d'authentification CEIL
 */

/* Navbar principale */
.navbar {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%) !important;
    box-shadow: 0 2px 15px rgba(0, 86, 179, 0.2);
    padding: 12px 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.3);
}

/* Container et alignement */
.navbar .container {
    max-width: 1200px;
}

/* Logos */
.navbar-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.navbar-logos img {
    height: 38px;
    transition: transform 0.3s ease;
}

.navbar-logos img:hover {
    transform: scale(1.03);
}

/* Brand */
.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.navbar-brand:hover {
    color: #ffc107 !important;
}

.navbar-brand i {
    font-size: 1rem;
    opacity: 0.9;
}

/* Liens de navigation */
.navbar-nav {
    gap: 5px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link i {
    font-size: 13px;
    opacity: 0.85;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link:hover::before {
    width: 70%;
}

/* Boutons d'action */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.nav-right .btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-width: 1.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-right .btn i {
    font-size: 12px;
    margin-right: 5px;
}

/* Bouton Connexion */
.nav-right .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-right .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-right .btn-outline-primary.active {
    background: rgba(255, 255, 255, 0.95);
    color: #0056b3;
    border-color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.3);
}

/* Bouton Inscription */
.nav-right .btn-outline-success {
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-right .btn-outline-success:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-right .btn-outline-success.active {
    background: rgba(255, 255, 255, 0.95);
    color: #0056b3;
    border-color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.3);
}

/* Bouton Déconnexion */
.nav-right .btn-outline-danger {
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
    background: rgba(255, 99, 71, 0.2);
}

.nav-right .btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}


/* Toggle pour mobile */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
        margin-top: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-nav {
        margin-bottom: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        margin: 5px 0;
    }
    
    .nav-right {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        gap: 10px;
    }
    
    .nav-right .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-logos img {
        height: 35px;
    }
}

/* Animation au chargement */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: slideDown 0.5s ease-out;
}

/* Badge de notification (optionnel) */
.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}
