/* Reset et base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-accent: #0066cc;
    --color-accent-hover: #0052a3;
    --color-secondary: #f5f5f5;
    --color-border: #e0e0e0;
    --color-muted: #666666;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --max-width: 800px;
    --spacing: 1.5rem;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

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

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

.nav-links a:hover {
    color: var(--color-accent);
}

/* Main */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--color-border);
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
}

/* Sections */
section {
    padding: 3rem 0;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

/* Articles */
.articles-section {
    border-bottom: 1px solid var(--color-border);
}

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-card {
    padding: 1.5rem;
    background: var(--color-secondary);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-tag {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.article-card h3 a:hover {
    color: var(--color-accent);
}

.article-card p {
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.article-card time {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* About */
.about-section p {
    margin-bottom: 1rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background: var(--color-secondary);
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem var(--spacing);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: var(--color-muted);
    font-size: 0.85rem;
}

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

/* Article Page */
.article-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--color-border);
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-content {
    padding: 2rem 0;
}

.article-content h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    display: block;
    border-bottom: none;
    padding-bottom: 0;
}

.article-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

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

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

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

.article-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

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

.highlight-box {
    background: var(--color-secondary);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.2s;
    margin: 1rem 0;
}

.cta-button:hover {
    background: var(--color-accent-hover);
    color: #ffffff !important;
}

/* FAQ Schema */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.faq-item p {
    margin-bottom: 0;
    color: var(--color-muted);
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.related-articles h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: none;
    display: block;
}

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

.related-article-card {
    padding: 1rem;
    background: var(--color-secondary);
    border-radius: 6px;
    transition: transform 0.2s;
}

.related-article-card:hover {
    transform: translateY(-2px);
}

.related-article-card .article-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.5rem;
}

.related-article-card h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.related-article-card h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.related-article-card h3 a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

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

/* Print */
@media print {
    .site-header, .site-footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}
