/* Blog — liste & article */

.blog-intro-section,
.blog-articles-section,
.moments-section,
.article-section {
    padding: 0;
    margin: 0;
}

.blog-intro-section {
    padding-top: 108px;
}

.blog-articles-section {
    padding: 20px 0 24px;
}

.moments-section {
    padding: 0 0 72px;
}

.blog-intro-section .container,
.blog-articles-section .container,
.moments-section .container {
    max-width: min(1180px, 92%);
    margin: 0 auto;
    padding: 0 16px;
}

.blog-intro-section .page-back,
.article-section .page-back {
    margin-bottom: 20px;
}

body.modele-prestations .blog-intro-section .section-block,
body.modele-prestations .blog-articles-section .section-block,
body.modele-prestations .moments-section .section-block {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--home-radius-lg, 16px);
    box-shadow: var(--shadow-card);
}

body.modele-prestations .blog-intro-section .section-block,
.blog-intro-section .section-block {
    background: linear-gradient(
        135deg,
        rgba(var(--accent-rgb, 230, 139, 119), 0.12) 0%,
        var(--bg-card, #ffffff) 42%,
        var(--bg-card-alt, #f8fafc) 100%
    );
}

.blog-intro-section .section-block,
.blog-articles-section .section-block,
.moments-section .section-block {
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.blog-intro-section .section-inner,
.blog-articles-section .section-inner,
.moments-section .section-inner {
    padding: clamp(28px, 4vw, 48px);
}

.blog-intro {
    text-align: center;
}

.blog-intro h1 {
    margin: 0 0 10px;
    font-family: var(--font-title, inherit);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.2;
}

.blog-intro h2 {
    margin: 0 0 16px;
    font-family: var(--font-title, inherit);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.blog-intro p {
    margin: 0 auto;
    max-width: 720px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.blog-articles-section h2,
.moments-section h2 {
    margin: 0 0 28px;
    font-family: var(--font-title, inherit);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-page, #f8fafc);
    border: 1px solid var(--border-soft);
    border-radius: var(--home-radius-sm, 12px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow, var(--shadow-card));
    border-color: rgba(var(--accent-rgb), 0.28);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

.article-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-title, inherit);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
}

.article-card p {
    margin: 0 0 14px;
    flex-grow: 1;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.article-meta {
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: var(--text-subtle, var(--text-muted));
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: fit-content;
    padding: 10px 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-ui, var(--accent));
    pointer-events: none;
}

.article-card:hover .read-more {
    background: var(--accent-dim);
}

.no-articles {
    grid-column: 1 / -1;
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.moments-section p {
    margin: 0 0 12px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.65;
}

.moments-section a {
    color: var(--accent-ui, var(--accent));
    text-decoration: none;
    font-weight: 600;
}

.moments-section a:hover {
    text-decoration: underline;
}

.moments-section .blog-hashtag {
    margin-top: 14px;
    text-align: center;
    font-weight: 600;
    color: var(--accent-ui, var(--accent));
}

/* Article détail */
.article-section {
    padding: 108px 0 72px;
    min-height: 50vh;
}

.article-section .container {
    max-width: min(860px, 92%);
    margin: 0 auto;
    padding: 0 16px;
}

.article-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--home-radius-lg, 16px);
    box-shadow: var(--shadow-card);
    padding: clamp(28px, 4vw, 44px);
}

h1.article-title {
    margin: 0 0 12px;
    font-family: var(--font-title, inherit);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
}

.article-section .article-meta {
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.article-cover {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--home-radius-sm, 12px);
    border: 1px solid var(--border-soft);
    margin: 0 0 28px;
}

.article-section .article-body p {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.article-not-found {
    padding: 48px 16px;
    text-align: center;
}

.article-not-found h1 {
    margin: 0 0 10px;
    font-family: var(--font-title, inherit);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.article-not-found p {
    margin: 0 0 20px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .blog-intro-section {
        padding-top: 96px;
    }

    .blog-articles-section {
        padding-top: 16px;
    }

    .articles-list {
        grid-template-columns: 1fr;
    }

    .article-section {
        padding-top: 96px;
    }
}
