/**
 * Header — Lambert Objet Média
 * 3 bandes : top bar (bleu nuit) + barre principale (blanc) + navigation (bleu nuit)
 * Font : Montserrat
 */

/* ── Variables ── */
.al-header {
    --hd-blue-dark: #003152;
    --hd-blue: #004B7B;
    --hd-blue-light: #00AEEF;
    --hd-gold: #E2B134;
    --hd-white: #ffffff;
    --hd-text-light: rgba(255,255,255,.85);
    --hd-max-width: 1280px;
    --hd-announce-duration: 4s;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    position: relative;
    z-index: 100;
}

/* ── TOP BAR ── */
.al-header__topbar {
    background: var(--hd-blue-dark);
    border-bottom: 2px solid var(--hd-gold);
    padding: 8px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 36px;
}
.al-header__topbar-inner {
    max-width: var(--hd-max-width);
    margin: 0 auto;
    position: relative;
}

/* Annonces — animation slide-up */
.al-header__announce {
    color: var(--hd-text-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity .4s ease, transform .4s ease;
}
.al-header__announce.is-active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}
.al-header__announce.is-leaving {
    opacity: 0;
    transform: translateY(-100%);
}
.al-header__announce-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--hd-gold);
}

/* Barre de progression dorée */
.al-header__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--hd-gold);
    width: 0;
    animation: al-header-progress var(--hd-announce-duration) linear infinite;
}
@keyframes al-header-progress {
    0%   { width: 0; }
    100% { width: 100%; }
}

/* ── BARRE PRINCIPALE ── */
.al-header__main {
    background: var(--hd-white);
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
}
.al-header__main-inner {
    max-width: var(--hd-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.al-header__logo {
    flex-shrink: 0;
}
.al-header__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--hd-blue-dark);
}
.al-header__logo img {
    max-height: 50px;
    width: auto;
}
.al-header__logo strong {
    font-size: 18px;
    font-weight: 800;
}

/* Recherche FiboSearch */
.al-header__search {
    flex: 1;
    min-width: 0;
}

/* Icônes */
.al-header__icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.al-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background .2s, color .2s, transform .2s;
}
.al-header__icon:hover {
    transform: scale(1.08);
}
.al-header__icon svg {
    width: 22px;
    height: 22px;
}
.al-header__icon--wishlist {
    color: var(--hd-gold);
    border: 2px solid var(--hd-gold);
}
.al-header__icon--wishlist:hover {
    background: var(--hd-gold);
    color: var(--hd-white);
}

/* ── NAVIGATION ── */
.al-header__nav {
    background: var(--hd-blue-dark);
    padding: 0 20px;
}
.al-header__nav-inner {
    max-width: var(--hd-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.al-header__menu {
    flex: 1;
}

/* Force Montserrat sur les items du mega menu */
.al-header__menu .mega-menu-link,
.al-header__menu #mega-menu-wrap-primary .mega-menu-item > a.mega-menu-link {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.al-header__phone {
    flex-shrink: 0;
}
.al-header__phone a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hd-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 0;
    transition: color .2s;
}
.al-header__phone a:hover {
    color: var(--hd-gold);
}
.al-header__phone svg {
    color: var(--hd-gold);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .al-header__main-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .al-header__logo {
        order: 1;
    }
    .al-header__icons {
        order: 2;
        margin-left: auto;
    }
    .al-header__search {
        order: 3;
        flex-basis: 100%;
    }
    .al-header__phone {
        display: none;
    }
    .al-header__announce {
        font-size: 12px;
    }
    .al-header__announce-icon {
        width: 14px;
        height: 14px;
    }
}
