/* Extracted styles for index */

        :root {
            --color-primary: #1e3a5f;
            --color-primary-dark: #0f1e36;
            --color-accent: #c8102e;
            --color-gold: #d4af37;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Crimson Pro', serif;
            line-height: 1.8;
            color: #333;
            background: #fafbfc;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Playfair Display', serif;
            line-height: 1.2;
        }

        /* Header */
        .site-header {
            background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
            color: white;
            padding: 1.5rem 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .site-header .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .site-title {
            font-size: 1.5rem;
        }

        .btn-back-home {
            padding: 0.625rem 1.25rem;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            text-decoration: none;
            border-radius: 0.5rem;
            transition: all 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .btn-back-home:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }

        /* Breadcrumb */
        .breadcrumb {
            background: white;
            padding: 1rem 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .breadcrumb .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .breadcrumb-nav {
            display: flex;
            gap: 0.5rem;
            align-items: center;
            font-size: 0.95rem;
            color: #666;
        }

        .breadcrumb-nav a {
            color: var(--color-primary);
            text-decoration: none;
        }

        .breadcrumb-nav a:hover {
            text-decoration: underline;
        }

        /* Main Content */
        .main-content {
            max-width: 900px;
            margin: 3rem auto;
            padding: 0 1.5rem;
        }

        .loading {
            text-align: center;
            padding: 4rem 2rem;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid var(--color-primary);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error-message {
            text-align: center;
            padding: 4rem 2rem;
        }

        .error-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        .error-message h2 {
            color: var(--color-primary);
            margin-bottom: 1rem;
        }

        .error-message p {
            color: #666;
            margin-bottom: 2rem;
        }

        /* Article */
        .article {
            background: white;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .article-header {
            position: relative;
        }

        .article-image {
            width: 100%;
            height: 500px;
            object-fit: cover;
        }

        .article-category {
            position: absolute;
            top: 2rem;
            left: 2rem;
            background: var(--color-accent);
            color: white;
            padding: 0.5rem 1.25rem;
            border-radius: 2rem;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .article-body {
            padding: 3rem;
        }

        .article-meta {
            display: flex;
            gap: 2rem;
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 2px solid #f0f0f0;
            color: #666;
            font-size: 0.95rem;
        }

        .article-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .article-title {
            font-size: 2.5rem;
            color: var(--color-primary);
            margin-bottom: 1.5rem;
            line-height: 1.3;
        }

        .article-excerpt {
            font-size: 1.25rem;
            color: #555;
            margin-bottom: 2.5rem;
            line-height: 1.7;
            font-style: italic;
            padding-left: 1.5rem;
            border-left: 4px solid var(--color-accent);
        }

        .article-content {
            font-size: 1.125rem;
            line-height: 1.9;
            color: #444;
        }

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

        .article-content p:last-child {
            margin-bottom: 0;
        }

        /* Share Buttons */
        .article-share {
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 2px solid #f0f0f0;
        }

        .article-share h3 {
            font-size: 1.25rem;
            color: var(--color-primary);
            margin-bottom: 1rem;
        }

        .share-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .share-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            text-decoration: none;
            color: white;
            transition: all 0.3s;
        }

        .share-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .share-btn.facebook {
            background: #1877f2;
        }

        .share-btn.twitter {
            background: #1da1f2;
        }

        .share-btn.linkedin {
            background: #0a66c2;
        }

        .share-btn.whatsapp {
            background: #25d366;
        }

        /* Related News */
        .related-news {
            max-width: 1200px;
            margin: 4rem auto;
            padding: 0 1.5rem;
        }

        .related-news h2 {
            color: var(--color-primary);
            margin-bottom: 2rem;
            font-size: 2rem;
        }

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

        .related-card {
            background: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s;
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        }

        .related-card-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .related-card-body {
            padding: 1.5rem;
        }

        .related-card-category {
            display: inline-block;
            background: var(--color-primary);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.8rem;
            margin-bottom: 0.75rem;
        }

        .related-card-title {
            font-size: 1.25rem;
            color: var(--color-primary);
            margin-bottom: 0.5rem;
        }

        .related-card-date {
            font-size: 0.9rem;
            color: #666;
        }

        /* Footer */
        .site-footer {
            background: var(--color-primary-dark);
            color: white;
            padding: 2rem 0;
            margin-top: 4rem;
            text-align: center;
        }

        .site-footer p {
            opacity: 0.8;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .article-image {
                height: 300px;
            }

            .article-category {
                top: 1rem;
                left: 1rem;
            }

            .article-body {
                padding: 2rem 1.5rem;
            }

            .article-title {
                font-size: 1.875rem;
            }

            .article-excerpt {
                font-size: 1.125rem;
            }

            .article-content {
                font-size: 1.0625rem;
            }

            .article-meta {
                flex-direction: column;
                gap: 0.75rem;
            }

            .share-buttons {
                flex-direction: column;
            }

            .share-btn {
                justify-content: center;
            }
        }

        /* zone filtre categories */
.news-filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
    justify-content: flex-end;
}
.filter-label {
    color: #6b7280;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}
#categoryFilter {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    font-family: 'Crimson Pro', serif;
    color: var(--color-primary);
}
@media (max-width:768px) {
    .news-filter-bar {
        justify-content: space-between;
        padding: 0 0.25rem 0 0.25rem;
    }
}

.image-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.carousel-item {
    flex: 0 0 80%;
    scroll-snap-align: center;
}

.carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 90%;
    }

    .carousel-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

}

.article-document {
    margin: 2rem 0;
    padding: 1rem;
    background: #f4f6f8;
    border-left: 4px solid #1e3a5f;
}

.document-link {
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
}

.document-link:hover {
    text-decoration: underline;
}
