/* ===== SYSTÈME DE NAVIGATION LATÉRALE UNIVERSEL ===== */

/* Navigation latérale principale */
.sidebar-navigation {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-navigation.active {
    left: 0;
}

/* Bouton toggle pour navigation latérale */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.sidebar-toggle.active {
    left: 300px;
}

/* Header de la navigation latérale */
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
}

/* Menu de navigation */
.sidebar-menu {
    padding: 1.5rem 0;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 2rem;
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
    color: #3b82f6;
    border-left: 3px solid #3b82f6;
    padding-left: 1.5rem;
}

.sidebar-link i {
    width: 1.25rem;
    text-align: center;
}

/* Badge pour les liens */
.sidebar-badge {
    margin-left: auto;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Footer de la navigation latérale */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.sidebar-footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Overlay pour mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-navigation {
        width: 100%;
        left: -100%;
    }
    
    .sidebar-toggle.active {
        left: 20px;
    }
    
    .sidebar-toggle {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Thèmes pour différentes sections */
.sidebar-navigation.produits-numeriques {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.sidebar-navigation.produits-numeriques .sidebar-link.active {
    color: #7c3aed;
    border-left-color: #7c3aed;
}

.sidebar-navigation.micro-saas {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.sidebar-navigation.micro-saas .sidebar-link.active {
    color: #059669;
    border-left-color: #059669;
}

.sidebar-navigation.game-assets {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.sidebar-navigation.game-assets .sidebar-link.active {
    color: #dc2626;
    border-left-color: #dc2626;
}

.sidebar-navigation.cours-en-ligne {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.sidebar-navigation.cours-en-ligne .sidebar-link.active {
    color: #ea580c;
    border-left-color: #ea580c;
}

.sidebar-navigation.minage-ia {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.sidebar-navigation.minage-ia .sidebar-link.active {
    color: #0891b2;
    border-left-color: #0891b2;
}

.sidebar-navigation.plugins-etude {
    background: linear-gradient(135deg, #be185d 0%, #9f1239 100%);
}

.sidebar-navigation.plugins-etude .sidebar-link.active {
    color: #be185d;
    border-left-color: #be185d;
}

/* Animation d'entrée */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sidebar-navigation.active {
    animation: slideInLeft 0.3s ease;
}

/* Indicateur de progression */
.sidebar-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 1.5rem;
}

.sidebar-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Sections spéciales */
.sidebar-section.special .sidebar-link {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin: 0.25rem 1rem;
}

.sidebar-section.special .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}
