/* --- ARTICLE PAGE STYLES - FINAL --- */

/* Conteneur principal */
.article-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Lato', sans-serif;
}

/* 1. Header Block */
.article-header-block {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0cbb3;
    padding-bottom: 20px;
}

.breadcrumb {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta .sep {
    margin: 0 10px;
    color: #ccc;
}

/* 2. Featured Image */
.article-featured-image {
    margin-bottom: 50px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 3. Layout Grid (Sidebar + Content) */
.article-content-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr; /* Sidebar fixe, texte fluide */
    gap: 60px;
    margin-bottom: 60px;
}

/* Sidebar Sticky */
.share-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.share-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.share-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-link {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #666;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.share-link:hover {
    color: #b64024;
}

.share-link i {
    width: 20px;
    margin-right: 5px;
    font-style: normal;
}

/* Corps du texte */
.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body .lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 35px;
    border-left: 3px solid #b64024;
    padding-left: 20px;
}

.article-body h2, .article-body h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-body blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: #444;
    margin: 40px 0;
    text-align: center;
    border-top: 1px solid #e0cbb3;
    border-bottom: 1px solid #e0cbb3;
    padding: 30px 40px;
}

.article-body blockquote cite {
    display: block;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
    font-style: normal;
    text-transform: uppercase;
    margin-top: 15px;
    color: #888;
}

/* 4. DONATION BOX */
.donation-box {
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed #b64024; /* Style coupon */
    padding: 30px;
    margin: 60px 0 40px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.donation-icon {
    font-size: 2.5rem;
    color: #f7931a; /* Orange BTC */
    flex-shrink: 0;
}

.donation-content h4 {
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
    color: #333;
    font-size: 1.2rem;
}

.donation-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.btc-address-container {
    background: #fff;
    padding: 8px 15px;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #333;
    max-width: 100%;
}

.btc-label {
    font-weight: bold;
    color: #888;
}

.copy-btn {
    background: none;
    border: none;
    color: #b64024;
    cursor: pointer;
    font-size: 1rem;
}

/* 5. Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 30px 0;
    margin-bottom: 60px;
}

.nav-prev, .nav-next {
    width: 45%;
    text-decoration: none;
    color: #333;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
}

.nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-title:hover {
    color: #b64024;
}

/* 6. Author Box (Transparent + Lignes) */
.author-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: transparent;
    padding: 30px 0;
    border-top: 1px solid #e0cbb3;
    border-bottom: 1px solid #e0cbb3;
    margin-bottom: 60px;
}

.author-img img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0cbb3;
}

.author-info h4 {
    text-transform: uppercase;
    margin: 0 0 10px 0;
    font-size: 1rem;
    letter-spacing: 1px;
}

.author-info p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.author-social a {
    font-size: 0.85rem;
    font-weight: 700;
    color: #b64024;
    text-decoration: none;
}

/* 7. Related Posts (Avec Images) */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    display: inline-block;
    padding-bottom: 5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-thumb {
    margin-bottom: 15px;
    overflow: hidden;
    height: 200px;
    background: #ddd;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-card .meta-top {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
}

.related-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.related-card h4 a {
    color: #111;
    text-decoration: none;
}

.related-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.related-card .read-more {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid #e0cbb3;
}

/* --- RESPONSIVE --- */
@media (max-width: 800px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .share-sidebar {
        position: static;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .share-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .donation-box {
        flex-direction: column;
        text-align: center;
    }

    .btc-address-container {
        flex-direction: column;
        width: 100%;
        padding: 10px;
    }

    .btc-address {
        word-break: break-all;
        font-size: 0.8rem;
    }

    .main-title {
        font-size: 2rem;
    }

    /* Correction Author Box Mobile */
    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .author-img img {
        width: 80px;
        height: 80px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-prev, .nav-next {
        width: 100%;
        text-align: left;
    }
}

/* Style pour le bouton qui ressemble aux liens */
button.share-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    text-align: left;
    /* Gardez vos styles existants de .share-link ici */
}

/* Feedback visuel quand copié */
button.share-link.copied {
    color: #27ae60; /* Vert succès */
    font-weight: bold;
}

button.share-link.copied i {
    color: #27ae60;
}

/* =====================================================
   ARTICLE 1 — ADDITIONS TO article.css
   Add these rules at the bottom of assets/css/article.css
   ===================================================== */

/* Image captions below featured image */
.article-featured-image .img-caption {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 10px;
}

/* Figure + Figcaption (inline article images) */
.article-figure {
    margin: 40px 0;
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-figure figcaption {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 10px;
    line-height: 1.5;
}

.article-figure figcaption a {
    color: #b64024;
    text-decoration: none;
}

/* Table of Contents */
.toc-box {
    background: #fdf8f2;
    border-left: 4px solid #b64024;
    padding: 25px 30px;
    margin-bottom: 45px;
    font-size: 0.95rem;
}

.toc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toc-box ol {
    margin: 0;
    padding-left: 20px;
}

.toc-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.toc-box a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.toc-box a:hover {
    color: #b64024;
}

/* FAQ Section */
.faq-section {
    margin: 20px 0 40px 0;
}

.faq-item {
    border-bottom: 1px solid #e0cbb3;
    padding: 25px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.faq-item p {
    color: #444;
    margin: 0;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 800px) {
    .toc-box {
        padding: 20px;
    }
}
