.blog header .container{
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}



.articles-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.actualites-page{
    padding-left: 125px;
    padding-right: 125px;
}

.actualites-page h1{
    margin: 0 auto 50px auto;
    background-color: var(--yellow-site);
    padding: 5px 10px;
    width: max-content;
}


/* 1. On force la card à utiliser toute la hauteur fournie par la Grille */
.post-preview {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
    /* AJOUTS : */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

/* 2. Le lien qui englobe tout doit aussi s'étirer */
.post-preview a {
    text-decoration: none;
    
    /* AJOUTS : */
    display: flex;
    flex-direction: column;
    flex: 1; /* Prend toute la place disponible dans .post-preview */
}

/* 3. On dit au conteneur de texte de "pousser" pour remplir le vide */
.post-preview .container-article {
    padding: 15px;
    background-color: white;
    
    /* AJOUTS : */
    flex-grow: 1; /* Occupe tout l'espace restant sous l'image */
    display: flex;       /* Optionnel : utile si tu veux aligner le bouton en bas */
    flex-direction: column; /* Optionnel */
}

.post-preview .post-thumbnail{
    width: 100%;
    height: 275px;
    position: relative;
    overflow: hidden;
}

.post-preview .post-thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-in-out;
}

.post-preview:hover img{
    transform: scale(1.1);
}


.post-preview .post-thumbnail::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(	29, 39, 49, 0.7);
    mix-blend-mode: multiply;
    z-index: 1;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.post-preview .post-thumbnail svg{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    z-index: 2;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.post-preview:hover .post-thumbnail::before,
.post-preview:hover .post-thumbnail svg {
    opacity: 1;
}


@media (max-width: 900px) {
    .actualites-page{
        padding-left: 25px;
        padding-right: 25px;
        background: none;
    }
}