/* --- En-tête de la page Blog --- */
.page-header {
    padding: 140px 0 60px 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Grille des articles --- */
.blog-container {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* --- La Carte Article --- */
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.1);
}

/* Image et Badge */
.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.05); /* Petit zoom sympa au survol */
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Contenu de la carte */
.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pousse le bouton "Lire la suite" tout en bas */
}

.card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.card-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-content h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.card-content h2 a:hover {
    color: var(--secondary-color);
}

.card-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* S'assure que les cartes font la même taille même si le texte est court */
}

/* Bouton Lire la suite */
.btn-read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.btn-read-more span {
    transition: transform 0.3s;
    display: inline-block;
}

.btn-read-more:hover {
    color: var(--secondary-color);
}

.btn-read-more:hover span {
    transform: translateX(5px); /* Petite flèche qui avance */
}

/* --- Message vide --- */
.no-articles {
    text-align: center;
    padding: 50px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 1.1rem;
}