* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #10b981;
            --primary-dark: #059669;
            --primary-light: #34d399;
            --accent-color: #22c55e;
            --secondary-color: #86efac;
            --background: #ffffff;
            --surface: #f8fafc;
            --card-bg: #ffffff;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --border-color: #e2e8f0;
            --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            --gradient-soft: linear-gradient(135deg, #ecfccb, #d9f99d);
            --shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
            --shadow-hover: 0 20px 40px rgba(16, 185, 129, 0.15);
            --code-bg: #1e293b;
            --code-color: #e2e8f0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--background);
            color: var(--text-primary);
            line-height: 1.7;
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 5%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        /* Article Container */
        .article-container {
            display: grid;
            grid-template-columns: 250px 1fr 300px;
            gap: 3rem;
            max-width: 1400px;
            margin: 100px auto 0;
            padding: 0 2rem;
        }

        /* Sidebar - Table des matières */
        .sidebar {
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        .toc {
            background: var(--surface);
            border-radius: 15px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
        }

        .toc h3 {
            font-size: 1rem;
            margin-bottom: 1rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .toc-list {
            list-style: none;
        }

        .toc-list li {
            margin-bottom: 0.5rem;
        }

        .toc-list a {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: block;
            padding: 0.3rem 0;
            border-left: 2px solid transparent;
            padding-left: 1rem;
        }

        .toc-list a:hover,
        .toc-list a.active {
            color: var(--primary-color);
            border-left-color: var(--primary-color);
        }

        /* Main Article */
        .article-main {
            background: white;
            border-radius: 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }

        .article-header {
            padding: 3rem;
            background: var(--gradient-soft);
            position: relative;
            overflow: hidden;
        }

        .article-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 300px;
            height: 300px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
        }

        .article-category {
            display: inline-block;
            background: var(--primary-color);
            color: white;
            padding: 0.3rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .article-title {
            font-size: 2.5rem;
            line-height: 1.2;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .article-meta {
            display: flex;
            gap: 2rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .article-meta span {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .article-content {
            padding: 3rem;
        }

        .article-content h2 {
            font-size: 2rem;
            margin: 2.5rem 0 1rem;
            color: var(--text-primary);
            position: relative;
            padding-left: 1rem;
        }

        .article-content h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 80%;
            background: var(--gradient);
        }

        .article-content h3 {
            font-size: 1.5rem;
            margin: 2rem 0 1rem;
            color: var(--text-primary);
        }

        .article-content p {
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
        }

        /* Code Blocks */
        .code-container {
            position: relative;
            margin: 2rem 0;
            border-radius: 15px;
            overflow: hidden;
            background: var(--code-bg);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .code-header {
            background: #0f172a;
            padding: 0.8rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .code-language {
            color: var(--primary-light);
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .copy-button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 0.4rem 0.8rem;
            border-radius: 5px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .copy-button:hover {
            background: var(--primary-dark);
        }

        .copy-button.copied {
            background: var(--accent-color);
        }

        pre {
            padding: 1.5rem;
            overflow-x: auto;
            margin: 0;
        }

        code {
            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--code-color);
        }

        /* Inline code */
        .article-content code:not(pre code) {
            background: var(--surface);
            padding: 0.2rem 0.4rem;
            border-radius: 3px;
            color: var(--primary-dark);
            font-size: 0.85rem;
        }

        /* Syntax Highlighting */
        .keyword { color: #ff79c6; }
        .string { color: #f1fa8c; }
        .number { color: #bd93f9; }
        .comment { color: #6272a4; font-style: italic; }
        .function { color: #50fa7b; }
        .class-name { color: #8be9fd; }

        /* Alert Box */
        .alert {
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 10px;
            border-left: 4px solid;
        }

        .alert-info {
            background: #e0f2fe;
            border-color: #0284c7;
            color: #075985;
        }

        .alert-warning {
            background: #fef3c7;
            border-color: #f59e0b;
            color: #92400e;
        }

        .alert-success {
            background: var(--gradient-soft);
            border-color: var(--primary-color);
            color: var(--primary-dark);
        }

        /* Right Sidebar */
        .aside {
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        .aside-section {
            background: var(--surface);
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
        }

        .aside-section h3 {
            font-size: 1.1rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .related-article {
            display: block;
            padding: 0.8rem 0;
            color: var(--text-secondary);
            text-decoration: none;
            border-bottom: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .related-article:last-child {
            border-bottom: none;
        }

        .related-article:hover {
            color: var(--primary-color);
            padding-left: 0.5rem;
        }

        /* Author Box */
        .author-box {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .author-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            font-weight: bold;
        }

        .author-info h4 {
            font-size: 1rem;
            margin-bottom: 0.2rem;
        }

        .author-info p {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        /* Comments Section */
        .comments-section {
            background: var(--surface);
            border-radius: 20px;
            padding: 3rem;
            margin-top: 3rem;
        }

        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .comment-form {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
        }

        .comment-form textarea {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            resize: vertical;
            min-height: 120px;
            font-family: inherit;
            font-size: 1rem;
        }

        .comment-form button {
            background: var(--gradient);
            color: white;
            border: none;
            padding: 0.8rem 2rem;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 1rem;
            transition: all 0.3s ease;
        }

        .comment-form button:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        /* Footer */
        .article-footer {
            background: var(--text-primary);
            color: white;
            padding: 3rem 0;
            margin-top: 5rem;
            text-align: center;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .article-container {
                grid-template-columns: 1fr;
            }

            .sidebar,
            .aside {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .article-header {
                padding: 2rem;
            }

            .article-title {
                font-size: 1.8rem;
            }

            .article-content {
                padding: 2rem;
            }

            .article-content h2 {
                font-size: 1.5rem;
            }

            pre {
                font-size: 0.8rem;
            }
        }

        /* Mobile Navigation */
        .mobile-nav-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-primary);
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .mobile-nav-toggle {
                display: block;
            }
        }

        /* Progress Bar */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: var(--gradient);
            transition: width 0.3s ease;
            z-index: 1001;
        }