/* Shared site header */
site-header {
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Home : force fond blanc (sinon le gradient de la page passe derrière) */
body.home .site-header,
body.is-landing .site-header {
    background: #fff;
}
body.home .site-header::before,
body.is-landing .site-header::before {
    background: #fff;
}

/* Priorité forte pour le header éditorial (évite les backgrounds dégradés définis sur .neo-header dans app.css) */
body.home header.site-header.neo-header,
body.is-landing header.site-header.neo-header {
    background: #fff !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.home header.site-header.neo-header::before,
body.is-landing header.site-header.neo-header::before {
    background: #fff !important;
}

.site-header .hdr-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 0.9rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.site-header .brand {
    margin-right: auto;
}

.site-header .hdr-nav {
    display: flex;
    gap: 1.25rem;
    font-weight: 600;
}

.site-header .hdr-nav a {
    color: #1b1b1f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header .hdr-nav a:hover,
.site-header .hdr-nav a:focus-visible {
    color: #f59b00;
}

.site-header .hdr-download {
    white-space: nowrap;
}

.site-header .hdr-search {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
}

.site-header .fuel-select select {
    min-width: 140px;
}

.site-header .search-host {
    width: 100%;
}

.site-header .search-host input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.site-header .hdr-search .btn.primary {
    white-space: nowrap;
}

@media (max-width: 960px) {
    .site-header .hdr-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header .hdr-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .site-header .hdr-search {
        grid-template-columns: 1fr;
    }

    .site-header .fuel-select select,
    .site-header .hdr-download {
        width: 100%;
    }

    .site-header .hdr-download {
        text-align: center;
    }
}

/* Mobile : ne garder que la topbar compacte */
@media (max-width: 900px) {
    body:not(.is-app) .site-header {
        display: none !important;
    }

    body:not(.is-app) .mobile-topbar {
        display: flex !important;
    }
}

.site-header .hdr-search-row {
    display: none;
}

.site-header .hdr-inner {
    padding-bottom: 1.25rem;
}
