/* Bouton Menu Burger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: fixed;
    right: 2rem;
    top: 2rem;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger:hover .hamburger-line {
    background: var(--main-color);
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

/* Header de la sidebar */
.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo-img {
    height: 60px;
    margin-top: 2px;
    width: auto;
    filter: brightness(1.2);
}

.sidebar-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.close-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Navigation de la sidebar */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin-left: 15px;
}

.sidebar-item {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.sidebar-link:hover::before {
    left: 100%;
}

.sidebar-link:hover {
    color: var(--main-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.sidebar-link:hover .sidebar-icon {
    filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(180deg);
    transform: scale(1.1);
}

/* Footer de la sidebar */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .sidebar {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        right: -100%;
    }
    
    .sidebar.active {
        right: 0;
    }
}

/* Animations pour les éléments de menu */
.sidebar.active .sidebar-item {
    animation: slideInRight 0.3s ease forwards;
}

.sidebar.active .sidebar-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar.active .sidebar-item:nth-child(2) { animation-delay: 0.15s; }
.sidebar.active .sidebar-item:nth-child(3) { animation-delay: 0.2s; }
.sidebar.active .sidebar-item:nth-child(4) { animation-delay: 0.25s; }
.sidebar.active .sidebar-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Effet de glassmorphism renforcé */
.sidebar {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(25px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}