@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 50%, #10b981 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23p)"/></svg>') repeat;
    opacity: 0.8;
    z-index: -1;
}

/* Header déporté adapté au style articles.html */
.header {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.header-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.95em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.header-btn.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

/* Article principal avec le style de articles.html */
.article {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.article:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

/* Header d'article avec gradient comme dans articles.html */
.article-header {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(129, 140, 248, 0.3));
    z-index: 1;
}

.article-header > * {
    position: relative;
    z-index: 2;
}

.article-title {
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.article-meta {
    font-size: 15px;
    opacity: 0.9;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.article-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.article-tag:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* Contenu d'article */
.article-content {
    padding: 50px;
    position: relative;
}

.article-content h2 {
    font-size: 1.8em;
    margin: 40px 0 20px 0;
    color: #1e293b;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.4em;
    margin: 30px 0 16px 0;
    color: #334155;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
    text-align: justify;
}

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

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 17px;
    color: #4a5568;
}

.article-content li::marker {
    color: #4f46e5;
}

.article-content strong {
    color: #1e293b;
    font-weight: 600;
}

.article-content a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #06b6d4;
    border-bottom-color: #06b6d4;
}

.article-content code {
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 15px;
/*    color: #e53e3e; */
    color: #0e0202;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

.article-content pre {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content blockquote {
    border-left: 4px solid #4f46e5;
    padding: 20px 24px;
    margin: 24px 0;
    font-style: italic;
    color: #4a5568;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 0 12px 12px 0;
    position: relative;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 60px;
    color: #4f46e5;
    opacity: 0.3;
    font-family: serif;
}

/* Navigation entre articles - style articles.html */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    gap: 24px;
}

.nav-btn {
    flex: 1;
    padding: 18px 24px;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 15px;
    text-decoration: none;
    color: #4a5568;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.nav-btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    color: white;
}

/* Footer avec le style articles.html */
.footer {
    text-align: center;
    padding: 30px;
    color: #718096;
    font-size: 0.9em;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    margin: 20px -20px -20px -20px;
    border-top: 1px solid #e2e8f0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-link {
    color: #718096;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #4f46e5;
    transform: translateY(-1px);
}

.footer-link:hover::after {
    width: 100%;
}

/* Glassmorphism overlay */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

/* Animations d'entrée */
.header {
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .header {
        position: static;
        justify-content: center;
        padding: 20px;
        top: auto;
        right: auto;
        margin-bottom: 20px;
    }
    
    .header-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
    .container {
        padding: 20px 15px;
        margin-top: 10px;
    }
    
    .article-content {
        padding: 30px 25px;
    }
    
    .article-title {
        font-size: 2.2em;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .article-nav {
        flex-direction: column;
    }

    .article-content h2 {
        font-size: 1.5em;
        padding-left: 16px;
    }

    .article-content h2::before {
        width: 3px;
        height: 20px;
    }

    .article-content p, .article-content li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 20px 15px;
    }
    
    .article-title {
        font-size: 1.8em;
    }

    .article-content h2 {
        font-size: 1.3em;
    }

    .article-content h3 {
        font-size: 1.1em;
    }

    .article-header {
        padding: 30px 20px;
    }
}

/* Effet de scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Style pour la sélection de texte */
::selection {
    background: rgba(79, 70, 229, 0.3);
    color: #1a202c;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4338ca, #0891b2);
}

/* Accessibilité - Focus states */
.header-btn:focus,
.nav-btn:focus,
.footer-link:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Animation de chargement pour les composants */
.loading {
    opacity: 0;
    animation: fadeInComponent 0.5s ease-out forwards;
}

@keyframes fadeInComponent {
    to {
        opacity: 1;
    }
}

/* Animations au scroll pour le contenu */
.article-content h2, 
.article-content h3, 
.article-content p, 
.article-content ul, 
.article-content blockquote {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.article-content .animate-in {
    opacity: 1;
    transform: translateY(0);
}
.code-block {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Base */
