/* =====================================================
   LE PETIT ZOO - CUSTOM CSS
   Direction : Naturaliste immersif
   Thème : PrestaShop Hummingbird
   ===================================================== */

/* 01. TYPOGRAPHIES ET COULEURS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Lato:wght@400;500;600;700&display=swap');

:root {
    --lpz-night: #101912;
    --lpz-forest: #1C3827;
    --lpz-green: #3FAE00;
    --lpz-ivory: #F1EFE4;
    --lpz-text: #252B26;
    --lpz-border: rgba(241, 239, 228, 0.18);
    --lpz-green-hover: rgba(63, 174, 0, 0.08);
    --lpz-green-active: rgba(63, 174, 0, 0.12);

    /* Fonds dédiés aux menus déroulants */
    --lpz-menu-panel: rgba(35, 57, 39, 0.88);
    --lpz-menu-tabs: rgba(55, 78, 53, 0.65);
}

#header {
    font-family: 'Lato', sans-serif;
}

/* 02. BANDEAU SUPÉRIEUR */
#header .header-top {
    background: var(--lpz-night);
    border-bottom: 1px solid var(--lpz-border);
    color: var(--lpz-ivory);
    font-size: 13px;
}

#header .header-top .container-md {
    min-height: 36px;
}

#header .header-top a,
#header .header-top button,
#header .header-top .header-block__action-btn {
    color: var(--lpz-ivory);
    transition: color 0.2s ease;
}

#header .header-top a:hover,
#header .header-top button:hover {
    color: var(--lpz-green);
}

/* 03. BANDEAU LOGO ET NAVIGATION */
#header .header-bottom {
    background: var(--lpz-forest);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--lpz-ivory);
}

#header .header-bottom__container {
    max-width: 1440px;
}

#header .header-bottom__row {
    min-height: 100px;
    align-items: center;
}

/* Logo : le fichier étant transparent, aucun fond ne doit lui être ajouté */
#header .header-bottom__logo {
    background: #F1E4B8 !important; /* Jaune ocre doux */
    padding: 8px 14px;
    border-radius: 3px;
}

#header .header-bottom__logo img {
    max-height: 76px;
    width: auto;
    object-fit: contain;
}

/* 04. MENU PRINCIPAL - NIVEAU 1 */
#header a.ps-mainmenu__tree-link {
    color: var(--lpz-ivory) !important;
    font-family: 'Lato', sans-serif;
    font-size: 20px !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}

#header a.ps-mainmenu__tree-link:hover {
    color: var(--lpz-green) !important;
}

/* 05. PANNEAU DES SOUS-MENUS */
#header .js-sub-menu.submenu {
    background: var(--lpz-menu-panel) !important;
    border: 1px solid rgba(241, 239, 228, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
    padding: 24px 32px;

    /* Panneau ajusté à son contenu, plutôt que pleine largeur */
    width: max-content !important;
    min-width: 520px;
    max-width: calc(100vw - 32px);
}

/* Le container Bootstrap ne doit pas réimposer une largeur écran */
#header .js-sub-menu.submenu > .container {
    width: auto !important;
    max-width: none !important;
}

/* On empile les deux zones : onglets au-dessus, catégories en dessous */
#header .submenu__row {
    display: block !important;
    margin: 0;
}

/* 06. PREMIER SOUS-MENU - NIVEAU 2 */
#header .submenu__left {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;

    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;

    background: var(--lpz-menu-tabs);
    padding: 0 0 16px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--lpz-border);
}

#header a.submenu__left-item {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap;

    color: var(--lpz-ivory) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 9px 14px;
    border: 0;
    border-radius: 3px;
    background: transparent !important;
}

#header a.submenu__left-item:hover {
    color: var(--lpz-green) !important;
    background: var(--lpz-green-hover) !important;
}

#header a.submenu__left-item.active {
    color: var(--lpz-green) !important;
    background: var(--lpz-green-active) !important;
}



/* 07. SOUS-SOUS-MENUS - NIVEAU 3 */
#header .submenu__right-items {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px;
}

#header .submenu__right-items ul.menu-item__group--nochild {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

#header .submenu__right-items ul.menu-item__group--nochild li {
    display: block !important;
    width: 100% !important;
}

