body,
* {
    font-family: 'Montserrat', sans-serif;
}

p {
    line-height: 1.5;
}

/** INTRO **/
.intro {
    padding-left: 5vw;
    padding-right: 5vw;
}

.number {
    font-size: 3.5rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media screen and (max-width: 840px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 3rem;
    }
}

/** TRUST **/
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media screen and (max-width: 840px) {
    .trust-grid {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 3rem;
    }
}

/** DOSSIER **/
.dossier-image-container img {
    height: 13.25rem;
    width: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .dossier-image-container img {
        height: 25rem;
    }
}

/** NEWS **/
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.5rem;
    row-gap: 1rem;
}

.podcasts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1.5rem;
    row-gap: 2rem;
}

@media screen and (max-width: 1240px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 3rem;
    }

    .podcasts-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 3rem;
    }
}

@media screen and (max-width: 840px) {
    .articles-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .podcasts-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.article-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.article-image-container {
    position: relative;
    overflow: hidden;
    height: 18rem;
}

.article-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    /* Adjust this value to control how high the gradient goes */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    /* This ensures the overlay doesn't block clicks */
    z-index: 1;
    /* This places the gradient above the image */
}

.article-image {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-date {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--dark-blue);
    padding: 1.75rem 1.25rem;
    border-radius: 0 10px 0 0;
}

.article-title {
    position: absolute;
    bottom: 2rem;
    left: 1.25rem;
    margin-right: 1rem;
    z-index: 2;
}

/** HERO BANNER **/
.hero-banner {
    background-image: url("../images/bg_actualites-1ed83fe4e6f2ccb727c2e854e746a683.jpg");
    height: 15.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/** NEWS **/
.category-filter {
    display: flex;
    justify-content: center;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    display: inline-block;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: var(--light-blue);
    background-color: var(--white);
    color: var(--light-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

.filter-item:hover {
    color: var(--white);
    background-color: var(--light-blue);
}

.filter-item.active {
    color: var(--white);
    background-color: var(--light-blue);
}

/** POST **/
.post-article {
    position: relative;
    overflow: hidden;
}

.post-image {
    float: left;
    width: 40%;
    max-width: 40rem;
    min-width: 20rem;
    max-height: 20rem;
    object-fit: cover;
    margin: 0 2.5rem 2rem 0;
}

@media screen and (max-width: 1024px) {
    .post-image {
        float: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 0 2rem 0;
    }
}


/** KEEN SLIDER **/
.keen-slider:not([data-keen-slider-disabled]) {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    align-content: flex-start;
    display: flex;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -khtml-user-select: none;
    width: 100%
}

.keen-slider:not([data-keen-slider-disabled]) .keen-slider__slide {
    min-height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%
}

.keen-slider:not([data-keen-slider-disabled])[data-keen-slider-reverse] {
    flex-direction: row-reverse
}

.keen-slider:not([data-keen-slider-disabled])[data-keen-slider-v] {
    flex-wrap: wrap
}

.dossier {
    position: relative;
}

.dossier {
    position: relative;
}

.dossier-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-blue);
    color: var(--white);
    font-weight: 400;

    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 2.5rem .25rem;
    line-height: 1;
}

/*.dossier-nav svg {*/
/*    width: 2.5rem;*/
/*    height: 2.5rem;*/
/*}*/

.dossier-nav-prev {
    left: 0;
}

.dossier-nav-next {
    right: 0;
}

/** POPULAR SEARCH **/
.popular-search-container {
    column-gap: 1.25rem;
    row-gap: 1.25rem;
}

.search-item {
    border-radius: 10px;
    padding: .75rem 1.25rem;
}


/** NEWSLETTER **/
.container-newsletter {
    column-gap: clamp(4rem, 7vw, 9rem);
}

.newsletter-text {
    flex: 1.5;
}

.newsletter-text p {
    line-height: 1.1;
}

.newsletter-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-form form {
    display: flex;
}

.newsletter-email {
    width: 100%;
}

.newsletter input[type="email"] {
    width: 100%;
    height: 2.5rem;
    border-radius: 5px 0 0 5px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border: none;
}

.newsletter input[type="submit"] {
    background: var(--dark-blue);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    height: 2.5rem;
    border-radius: 0 5px 5px 0;
    border: none;
    color: var(--white);
    font-weight: 600;
}

@media screen and (max-width: 1240px) {
    .container-newsletter {
        flex-direction: column;
        max-width: 700px;
    }

    .container-newsletter {
        row-gap: 1.75rem;
    }

    .newsletter-text h2,
    .newsletter-text p {
        text-align: center;
    }
}

/** BUDGET APP **/
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.app-grid .app-cover {
    width: 100%;
    height: 330px;
    max-width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.app-links img {
    width: 11rem;
    max-width: 100%;
}

@media (max-width: 1240px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-links {
        gap: 5%;
        justify-content: flex-start !important;
    }
}

@media (max-width: 840px) {
    .app-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/** BUTTON **/
.btn-light-blue {
    color: var(--light-blue);
    border-radius: 10px;
    border: 1px solid var(--light-blue);
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-light-blue:hover,
.btn-light-blue:active {
    color: var(--white);
    background-color: var(--light-blue);
}

/** BUTTON **/
.btn-dark-blue {
    color: var(--white);
    background: var(--dark-blue);
    border-radius: 10px;
    border: 1px solid var(--dark-blue);
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-dark-blue:hover,
.btn-dark-blue:active {
    color: var(--dark-blue);
    background-color: var(--white);
}

/** FOOTER **/
.pre-footer {
    gap: clamp(3.5rem, 15vw, 11rem);
    border-top: 2px solid var(--light-grey);
}

.logo-uacaz {
    max-width: 13rem;
}

.logo-prefet {
    width: 8.5rem;
}

.footer-menu li:not(:last-child)::after {
    content: "-";
    margin-left: clamp(.9rem, 1.5vw, 1.3rem);
    margin-right: clamp(.9rem, 1.5vw, 1.3rem);
}

/*.footer-item {*/
/*    font-size: clamp(.9rem, 1.25vw, 1.2rem);*/
/*}*/

.footer-item {
    font-size: clamp(1.2rem, 1.9vw, 1.3rem);
}

.copyright {
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 1240px) {

    /*footer {*/
    /*    position: relative;*/
    /*    padding-bottom: calc(var(--spacer) * 7);*/
    /*}*/
    .footer {
        flex-direction: column;
        row-gap: 3rem;
    }

    .footer-menu {
        flex-wrap: wrap;
    }

    /*.footer-item {*/
    /*    font-size: clamp(1.2rem, 1.9vw, 1.5rem);*/
    /*}*/

    /*.copyright {*/
    /*    position: absolute;*/
    /*    bottom: 3rem;*/
    /*    left: 50%;*/
    /*    transform: translateX(-50%);*/
    /*    width: 100%;*/
    /*}*/
}

@media screen and (max-width: 1024px) {
    .pre-footer {
        flex-direction: column;
        row-gap: 3rem;
    }
}

@media screen and (max-width: 970px) {
    .copyright {
        flex-direction: column;
        row-gap: .4rem;
    }

    .copyright span {
        display: none;
    }

    .footer-menu {
        flex-direction: column;
        row-gap: 1.5rem;
        text-align: center;
    }

    .footer-menu li:not(:last-child)::after {
        content: "";
        margin-left: 0;
        margin-right: 0;
    }
}

/** FORUM **/
.message-responses {
    padding-left: 2rem;
    border-left: 1px solid #CFCACA;
}

.forum-message:not(:last-child) {
    padding-bottom: 1rem;
    border-bottom: 1px solid #CFCACA;
}