body {
    
}

.posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 46px;
    justify-content: center;
}


.posts-grid article {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    max-width: 330px;
}

.posts-grid article > a {
    display: flex;
    color: var(--dark);
    height: 100%;
    flex-direction: column;
}

.posts-grid article .pre-title {
    display: flex;
    justify-content: space-between;

}

.posts-grid article .post-description {
    padding: 15px 17px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}


.posts-grid article .post-description h2 {
    font-size: clamp(16px,1.528vw,22px);
    margin: 15px 0;
    color: var(--gray-blue);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

}

 .posts-grid article .post-description .button-container {
    text-align: right;
    margin-top: 15px;
}

.posts-grid article .post-description .button-container .read-more-btn {
    font-size: 13px;
    padding: 5px 13px;
}

.posts-grid article .post-description .button-container .read-more-btn:hover{
    border: 2px solid var(--dark-sand);
}


.posts-grid article .pre-title .main-taxonomy {
    text-align: left;
    text-transform: uppercase;
    font-weight: 600;
    /* font-family: 'Poppins'; */
}

.posts-grid article .post-thumbnail {
    
    display: flex;
}

.posts-grid article .post-thumbnail img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 1.73;
}

 .posts-grid article .pre-title .post-date {
    text-align: right;
    color: #C5C5C5;
}

 .posts-grid article .post-excerpt {
    font-family: 'Inter regular';
    font-size: 12px;
    font-style: italic;
    flex: 1;
}

.blog .ajax-posts .pagination {
    justify-content: center;
}


.blog .ajax-posts .pagination .page-numbers {
    list-style: none;
    display: flex;
    padding: 0;
}

.blog .ajax-posts .pagination .page-numbers li {

}

.blog .ajax-posts .pagination .page-numbers li span, .blog .ajax-posts .pagination .page-numbers li a {
    display: inline-flex;
    padding: 20px;
    color: var(--dark);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    /* vertical-align: middle; */
    align-items: center;
    justify-content: center;
    
}

.blog .ajax-posts .pagination .page-numbers li span {
    background: var(--gray-blue);
    color: #FFF;
   
}

.blog .ajax-archive {
    padding-bottom: clamp(50px,4.167vw,60px);
}

/* ajax-filter */

.filters-univers {
    margin: auto;
}

.ajax-filters-univers, .ajax-filters-univers .slick-track {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* flex-wrap: wrap; */
    margin-bottom: clamp(20px,2.083vw,30px);
    padding: 0;

}



.ajax-filters-univers .filter-btn {
    color: var(--pastel-blue);
    font-family: 'Inter semibold';
    font-weight: 600;
    font-size: clamp(12px,1.042vw,15px);
    border: 2px solid;
    padding: 6px 12px;
    box-sizing: border-box;
    white-space: nowrap;
    border-radius: 25px;
    display: block;
    /* margin: 8px 12px; */
    transition: 0.5s;
    cursor: pointer;
    text-transform: uppercase;
}

.ajax-filters-univers .filter-btn:hover {
    color: var(--gray-blue);
    border: 2px solid var(--gray-blue);
}

.ajax-filters-sous-categorie, .ajax-filters-sous-categorie .slick-track {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* flex-wrap: wrap; */
    margin-bottom: clamp(20px,5.208vw,75px);
    gap: 35px;
    list-style: none;
    padding: 0;

}

.ajax-filters-sous-categorie li {
    font-size: clamp(12px,1.042vw,15px);
    cursor: pointer;
    font-family:'Inter extrabold';
    color: var(--pastel-blue);
    white-space: nowrap;
}

.ajax-filters-sous-categorie li:hover {
    color: var(--gray-blue);
}



/* ≥ 576px: 2 per row */
@media (min-width: 576px) {
   .posts-grid article {
        width: calc(50% - 23px);
        max-width: unset;
    }

    .posts-grid {
        justify-content: flex-start;
    }
}

/* ≥ 992px: 3 per row */
@media (min-width: 992px) {
   .posts-grid article {
        width: calc(33.333% - 31px);
    }
}


/*fiche article*/
.single-post .articles-content-edbn h2, .single-post .articles-content-edbn h3,
.single-post .articles-content-edbn h4, .single-post .articles-content-edbn h5
, .single-post .articles-content-edbn h6
{
    color: var(--gray-blue);
    font-family: 'Inter regular';
}

