.flex_layout.branche_content_switch{
    overflow: clip;
}

.flex_layout.branche_content_switch .flex_layout_wrapper{
    padding-bottom: 0 !important;
}

.flex_layout.branche_content_switch .section_heading{
    grid-row: 1/2;
}

.flex_layout.branche_content_switch .filter{
    grid-row: 1/2;
    grid-column: -1/-3;
    margin-block: 2.5rem;

    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1rem;
}

.flex_layout.branche_content_switch .filter button{
    --border-color: var(--mahogany);
    --background: transparent;
    --color: var(--mahogany);

    padding: .75rem 1.5rem;
    border-radius: 3rem;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    color: var(--color);
    line-height: 1.5;

    transition: background-color 300ms ease-in-out,
    color 300ms ease-in-out,
    border-color 300ms ease-in-out;

}

.flex_layout.branche_content_switch .filter button.active,
.flex_layout.branche_content_switch .filter button:is(:hover,:active,:focus) {
    --border-color: var(--chili);
    --background: var(--chili);
    --color: var(--white);
}

.flex_layout.branche_content_switch .swiper{
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
}

.flex_layout.branche_content_switch .swiper-slide{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1.5rem;
}


.flex_layout.branche_content_switch .swiper-slide .image_wrapper{
    border-radius: 1.5rem;
    aspect-ratio: 14/9;
    overflow: clip;
    position: relative;
}

.flex_layout.branche_content_switch .swiper-slide .image_wrapper img{
    position: absolute;
    object-fit: cover;
    object-position: center;
    width: 100%; height: 100%;
}

.flex_layout.branche_content_switch .swiper-slide .content_wrapper{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--mahogany);
    color: var(--ivory);
    border-radius: 1.5rem;
    padding: 3.5rem;
}

.flex_layout.branche_content_switch .swiper-slide .title{
    text-transform: uppercase;
    letter-spacing: -.04em;
    opacity: .75;
}

.flex_layout.branche_content_switch .swiper-slide .content{
    font-size: var(--heading-4);
    line-height: 1.4;
    letter-spacing: -.04em;
    font-weight: var(--body-semibold);
}

.flex_layout.branche_content_switch .swiper-slide .pk_button{
    margin-top: auto;
}



@media only screen and (max-width: 1024px){
    .flex_layout.branche_content_switch .filter{
        grid-column: 1 / -1;
        grid-row: 2/3;
        margin-top: 0;
        justify-content: start;
    }

    .flex_layout.branche_content_switch .swiper-slide{
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .flex_layout.branche_content_switch .swiper-slide .image_wrapper{
        order: 1;
    }

    .flex_layout.branche_content_switch .swiper-slide .content_wrapper{
        order: 2;
        padding: 1.5rem;
    }
}