/* =============================================================
   LE CARNET DES DIATTARA — page Blog, articles, section d'accueil
   Fichier dédié : aucun effet sur les autres pages.
   Charte du site : variables de style.css (--accent, --text, ...).
   ============================================================= */

/* ---------- Cartes d'articles (Blog, accueil, suggestions) ---------- */
.blog-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.bcard{ display: flex; flex-direction: column; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bcard:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px rgba(44,33,26,.11); }
.bcard-media{ display: block; overflow: hidden; background: var(--background-alt); }
.bcard-media img{ display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bcard-media img{ transform: scale(1.03); }
.bcard-body{ display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.bcard-cat{ font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.bcard-title{ font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.35; margin: 0 0 12px; overflow-wrap: anywhere; }
.bcard-title a{ color: var(--text); text-decoration: none; }
.bcard-title a:hover{ color: var(--accent); }
.bcard-excerpt{ font-size: 14px; font-weight: 300; line-height: 1.75; color: var(--text-soft); margin: 0 0 18px; }
.bcard-foot{ display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.bcard-time{ font-size: 12.5px; color: var(--text-mute); }
.bcard-link{ font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.bcard-link:hover{ text-decoration: underline; }
.bcard--featured{ grid-column: 1 / -1; flex-direction: row; }
.bcard--featured .bcard-media{ flex: 1.25; }
.bcard--featured .bcard-media img{ height: 100%; aspect-ratio: auto; min-height: 320px; }
.bcard--featured .bcard-body{ flex: 1; justify-content: center; padding: 38px 42px; }
.bcard--featured .bcard-title{ font-size: 28px; }

/* ---------- Page Blog ---------- */
.blog-hero{ padding: 64px 0 48px; background: var(--background); }
.blog-hero-grid{ display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.blog-hero-script{ font-family: var(--font-script); font-size: 30px; color: var(--accent); margin: 0 0 6px; }
.blog-hero h1{ font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 54px); font-weight: 500; line-height: 1.12; margin: 0 0 20px; }
.blog-hero-lead{ font-size: 16px; font-weight: 300; line-height: 1.9; color: var(--text-soft); max-width: 520px; margin: 0; }
.blog-hero-photo{ margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.blog-hero-photo img{ display: block; width: 100%; height: auto; }
.blog-section{ padding: 40px 0 90px; background: var(--background-soft); }
.blog-filters{ display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.blog-filters a{ display: inline-block; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; background: #fff; transition: all .25s var(--ease); }
.blog-filters a:hover{ border-color: var(--accent); color: var(--accent); }
.blog-filters a[aria-current="true"]{ background: var(--accent); border-color: var(--accent); color: #fff; }
.blog-filters small{ font-weight: 400; opacity: .75; margin-left: 4px; }
.blog-filter-intro{ font-size: 14.5px; font-weight: 300; color: var(--text-soft); margin: 0 0 28px; }
.blog-cta{ margin-top: 60px; padding: 36px 30px; text-align: center; background: var(--background-alt); border-radius: var(--radius); }
.blog-cta h2{ font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 0 0 10px; }
.blog-cta p{ font-size: 14.5px; font-weight: 300; color: var(--text-soft); margin: 0 0 20px; }

/* ---------- Page article ---------- */
.container--article{ max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.article-head{ background: var(--background); padding: 34px 0 0; }
.breadcrumb ol{ display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 12.5px; color: var(--text-mute); }
.breadcrumb li + li::before{ content: "›"; margin-right: 6px; color: var(--text-mute); }
.breadcrumb a{ color: var(--text-mute); text-decoration: none; }
.breadcrumb a:hover{ color: var(--accent); }
.breadcrumb [aria-current]{ overflow-wrap: anywhere; }
.article-cat{ display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); text-decoration: none; margin-bottom: 14px; }
.article-title{ font-family: var(--font-display); font-size: clamp(27px, 4vw, 42px); font-weight: 500; line-height: 1.22; margin: 0 0 18px; overflow-wrap: anywhere; }
.article-lead{ font-size: 17px; font-weight: 300; line-height: 1.8; color: var(--text-soft); margin: 0 0 18px; }
.article-meta{ font-size: 13px; color: var(--text-mute); margin: 0 0 30px; }
.article-cover{ max-width: 1100px; margin: 0 auto; padding: 0 24px; transform: translateY(1px); }
.article-cover img{ display: block; width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; }
.article-body{ padding-top: 44px; padding-bottom: 20px; }
.toc{ margin: 0 0 40px; padding: 22px 26px; background: var(--background-alt); border-radius: var(--radius); }
.toc-title{ font-family: var(--font-display); font-size: 18px; margin: 0 0 10px; }
.toc ol{ margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.9; color: var(--text-soft); }
.toc a{ color: var(--text-soft); text-decoration: none; }
.toc a:hover{ color: var(--accent); text-decoration: underline; }
.article-content{ font-size: 17px; line-height: 1.9; color: var(--text-soft); }
.article-content p{ margin: 0 0 22px; }
.article-content h2{ font-family: var(--font-display); font-size: clamp(23px, 3vw, 29px); font-weight: 500; line-height: 1.3; color: var(--text); margin: 54px 0 18px; scroll-margin-top: 90px; overflow-wrap: anywhere; }
.article-content a{ color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover{ color: var(--accent-dark); }
.article-content strong{ color: var(--text); font-weight: 600; }
.figure-small{ display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 4px 0 26px; }
.figure-small img{ width: 206px; max-width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }

/* Bloc Aminata House au milieu de l'article */
.promo-aminata{ margin: 52px 0; padding: 38px 36px; background: var(--card-bg); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.promo-kicker{ font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px !important; }
.promo-aminata .promo-title{ font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 27px); font-weight: 500; line-height: 1.3; color: var(--text); margin: 0 0 16px; }
.promo-aminata p{ font-size: 15.5px; line-height: 1.85; }
.promo-aminata .btn{ margin-top: 10px; text-decoration: none; color: #fff; text-align: center; }
.article-content .promo-aminata .btn:hover{ color: #fff; }

.article-signature{ margin: 34px 0 6px; font-family: var(--font-script); font-size: 30px; color: var(--accent); }
.article-share{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-mute); }
.article-share a{ padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--text-soft); text-decoration: none; }
.article-share a:hover{ border-color: var(--accent); color: var(--accent); }
.related{ margin-top: 50px; padding: 64px 0 80px; background: var(--background-soft); }
.related-title{ font-family: var(--font-display); font-size: 28px; font-weight: 500; text-align: center; margin: 0 0 32px; }
.related-all{ text-align: center; margin: 36px 0 0; }

/* ---------- Section « Le carnet des Diattara » (accueil) ---------- */
.home-blog{ padding: 90px 0 100px; background: var(--background-soft); }
.home-blog-head{ text-align: center; max-width: 640px; margin: 0 auto 46px; }
.home-blog-script{ font-family: var(--font-script); font-size: 28px; color: var(--accent); margin: 0 0 4px; }
.home-blog-title{ font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; }
.home-blog-intro{ font-size: 15.5px; font-weight: 300; line-height: 1.85; color: var(--text-soft); margin: 0; }
.home-blog-cta{ text-align: center; margin-top: 44px; }

/* ---------- Tablette & mobile ---------- */
@media (max-width: 1024px){
    .blog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .blog-hero-grid{ grid-template-columns: 1fr; gap: 34px; }
    .bcard--featured{ flex-direction: column; }
    .bcard--featured .bcard-media img{ min-height: 0; height: auto; aspect-ratio: 16 / 9; }
    .bcard--featured .bcard-body{ padding: 26px 26px 28px; }
    .bcard--featured .bcard-title{ font-size: 24px; }
}
@media (max-width: 640px){
    .blog-grid{ grid-template-columns: 1fr; gap: 22px; }
    .blog-hero{ padding: 40px 0 34px; }
    .blog-section{ padding: 30px 0 64px; }
    .blog-filters{ flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .blog-filters::-webkit-scrollbar{ display: none; }
    .blog-filters a{ white-space: nowrap; padding: 10px 16px; }
    .container--article{ padding-left: 20px; padding-right: 20px; }
    .article-cover{ padding: 0; }
    .article-cover img{ border-radius: 0; }
    .article-content{ font-size: 16.5px; line-height: 1.85; }
    .article-content h2{ margin-top: 42px; }
    .promo-aminata{ margin: 40px 0; padding: 28px 22px; }
    .promo-aminata .btn{ display: block; width: 100%; padding-left: 12px; padding-right: 12px; }
    .home-blog{ padding: 64px 0 70px; }
    .bcard-body{ padding: 18px 20px 22px; }
    .related{ padding: 48px 0 60px; }
}
