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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
            color: #ffffff;
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        header {
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: #00d4ff;
            text-decoration: none;
            cursor: pointer;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: #ffffff;
            text-decoration: none;
            transition: color 0.3s ease;
            cursor: pointer;
        }

        .nav-links a:hover {
            color: #00d4ff;
        }

        .hero {
            text-align: center;
            padding: 4rem 0;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            position: relative;
            overflow: hidden;
        }

        .hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
            opacity: 0.5;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero p {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            padding: 12px 30px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: bold;
            margin-top: 2rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            border: none;
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
        }

        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            padding: 4rem 0;
        }

        .blog-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 2rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .blog-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #00d4ff, #0099cc);
        }

        .blog-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border-color: rgba(0, 212, 255, 0.3);
        }

        .blog-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            opacity: 0.7;
        }

        .blog-category {
            background: rgba(0, 212, 255, 0.2);
            color: #00d4ff;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8rem;
        }

        .blog-card h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: #ffffff;
            line-height: 1.4;
        }

        .blog-card p {
            opacity: 0.8;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .read-more {
            display: inline-flex;
            align-items: center;
            color: #00d4ff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .read-more:hover {
            color: #ffffff;
        }

        .read-more::after {
            content: '→';
            margin-left: 8px;
            transition: transform 0.3s ease;
        }

        .read-more:hover::after {
            transform: translateX(5px);
        }

        .cta-section {
            background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
            padding: 4rem 0;
            text-align: center;
            margin-top: 4rem;
        }

        .cta-section h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #ffffff;
        }

        .cta-section p {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        footer {
            background: rgba(0, 0, 0, 0.8);
            padding: 2rem 0;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .footer-links a {
            color: #ffffff;
            text-decoration: none;
            opacity: 0.7;
            transition: opacity 0.3s ease;
            cursor: pointer;
        }

        .footer-links a:hover {
            opacity: 1;
            color: #00d4ff;
        }

    

        .article-page.active {
            display: block;
        }

        .article-header {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            padding: 3rem 0;
            position: relative;
            overflow: hidden;
        }

        .article-header::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
            opacity: 0.3;
        }

        .article-header-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            color: #00d4ff;
            text-decoration: none;
            margin-bottom: 2rem;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .back-button:hover {
            color: #ffffff;
        }

        .back-button::before {
            content: '←';
            margin-right: 8px;
        }

        .article-title {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #ffffff;
            line-height: 1.2;
        }

        .article-meta-header {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .article-content {
            max-width: 800px;
            margin: 4rem auto;
            padding: 0 20px;
        }

        .article-content h2 {
            color: #00d4ff;
            font-size: 1.8rem;
            margin: 2rem 0 1rem 0;
            border-bottom: 2px solid rgba(0, 212, 255, 0.3);
            padding-bottom: 0.5rem;
        }

        .article-content h3 {
            color: #ffffff;
            font-size: 1.4rem;
            margin: 1.5rem 0 0.5rem 0;
        }

        .article-content h4 {
            color: #00d4ff;
            font-size: 1.2rem;
            margin: 1rem 0 0.5rem 0;
        }

        .article-content p {
            margin-bottom: 1.5rem;
            opacity: 0.9;
            line-height: 1.8;
        }

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

        .article-content li {
            margin-bottom: 0.5rem;
            opacity: 0.9;
        }

        .article-content strong {
            color: #00d4ff;
        }

        .cta-box {
            background: rgba(0, 212, 255, 0.1);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 15px;
            padding: 2rem;
            margin: 3rem 0;
            text-align: center;
        }

        .cta-box h4 {
            color: #00d4ff;
            margin-bottom: 1rem;
        }

        .tags {
            display: flex;
            gap: 0.5rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }

        .tag {
            background: rgba(0, 212, 255, 0.2);
            color: #00d4ff;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8rem;
        }

        .home-page.hidden {
            display: none;
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2rem;
            }
            
            .blog-grid {
                grid-template-columns: 1fr;
            }
            
            .nav-links {
                display: none;
            }
            
            .footer-content {
                flex-direction: column;
                text-align: center;
            }

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

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

/* Styles pour les blocs de code */
pre {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  overflow-x: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: 'Fira Code', 'Consolas', 'Monaco', 'Andale Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  tab-size: 2;
}

pre code {
  display: block;
  color: #e0e0e0;
  background: transparent;
  padding: 0;
  border: none;
  white-space: pre;
}

/* Barre de titre avec langage */
pre::before {
  content: attr(data-lang);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: #333;
  color: #aaa;
  padding: 2px 12px;
  border-radius: 0 0 8px 0;
  font-size: 0.8em;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
}

/* Numérotation des lignes */
pre.line-numbers {
  counter-reset: line;
}

pre.line-numbers code {
  position: relative;
  padding-left: 3.5em;
}

pre.line-numbers code .line::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: -2.5em;
  width: 2em;
  text-align: right;
  color: #6c6c6c;
  border-right: 1px solid #444;
  padding-right: 0.5em;
  margin-right: 0.5em;
}

/* Styles syntaxiques (à adapter selon votre coloration) */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6a9955;
}