#header .submenu__right-items .menu-item__group-main-item {
    display: block !important;
    width: 100%;
    padding: 7px 8px !important;
    color: var(--lpz-ivory) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

#header .submenu__right-items .menu-item__group-main-item:hover {
    color: var(--lpz-green) !important;
}





/* 08. RECHERCHE */
#header .header-bottom #search_widget input,
#header .header-bottom .search-widget input {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(241, 239, 228, 0.25);
    border-radius: 30px;
    color: var(--lpz-ivory);
    font-family: 'Lato', sans-serif;
    min-height: 40px;
}

#header .header-bottom #search_widget input::placeholder,
#header .header-bottom .search-widget input::placeholder {
    color: rgba(241, 239, 228, 0.65);
}

#header .header-bottom #search_widget input:focus,
#header .header-bottom .search-widget input:focus {
    border-color: var(--lpz-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(63, 174, 0, 0.12);
}

/* 09. ICÔNES */
#header .header-bottom .header-block__icon,
#header .header-bottom .material-icons,
#header .header-bottom .material-icons-outlined {
    color: var(--lpz-ivory);
}

/* 10. RESPONSIVE */
@media (max-width: 767px) {
    #header .header-bottom__row {
        min-height: 76px;
    }

    #header .header-bottom__logo img {
        max-height: 58px;
    }
}







/* Disposition des groupes de sous-sous-menus */
#header .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items.active {
    display: grid !important;
    grid-template-columns: repeat(3, max-content) !important;
    align-items: start !important;
    justify-content: start !important;
    gap: 24px !important;
}

/* Chaque groupe reste vertical */
#header .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items.active > ul {
    display: block !important;
    width: max-content !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}









/* LPZ — Nettoyage visuel du mega-menu */

#header .js-sub-menu.submenu {
    background: var(--lpz-menu-panel) !important;
    border: 1px solid var(--lpz-border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    padding: 20px 26px;
    backdrop-filter: blur(8px);
}

#header .js-sub-menu.submenu > .container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
}

#header .submenu__row {
    margin: 0 !important;
}

#header .submenu__left {
    background: var(--lpz-menu-tabs) !important;
    border-radius: 6px;
    padding: 12px !important;
    margin: 0 18px 0 0 !important;
}

#header .submenu__right {
    background: transparent !important;
    padding: 0 !important;
}

#header .submenu__right-items {
    background: transparent !important;
}









/* ==========================================
   LPZ — MEGA MENU
   Ivoire doré translucide
   ========================================== */

/* Panneau principal */
#header .js-sub-menu.submenu {
    background: rgba(239, 225, 194, 0.10) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 18px !important;
    border: 1px solid rgba(241, 239, 228, 0.05);
    border-radius: 8px;
}

/* Colonne des catégories */
#header .submenu__left {
    background: rgba(235, 222, 194, 0.08) !important;
    padding: 8px !important;
    margin-right: 10px !important;
    border-radius: 6px;
}

/* Onglets de catégories : texte et états */
#header .ps-mainmenu .submenu__left-item,
#header .ps-mainmenu .submenu__left-item:hover,
#header .ps-mainmenu .submenu__left-item:focus,
#header .ps-mainmenu .submenu__left-item.active {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    background: transparent !important;
    background-image: none !important;
}

/* Onglet actif : léger voile discret */
#header .ps-mainmenu .submenu__left-item.active {
    background: rgba(24, 41, 29, 0.08) !important;
}

/* Liens du troisième niveau */
#header .ps-mainmenu .submenu__right-items a,
#header .ps-mainmenu .submenu__right-items a:hover,
#header .ps-mainmenu .submenu__right-items a:focus,
#header .ps-mainmenu .submenu__right-items a:visited {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    background: transparent !important;
    background-image: none !important;
}

/* Éléments intérieurs : aucun fond parasite */
#header .submenu__right,
#header .submenu__right-items,
#header .submenu__right-items ul,
#header .submenu__right-items li {
    background: transparent !important;
}

#header .submenu__right-items a::before,
#header .submenu__right-items a::after {
    background: transparent !important;
}



/* LPZ — Produits en premier sur les pages catégories */
.center-column {
    display: flex;
    flex-direction: column;
}

.center-column > #products {
    order: 1;
}

