.blog-list-container {
    width: 90%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;

}

/* Chaque bloc a la même taille */
.blog-item {
    width: 300px; /* fixe ou en % si tu veux responsive */
    height: 400px;
    
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.blog-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Lien pour que tout soit cliquable */
.blog-item-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Miniature qui se crop dans son conteneur */
.blog-thumbnail {
    flex: 1 1 auto;
    overflow: hidden;
    height: 60%; /* ou autre valeur selon ta préférence */
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important : crop + remplissage */
    display: block;
}

/* Titre bien en bas */
.blog-title {
    flex-shrink: 0;
    height: 2.8em; /* Ajuste selon la hauteur max souhaitée */
    font-size: 1.1rem;
    text-align: center;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.4;
    padding: 0 0.5em;
    text-align: center;
}

.contact-blog {
    margin-top: 1rem;
}

.contact-blog-link {
    text-decoration: none;
    color: whitesmoke;
}

/* version mobile */

@media (max-width: 862px) { 
.blog-item {
    width: 300px; /* fixe ou en % si tu veux responsive */
    height: 300px;
    
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
}
