/* Conteneur principal */
.ma-blog-filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-controls {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Barre de recherche */
#recherche-blog {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#recherche-blog:focus {
    border-color: #2c3e50;
    outline: none;
}

/* Boutons de filtres */
.blog-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-filters button {
    background: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

.blog-filters button:hover {
    background: #e0e0e0;
}

.blog-filters button.active {
    background: #2c3e50;
    color: #fff;
}

/* Grille et Loader */
.blog-grid {
    position: relative;
    min-height: 200px;
}

.loader-blog {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #2c3e50;
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
}

.grille-interne {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Cartes Articles */
.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f9f9f9;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #2c3e50;
    line-height: 1.3;
}

.blog-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-lire-suite {
    align-self: flex-start;
    padding: 8px 16px;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.btn-lire-suite:hover {
    background: #1a252f;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

#btn-charger-plus {
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#btn-charger-plus:hover {
    background-color: #d35400; /* Orange dynamique au survol */
    transform: translateY(-2px);
}