.center-column > #js-product-list-header {
    order: 2;
}

.center-column > #js-product-list-footer {
    order: 3;
}




/* ==========================================
   LPZ — FONDS GÉNÉRAUX
   ========================================== */

/* Fond général végétal */
body#category,
body#product,
body#category #wrapper,
body#product #wrapper {
    background-color: #101912 !important;
}

/* Zone principale */
body#category .center-column,
body#product .center-column {
    background-color: #DCE8C8 !important;
    color: #18291D;
}

/* En-tête de catégorie */
body#category .category__header {
    background-color: #DCE8C8 !important;
    color: #18291D;
}


/* ==========================================
   LPZ — ORDRE DES ÉLÉMENTS CATÉGORIE
   ========================================== */

/* Afficher les produits avant l'en-tête */
.center-column {
    display: flex;
    flex-direction: column;
}

.center-column > #products {
    order: 1;
}

.center-column > #js-product-list-header {
    order: 2;
}

.center-column > #js-product-list-footer {
    order: 3;
}



/* ==========================================
   LPZ — CATÉGORIES : VIGNETTES NATURALISTES
   ========================================== */

/* Fond vert forêt des cartes */
body#category .product-miniature,
body#category .product-miniature__inner {
    background-color: #1C3827 !important;
    border-radius: 8px !important;
    overflow: hidden;
}

/* Nom scientifique — style livre naturaliste */
body#category .product-miniature__title,
body#category .product-miniature__title:hover,
body#category .product-miniature__title:focus,
body#category .product-miniature__title:visited {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 1.35rem !important;
    font-style: italic !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #F1EFE4 !important;
    text-decoration: none !important;
}

/* Prix */
body#category .product-miniature__price,
body#category .product-miniature__discount-price {
    color: #F1EFE4 !important;
    font-family: "Lato", sans-serif !important;
}

/* Badge rupture de stock */
body#category .product-miniature .product-flags .badge.out_of_stock {
    background-color: #F1E4B8 !important;
    color: #1C3827 !important;
    border: 1px solid #F1E4B8 !important;
}

/* Bouton Voir détails */
body#category .product-miniature__details {
    background-color: #F1E4B8 !important;
    border-color: #F1E4B8 !important;
    color: #1C3827 !important;
    border-radius: 5px !important;
    font-family: "Lato", sans-serif !important;
    font-weight: 700 !important;
}

body#category .product-miniature__details:hover {
    background-color: #F1EFE4 !important;
    border-color: #F1EFE4 !important;
    color: #1C3827 !important;
}

/* Bouton panier */
body#category .product-miniature .btn-primary {
    background-color: #3FAE00 !important;
    border-color: #3FAE00 !important;
    color: #FFFFFF !important;
    border-radius: 5px !important;
    font-family: "Lato", sans-serif !important;
    font-weight: 700 !important;
}

body#category .product-miniature .btn-primary:hover {
    background-color: #348F00 !important;
    border-color: #348F00 !important;
}

/* Images 4:3 — on conserve le cadrage validé */
body#category .product-miniature__image-container {
    aspect-ratio: 4 / 3 !important;
    overflow: hidden;
}

body#category .product-miniature__image-link,
body#category .product-miniature__image-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

body#category .product-miniature__image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* ==========================================
   LPZ — IMAGES PRODUITS EN 4:3
   ========================================== */

.product-miniature__image-container {
    aspect-ratio: 4 / 3 !important;
    overflow: hidden;
}

.product-miniature__image-link,
.product-miniature__image-container picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-miniature__image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ==========================================
   LPZ — FIL D'ARIANE
   ========================================== */

nav.breadcrumb__wrapper {
    background-color: #F1E4B8 !important;
}

nav.breadcrumb__wrapper .breadcrumb {
    background-color: transparent !important;
}
/* LPZ — Couleurs du fil d'Ariane */
nav.breadcrumb__wrapper .breadcrumb,
nav.breadcrumb__wrapper .breadcrumb a,
nav.breadcrumb__wrapper .breadcrumb a:hover,
nav.breadcrumb__wrapper .breadcrumb a:focus,
nav.breadcrumb__wrapper .breadcrumb span {
    color: #1C3827 !important;
}



/* ==========================================
   LPZ — MENU LATÉRAL DES CATÉGORIES
   ========================================== */

