/* Design Global */
.blog-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Barre de recherche */
.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 30px auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

#search-box {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

#search-box:focus {
    outline: none;
    border-color: #0077b5;
    box-shadow: 0 10px 20px rgba(0,119,181,0.1);
}

/* Grille d'articles */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Cartes (Cards) */
.post-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #0077b5;
}

.post-content {
    padding: 25px;
    flex-grow: 1;
}

.post-date {
    font-size: 0.85rem;
    color: #0077b5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-card h2 {
    margin: 15px 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.post-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card h2 a:hover {
    color: #0077b5;
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    font-weight: bold;
    color: #0077b5;
    text-decoration: none;
    font-size: 0.9rem;
}

/* État "Aucun résultat" */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    background: #f9f9f9;
    border-radius: 12px;
}

@media (max-width: 600px) {
    .post-grid { grid-template-columns: 1fr; }
}