.token.punctuation {
  color: #d4d4d4;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #b5cea8;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #ce9178;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #d4d4d4;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #569cd6;
}

.token.function,
.token.class-name {
  color: #dcdcaa;
}

.token.regex,
.token.important,
.token.variable {
  color: #d16969;
}

/* Effet de surbrillance */
pre mark {
  background-color: rgba(255, 255, 0, 0.3);
  display: block;
  padding: 0;
  margin: 0 -20px;
  border-left: 3px solid #ffcc00;
  border-right: 3px solid #ffcc00;
}

/* Responsive */
@media (max-width: 768px) {
  pre {
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* Effet de copie */
pre .copy-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  color: #aaa;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.8em;
  transition: all 0.2s;
}

pre .copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Ajoutez ceci à la fin du fichier code.css */

.other-articles {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 0;
    margin: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.other-articles h2 {
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.other-articles h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
}

.other-articles-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.other-articles-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.other-articles-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
}

.other-articles-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.other-articles-list a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.other-articles-list a:hover {
    color: #00d4ff;
}

.article-date {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .other-articles-list {
        grid-template-columns: 1fr;
    }
    
    .other-articles h2 {
        font-size: 1.5rem;
    }
}

.intro-box {
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid #00d4ff;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

.dev-quote {
    font-size: 1.1rem;
    text-align: center;
    margin: 2.5rem 0;
    opacity: 0.9;
}

.letter-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px dashed rgba(0, 212, 255, 0.3);
}

.author-note {
    font-size: 0.9rem;
    margin-top: 3rem;
    opacity: 0.7;
}

.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.old-code {
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    position: relative;
}

.old-code::before {
    content: '⚠️ Ancien code';
    position: absolute;
    top: -12px;
    left: 10px;
    background: #0f0f0f;
    padding: 0 10px;
    color: #ff5555;
    font-size: 0.8rem;
}

.new-code {
    border: 1px solid rgba(0, 255, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    position: relative;
}

.new-code::before {
    content: '✨ Nouveau code';
    position: absolute;
    top: -12px;
    left: 10px;
    background: #0f0f0f;
    padding: 0 10px;
    color: #00d4ff;
    font-size: 0.8rem;
}

.code-comment {
    font-style: italic;
    opacity: 0.7;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.mistake {
    background: rgba(255, 100, 100, 0.05);
    border-left: 3px solid #ff5555;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.dialogue {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-style: italic;
}

.lessons li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.lessons li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00d4ff;
}

.migration-steps {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step.highlight {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.05);
}

.note, .warning {
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.note {
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid #00d4ff;
}

.warning {
    background: rgba(255, 100, 100, 0.1);
    border-left: 3px solid #ff5555;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tool {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 8px;
}

.cta-box.realistic {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.5);
}