/* ======================================================================
   LES LIMBES ARDENTES — STRUCTURE COMMUNE DES THEMES (VERSION 2 — BRANCHES HIVERNALES)
   Astra : logo desktop et mobile dans ABOVE HEADER (pas dans MAIN HEADER).
   Les couleurs et images se trouvent uniquement dans [saison].css.
   Ne pas copier ces regles dans « CSS additionnel » : charger le fichier.
   ====================================================================== */

/* 1. L'ambiance saisonniere habille la VRAIE zone du logo sur les 2 versions. */
body[class*="lla-theme-"] #masthead #ast-desktop-header .ast-above-header-bar,
body[class*="lla-theme-"] #masthead #ast-mobile-header .ast-above-header-bar {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--lla-entete-bas) !important;
    background-image:
        radial-gradient(ellipse at 50% -12%, var(--lla-entete-lueur) 0%, transparent 72%),
        linear-gradient(180deg, var(--lla-entete-haut) 0%, var(--lla-entete-milieu) 49%, var(--lla-entete-bas) 100%) !important;
    background-repeat: no-repeat !important;
    border-top: 4px solid var(--lla-entete-filet) !important;
    border-bottom: 1px solid var(--lla-entete-filet) !important;
    box-shadow: inset 0 -16px 22px -24px var(--lla-entete-ombre) !important;
}

/* Les illustrations ne peuvent pas emprisonner les liens / boutons. */
body[class*="lla-theme-"] #masthead #ast-desktop-header .ast-above-header-bar::before,
body[class*="lla-theme-"] #masthead #ast-mobile-header .ast-above-header-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--lla-decor-gauche), var(--lla-decor-droite);
    background-repeat: no-repeat, no-repeat;
    background-position: left top, right top;
    background-size: clamp(310px, 24vw, 425px) auto, clamp(310px, 24vw, 425px) auto;
    opacity: var(--lla-decor-opacite, .82);
}

/* Le contenu Astra reste au-dessus des decorations et ne devient pas opaque. */
body[class*="lla-theme-"] #masthead #ast-desktop-header .ast-above-header-bar > .site-above-header-wrap,
body[class*="lla-theme-"] #masthead #ast-mobile-header .ast-above-header-bar > .site-above-header-wrap {
    position: relative;
    z-index: 1;
    background: transparent !important;
}
body[class*="lla-theme-"] #masthead #ast-desktop-header .ast-above-header-bar .ast-builder-grid-row,
body[class*="lla-theme-"] #masthead #ast-mobile-header .ast-above-header-bar .ast-builder-grid-row {
    background-color: transparent !important;
    background-image: none !important;
}

/* 2. Le menu de navigation est SOBRE et ne porte plus les grandes branches. */
body[class*="lla-theme-"] #masthead #ast-desktop-header .ast-main-header-wrap .ast-primary-header-bar,
body[class*="lla-theme-"] #masthead #ast-desktop-header .ast-main-header-wrap .main-header-bar {
    background-color: var(--lla-menu-bas) !important;
    background-image: linear-gradient(180deg, var(--lla-menu-haut), var(--lla-menu-bas)) !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--lla-entete-filet) !important;
    box-shadow: none !important;
}
body[class*="lla-theme-"] #masthead #ast-desktop-header .ast-main-header-wrap .ast-primary-header-bar::before,
body[class*="lla-theme-"] #masthead #ast-desktop-header .ast-main-header-wrap .main-header-bar::before {
    background-image: none !important;
}

/* 3. Bandeau « nouvelle boutique », sans changer son contenu ni ses liens. */
body[class*="lla-theme-"] #lla-migration-banner {
    background: linear-gradient(105deg, var(--lla-bandeau-sombre), var(--lla-bandeau-clair) 72%) !important;
    color: var(--lla-bandeau-texte) !important;
    border-bottom: 1px solid var(--lla-entete-filet) !important;
}
body[class*="lla-theme-"] #lla-migration-banner .lla-migration-banner__text,
body[class*="lla-theme-"] #lla-migration-banner .lla-migration-banner__text strong {
    color: var(--lla-bandeau-texte) !important;
}
body[class*="lla-theme-"] #lla-migration-banner .lla-migration-banner__link,
body[class*="lla-theme-"] #lla-migration-banner .lla-migration-banner__close {
    color: var(--lla-bandeau-lien) !important;
}

/* 4. Navigation mobile : touche de couleur, sans changer la disposition. */
body[class*="lla-theme-"] #masthead #ast-mobile-header .ast-button-wrap .menu-toggle {
    background: var(--lla-bouton-menu) !important;
    border: 1px solid var(--lla-bouton-menu-bordure) !important;
    color: var(--lla-bouton-menu-texte) !important;
    border-radius: 6px;
	position: relative;
	z-index: 10;
}
body[class*="lla-theme-"] #masthead #ast-mobile-header .ast-button-wrap .menu-toggle .ast-mobile-svg {
    fill: var(--lla-bouton-menu-texte) !important;
}

/* Sur smartphone, les decorations sont dans les ANGLES de l'en-tete mobile. */
@media (max-width: 921px) {
    body[class*="lla-theme-"] #masthead #ast-mobile-header .ast-above-header-bar::before {
        background-image: var(--lla-decor-mobile-gauche, var(--lla-decor-gauche)), var(--lla-decor-mobile-droite, var(--lla-decor-droite));
        background-position: left top, right top;
        background-size: clamp(145px, 45vw, 190px) auto, clamp(145px, 45vw, 190px) auto;
        opacity: var(--lla-decor-opacite-mobile, .62);
    }
}
@media (max-width: 480px) {
    body[class*="lla-theme-"] #masthead #ast-mobile-header .ast-above-header-bar::before {
        background-position: left top, right top;
        background-size: clamp(145px, 44vw, 175px) auto, clamp(145px, 44vw, 175px) auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[class*="lla-theme-"] #masthead .ast-above-header-bar {
        transition: none !important;
    }
}