/* Seul le panneau des sous-catégories est ocre */
.category-tree__item > .accordion-collapse > .accordion-body {
    background-color: #F1E4B8 !important;
}


/* LPZ — Fond ocre du menu accordéon */
.category-tree__item > .accordion-collapse,
.category-tree__item > .accordion-collapse > .accordion-body,
.category-tree__item > .accordion-collapse .category-tree__list,
.category-tree__item > .accordion-collapse .category-tree__item-header {
    background-color: #F1E4B8 !important;
}

/* LPZ — Fond ocre des catégories principales */
.category-tree__item-header.split.parent,
.category-tree__item-header.split.parent .category-tree__item-link,
.category-tree__item-header.split.parent .accordion-button {
    background-color: #F1E4B8 !important;
}






/* ==========================================
   LPZ — FICHE PRODUIT
   ========================================== */

/* Photo principale */
#product .product__images img.img-fluid.w-100 {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center;
}

/* Miniatures de navigation */
#product .product__thumbnails-list {
    align-items: center;
}

#product .product__thumbnail {
    aspect-ratio: 4 / 3 !important;
    overflow: hidden;
}

#product .product__thumbnail-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: center;
}

/* Détails du produit — fond ocre */
#product #product_details,
#product #product_details .accordion-header,
#product #product_details .accordion-button,
#product #product_details .accordion-collapse,
#product #product_details .accordion-body,
#product #product_details .details__list {
    background-color: #F1E4B8 !important;
}

/* Couleur du texte */
#product #product_details {
    color: #1C3827;
}

/* ==========================================
   LPZ — FICHE PRODUIT : ESPACEMENT ET ARRONDIS
   ========================================== */

body#product .center-column {
    padding: 28px !important;
    border-radius: 12px !important;
    overflow: hidden;
}




/* LPZ — FOND VERT CLAIR DU CONTENU CENTRAL */
body#category main#wrapper.wrapper {
    background-color: #DCE8C8 !important;
}

/* LPZ — SIGNES + ET - DES QUANTITÉS */
body#category .product-miniature .js-decrement-button,
body#category .product-miniature .js-increment-button,
body#category .product-miniature .js-decrement-button .material-icons,
body#category .product-miniature .js-increment-button .material-icons {
    color: #FFFFFF !important;
}



