/**
 * Styles du bloc Showroom
 * Slider Splide avec effet hover élégant sur les items
 * Mobile first, hermétique, structure Bootstrap
 */

.blockShowroom {
    padding: 60px 0;
    overflow: hidden;
}

.blockShowroom__slider {
    position: relative;
}

.blockShowroom__slide {
    display: flex;
    justify-content: center;
}

.blockShowroom__item {
    width: 100%;
    margin: 0 auto;
    position: relative;
    opacity: 1 !important;
    transform: initial !important;
}

.blockShowroom__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 25;
    overflow: hidden;
}

.blockShowroom__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay avec effet au hover */
.blockShowroom__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    padding: 30px 24px;
    z-index: 2;
}

.blockShowroom__item:hover .blockShowroom__overlay {
    opacity: 1;
}

.blockShowroom__item:hover .blockShowroom__image {
    transform: scale(1.08);
}

.blockShowroom__content {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.blockShowroom__item:hover .blockShowroom__content {
    transform: translateY(0);
}

.blockShowroom__title {
    display: block;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    margin-top: 30px;
    font-size: 27.5px;
    @media (max-width: 1700px){
        font-size: 17px; /*Was 27.5px*/
    }
}

.blockShowroom__infos {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    p{
            font-size: 14px!important;
            &:last-child {
                margin-top: 10px;
            }

    }
    /* display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em; */
}

/* Flèches de navigation */
.blockShowroom__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 20px;
}

.blockShowroom__arrow {
    pointer-events: auto;
    background: transparent;
    border: none;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #222;
}

.blockShowroom__infos {
    padding: 20px;
}

.splide__arrow--next {
    right: 50px;
}

.splide__arrow--prev {
    left: 50px;
}

.blockShowroom__arrow:hover {
    background: transparent;
    transform: scale(1.1);
    box-shadow: none;
}

.blockShowroom__arrow:active {
    transform: scale(0.95);
}

.blockShowroom__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.blockShowroom__arrow img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Retourne la flèche de gauche */
.blockShowroom__arrow--flip img {
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 991px) {
    .blockShowroom {
        padding: 40px 0;
    }

    .blockShowroom__image-wrap {
        aspect-ratio: 4 / 5;
    }

    /* .blockShowroom__title et .blockShowroom__description gardent la taille desktop */

    .blockShowroom__overlay {
        padding: 20px 18px;
    }

    .blockShowroom__arrow {
        width: 48px;
        height: 48px;
    }

    .blockShowroom__arrows {
        padding: 0 12px;
    }
}

@media (max-width: 575px) {
    .blockShowroom {
        padding: 30px 0;
    }

    .blockShowroom__image-wrap {
        aspect-ratio: 3 / 4;
    }

    .blockShowroom__title {
        margin-bottom: 8px;
    }

    .blockShowroom__description {
        line-height: 1.4;
    }

    .blockShowroom__overlay {
        padding: 16px;
    }

    .blockShowroom__arrow {
        width: 42px;
        height: 42px;
    }

    .blockShowroom__arrow svg {
        width: 16px;
        height: 16px;
    }

    .blockShowroom__arrows {
        padding: 0 8px;
    }
}

/* Splide overrides pour ce bloc */
.blockShowroom .splide__track {
    overflow: visible;
}

.blockShowroom .splide__slide {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.blockShowroom .splide__slide.is-active {
    opacity: 1;
}