.teaser {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 24px 0;
    justify-content: center;
}

.teaser__item {
    position: relative;
    text-align: left;
    width: 100%;
    z-index: 2;
}

@media (min-width: 576px) {
    .teaser__item {
        padding: 0 12px;
        width: 50%;
    }
}

@media (min-width: 992px) {
    .teaser__item {
        width: 33.3333333333%;
    }
}

@media (min-width: 1200px) {
    .teaser__item {
        width: 25%;
    }
}

.teaser__item.nopostsfound {
    justify-self: center;
    text-align: center;
    width: 100%;
}

.filter-button{background: #FFF;
  margin: 5px;
  border: 1px solid #5078f0;
  color: var(--dark);
  font-family: var(--bold);
  border-radius: 5px;
  padding: 5px 10px;}

  .filter-button:hover {
    background: #5078f0;
    color: #FFF;
    border: 1px solid #5078f0;
    cursor: pointer;
}

.filter-button.active {
    background: #5078f0;
    color: #FFF;
    border: 1px solid #5078f0;
}
#category-filter-form{
    margin-bottom:20px;
}

.teaser__link,
.teaser__title,
.teaser__date,
.teaser__excerpt {
    color: #141c2d;
}

.teaser__link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: var(--white);
    padding: 8px;
    border-radius: var(--border-radius);
    text-decoration: none;
}

.teaser__image {
    overflow: hidden;
    width: 100%;
    max-height: 220px;
}

.teaser__image img {
    display: block;
    object-fit: cover;
    transition: all 0.3s;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

.teaser__link:hover .teaser__image img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.teaser__link:hover p {
    color: #50a0f0;
}

.teaser__link:hover .teaser__title {
    color: #28385a;
}

.teaser__link:hover .teaser__more {
    background-color: var(--main-color2);
    outline: 4px solid rgba(80, 120, 240, 0.33);
    color: var(--white) !important;
}

.teaser__text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 20px;
    justify-content: space-between;
}

.teaser__text .cta {
    margin-left: auto !important;
    font-size: 15px !important;
    line-height: 25px !important;
    padding: 10px 19px !important;
}

.teaser__text .teaser__date,
.teaser__text .en-ligne,
.teaser__text .not-en-ligne {
    &:before {
        width: 20px;
        height: 22px;
        display: inline-block;
        background-repeat: no-repeat;
        background-size: contain;
    }
}

.teaser__text .teaser__date {
    position: relative;
    margin-bottom: 0px;
    display: flex;
    gap: 10px;
    color: var(--main-color4);

    &:before {
        content: '';
        background-image: url('../../img/calendar.svg');
    }
}

.teaser__text .en-ligne {
    position: relative;
    display: flex;
    gap: 10px;
    color: var(--main-color3);

    &:before {
        content: '';
        background-image: url('../../img/online.svg');
    }
}

.teaser__text .not-en-ligne {
    position: relative;
    display: flex;
    gap: 10px;
    color: var(--main-color3);

    &:before {
        content: '';
        background-image: url('../../img/on_site.svg');
    }
}

.teaser__text p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.teaser__item:not(.emploi) {
    .teaser__title {
        border-bottom: 1px solid rgba(60, 40, 80, 0.08);
    }
}

.teaser__title {
    color: var(--dark);
    font-family: var(--bold);
    padding-bottom: 15px;
    transition: all 0.3s;
    margin-bottom: 15px;
}


.cpt {
    position: relative;
    text-align: center;

    h2 {
        margin-bottom: 50px;
    }

    .section__btn {
        margin-top: 60px;
        margin-left: auto;
        margin-right: auto;
    }
}

.cpt:not(.c_white) h2 {
    color: var(--white);
}

.cpt .teaser {
    padding: 0;
    position: relative;
    z-index: 2;
}

.cpt .teaser-slider .slick-track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.cpt .teaser-slider .slick-slide {
    float: none;
    height: auto;
}

.cpt .teaser-slider .teaser__item {
    padding: 15px;
}

.cpt[data-color="#50a0f0"] h4 {
    color: #141c2d;
}