/******************************
   ACCORDÉON AVEC IMAGE FULL
   ET TITRE + / - EN OVERLAY
******************************/

/* Le conteneur général */
.my-accordion .elementor-accordion-item {
    position: relative;
}

/* --- TITRE EN OVERLAY --- */
.my-accordion .elementor-tab-title {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent !important;
    padding: 15px 0 !important;
    text-align: center;
}

/* Retirer le fond du titre (couleurs Elementor) */
.my-accordion .elementor-tab-title .elementor-accordion-title {
    background: transparent !important;
}

/* Ajouter un fond lisible derrière le +/− */
.my-accordion .elementor-tab-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0,0,0,0.25);
    z-index: -1;
    backdrop-filter: blur(6px);
    border-radius: 4px;
}

/* --- POSITION DU + / - --- */
.my-accordion .elementor-accordion-icon {
    position: relative;
    z-index: 20;
}

/* --- IMAGE EN FULL TOP --- */
.my-accordion .elementor-tab-content {
    padding: 0 !important;
    margin-top: 60px !important;
    overflow: hidden;
}

.my-accordion .elementor-tab-content img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* --- Smooth open --- */
.my-accordion .elementor-tab-content {
    max-height: 0;
    transition: max-height 0.4s ease;
}

.my-accordion .elementor-tab-title.elementor-active + .elementor-tab-content {
    max-height: 2000px;
}

/* ===============================
   SUPPRESSION TRI / FILTRES NATIFS
=============================== */

.woocommerce-ordering,
.shoptimizer-sorting,
.orderby,
.berocket_selected_filter,
.berocket_applied_filter,
.berocket_active_filter,
.fwp-facet-label[data-name="orderby"],
.fwp-facet[data-name="orderby"],
.fwp-term[data-value^="title-"],
.fwp-term[data-value^="price-"],
.woof_remove_ppi,
.woof_reset_button_2 {
    display: none !important;
}

/* ===============================
   CORRECTION BOUTON PANIER
   PAGE RÉSULTATS DE RECHERCHE
=============================== */

/* Carte produit */
.search-results ul.products li.product {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: auto !important;
}

/* Désactiver le lien global qui recouvre tout */
.search-results ul.products li.product .woocommerce-LoopProduct-link {
    position: relative;
    z-index: 1;
}

/* Description */
.search-results ul.products li.product .woocommerce-product-details__short-description {
    margin-bottom: 16px;
    z-index: 1;
    position: relative;
}

/* Bouton Ajouter au panier */
.search-results ul.products li.product .button,
.search-results ul.products li.product .add_to_cart_button {
    position: relative !important;
    z-index: 10 !important;
    margin-top: 12px;
    pointer-events: auto !important;
}

/* Supprimer tout overlay fantôme */
.search-results ul.products li.product::before,
.search-results ul.products li.product::after {
    pointer-events: none !important;
}

