/**
 * Block Produits - Styles
 *
 * @package MediaPilote
 */

.block-produits {
    padding: 200px 0 120px;
    background-color: #ffffff;
    position: relative;
}

@media (max-width: 1200px) {
    .block-produits {
        padding: 50px 0;
    }
    .block-produits__left {
        margin-bottom: 50px;
    }
}

@media (min-width: 1201px){
    .block-produits__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 57px;
        position: relative;
    }
    
}
/* Section gauche */
.block-produits__left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 50px;
    padding-left: 5%;
    padding-bottom: 11px;
    background-color: #ffffff;
    z-index: 2;
    position: relative;
}

.block-produits__header {
    margin-bottom: 25px;
}

.block-produits__title {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    font-size: 90px;
    line-height: 1;
    color: #1d1d1b;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

.block-produits__underline {
    height: 1px;
    width: 100%;
    position: relative;
    margin-top: 50px;
    margin-bottom: 50px;
}

@media (max-width: 1000px) {
    .block-produits__underline {
        display: none;
    }

    .block-produits__title {
        margin-bottom: 20px;
    }
}

.block-produits__underline svg {
    position: absolute;
    bottom: -0.5px;
    left: 0;
    right: 0;
    top: -0.5px;
    width: 100%;
    height: 100%;
}

/* Actions (CTA + Navigation) */
.block-produits__actions {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.block-produits__cta {
    background-color: #ffe04b;
    color: #1d1d1b;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 30px;
    border-radius: 60px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.block-produits__cta:hover {
    background-color: #e6c942;
    color: #1d1d1b;
    text-decoration: none;
    transform: translateY(-2px);
}

.block-produits__navigation {
    display: flex;
    gap: 20px;
    align-items: center;
}

.block-produits__nav-btn {
    background-color: #ffe04b;
    border: none;
    border-radius: 60px;
    width: 68px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 30px 18px;
    position: relative;
    z-index: 10;
    /* Amélioration pour les écrans tactiles */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.block-produits__nav-btn:hover {
    background-color: #e6c942;
    transform: translateY(-2px);
}

.block-produits__nav-btn:active {
    transform: translateY(0);
    background-color: #d4b83a;
}

.block-produits__nav-btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.block-produits__nav-btn.disabled:hover {
    background-color: #cccccc;
    transform: none;
}

/* .block-produits__nav-btn--prev svg {
    transform: rotate(180deg);
} */

.block-produits__nav-btn svg {
    width: 22.167px;
    height: 22.167px;
}

/* Section droite */
.block-produits__right {
    /* flex: 1;
    /* display: flex; */
    gap: 20px;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.block-produits__right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 50px;
    /* background: linear-gradient(to right, #ffffff, transparent); */
    z-index: 2;
}

/* Slider */
.block-produits__slider {
    display: flex;
    gap: 20px;
}

.block-produits__slider.owl-carousel {
    display: block;
}

/* Items du slider */
.block-produits__item {
    flex: 0 0 297px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.block-produits__item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.block-produits__item-image {
    /* background-color: #f6f6f1; */
    width: 297px;
    height: 297px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: end;
}

.block-produits__item-image__background {
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 100%;
    /* Utilisez 100% au lieu de 400px */
    background-color: #f6f6f1;
    z-index: -1;
    /* Changez de -1 à 1 pour être visible */
    transition: max-height 0.5s ease;
    /* Spécifiez max-height explicitement */
    width: 100%;
    height: 100%;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.block-produits__item:hover .block-produits__item-image__background {
    max-height: 70%;
    width: 100%;
    height: 100%;
    /* Supprimez top: initial!important et bottom: 0!important */
    transition: max-height 0.5s ease;
    /* Spécifiez max-height explicitement */

}

.block-produits__item-bg {
    position: absolute;
    top: -40px;
    left: 0.5px;
    width: 295px;
    height: 377px;
    background-size: 152.88% 98.66%;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    /* background-color: #f6f6f1; */
}

.block-produits__item-bg:hover {
    transform: scale(1.2);
    transition: transform 0.5s ease;
}

.block-produits__item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.block-produits__item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 15px 25px 25px;
    border-radius: 0 0 25px 25px;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.5s ease;
}

.block-produits__item:hover{
    .block-produits__item-footer {
        background-color: #ffe04b;
        transition: background-color 0.5s ease;
    }
    .block-produits__item-arrow{
        background-color: white;
        transition: background-color 0.5s ease;
    }
    
}


.block-produits__item-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1;
    color: #1d1d1b;
    margin: 0;
    width: 110px;
}

.block-produits__item-arrow {
    background-color: #ffe04b;
    border-radius: 60px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s ease;
}

.block-produits__item-arrow svg {
    width: 13px;
    height: 13px;
}

/* État vide */
.block-produits__no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 1200px) {
    .block-produits__content {
        flex-direction: column;
    }

    .block-produits__left {
        padding: 0 20px;
        text-align: center;
    }

    .block-produits__title {
        font-size: 60px;
    }

    .block-produits__actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Amélioration de la navigation sur tablette */
    .block-produits__navigation {
        gap: 15px;
    }

    .block-produits__nav-btn {
        width: 60px;
        height: 60px;
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    .block-produits {
        padding: 100px 0 60px;
    }

    .block-produits__title {
        font-size: 40px;
    }

    .block-produits__item {
        flex: 0 0 250px;
    }

    .block-produits__item-image {
        width: 250px;
        height: 250px;
    }

    .block-produits__item-bg {
        width: 250px;
        height: 320px;
        top: -30px;
    }
}

@media (max-width: 480px) {
    .block-produits__title {
        font-size: 32px;
    }

    .block-produits__cta {
        padding: 20px;
        height: auto;
        font-size: 14px;
    }

    .block-produits__nav-btn {
        width: 50px;
        height: 50px;
        padding: 15px;
        /* Amélioration pour les écrans tactiles */
        min-height: 44px;
        min-width: 44px;
    }

    .block-produits__item {
        flex: 0 0 200px;
    }

    .block-produits__item-image {
        width: 200px;
        height: 200px;
    }

    .block-produits__item-bg {
        width: 200px;
        height: 260px;
        top: -25px;
    }

    .block-produits__item-title {
        font-size: 18px;
        width: auto;
    }

    /* Amélioration de l'expérience tactile sur mobile */
    .block-produits__slider {
        /* Permettre le scroll horizontal naturel sur mobile */
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }

    .block-produits__slider.touching {
        /* Désactiver temporairement le carousel pendant le touch */
        pointer-events: none;
    }
}

