/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0,0,0,0.3);
    position: relative;
    z-index: 100;
}

header h1 {
    font-size: 1.5rem;
}

.header-left {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.header-left img {
    width: 50px;
}

.header-left a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.header-left a:hover {
    opacity: 0.9;
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

#user-info {
    margin-right: 10px;
    color: #3498db;
}

/* Burger menu button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 301;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu fullscreen */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 300;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

/* Header du menu mobile */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.mobile-menu-title svg {
    color: #3498db;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.3s;
}

.mobile-menu-close:hover {
    color: #e74c3c;
}

/* Contenu du menu mobile */
.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.mobile-menu-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 300px;
}

.mobile-menu-auth .btn {
    width: 100%;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.mobile-menu-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 15px 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    transition: background 0.3s;
    text-align: center;
}

.mobile-menu-nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* User info mobile */
.mobile-user-info {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .header-right {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .header-left img {
        width: 40px;
    }
}