/* ==============================================
   BLOG.CSS - Support complet des thèmes clair/sombre
   ============================================== */

:root {
    /* Theme colors (light mode default) */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutrals - light */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Shadows - light */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --gradient-bg: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

[data-theme="dark"] {
    /* Dark theme colors */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #22d3ee;
    --accent: #a78bfa;
    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;
    
    /* Neutrals - dark */
    --white: #0f172a;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #f1f5f9;
    --gray-800: #f8fafc;
    --gray-900: #ffffff;
    
    /* Shadows - dark (softer) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Gradients - dark */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gradient-bg);
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
}

/* Header (if not overridden by page-specific styles) */
header {
    background: rgba(var(--white-rgb, 255, 255, 255), 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] header {
    background: rgba(15, 23, 42, 0.9);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 14px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Main Layout */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 16px;
    background: var(--white);
    transition: all 0.2s ease;
    color: var(--gray-800);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Filter Info */
.filter-info {
    margin-bottom: 32px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.filter-text {
    color: var(--gray-600);
    font-weight: 500;
}

.filter-value {
    color: var(--primary);
    font-weight: 600;
}

.clear-filter {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid var(--primary);
}

.clear-filter:hover {
    background: var(--primary);
    color: var(--white);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 48px;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.article-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.article-content {
    padding: 24px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    margin-bottom: 12px;
}

.article-title a {
    color: var(--gray-900);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a:hover {
    color: var(--primary);
}

.article-excerpt {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-500);
    align-items: center;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    font-size: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--gray-600);
}

.empty-state .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 32px;
}

.empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--gray-900);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
    background: var(--white);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .dots {
    color: var(--gray-400);
    background: transparent;
    border: none;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-list a:hover {
    background: var(--gray-50);
    color: var(--primary);
    border-color: var(--gray-200);
}

.category-count {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.popular-article {
    display: block;
    padding: 16px;
    border-radius: var(--border-radius);
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.5;
}

.popular-article:hover {
    background: var(--gray-50);
    color: var(--primary);
    border-color: var(--gray-200);
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
    margin-top: 80px;
    position: relative;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-text {
    max-width: 500px;
    margin: 0 auto 32px;
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 24px;
    margin-top: 32px;
    color: var(--gray-500);
    font-size: 14px;
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 16px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-top: none;
        padding: 24px;
        flex-direction: column;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .main-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 16px;
    }

    .search-form {
        flex-direction: column;
        max-width: none;
    }

    .filter-info {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .logo {
        font-size: 24px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out;
}

.article-card:nth-child(even) {
    animation-delay: 0.1s;
}

.article-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* ==============================================
   ARTICLE PAGE STYLES
   ============================================== */

/* Breadcrumb */
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 0;
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 100px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 0;
}

[data-theme="dark"] .breadcrumb {
    background: rgba(15, 23, 42, 0.8);
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 500;
}

/* Article Layout */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
    position: relative;
    z-index: 1;
}

.article-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

/* Article Title */
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 24px;
    max-width: 100%;
    word-wrap: break-word;
}

/* Article Category Badge */
.article-category {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-500);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-separator {
    width: 4px;
    height: 4px;
    background: var(--gray-500);
    border-radius: 50%;
}

/* Featured Image */
.featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 48px 0;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

/* Image caption support */
.image-caption {
    font-size: 14px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-800);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 32px 0 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

.article-content h2 {
    font-size: 30px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 8px;
}

.article-content h3 {
    font-size: 24px;
}

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

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.article-content a:hover {
    color: var(--primary-dark);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: var(--shadow);
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px;
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    font-style: italic;
    color: var(--gray-600);
}

.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

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

.article-content code {
    background: var(--gray-50);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.article-content pre {
    background: var(--gray-50);
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--gray-200);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--gray-800);
}

/* Source Box */
.source-box {
    margin-top: 48px;
    padding: 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.source-box p {
    margin: 0;
    color: var(--gray-600);
}

.source-box a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.source-box a:hover {
    text-decoration: underline;
}

/* Tags */
.article-tags {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.tags-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Share Section */
.share-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.share-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.share-btn.facebook {
    background: #1877f2;
    color: var(--white);
}

.share-btn.twitter {
    background: #1da1f2;
    color: var(--white);
}

.share-btn.linkedin {
    background: #0077b5;
    color: var(--white);
}

.share-btn.whatsapp {
    background: #25d366;
    color: var(--white);
}

/* Related Articles */
.related-section {
    max-width: var(--max-width);
    margin: 64px auto 0;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 48px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.related-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-content {
    padding: 24px;
}

.related-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    background: var(--gray-100);
    color: var(--primary);
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.related-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s;
}

.related-title a:hover {
    color: var(--primary);
}

.related-excerpt {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.related-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gray-500);
}

/* Newsletter Section */
.newsletter-section {
    margin: 64px 0;
    padding: 64px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.newsletter-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.newsletter-text {
    color: var(--white);
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.newsletter-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.newsletter-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.benefit-item i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 14px;
}

.newsletter-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .newsletter-form-container {
    background: rgba(15, 23, 42, 0.95);
    color: var(--gray-200);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

[data-theme="dark"] .form-header h3 {
    color: var(--gray-100);
}

.form-header p {
    color: var(--gray-600);
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-control {
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--gray-800);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.newsletter-submit .btn-text {
    display: block;
}

.newsletter-submit .btn-loading {
    display: none;
}

.newsletter-privacy {
    text-align: center;
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
    margin-top: 16px;
}

/* Messages de feedback */
.newsletter-message {
    margin-top: 24px;
    padding: 24px;
    border-radius: var(--border-radius);
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    color: #155724;
    display: flex;
    align-items: center;
    gap: 16px;
}

.message-error {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: flex;
    align-items: center;
    gap: 16px;
}

.message-success i,
.message-error i {
    font-size: 24px;
    flex-shrink: 0;
}

.message-content h4 {
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 16px;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Article Page Responsive */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 16px 16px 0;
        margin-top: 80px;
    }

    .article-container {
        padding: 32px 16px;
        margin-top: 80px;
    }

    .article-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .article-meta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .meta-separator {
        display: none;
    }

    .featured-image {
        max-height: 300px;
        margin: 32px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .newsletter-section {
        padding: 48px 0;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-title {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .newsletter-form-container {
        padding: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        gap: 8px;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
        font-size: 13px;
        padding: 10px 12px;
    }
}