/* =============================================================
   alter-header.css — HEADER + SEARCH (priority 55)
   Migrated from custom.css l.72-167 (Lot 8d, D-034).
   Cohabitation safe avec altermegamenu-altersmoke.css (priority
   155) qui declare #header { position: sticky; ... } et
   .am-header-top { background: linear-gradient(...) } : proprietes
   distinctes additionnent sans conflit. #_desktop_cart base + le
   descendants altermegamenu (#_desktop_cart .blockcart a +
   .cart-products-count, l.1277-1295) sont aussi differents.
   Cascade order : alter-tokens (50) -> alter-header (55) ->
   alter-checkout (60) -> ... -> altermegamenu (155) -> custom.css
   (1000, fallback).
   ============================================================= */

/* ============ HEADER ============ */

#header {
    background: linear-gradient(180deg, var(--as-black) 0%, var(--as-grey-900) 100%);
}

.header-banner {
    background: var(--as-grey-900);
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 7px 32px;
    flex-wrap: wrap
}

.rating-badge__stars{
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 2px;
    color:var(--as-star-yellow);
}

.banner-top-container p, #header .banner-top-container a {
    color: var(--as-white);
    margin-bottom: 0;
    font-size: 13px;
    line-height: 13px;
    display: flex;
    align-items: center;
}

.banner-top-container strong {
    margin:0 3px;
}

#header .banner-top-container a {
    font-size: 12px
}

/* P6 — "Tous les avis" link is underlined (normal / hover / focus). Scoped to
   the rating-badge source label so other topbar links stay un-underlined. */
#header .banner-top-container a.rating-badge .rating-badge__source {
    text-decoration: underline;
    text-underline-offset: 2px;
}

#header .banner-top-container a.rating-badge:hover .rating-badge__source,
#header .banner-top-container a.rating-badge:focus-visible .rating-badge__source {
    text-decoration: underline;
}


/* ============ SEARCH (PS core widget fallback) ============
   Règles legacy `.header-top .search-widgets` retirées Lot C P2 :
   `.header-top` n'existe pas dans classic-child (classe = `.am-header-top`),
   et altersearch.css gère le styling actuel du widget. La règle suivante reste
   pour les pages éventuelles servies sans altersearch (PS core fallback).      */
#search_widget form input {
    background: none;
    border: 1px solid var(--as-white)
}


#_desktop_cart, #_mobile_cart {
    background: var(--as-amaranth);
    padding: 12px 16px;
    border-radius: 3px;
    position: relative;
}
