/* /frontend/css/header.css */

header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-image {
    height: 50px;
    width: auto;
    opacity: 1 !important;
    filter: none !important;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

/* Boutons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-outline {
    border: 1px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Menu Burger */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #4b5563;
    border-radius: 3px;
    transition: all 0.3s;
}

/* User Menu */
.auth-section { 
    position: relative; 
}

.user-menu { 
    position: relative; 
}

.user-menu-toggle {
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.5rem 1rem;
    background: #f8f9fa; 
    border: 1px solid #e2e8f0;
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 0.95rem; 
    color: #333;
    transition: all 0.2s;
}

.user-menu-toggle:hover { 
    background: #f1f5f9; 
    border-color: #cbd5e1; 
}

.user-dropdown {
    position: absolute; 
    top: 100%; 
    right: 0; 
    margin-top: 0.5rem; 
    min-width: 200px;
    background: white; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    opacity: 0; 
    visibility: hidden;
    transform: translateY(-10px); 
    transition: all 0.2s ease; 
    z-index: 1000;
}

.user-dropdown.show { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.dropdown-item {
    display: block; 
    padding: 0.75rem 1rem; 
    color: #4b5563; 
    text-decoration: none;
    transition: all 0.2s ease; 
    border: none; 
    background: none; 
    width: 100%; 
    text-align: left; 
    cursor: pointer;
    font-size: 0.95rem;
}

.dropdown-item:hover { 
    background: #f8fafc; 
    color: #1e293b; 
}

.dropdown-divider { 
    margin: 0.5rem 0; 
    border: none; 
    border-top: 1px solid #e2e8f0; 
}

.logout-btn { 
    color: #ef4444; 
}

.logout-btn:hover { 
    background: #fef2f2; 
    color: #dc2626; 
}

/* Responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}