/* ============================================================
   MDTP Showcase Block - Style Frontend
   ============================================================ */

/* ---- Bloc wrapper ----------------------------------------- */
.mdtp-sc {
    display            : flex;
    align-items        : stretch;
    width              : 100%;
    min-height         : 400px;
    background-size    : cover;
    background-position: center;
    transition         : background-image .5s ease;
    box-sizing         : border-box;
    position           : relative;
}

/* ---- Colonne gauche --------------------------------------- */
.mdtp-sc__left {
    display        : flex;
    align-items    : center;
    padding        : 48px 40px;
    box-sizing     : border-box;
    position       : relative;
    z-index        : 2;
    /* Fond semi-transparent pour lisibilite sur image changeante */
    background     : rgba( 0, 0, 0, 0.25 );
    backdrop-filter: blur( 2px );
}

.mdtp-sc__left-inner {
    width: 100%;
}

/* Titre */
.mdtp-sc__title {
    margin     : 0 0 16px;
    line-height: 1.2;
    transition : opacity .3s ease;
}

/* Description */
.mdtp-sc__desc {
    margin     : 0 0 24px;
    line-height: 1.7;
    font-size  : 15px;
    transition : opacity .3s ease;
}

/* Bouton CTA */
.mdtp-sc__cta {
    display        : inline-block;
    padding        : 12px 28px;
    background     : transparent;
    border         : 2px solid currentColor;
    border-radius  : 4px;
    font-weight    : 700;
    font-size      : 14px;
    text-decoration: none;
    transition     : background .25s ease, color .25s ease;
    color          : inherit;
}

.mdtp-sc__cta:hover {
    background: rgba( 255, 255, 255, 0.15 );
}

/* Animation de transition contenu */
.mdtp-sc--transitioning .mdtp-sc__title,
.mdtp-sc--transitioning .mdtp-sc__desc,
.mdtp-sc--transitioning .mdtp-sc__cta {
    opacity: 0;
    transition: opacity .2s ease;
}

/* ---- Colonne droite (carrousel) --------------------------- */
.mdtp-sc__right {
    display       : flex;
    flex-direction: column;
    position      : relative;
    z-index       : 2;
}

/* ---- Slick wrapper ---------------------------------------- */
.mdtp-sc__carousel {
    flex       : 1;
    overflow   : hidden;
    position   : relative;
}

/* Override Slick pour occuper toute la hauteur */
.mdtp-sc__carousel .slick-list,
.mdtp-sc__carousel .slick-track,
.mdtp-sc__carousel .slick-slide,
.mdtp-sc__carousel .slick-slide > div {
    height: 100%;
}

/* ---- Slide individuel ------------------------------------- */
.mdtp-sc__slide {
    position           : relative;
    background-size    : cover;
    background-position: center;
    display            : flex !important;
    align-items        : flex-end;
    cursor             : pointer;
    box-sizing         : border-box;
    transition         : transform .2s ease;
}

.mdtp-sc__slide:hover {
    transform: scale( 1.01 );
}

/* Overlay du slide */
.mdtp-sc__slide-overlay {
    position : absolute;
    inset    : 0;
    pointer-events: none;
}

/* Contenu texte du slide (titre en bas a gauche) */
.mdtp-sc__slide-content {
    position : relative;
    z-index  : 2;
    padding  : 16px 20px;
    width    : 100%;
}

.mdtp-sc__slide-title {
    display    : block;
    font-weight: 700;
    font-size  : 16px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba( 0, 0, 0, .5 );
}

/* ---- Zone fleches (sous le carrousel) --------------------- */
.mdtp-sc__carousel-arrows {
    display        : flex;
    justify-content: center;
    align-items    : center;
    gap            : 12px;
    padding        : 12px 0;
    background     : rgba( 0, 0, 0, 0.2 );
}

/* Fleches Slick (injectees via config PHP) */
.mdtp-sc__arrow {
    display        : flex;
    align-items    : center;
    justify-content: center;
    width          : 38px;
    height         : 38px;
    border-radius  : 50%;
    border         : 2px solid rgba( 255, 255, 255, 0.6 );
    background     : rgba( 0, 0, 0, 0.3 );
    color          : #ffffff;
    cursor         : pointer;
    transition     : background .2s ease, border-color .2s ease;
    padding        : 0;
    line-height    : 1;
}

.mdtp-sc__arrow:hover {
    background  : rgba( 255, 255, 255, 0.2 );
    border-color: #ffffff;
}

.mdtp-sc__arrow svg {
    width : 18px;
    height: 18px;
    display: block;
}

/* ---- Responsive ------------------------------------------- */
@media ( max-width: 768px ) {
    .mdtp-sc {
        flex-direction: column;
    }

    .mdtp-sc__left,
    .mdtp-sc__right {
        flex-basis: 100% !important;
    }

    .mdtp-sc__left {
        padding: 32px 20px;
        order  : 2;
    }

    .mdtp-sc__right {
        order: 1;
    }
}
