/**
 * Header pour l'espace public - EcoWeb CenC
 * Version 1.0 - 2025-10-02
 */

.app-header {
    background: var(--cenc-brown);
    color: white;
    padding: 1.5rem 0;
    position: relative;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cenc-gold), var(--cenc-orange));
}

.subtitle {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-top: 0.25rem;
    font-family: var(--font-body);
}

.app-header h1 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0.3rem;
    margin-bottom: 0.25rem;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-header {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    display: inline-block;
    white-space: nowrap;
}

.btn-header-primary {
    background: var(--cenc-orange);
    color: white;
    border: 2px solid var(--cenc-orange);
}

.btn-header-primary:hover {
    background: var(--cenc-orange-dark);
    border-color: var(--cenc-orange-dark);
}

.btn-header-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-header-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.user-welcome {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.user-name {
    font-weight: 600;
    color: white;
}

.user-info {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .app-header {
        padding: 1rem 0;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-right {
        width: 100%;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-header {
        width: 100%;
        text-align: center;
    }

    .app-header h1 {
        font-size: 1.5rem;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .header-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .app-header h1 {
        font-size: 1.3rem;
    }
}
