/*
 * L'Art de la Fête — page /portfolio-accordion/
 * Accordéon horizontal : catégories WooCommerce style portfolio.
 * Scopé sur .elementor-element-fd2e823
 */

/* ── Conteneur : flex horizontal, hauteur fixe ── */
.elementor-element-fd2e823 .categories_list.categories_list_style_8 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    height: 480px !important;
    width: 100% !important;
}

/* ── Chaque item : bandelette verticale ── */
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_item {
    flex: 1 1 0 !important;
    min-width: 50px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 20px !important;
    cursor: pointer;
    display: block !important;
    transition: flex-grow 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    margin: 0 !important;
    width: auto !important;
}

/* ── Item actif ou survolé : s'expande ── */
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_item:hover,
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_item.ldp-active {
    flex-grow: 5 !important;
}

/* ── Image : remplit toute la carte ── */
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    aspect-ratio: unset !important;
    min-height: unset !important;
    display: block !important;
}

/* ── Fond image ── */
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_image .post_thumb {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    border-radius: 0 !important;
    transition: transform 0.55s ease !important;
}
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_item:hover .categories_list_image .post_thumb,
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_item.ldp-active .categories_list_image .post_thumb {
    transform: scale(1.06) !important;
}

/* ── Dégradé bas pour lisibilité du texte ── */
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_image::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    inset: 35% 0 0 0 !important;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.68)) !important;
    pointer-events: none;
    border-radius: 0 0 20px 20px !important;
}

/* ── Supprimer les overlays du thème ── */
.elementor-element-fd2e823 .categories_list_style_8 .hover_link::before,
.elementor-element-fd2e823 .categories_list_style_8 .hover_link::after {
    display: none !important;
}

/* ── Bloc texte : en bas, invisible par défaut ── */
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_info_wrap {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 24px 22px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity 0.3s ease 0.18s, transform 0.3s ease 0.18s !important;
    visibility: hidden !important;
    max-height: none !important;
    height: auto !important;
    z-index: 2 !important;
    white-space: nowrap !important;
}

/* ── Bloc texte visible sur l'item actif/survolé ── */
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_item:hover .categories_list_info_wrap,
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_item.ldp-active .categories_list_info_wrap {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.elementor-element-fd2e823 .categories_list_style_8 .categories_list_info {
    position: static !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* ── Titre ── */
.elementor-element-fd2e823 .categories_list_style_8 h6.categories_list_title {
    margin: 0 0 10px !important;
    padding: 0 !important;
}
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_caption {
    display: block !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #01377b !important;
    background: rgba(255,255,255,0.55) !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    display: inline-block !important;
    margin-bottom: 3px;
}
.elementor-element-fd2e823 .categories_list_style_8 .categories_list_count {
    display: block !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-bottom: 14px;
}

/* ── Lien "Shop Now" — style Read More blanc ── */
.elementor-element-fd2e823 .categories_list_style_8 a.categories_link_more {
    position: relative !important;
    z-index: 3 !important;
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 0 2px !important;
    transition: border-color 0.25s ease !important;
}
.elementor-element-fd2e823 .categories_list_style_8 a.categories_link_more:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
    background: transparent !important;
}

/* ── Lien couvrant toute la carte ── */
.elementor-element-fd2e823 .categories_list_style_8 a.categories_list_link {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: transparent !important;
    display: block !important;
}

/* ── Responsive : empilement vertical sur mobile ── */
@media (max-width: 767px) {
    .elementor-element-fd2e823 .categories_list.categories_list_style_8 {
        flex-direction: column !important;
        height: auto !important;
    }
    .elementor-element-fd2e823 .categories_list_style_8 .categories_list_item {
        height: 220px !important;
        min-width: unset !important;
        flex: none !important;
        width: 100% !important;
    }
    .elementor-element-fd2e823 .categories_list_style_8 .categories_list_item.ldp-active .categories_list_info_wrap {
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
    }
}
