/* ============================================================
   Auteurs Africains — Styles personnalisés
   ============================================================ */

/* Structure de page gérée par main.css (negative-margin sidebar) */

/* ---- Widget sidebar --------------------------------------------- */
.widget { margin-bottom: 30px; }
.widget-category-list { list-style: none; padding: 0; }
.widget-category-list li a { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #eee; color: #333; text-decoration: none; }
.widget-category-list li a:hover { color: #c00; }
.widget-category-list .count { color: #999; font-size: .85rem; }

/* ---- Pagination -------------------------------------------------- */
.pagination .page-link { color: #333; }
.pagination .active .page-link { background: #1a1a2e; border-color: #1a1a2e; }

/* ---- Boîte catégorie -------------------------------------------- */
.box-category { margin-bottom: 40px; }
.col-caption  { border-bottom: 3px solid #1a1a2e; margin-bottom: 20px; }
.col-caption span { display: inline-block; background: #1a1a2e; color: #fff; padding: 4px 12px; font-family: Oswald, sans-serif; font-size: .85rem; letter-spacing: 1px; }
.col-caption span a { color: inherit; text-decoration: none; }

/* ---- Article unique ---------------------------------------------- */
.single-wrap   { padding: 30px 0; }
.single-post-title { font-family: Lora, serif; font-size: 2rem; margin-bottom: 1rem; }
.post-thumb-large img { width: 100%; max-height: 450px; object-fit: cover; border-radius: 6px; margin: 1rem 0; }
.post-content  { font-family: Lora, serif; font-size: 1.05rem; line-height: 1.9; }
.post-views    { color: #999; font-size: .85rem; }

/* ---- Boîte auteur de l'article ----------------------------------- */
.author-box    { border: 1px solid #eee; border-radius: 8px; padding: 1.2rem; background: #fafafa; }
.author-inner  { display: flex; gap: 1rem; align-items: flex-start; }
.author-avatar img { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; }
.author-social a   { margin-right: 8px; color: #555; font-size: 1.1rem; }
.author-social a:hover { color: #1a1a2e; }

/* ---- Commentaires ------------------------------------------------ */
.comment-list  { list-style: none; padding: 0; }
.comment-item  { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.comment-avatar img, .avatar-placeholder {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.avatar-placeholder { background: #1a1a2e; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.comment-date  { color: #999; font-size: .82rem; margin-left: 8px; }
.comment-reply { background: #f5f5f5; border-left: 3px solid #1a1a2e; padding: .5rem 1rem; margin-top: .5rem; border-radius: 0 4px 4px 0; }

/* ---- En-tête catégorie ------------------------------------------ */
.category-header { margin-bottom: 2rem; }
.category-banner img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }
.category-desc { color: #666; }

/* ---- Pied de page ------------------------------------------------ */
.footer { background: #1a1a2e; color: #bbb; padding: 3rem 0 0; }
.footer-inner .container { padding-bottom: 2rem; }
.widget-title { color: #fff; font-family: Oswald, sans-serif; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; border-bottom: 2px solid #333; padding-bottom: .5rem; }
.footer-links  { list-style: none; padding: 0; }
.footer-links li a { color: #bbb; text-decoration: none; display: block; padding: 3px 0; }
.footer-links li a:hover { color: #fff; }
.footer .social-links a { color: #bbb; font-size: 1.2rem; margin-right: 10px; }
.footer .social-links a:hover { color: #fff; }
.footer-bottom { background: #111; padding: 1rem 0; margin-top: 0; }
.footer-bottom p { margin: 0; color: #666; font-size: .85rem; text-align: center; }

/* ---- Bouton "lire plus" ------------------------------------------ */
.btn-more { display: inline-block; margin-top: .5rem; color: #1a1a2e; font-size: .85rem; font-weight: 600; text-decoration: none; }
.btn-more:hover { text-decoration: underline; }

/* ---- Contrainte globale des images dans leurs cadres ------------ */
.post-thumb { overflow: hidden; }

.post-thumb img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Tailles fixes selon le type de bloc */
.big-sticky-post .post-thumb img      { height: 420px; }
.category-big-post .post-thumb img    { height: 320px; }
.category-mid-post .post-thumb img    { height: 250px; }
.ciz-post .post-thumb img             { height: 200px; }
.three-item .post-thumb img           { height: 150px; }
.category-list-post .post-thumb img   { width: 80px; height: 60px; flex-shrink: 0; }
.trending-item .post-thumb img        { height: 160px; }
.review-item .post-thumb img          { height: 200px; }

/* Sidebar : images des plus lus */
.category-list-post li { display: flex; align-items: flex-start; gap: 10px; }
.category-list-post .post-thumb { width: 80px; flex-shrink: 0; }

/* Widget sidebar : photo auteur */
.widget-popular .post-thumb img       { width: 70px; height: 55px; object-fit: cover; }

/* Admin : miniatures dans les tableaux */
.img-thumb { width: 44px; height: 34px; object-fit: cover; border-radius: 3px; display: block; }

/* ---- Instagram gallery ------------------------------------------- */
.instagram-gallery .row { gap: 0; }
.instagram-pics { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.instagram-pics li { width: calc(33.33% - 3px); }
.instagram-pics li img { width: 100%; height: 80px; object-fit: cover; display: block; }

/* ---- Page 404 ---------------------------------------------------- */
body .display-404 { font-size: 8rem; font-weight: 700; color: #1a1a2e; }

/* ---- Responsive -------------------------------------------------- */
@media (max-width: 767px) {
    .single-post-title { font-size: 1.5rem; }
    .author-inner { flex-direction: column; }
}
