/* Blog (#197) : liste des articles et page article. Couleurs du site. */

.blog-page {
    background: #f8f9fa;
    padding-bottom: 4rem;
}

/* Les titres d'articles tiennent souvent sur deux lignes : l'interligne fixe du
   bandeau (20px en mobile, fait pour un mot ou deux) les ferait se chevaucher. */
.blog-page .hero-title {
    line-height: 1.25;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 0;
}

.blog-container--article {
    max-width: 860px;
}

.blog-intro {
    max-width: 860px;
    margin: 0 auto 2.5rem;
    color: #444;
    line-height: 1.8;
    text-align: center;
}

/* Liste */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(48, 45, 99, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 6px 24px rgba(48, 45, 99, 0.16);
    transform: translateY(-2px);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: #e9ebf4;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.blog-date {
    color: #4c5ca4;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0.5rem 0 0.75rem;
}

.blog-card-title a {
    color: #302d63;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #4c5ca4;
}

.blog-card-chapo {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.blog-card-link {
    margin-top: auto;
    color: #4c5ca4;
    font-weight: 600;
    text-decoration: none;
}

.blog-card-link:hover {
    color: #302d63;
    text-decoration: underline;
}

.blog-empty {
    text-align: center;
    color: #6b7280;
    padding: 3rem 0;
}

/* Article */

.blog-breadcrumb {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.blog-breadcrumb a {
    color: #4c5ca4;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-breadcrumb span {
    margin: 0 0.35rem;
}

.blog-breadcrumb span[aria-current] {
    margin: 0;
    color: #302d63;
}

.blog-article {
    background: #fff;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 2px 12px rgba(48, 45, 99, 0.08);
}

.blog-article-cover {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 2rem;
    display: block;
}

.blog-article-chapo {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #302d63;
    font-weight: 500;
    margin-bottom: 2rem;
}

.blog-article-content {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.blog-article-content h2 {
    color: #302d63;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.blog-article-content h3 {
    color: #4c5ca4;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.blog-article-content p,
.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 1rem;
}

/* Taille fixee : les feuilles du theme grossissent les paragraphes en mobile. */
.blog-article-content p,
.blog-article-content li {
    font-size: 1rem;
    line-height: 1.8;
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 1.5rem;
}

.blog-article-content li {
    margin-bottom: 0.5rem;
}

.blog-article-content a {
    color: #4c5ca4;
    text-decoration: underline;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
}

.blog-back {
    display: inline-block;
    margin-top: 2rem;
    color: #4c5ca4;
    font-weight: 600;
    text-decoration: none;
}

.blog-back:hover {
    color: #302d63;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .blog-container {
        padding: 2rem 1rem 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-article {
        padding: 1.5rem;
    }

    .blog-article-chapo {
        font-size: 1.05rem;
    }
}
