/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */


/* Styles pour la grille d'articles */
.posts-grid ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wp-block-post-featured-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}

.wp-block-post-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.wp-block-post-terms {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.wp-block-post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
}


/* Carte individuelle */
.posts-grid .card {
    background-color: red;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    flex-basis: 30%; /* Chaque carte occupe 30% de la largeur du conteneur */
    margin-bottom: 20px; /* Ajoute un espacement vertical */
}

/* Effet au survol de la carte */
.card:hover {
    transform: translateY(-5px);
}

/* Titre de l'article */
.card .wp-block-post-title {
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: bold;
    margin: 10px 0;
}

/* Extrait de l'article */
.card .wp-block-post-excerpt {
    font-size: 1rem;
    color: #555;
}

/* Tags de l'article */
.card .tags-list {
    font-size: 0.9rem;
    color: #777;
}