.single-post .articles-content-edbn h2 {
    font-family: 'Inter bold';
    font-size: clamp(25px,1.944vw,28px);
    color: var(--gray-blue);
}

.single-post .articles-content-edbn h2:not(:first-of-type), .single-post .articles-content-edbn .wp-block-columns {
    margin-top: clamp(30px,2.778vw,40px) !important;
}

.single-post .articles-content-edbn h3 { 
    font-size: clamp(18px,1.389vw,20px); 
}

.single-post .articles-content-edbn h2 ~ h3:not(:first-child), .single-post .articles-content-edbn h3 ~ h4:not(:first-child),  .single-post .articles-content-edbn h4 ~ h5:not(:first-child) {
    margin-top: 30px !important;
    margin-bottom: 5px !important;

} 

.single-post .articles-content-edbn h4, .single-post .articles-content-edbn h5, .single-post .articles-content-edbn h6 {
    font-size: 16px;
}

.single-post .articles-content-edbn img {
    border-radius: 16px;
}


.single-post .articles-content-edbn .wp-block-buttons .wp-block-button__link {
    background: var(--dark-sand);
    color: #FFF;
    font-family: 'Inter semibold';
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 25px;
    transition: 0.5s;
    font-size: 15px;
    margin: clamp(30px,3.125vw,45px) 0;
    border: 2px solid var(--dark-sand);
}

.single-post .articles-content-edbn .wp-block-buttons .wp-block-button__link:hover {
    background: transparent;
    color: var(--dark-sand);
    
}

.single-post *:target {
    scroll-margin-top: 120px; /* hauteur du header */
} 

.single-post .articles-content-edbn .wp-block-columns h2:first-child {
    margin-top: 0 !important;
}

.related-articles-edbn .related-articles-edbn-title h2 {
    font-size: clamp(25px,2.083vw,30px);
    color: var(--gray-blue);
    text-align: center;
    font-weight: 700;
    font-family: 'Playfair bold';
    margin-top: 35px;
}


.related-articles-edbn .related-articles-edbn-title h2 + a {
    font-family: 'Inter semibold';
    color: var(--pastel-blue);
    text-decoration: underline;
    font-size: clamp(14px,1.111vw,16px);
    text-transform: uppercase;
    display: block;
    width: fit-content;
    margin: auto;
    margin-top: 27px;
    margin-bottom: clamp(25px,3.472vw,50px);
}

.related-articles-edbn .related-articles-edbn-title h2 + a:hover {
    color: var(--gray-blue);

}

.related-articles-edbn .posts-grid {
    padding-bottom: clamp(40px,4.167vw,60px);
}



.custom-toc .custom-toc-title {
    font-family: 'Playfair bold';
    font-size: 20px;
    color: #595959;
    letter-spacing: 2px
} 

.custom-toc ul {
    padding: 0;
    list-style: none;
}

.custom-toc ul li{
    margin-top: 15px;
    
}

.custom-toc ul li a {
    color: #B8B8B8;
    font-family: 'Inter regular';
}

.custom-toc ul li a:active, .custom-toc ul li a:hover, .custom-toc ul li a:focus, .custom-toc ul li a.active {
    color: var(--pastel-blue);
    font-weight: bold;
    font-family: 'Inter bold'
}


.categorie-taxonomy-article {
    font-family: 'Inter semibold';
    text-transform: uppercase;
    
}
    



@media screen and (max-width:767px) {
    .categorie-taxonomy-article {
        color: var(--gray-blue);
        font-size: 15px;
        font-family: 'Inter bold';
        text-align: center;
        display: block;
        margin: auto;
        margin-top: 35px;
    }

    .single-post .articles-content-edbn img {
        aspect-ratio: 2.39;
        object-fit: cover;
    }
    
    .custom-toc {
        display: none;

    }
    .related-articles-edbn article {
        max-width: 250px;
        margin-right: 10px;
        height: auto;
    }

    .related-articles-edbn .slick-track {
        display: flex;
        padding: 5px 0;
    }

    .related-articles-edbn-content {
        max-width: unset !important;
        padding-right: 0 !important;
    }
}

@media screen and (min-width:768px) {
    .categorie-taxonomy-article {
        font-size: 25px;
        color: #FFFFFF;
       
    }
}