/* Styles spécifiques à la page d'articles */
.articles-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.articles-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.articles-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.filter-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background-color: #ecf0f1;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #d6eaf8;
    color: #3498db;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 180px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.3rem;
    margin: 10px 0;
    color: #2c3e50;
}

.article-excerpt {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-meta {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    .articles-container {
        margin: 20px 0 50px 30px; /* haut droite bas gauche */
        padding: 15px;
        width: calc(100% - 40px); /* 30px (marge gauche) + 20px (marge droite) */
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px; /* Espacement réduit entre les cartes */
    }
    
    .category-filters {
        gap: 5px;
        justify-content: flex-start; /* Alignement à gauche pour cohérence avec la marge */
        padding-left: 0; /* Suppression du padding par défaut */
        margin-left: 20px; /* Compensation pour l'alignement des boutons */
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 2px; /* Petit ajustement pour l'espacement */
    }
    
    /* Ajustement des cartes d'article */
    .article-card {
        margin-right: -10px; /* Compensation pour la marge */
    }
    
    /* Optionnel: ajustement de l'image si nécessaire */
    .article-image {
        height: 160px; /* Légère réduction pour mobile */
    }
}