/* LPZ — ACCUEIL : FOND VERT CLAIR DES PRODUITS PHARES */
section.ps-featuredproducts {
    background-color: #DCE8C8 !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* ==========================================
   LPZ — ACCUEIL : VIGNETTES PRODUITS
   ========================================== */

/* Fond vert forêt */
section.ps-featuredproducts .product-miniature,
section.ps-featuredproducts .product-miniature__inner {
    background-color: #1C3827 !important;
    border-radius: 8px !important;
    overflow: hidden;
}

/* Titres */
section.ps-featuredproducts .product-miniature__title,
section.ps-featuredproducts .product-miniature__title:hover,
section.ps-featuredproducts .product-miniature__title:focus,
section.ps-featuredproducts .product-miniature__title:visited {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 1.35rem !important;
    font-style: italic !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #F1EFE4 !important;
    text-decoration: none !important;
}

/* Prix */
section.ps-featuredproducts .product-miniature__price,
section.ps-featuredproducts .product-miniature__discount-price {
    color: #F1EFE4 !important;
    font-family: "Lato", sans-serif !important;
}

/* Badge rupture de stock */
section.ps-featuredproducts .product-flags .badge.out_of_stock {
    background-color: #F1E4B8 !important;
    color: #1C3827 !important;
    border: 1px solid #F1E4B8 !important;
}

/* Bouton Voir détails */
section.ps-featuredproducts .product-miniature__details {
    background-color: #F1E4B8 !important;
    border-color: #F1E4B8 !important;
    color: #1C3827 !important;
    border-radius: 5px !important;
    font-family: "Lato", sans-serif !important;
    font-weight: 700 !important;
}

section.ps-featuredproducts .product-miniature__details:hover {
    background-color: #F1EFE4 !important;
    border-color: #F1EFE4 !important;
    color: #1C3827 !important;
}

/* Bouton panier, si présent */
section.ps-featuredproducts .product-miniature .btn-primary {
    background-color: #3FAE00 !important;
    border-color: #3FAE00 !important;
    color: #FFFFFF !important;
}

/* Signes + et - */
section.ps-featuredproducts .product-miniature .js-decrement-button,
section.ps-featuredproducts .product-miniature .js-increment-button,
section.ps-featuredproducts .product-miniature .js-decrement-button .material-icons,
section.ps-featuredproducts .product-miniature .js-increment-button .material-icons {
    color: #FFFFFF !important;
}


/* ==========================================
   LPZ — ACCUEIL : TEXTE ÉDITORIAL
   ========================================== */

section.ps-customtext {
    background-color: #F1E4B8 !important;
    color: #1C3827 !important;
    padding: 25px 30px !important;
}

/* Conteneur */
section.ps-customtext .container {
    max-width: 1100px;
}

/* Titre principal */
section.ps-customtext h1 {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 2.1rem !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #1C3827 !important;
    margin: 0 0 14px !important;
}

/* Titres secondaires */
section.ps-customtext h2 {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: 1.55rem !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #1C3827 !important;
    margin: 22px 0 8px !important;
}

/* Paragraphes */
section.ps-customtext p {
    font-family: "Lato", sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    color: #1C3827 !important;
    margin-bottom: 10px !important;
}

/* Mots importants */
section.ps-customtext strong {
    color: #1C3827 !important;
    font-weight: 800 !important;
}

/* Listes */
section.ps-customtext ul {
    padding-left: 24px !important;
    margin: 8px 0 12px !important;
}

section.ps-customtext li {
    font-family: "Lato", sans-serif !important;
    font-size: 0.95rem !important;
    color: #1C3827 !important;
    line-height: 1.5 !important;
    margin-bottom: 3px !important;
}

/* Adaptation mobile */
@media (max-width: 767px) {
    section.ps-customtext {
        padding: 20px 16px !important;
    }

    section.ps-customtext h1 {
        font-size: 1.8rem !important;
    }

    section.ps-customtext h2 {
        font-size: 1.4rem !important;
    }
}


/* LPZ — ACCUEIL : FOND GÉNÉRAL (DONC COULEUR DES BANDES SÉPARATRICES ENTRE SECTIONS) */
body#index,
body#index #wrapper,
body#index main#wrapper {
    background-color: #101912 !important;
}




/* ==========================================
   LPZ — ACCUEIL : BRANCHES BOTANIQUES
   ========================================== */

section.ps-customtext {
    position: relative;
    isolation: isolate;
}

/* Le texte reste au premier plan */
section.ps-customtext .container {
    position: relative;
    z-index: 1;
}

/* Illustrations botaniques latérales */
section.ps-customtext::before,
section.ps-customtext::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    width: 11.7%;
    height: 123.5%;
    background-image: url("/img/ImagesLPZ/BrancheChene.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Branche gauche */
section.ps-customtext::before {
    left: 0.5%;
}

/* Branche droite : mûrier */
section.ps-customtext::after {
    right: 0.5%;
    background-image: url("/img/ImagesLPZ/BrancheMurier.png");
    transform: translateY(-50%);
}

/* LPZ — Ajustement botanique sur écran intermédiaire */
@media (max-width: 1400px) {
    section.ps-customtext::before {
        opacity: 0.2;
    }
}

@media (max-width: 1200px) {
    section.ps-customtext::before {
        display: none;
    }
}


/* Masquer sur les écrans plus étroits */
@media (max-width: 1100px) {
    section.ps-customtext::before,
    section.ps-customtext::after {
        display: none;
    }
}





/* ==========================================
   LPZ — HEADER : DYNASTE GRANTI RESPONSIVE
   ========================================== */

.header-bottom {
    position: relative;
    isolation: isolate;
}

.header-bottom::after {
    content: "";
    position: absolute;
    z-index: 5;

    /* Taille adaptative */
    width: clamp(130px, 15vw, 260px);
    aspect-ratio: 1000 / 400;
    height: auto;

    right: 30%;
    bottom: -10px;

    background-image: url("/img/ImagesLPZ/DynasteGranti.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    pointer-events: none;
}



/* Masquer sur mobile */
@media (max-width: 767px) {
    .header-bottom::after {
        display: none;
    }
}



