/**
 * Bloc Image / Texte - Styles
 * 
 * @package MediaPilote
 * @since 1.0.0
 */

.block-image-texte {
    width: 100%;
    overflow: hidden;

    ul {
        list-style: none;
        /* supprime les bullets par défaut */
        padding-left: .5em;
    }

    ul li::before {
        content: '•';
        /* la puce */
        font-size: 15px;
        /* taille de la puce */
        display: inline-block;
        width: 1em;
        /* espace réservé */
        text-align: center;
        /* centre la puce dans son espace */
        margin-right: 0.5em;
        /* espace entre puce et texte */
    }

    h2 {
        color: #546126;
        font-family: Outfit;
        font-size: 35px !important;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 6px;
    }

    h3 {
        color: #364500;
        /* Sous sous titre */
        font-family: Outfit;
        font-size: 20px !important;
        margin-top: 30px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 4px;
    }

    h2,
    h3 {
        margin-bottom: 20px;
    }
}

.block-image-texte .container-fluid {
    padding: 0;
}

.block-image-texte .row {
    margin: 0;
}

/* === COLONNE IMAGE === */
.block-image-texte .image-wrapper {
    position: relative;
    padding: 0;
    background-color: #8b8b8b;
}

.block-image-texte .image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 640px;
}

.block-image-texte .block-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.block-image-texte .image-border {
    position: absolute;
    top: 80px;
    left: 80px;
    right: 80px;
    bottom: 80px;
    border: 8px solid #dcdc01;
    pointer-events: none;
    z-index: 1;
}

/* === COLONNE CONTENU === */
.block-image-texte .content-wrapper {
    padding: 80px;
}

.block-image-texte .content-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.block-image-texte .text-content {
    width: 100%;
}

/* Scrollbar uniquement au-dessus de 992px */
@media (min-width: 992px) {
    .block-image-texte .text-content {
        max-height: 610px;
        overflow-y: auto;
        padding-right: 20px;
    }

    .block-image-texte .text-content {
        max-height: 500px;
    }
}

/* Scrollbar personnalisée */
@media (min-width: 992px) {
    .block-image-texte .text-content::-webkit-scrollbar {
        width: 8px;
    }

    .block-image-texte .text-content::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 4px;
    }

    .block-image-texte .text-content::-webkit-scrollbar-thumb {
        background: #b0b0b0;
        border-radius: 4px;
    }

    .block-image-texte .text-content::-webkit-scrollbar-thumb:hover {
        background: #909090;
    }

    /* Firefox scrollbar */
    .block-image-texte .text-content {
        scrollbar-width: thin;
        scrollbar-color: #b0b0b0 #e0e0e0;
    }
}

/* === TYPOGRAPHIE === */
.block-image-texte .block-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: normal;
    letter-spacing: 3px;
    color: #546126;
    margin: 0 0 20px 0;
}

.block-image-texte .block-description {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: normal;
    letter-spacing: 1.6px;
    color: #364500;
}

.block-image-texte .block-description p {
    font-size: 16px;
    line-height: normal;
    letter-spacing: 1.6px;
    margin-bottom: 16px;
}

.block-image-texte .block-description p:last-child {
    margin-bottom: 0;
}

.block-image-texte .block-description strong {
    font-weight: 700;
    color: #546126;
}

.block-image-texte .block-description ul,
.block-image-texte .block-description ol {
    padding: 0;
}

.block-image-texte .block-description li {
    margin-bottom: 5px;
    font-size: 16px;
    letter-spacing: 1.6px;
}

.block-image-texte .block-description li:last-child {
    margin-bottom: 0;
}

/* === BOUTON === */
.block-image-texte .block-cta {
    margin-top: 30px;
}

.block-image-texte .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #dcdc01;
    color: #364500;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1.6px;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.block-image-texte .btn:hover {
    background-color: #546126;
    color: #ffffff;
}

/* === POSITION IMAGE === */
/* Image à gauche (par défaut) */
.block-image-texte.image-left .image-wrapper {
    order: 1;
}

.block-image-texte.image-left .content-wrapper {
    order: 2;
}

/* Image à droite */
.block-image-texte.image-right .image-wrapper {
    order: 2;
}

.block-image-texte.image-right .content-wrapper {
    order: 1;
}

/* === FORMAT IMAGE === */
/* Format carré */
@media (min-width: 1280px) {
    .block-image-texte.format-square .image-container {
        min-height: 640px;
    }
}


/* Format adapté au texte */
.block-image-texte.format-adapted .image-container {
    height: 100%;
    min-height: 450px;
}

/* === TAILLE IMAGE === */
/* Recouvrir (cover) */
.block-image-texte.size-cover {

    @media (min-width: 1280px) {

        .image-wrapper,
        .image-container {
            height: 100%;
            height: -webkit-fill-available;
            height: -moz-available;
            height: fill-available;
            height: stretch;
        }
    }

    .block-image {
        object-fit: cover;
    }
}

/* Contenir (contain) */
.block-image-texte.size-contain .block-image {
    object-fit: contain;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .block-image-texte .content-wrapper {
        padding: 40px;
    }

    .block-image-texte .image-container {
        min-height: 450px;
    }

    .block-image-texte .image-border {
        top: 40px;
        left: 40px;
        right: 40px;
        bottom: 40px;
    }



    .block-image-texte .block-title {
        font-size: 5vw;
    }

    /* Forcer l'ordre vertical en mobile */
    .block-image-texte.image-right .image-wrapper {
        order: 1;
    }

    .block-image-texte.icontent-wrapper {
        padding: 30px 20px;
    }

    .block-image-texte .image-container {
        min-height: 350px;
    }

    .block-image-texte .image-border {
        top: 30px;
        left: 30px;
        right: 30px;

        .block-image-texte.image-wrapper,
        .block-image-texte .content-wrapper {
            padding: 30px 20px;
        }

        .block-image-texte .image-container {
            height: 350px;
        }

        .block-image-texte .text-content {
            max-height: 400px;
            padding-right: 15px;
        }

        .block-image-texte .block-title {
            font-size: 6vw;
            letter-spacing: 2px;
        }

        .block-image-texte .block-description {
            font-size: 14px;
            letter-spacing: 1.2px;
        }

        .block-image-texte .block-description p,
        .block-image-texte .block-description li {
            font-size: 14px;
            letter-spacing: 1.2px;
        }
    }


}

    @media (max-width: 480px) {

        /* .block-image-texte .image-wrapper,
        .block-image-texte .content-wrapper {
            padding: 20px 15px;
        } */

        .block-image-texte .image-container {
            height: 280px;
            aspect-ratio: 1/1;
        }

        /* 
        .block-image-texte .text-content {
            max-height: 350px;
        } */

        .block-image-texte .block-title {
            font-size: 23px!important;
            letter-spacing: 1.5px;
            margin-bottom: 15px;
        }

        .block-image-texte .btn {
            padding: 10px 20px;
            font-size: 14px;
        }
    }