/* === RESET & BASE === */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1a1a1a;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

/* === WRAPPER === */
.article-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
}

/* === IMAGE PRINCIPALE DANS L'ARTICLE === */
.article-main-image {
    margin: 2rem 0;
    width: 100%;
}

.article-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-main-image figcaption {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}


/* === ARTICLE HEADER (sous l'image) === */
.article-header {
    width: 100%;
    background: #ffffff;
    padding: 2rem 0 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.article-category {
    display: inline-block;
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.article-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: 'Georgia', serif;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.meta-author {
    font-weight: 600;
    color: #1a1a1a;
}

.meta-separator {
    color: #d1d5db;
}

.meta-reading,
.meta-views {
    color: #6b7280;
}

time {
    color: #6b7280;
}

.image-credit {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* === LAYOUT CONTENU === */
.article-body-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 3rem;
}

.article-main-content {
    min-width: 0;
}

.article-sidebar {
    display: block;
}

/* === BREADCRUMB === */
.breadcrumb {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* === CONTENU ARTICLE === */
.article-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #1a1a1a;
    font-family: 'Charter', 'Georgia', serif;
}

.article-content > p:first-of-type,
.article-content .drop-cap {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #2d2d2d;
}

.article-content .drop-cap::first-letter {
    float: left;
    font-size: 5.5rem;
    line-height: 0.8;
    font-weight: 700;
    margin: 0.05rem 0.12rem 0 0;
    color: #000000;
    font-family: 'Georgia', serif;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    color: #1a1a1a;
    line-height: 1.3;
    font-family: 'Georgia', serif;
}

.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #2d2d2d;
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.article-content blockquote {
    border-left: 3px solid #e5e7eb;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.65;
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 2px;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content img {
    width: 100%;
    height: auto;
    margin: 2.5rem 0;
}

.article-content figcaption {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}

/* === KEY TAKEAWAYS === */
.key-takeaways {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 1.75rem;
    margin: 3rem 0;
    border-radius: 0 4px 4px 0;
}

.key-takeaways h2 {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 1rem 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.key-takeaways p {
    color: #78350f;
    margin-bottom: 1rem;
    text-align: left;
}

.key-takeaways p:last-child {
    margin-bottom: 0;
}

/* === TABLE OF CONTENTS === */
.toc-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2.5rem 0;
}

.toc-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
    padding: 0.35rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.toc-list a:hover,
.toc-list a.active {
    color: #1a1a1a;
    font-weight: 600;
}

/* === SIDEBAR === */
.sidebar-section {
    background: #fafafa;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.sidebar-section h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #374151;
    margin-bottom: 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.sidebar-article {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    transition: opacity 0.2s;
    text-decoration: none;
    color: inherit;
}

.sidebar-article:hover {
    opacity: 0.7;
}

.sidebar-article:last-child {
    border-bottom: none;
}

.sidebar-article-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d1d5db;
    line-height: 1;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.sidebar-article-image {
    width: 70px;
    height: 70px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-article-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
    font-family: 'Georgia', serif;
}

.sidebar-article-meta {
    font-size: 0.7rem;
    color: #9ca3af;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* === AUTHOR BOX === */
.author-box {
    display: flex;
    gap: 1.25rem;
    background: #f9fafb;
    padding: 1.75rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    margin: 3rem 0;
}

.author-box-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
    object-fit: cover;
}

.author-box-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
    flex-shrink: 0;
}

.author-box-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.author-box-title {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.author-box-bio {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #4b5563;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.author-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.author-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border-radius: 50%;
    color: #4b5563;
    transition: background 0.2s;
    text-decoration: none;
}

.author-social a:hover {
    background: #d1d5db;
}

/* === TAGS === */
.tags-container {
    margin: 2.5rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.tags-container h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: #6b7280;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #4b5563;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    cursor: default; /* Pas de curseur pointer */
}

/* === NEWSLETTER CTA === */
.newsletter-cta {
    background: #1a1a1a;
    color: white;
}

.newsletter-cta h3 {
    color: white !important;
    border-color: rgba(255,255,255,0.2) !important;
}

.newsletter-cta p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form button {
    width: 100%;
    padding: 0.7rem;
    background: white;
    color: #1a1a1a;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.newsletter-form button:hover {
    background: #f3f4f6;
}

/* === PARTAGE SOCIAL STICKY === */
.social-share-sticky {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    gap: 0.65rem;
    z-index: 100;
}

.social-share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 0.9rem;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: #1a1a1a;
}

/* === PROGRESS BAR === */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #1a1a1a;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .article-hero-image {
        margin-bottom: 1rem;
    }
    
    .article-header-inner {
        padding: 0 1rem 1.5rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-subtitle {
        font-size: 1rem;
    }
    
    .article-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .article-content {
        font-size: 1.05rem;
    }
    
    .article-content > p:first-of-type,
    .article-content .drop-cap {
        font-size: 1.15rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content p {
        text-align: left;
    }
    
    .article-body-wrapper {
        padding: 0 1rem;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .article-header-inner {
        max-width: 740px;
        padding: 0 2rem 2rem;
    }
    
    .article-body-wrapper {
        max-width: 740px;
        padding: 0 2rem;
    }
}

@media (min-width: 1200px) {
    .article-body-wrapper {
        grid-template-columns: 680px 300px;
        max-width: 1100px;
        gap: 4rem;
        padding: 0 2rem;
    }
    
    .article-sidebar {
        display: block;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

@media (min-width: 768px) {
    .social-share-sticky {
        display: flex;
    }
}

/* === NEWSLETTER CTA BUTTON === */
.newsletter-cta-button {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background: white;
    color: #1a1a1a;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.newsletter-cta-button:hover {
    background: #f3f4f6;
}

/* === TOOLS SIDEBAR === */
.tools-sidebar {
    background: #ffffff;
}

.tools-sidebar h3 {
    color: #374151;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tool-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.tool-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.tool-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.tool-content {
    flex: 1;
    min-width: 0;
}

.tool-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.tool-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* === TOAST NOTIFICATIONS === */
.toast {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
    border-left: 4px solid #10b981;
    max-width: 400px;
}

.toast.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-error {
    border-left-color: #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.toast-error .toast-icon {
    background: #ef4444;
}

.toast-message {
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Mobile */
@media (max-width: 640px) {
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* === SHARE INLINE MOBILE === */
.mobile-share-inline {
    display: none;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.mobile-share-inline a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s;
}

.mobile-share-inline a:hover {
    background: #e5e7eb;
}

/* Affiche seulement sur mobile (<768px) */
@media (max-width: 768px) {
    .mobile-share-inline {
        display: flex;
    }
}

/* Masquer la barre sticky en mobile */
@media (max-width: 768px) {
    .social-share-sticky {
        display: none !important;
    }
}

