/* =============================================================================
   BLOG — listing articles + single post
   ============================================================================= */

/* ── Single article ───────────────────────────────────────────────────────── */

/* Header — réutilise wc-archive-hero + ajout titre article */
.blog-single-header {
    padding-bottom: 2.5rem;
    text-align: center;
}

.blog-single-header .wc-archive-back {
    display: inline-flex !important;
    margin-bottom: 1.5rem;
}

.blog-single-header__title {
    font-size: 2rem !important;
    font-weight: 400 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    margin: 0.5rem auto 0.75rem !important;
    max-width: 680px;
}

/* Badge catégorie sur fond sombre */
.blog-cat--light {
    color: #fff !important;
    background: rgba(255,255,255,0.18) !important;
    border: 1px solid rgba(255,255,255,0.35);
}

/* Auteur sur fond sombre */
.blog-author--light .blog-author__name,
.blog-author--light .blog-author__date,
.blog-author--light .blog-author__sep {
    color: rgba(255,255,255,0.85) !important;
}

/* Image à la une — cadrée sous le header */
.blog-single-img-wrap {
    margin: 2.5rem 0 0;
    text-align: center;
}

.blog-single-img-wrap a {
    display: block;
    cursor: zoom-in;
}

.blog-single-img {
    width: 100%;
    max-height: 540px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    background: #f5f5f5;
}

/* Fond blanc — zone image + contenu uniquement (pas la bannière) */
.blog-single-body {
    background: #fff;
    padding-bottom: 4rem;
}

/* Contenu texte */
.blog-single-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.blog-single-content p {
    font-size: 1rem !important;
    color: #333 !important;
    line-height: 1.85 !important;
    margin-bottom: 1.25rem !important;
}

.blog-single-content h2 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 2.5rem 0 0.75rem !important;
}

.blog-single-content h3 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 1.75rem 0 0.5rem !important;
}

.blog-single-content a {
    color: #CC392B;
    text-decoration: underline;
}

.blog-single-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

@media screen and (max-width: 767px) {
    .blog-single-header__title {
        font-size: 1.4rem !important;
    }

    .blog-single-img {
        max-height: 240px;
        border-radius: 0;
    }

    .blog-single-content {
        padding: 1.5rem 0 3rem;
    }
}

.animed-blog {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

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

/* ── Reset Divi ───────────────────────────────────────────────────────────── */

.animed-blog h2,
.animed-blog h3 {
    line-height: 1.3;
    padding: 0;
}

.animed-blog p {
    line-height: 1.6;
    padding: 0;
}

.animed-blog a {
    text-decoration: none;
    color: inherit;
}

/* ── Catégorie badge ──────────────────────────────────────────────────────── */

.blog-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #CC392B;
    background: #fce8e6;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
}

/* ── Auteur ───────────────────────────────────────────────────────────────── */

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: #999;
    margin-top: auto;
    padding-top: 1rem;
}

.blog-author__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-author__name {
    color: #444;
    font-weight: 600;
}

.blog-author__sep {
    color: #ddd;
}

/* ── Article mis en avant ─────────────────────────────────────────────────── */

.blog-featured {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
    transition: box-shadow 0.2s;
}

.blog-featured:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.blog-featured__img {
    flex: 0 0 52%;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    background-color: #fce8e6;
}

.blog-featured__body {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-featured__title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 0.85rem !important;
}

.blog-featured__excerpt {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    flex: 1;
}

/* ── Grille articles ──────────────────────────────────────────────────────── */

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

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.blog-card__img {
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: #fce8e6;
    flex-shrink: 0;
}

.blog-card__body {
    padding: 1.4rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.blog-card__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 0.5rem !important;
    line-height: 1.35 !important;
}

.blog-card__excerpt {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    flex: 1;
    line-height: 1.55;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */

.blog-pagination {
    margin-top: 2.5rem;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media screen and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-featured__img {
        flex: 0 0 45%;
        min-height: 300px;
    }

    .blog-featured__title {
        font-size: 1.25rem !important;
    }
}

@media screen and (max-width: 767px) {
    .blog-featured {
        flex-direction: column;
    }

    .blog-featured__img {
        flex: none;
        min-height: 220px;
    }

    .blog-featured__body {
        padding: 1.5rem;
    }

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