/* Blog public — liste & article (#357) */

.blog {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 1.25rem 4rem;
    font-family: 'Inter', sans-serif;
    color: var(--forest, #11302a);
}

.blog-header { text-align: center; margin-bottom: 3rem; }
.blog-header h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; margin: 0 0 .75rem; }
.blog-header p { color: #5b6b66; font-size: 1.05rem; margin: 0; }
.blog-breadcrumb { font-size: .85rem; color: #5b6b66; margin: 0 0 1rem; }
.blog-breadcrumb a { color: var(--forest, #11302a); text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }

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

.blog-card {
    background: #fff;
    border: 1px solid var(--border, #e7ebe9);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(17, 48, 42, .1); }
.blog-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.blog-card-cover { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.blog-card-category {
    display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; color: #2f8f6b; background: #eafaf3; padding: .25rem .6rem;
    border-radius: 100px; margin-bottom: .6rem;
}
.blog-card-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 .5rem; line-height: 1.3; }
.blog-card-excerpt { color: #5b6b66; font-size: .92rem; line-height: 1.55; margin: 0 0 1rem; }
.blog-card-meta { font-size: .82rem; color: #8a978f; display: flex; gap: .35rem; }
.blog-empty { text-align: center; color: #5b6b66; padding: 3rem 0; }

.blog-pagination {
    display: flex; align-items: center; justify-content: center; gap: 1.5rem;
    margin-top: 3rem; font-size: .92rem;
}
.blog-pagination a { color: var(--forest, #11302a); text-decoration: none; font-weight: 600; }
.blog-pagination a:hover { text-decoration: underline; }
.blog-pagination span { color: #8a978f; }

/* Article */
.blog-article {
    max-width: 820px; margin: 0 auto; padding: 6rem 1.25rem 4rem;
    font-family: 'Inter', sans-serif; color: var(--forest, #11302a);
}
.blog-article-card {
    background: #fff;
    border: 1px solid rgba(17, 48, 42, .08);
    border-radius: 22px;
    box-shadow: 0 8px 28px rgba(17, 48, 42, .07);
    padding: 2.75rem 3rem 3.25rem;
}
@media (max-width: 680px) {
    .blog-article-card { padding: 1.75rem 1.35rem 2.25rem; border-radius: 16px; }
}
.blog-article-category {
    display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; color: #2f8f6b; background: #eafaf3; padding: .3rem .7rem;
    border-radius: 100px; text-decoration: none; margin-bottom: 1rem;
}
.blog-article-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin: 0 0 1.25rem; }
.blog-article-meta { color: #8a978f; font-size: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.blog-article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 20px; margin: 2rem 0; }

.blog-content { font-size: 1.08rem; line-height: 1.75; color: #2b3a35; }
.blog-content h2 { font-size: 1.6rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.blog-content h3 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; }
.blog-content p { margin: 0 0 1.25rem; }
.blog-content ul, .blog-content ol { margin: 0 0 1.25rem 1.5rem; }
.blog-content li { margin-bottom: .4rem; }
.blog-content a { color: #2f8f6b; text-decoration: underline; }
.blog-content img { max-width: 100%; border-radius: 12px; }
.blog-content hr { border: 0; border-top: 1px solid rgba(17, 48, 42, .2); margin: 2.5rem 0; }
.blog-content blockquote { border-left: 3px solid #cfe9df; padding-left: 1.25rem; color: #5b6b66; font-style: italic; margin: 0 0 1.25rem; }
.blog-content code { background: #f1f5f3; padding: .15rem .4rem; border-radius: 5px; font-size: .92em; }
.blog-content pre { background: #11302a; color: #eafaf3; padding: 1.25rem; border-radius: 12px; overflow-x: auto; margin: 0 0 1.5rem; }
.blog-content pre code { background: none; padding: 0; color: inherit; }
.blog-article-back { display: inline-block; margin-top: 3rem; color: var(--forest, #11302a); text-decoration: none; font-weight: 600; }

/* Partage social (fin d'article) */
.blog-share {
    display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
    margin-top: 3rem; padding-top: 1.75rem;
    border-top: 1px solid rgba(17, 48, 42, .1);
}
.blog-share-label { font-size: .85rem; font-weight: 600; color: var(--forest, #11302a); margin-right: .25rem; }
.blog-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(17, 48, 42, .12); background: #fff; color: var(--forest, #11302a);
    cursor: pointer; text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.blog-share-btn:hover { background: var(--forest, #11302a); color: #fff; border-color: var(--forest, #11302a); transform: translateY(-2px); }
.blog-share-btn svg { width: 20px; height: 20px; }
.blog-share-btn[hidden] { display: none; }
.blog-share-feedback { font-size: .8rem; font-weight: 600; color: #2f8f6b; }
