/* Section des posts */
.PostList {
    background-color: #f9f9f9;
    padding: 40px;
    margin-top: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.PostList h2 {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Conteneur des posts */
.PostList .post-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Article individuel */
.PostList .post-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.PostList .post-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Titre de l'article */
.PostList .post-item h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.PostList .post-item a {
    color: #007bff;
    text-decoration: none;
}

.PostList .post-item a:hover {
    text-decoration: underline;
}

/* Métadonnées (date, catégorie) */
.PostList .post-meta {
    font-size: 14px;
    color: white;
    margin-bottom: 10px;
}

/* Extrait du contenu */
.PostList .post-excerpt {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

/* Tags */
.PostList .post-tags {
    margin-bottom: 15px;
}

.PostList .post-tags .tag {
    background-color: #007bff;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 25px;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

.PostList .post-tags .tag:hover {
    background-color: #0056b3;
}

/* Bouton "Lire la suite" */
.btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: white;
    color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Responsive design */
@media (max-width: 768px) {
    .PostList .post-container {
        grid-template-columns: 1fr;
    }
}
