/* Bloc image / texte */
.block-image-texte {
    padding: 60px 0;
    ul{
        padding-top: 10px;
    }
    li{
        margin-left: 15px;
    }
    p{
        padding-bottom: 10px;
    }
}

.block-image-texte--image-right .image{
    order: 2;
}

.block-image-texte .row {
    min-height: 403px;
}

.block-image-texte__image {
    height: 403px;
    border-radius: 0 20px 0 0;
    overflow: hidden;
    background: #d9d9d9;
    background-size: cover;
    background-position: center;
}

.block-image-texte__title{
    position: relative;
    display: flex;
    &::before{
        content: '';
        position: relative;
        width: 50px;
        height: 30px;
        background-image: url(../../images/crochet-red.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: left;
        display: block;
    }
}

.content-left .block-image-texte__content{
    @media (min-width: 992px){
        padding-left: 0;
        padding-right: 83px;
    }
}

.block-image-texte__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-image-texte__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    padding-left: 83px;
}

/* Position de l'image à droite */
.block-image-texte--image-right .row .col-6:first-child {
    order: 2;
}

.block-image-texte--image-right .row .col-6:last-child {
    order: 1;
}

/* Position de l'image à gauche (par défaut) */
.block-image-texte--image-left .row .col-6:first-child {
    order: 1;
}

.block-image-texte--image-left .row .col-6:last-child {
    order: 2;
}

.block-image-texte__title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-image-texte__icon {
    width: 14px;
    height: 27px;
    flex-shrink: 0;
    color: #000;
}

.block-image-texte__icon svg {
    width: 100%;
    height: 100%;
}

.block-image-texte__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.block-image-texte__description {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 27px;
    color: #000;
    margin: 0;
}

.block-image-texte__description p {
    margin: 0;
    font-size: 16px;
    line-height: 27px;
}

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

.block-image-texte__description h1,
.block-image-texte__description h2,
.block-image-texte__description h3,
.block-image-texte__description h4,
.block-image-texte__description h5,
.block-image-texte__description h6 {
    margin: 20px 0 10px 0;
    color: #000;
    font-family: 'Poppins', sans-serif;
}

.block-image-texte__description a {
    color: #be0000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.block-image-texte__description a:hover {
    border-bottom-color: #be0000;
}

.block-image-texte__button {
    margin-top: 20px;
}

.btn.btn-secondary {
    background: #be0000;
    color: white;
    padding: 10px 20px;
    border-radius: 0 20px 0 20px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn.btn-secondary:hover {
    background: #a00000;
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .block-image-texte .row {
        min-height: 300px;
    }
    
    .block-image-texte__image {
        height: 300px;
    }
    
    .block-image-texte__content {
        padding-left: 0;
        padding-bottom: 20px;

    }
}

@media (max-width: 992px) {
    .block-image-texte .image{
        order: 2!important;
    }
}


@media (max-width: 768px) {
    .block-image-texte {
        padding: 40px 0;
    }
    
    .block-image-texte .row {
        min-height: auto;
    }
    
    .block-image-texte__image {
        height: 250px;
        border-radius: 0 15px 0 0;
        margin-bottom: 30px;
    }
    
    .block-image-texte__content {
        padding-left: 0;
    }
    
    .block-image-texte__title {
        font-size: 20px;
        white-space: normal;
    }
    
    /* .block-image-texte__description {
        font-size: 14px;
        line-height: 24px;
    }
     */
    /* .block-image-texte__description p {
        font-size: 14px;
        line-height: 24px;
    } */
    
    /* Reset order on mobile */
    .block-image-texte--image-right .row .col-6:first-child,
    .block-image-texte--image-right .row .col-6:last-child,
    .block-image-texte--image-left .row .col-6:first-child,
    .block-image-texte--image-left .row .col-6:last-child {
        order: unset;
    }
}

@media (max-width: 480px) {
    .block-image-texte__image {
        height: 200px;
        margin-bottom: 20px;
    }
    
    .block-image-texte__title {
        font-size: 18px;
    }
    
    /* .block-image-texte__description {
        font-size: 13px;
        line-height: 22px;
    }
    
    .block-image-texte__description p {
        font-size: 13px;
        line-height: 22px;
    } */
    
    /* .btn.btn-secondary {
        font-size: 13px;
        padding: 8px 16px;
    } */
}
