/* ===== BLOG — shared styles (extends ../style.css tokens) ===== */

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s, gap 0.2s;
}

.blog-back-link:hover {
    color: var(--plum);
    gap: 0.75rem;
}

.blog-back-link svg {
    width: 1rem;
    height: 1rem;
}

/* --- Blog listing hero --- */
.blog-hero {
    padding: 3.5rem 0 3rem;
    text-align: center;
}

.blog-hero-container {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.1;
}

.blog-hero-title .accent {
    color: var(--plum);
}

.blog-hero-desc {
    font-size: 1.125rem;
    color: var(--text-sub);
    line-height: 1.6;
}

/* --- Category pills --- */
.post-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cat-mobilite { background-color: var(--green-light); color: var(--green-text); }
.cat-astuces { background-color: var(--coral-light); color: var(--coral-hover); }
.cat-securite { background-color: #EFF6FF; color: #1D4ED8; }
.cat-communaute { background-color: #FDF4FF; color: #A21CAF; }
.cat-comparatif { background-color: #FFF7ED; color: #C2410C; }
.cat-durable { background-color: var(--green-light); color: var(--green-text); }

/* --- Featured post --- */
.featured-post {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 45px -12px rgba(0, 0, 0, 0.18), 0 10px 15px -6px rgba(0, 0, 0, 0.06);
}

.featured-cover {
    position: relative;
    min-height: 340px;
}

.featured-cover svg {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
}

.featured-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.featured-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-sub);
}

/* --- Post meta row --- */
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-sub);
}

.post-meta .meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--border-color);
    flex-shrink: 0;
}

/* --- Grid of post cards --- */
.blog-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
}

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

.post-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.post-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.post-cover svg {
    display: block;
    width: 100%;
    height: 100%;
}

.post-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.post-title {
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-main);
}

.post-excerpt {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-sub);
    flex: 1;
}

/* --- Article page --- */
.article-topbar {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 0;
}

.article-header {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-main);
}

.article-cover-banner {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.article-cover-banner .cover-inner {
    border-radius: 2rem;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    box-shadow: var(--shadow-xl);
}

.article-cover-banner svg {
    display: block;
    width: 100%;
    height: 100%;
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #374151;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--plum);
    letter-spacing: -0.01em;
    margin: 2.75rem 0 1.1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul {
    margin: 0 0 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.article-body img.inline-photo {
    width: 100%;
    border-radius: 1.5rem;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
    display: block;
    object-fit: cover;
}

.pull-quote {
    border-left: 4px solid var(--plum);
    background-color: var(--green-light);
    padding: 1.5rem 2rem;
    border-radius: 0 1.25rem 1.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    color: var(--plum);
    line-height: 1.5;
    margin: 2.75rem 0;
}

.article-cta {
    max-width: 720px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.article-cta-box {
    background-color: var(--plum);
    border-radius: 1.75rem;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
}

.article-cta-text h3 {
    color: var(--white);
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.article-cta-text p {
    color: rgba(248, 249, 250, 0.85);
    font-size: 0.9375rem;
}

.article-cta-btn {
    flex-shrink: 0;
    background-color: var(--white);
    color: var(--plum);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Related posts --- */
.related-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 4.5rem 0 5rem;
}

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

.related-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-cover {
        min-height: 220px;
    }

    .featured-content {
        padding: 2rem;
    }

    .blog-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.25rem;
    }

    .article-title {
        font-size: 1.875rem;
    }

    .article-cta-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .blog-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 1.75rem;
    }

    .article-header {
        padding: 1rem 1.25rem 2rem;
    }
}
