/* -------------------------
   PAGE BLOG — HEADER
------------------------- */
#blog-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header-title {
    font-family: 'Mulish', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #334058;
    margin-bottom: 12px;
}

.blog-header-subtitle {
    font-size: 1.1rem;
    color: #888;
    font-style: italic;
}

/* -------------------------
   FILTRES
------------------------- */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 50px;
}

.blog-filter-btn {
    padding: 8px 20px;
    border: 2px solid #334058;
    border-radius: 50px;
    background: transparent;
    color: #334058;
    font-family: 'Mulish', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: #334058;
    color: #fff;
}

/* -------------------------
   GRILLE MASONRY
------------------------- */
.blog-grid {
    width: 100%;
}

.blog-grid-sizer,
.blog-card {
    width: calc(33.333% - 16px);
}

.blog-card {
    background: #f9f5f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* -------------------------
   CARTE ARTICLE
------------------------- */
.blog-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFA087;
}

.blog-card-title {
    font-family: 'Mulish', sans-serif;
    font-size: 1.2rem;
    color: #334058;
    margin: 0;
    line-height: 1.4;
}

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

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

.blog-card-accroche {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: #aaa;
}

.blog-card-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334058;
    text-decoration: none;
    margin-top: 6px;
    transition: color 0.2s ease;
}

.blog-card-link:hover {
    color: #FFA087;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 1024px) {
    .blog-grid-sizer,
    .blog-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .blog-grid-sizer,
    .blog-card {
        width: 100%;
    }
}

/* -------------------------
   PAGE VIDE
------------------------- */
.blog-empty {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 60px 0;
}

/* =========================================
   TEMPLATE A — Avec photo
========================================= */
.article-a-hero {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #334058;
    position: relative;
}

.article-a-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
}

.article-a-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
    text-align: center;
}

.article-a-title {
    font-family: 'Mulish', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.article-a-accroche {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}

.article-a-content {
    padding: 60px 20px;
}

/* =========================================
   TEMPLATE B — Épuré
========================================= */
.article-b-hero {
    background-color: #263B52;
    padding: 100px 20px;
}

.article-b-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.article-b-title {
    font-family: 'Mulish', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.article-b-accroche {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
    max-width: 560px;
}

.article-b-content {
    padding: 80px 20px;
}

/* =========================================
   ÉLÉMENTS COMMUNS
========================================= */
.article-cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FFA087;
    background: rgba(255,160,135,0.15);
    padding: 4px 12px;
    border-radius: 50px;
}

.article-date {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* =========================================
   CORPS DE L'ARTICLE
========================================= */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.5rem;
    line-height: 1.9;
    color: #334058;
}

.article-body h2 {
    font-family: 'Mulish', sans-serif;
    font-size: 1.6rem;
    color: #334058;
    margin: 50px 0 20px;
}

.article-body h3 {
    font-family: 'Mulish', sans-serif;
    font-size: 1.3rem;
    color: #334058;
    margin: 40px 0 16px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body img {
    width: 100%;
    border-radius: 12px;
    margin: 30px 0;
}

.article-body a {
    color: #FFA087;
    text-decoration: underline;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

/* =========================================
   CITATION
========================================= */
.article-citation {
    border-left: 4px solid #FFA087;
    margin: 40px 0;
    padding: 20px 30px;
    background: #f9f5f0;
    border-radius: 0 12px 12px 0;
}

.article-citation p {
    font-size: 1.2rem;
    font-style: italic;
    color: #334058;
    margin: 0 0 10px;
    line-height: 1.6;
}

.article-citation cite {
    font-size: 0.9rem;
    color: #FFA087;
    font-style: normal;
    font-weight: 600;
}

/* =========================================
   RETOUR AU BLOG
========================================= */
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334058;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 40px;
    transition: color 0.2s ease;
}

.article-back:hover {
    color: #FFA087;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .article-a-hero {
        height: 50vh;
    }

    .article-a-accroche,
    .article-b-accroche {
        font-size: 1.2rem;
    }

    .article-a-hero-inner,
    .article-b-hero-inner {
        padding: 40px 20px;
    }

    .article-b-hero {
        padding: 60px 20px;
    }

    .article-body {
        font-size: 1rem;
    }
}

/* =========================================
   HOME — 3 DERNIERS ARTICLES
========================================= */
.home-blog-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

/* 1 article — centré */
.home-blog-wrapper.count-1 {
    justify-content: center;
}

.home-blog-wrapper.count-1 .home-blog-card {
    max-width: 480px;
    width: 100%;
}

/* 2 articles — espacés */
.home-blog-wrapper.count-2 {
    justify-content: space-around;
}

.home-blog-wrapper.count-2 .home-blog-card {
    width: calc(50% - 24px);
    max-width: 480px;
}

/* 3 articles — grille */
.home-blog-wrapper.count-3 .home-blog-card {
    width: calc(33.333% - 16px);
}

/* -------------------------
   CARTE
------------------------- */
.home-blog-card {
    background: #f9f5f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.home-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

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

.home-blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.home-blog-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFA087;
}

.home-blog-card-title {
    font-family: 'Mulish', sans-serif;
    font-size: 1.5rem;
    color: #334058;
    margin: 0;
    line-height: 1.9;
}

.home-blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.home-blog-card-title a:hover {
    color: #FFA087;
}

.home-blog-card-accroche {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.home-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e8e0d8;
}

.home-blog-card-date {
    font-size: 0.8rem;
    color: #aaa;
}

.home-blog-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334058;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-blog-card-link:hover {
    color: #FFA087;
}

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 1024px) {
    .home-blog-wrapper.count-3 .home-blog-card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .home-blog-wrapper.count-2 .home-blog-card,
    .home-blog-wrapper.count-3 .home-blog-card {
        width: 100%;
    }
}