/* ===========================================================================
   LES LIMBES ARDENTES — THÈME AUTOMNE — BRANCHES / FEUILLES / BAIES / GLANDS
   Mise à jour : 11/11/2026
   À installer UNIQUEMENT dans wp-content/uploads/lla-themes/css/automne.css
   Compatible avec themes-commun.css et le sélecteur existants.
   Ne modifie pas les autres saisons ni les fiches produits.
   =========================================================================== */

body.lla-theme-automne {
    /* Dégradé cuivre d'automne -> ambre doré -> ivoire */
    --lla-entete-haut: #8b3212;
    --lla-entete-milieu: #ffac47;
    --lla-entete-bas: #fff9ea;
    --lla-entete-lueur: rgba(255, 196, 79, .13);
    --lla-entete-filet: #8f431e;
    --lla-entete-ombre: rgba(143, 67, 30, .18);

    --lla-menu-haut: #fff3de;
    --lla-menu-bas: #fffdf8;
    --lla-bandeau-sombre: #f8dfba;
    --lla-bandeau-clair: #fff9e9;
    --lla-bandeau-texte: #593519;
    --lla-bandeau-lien: #86481d;
    --lla-bouton-menu: #8c3519;
    --lla-bouton-menu-bordure: #fff9e5;
    --lla-bouton-menu-texte: #ffffff;

    /* Palette d'origine : boutons, fidélité, panier et cartes restent cohérents */
    --lla-or-clair: #EAB67C;
    --lla-or-clair-survol: #A75B25;
    --lla-or-fonce: #925024;
    --lla-or-fonce-survol: #753B1A;
    --lla-or-bordure: #CF8C52;
    --lla-or-texte: #87522C;
    --lla-or-fidelite: #9D5A2A;
    --lla-fond-panier: #FCF7F0;
    --lla-bordure-panier: #EBD9C5;
    --lla-fond-carte: #FFFCF7;
    --lla-bordure-fidelite: #EAD8C3;
    --lla-fond-entete-tableau: #F8EADA;
    --lla-bordure-commande: #E4CBB0;
    --lla-bordure-cadeau: #DFC6A3;

    /* EXACTES branches issues de la maquette automnale approuvée.
       SVG contenant une illustration PNG transparente intégrée, pas des tracés purs. */
    --lla-decor-gauche: url('/wp-content/uploads/lla-themes/automne-gauche.svg?v=20261111-v2');
    --lla-decor-droite: url('/wp-content/uploads/lla-themes/automne-droite.svg?v=20261111-v2');
    --lla-decor-mobile-gauche: url('/wp-content/uploads/lla-themes/automne-mobile-gauche.svg?v=20261111-v2');
    --lla-decor-mobile-droite: url('/wp-content/uploads/lla-themes/automne-mobile-droite.svg?v=20261111-v2');
    --lla-decor-opacite: 1;
    --lla-decor-opacite-mobile: 1;
}

/* Dégradé plus proche de la maquette : foncé en haut, lumineux en bas. */
body.lla-theme-automne #masthead #ast-desktop-header .ast-above-header-bar,
body.lla-theme-automne #masthead #ast-mobile-header .ast-above-header-bar {
    background-color: #fff9ea !important;
    background-image: linear-gradient(180deg,
      #8b3212 0%, #ca6527 20%, #ffad4e 51%, #ffdda0 74%, #fff9ea 100%) !important;
}

/* Branches étendues depuis les coins — centre dégagé et détails visibles. */
body.lla-theme-automne #masthead #ast-desktop-header .ast-above-header-bar::before {
    background-image: var(--lla-decor-gauche), var(--lla-decor-droite) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: left top, right top !important;
    background-size: clamp(390px, 46vw, 940px) auto,
                     clamp(390px, 46vw, 940px) auto !important;
    opacity: 1 !important;
}

/* Titre dans le bloc HTML personnalisé Astra : détour blanc marqué. */
body.lla-theme-automne #masthead #ast-desktop-header
.ast-header-html-2 .ast-builder-html-element > div > div {
    text-shadow:
      -2px -2px 0 #fff, 2px -2px 0 #fff,
      -2px  2px 0 #fff, 2px  2px 0 #fff,
       0 0 5px #fff, 0 0 8px rgba(255,255,255,.8);
}

/* Compte et panier lisibles au-dessus des feuilles d'automne. */
body.lla-theme-automne #masthead #ast-desktop-header .ast-header-account-link,
body.lla-theme-automne #masthead #ast-desktop-header .ast-header-woo-cart,
body.lla-theme-automne #masthead #ast-desktop-header .ast-cart-menu-wrap {
    filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
            drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
            drop-shadow(0 0 4px #fff);
}

body.lla-theme-automne #masthead .main-header-menu .menu-item:hover > .menu-link,
body.lla-theme-automne #masthead .main-header-menu .current-menu-item > .menu-link,
body.lla-theme-automne #masthead .main-header-menu .current-menu-ancestor > .menu-link {
    color: #8c3e1b !important;
}

@media (max-width: 921px) {
    /* Les 2 branches sont compactes, leurs rameaux ne recouvrent pas le titre. */
    body.lla-theme-automne #masthead #ast-mobile-header .ast-above-header-bar::before {
        background-image: var(--lla-decor-mobile-gauche), var(--lla-decor-mobile-droite) !important;
        background-repeat: no-repeat, no-repeat !important;
        background-position: left top, right top !important;
        background-size: min(54vw, 340px) auto, min(54vw, 340px) auto !important;
        opacity: 1 !important;
        pointer-events: none;
    }
    /* Bouton en premier plan, même quand les feuilles atteignent le coin droit. */
    body.lla-theme-automne #masthead #ast-mobile-header .ast-button-wrap .menu-toggle {
        position: relative;
        z-index: 10;
        border: 1px solid rgba(255,255,255,.95) !important;
        box-shadow: 0 0 0 2px rgba(255,255,255,.60);
    }
    body.lla-theme-automne #masthead #ast-mobile-header .ast-header-woo-cart,
    body.lla-theme-automne #masthead #ast-mobile-header .ast-cart-menu-wrap {
        position: relative;
        z-index: 2;
        filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #fff);
    }
}
