/* DC Tech - Charte graphique DC Consulting */

:root {
    /* Couleurs principales */
    --bg-dark: #0F1821;
    --bg-card: #0F1821;
    --bg-elevated: #1a2530;
    --border: #003871;

    /* Textes */
    --text-primary: #E8EBE4;
    --text-secondary: #b8bbb4;
    --text-muted: #7a7d76;

    /* Accents */
    --accent-primary: #F3772E;    /* Orange */
    --accent-secondary: #003871;  /* Bleu foncé */
    --accent-tertiary: #009CB6;   /* Cyan */
}

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

body {
    font-family: 'Jura', 'Space Grotesk', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
header {
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-dark) 100%);
}

header .logo {
    font-size: 2rem;
    font-weight: 300;
    text-decoration: none;
}

header .logo .orange {
    color: var(--accent-primary);
}

header .logo .cyan {
    color: var(--accent-tertiary);
}

header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Main */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Home - Articles Grid */
.home h1 {
    color: var(--accent-tertiary);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

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

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.article-card h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.article-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.card-meta .date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Tags */
.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--accent-secondary);
    color: var(--accent-tertiary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Article */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.article-header .description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.article-header .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.article-header .date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Article Content */
.article-content {
    font-size: 1rem;
    line-height: 1.8;
}

.article-content h2 {
    color: var(--accent-tertiary);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 300;
}

.article-content h3 {
    color: var(--accent-primary);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 300;
}

.article-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.article-content ul, .article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    list-style-type: '—  ';
}

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

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

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

.article-content code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-elevated);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-tertiary);
}

.article-content pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article-content th {
    color: var(--accent-tertiary);
    background: var(--bg-elevated);
}

.article-content td {
    color: var(--text-secondary);
}

/* Code Link */
.code-link {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.repo-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-primary);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.repo-button:hover {
    background: var(--accent-tertiary);
    transform: translateY(-2px);
}

/* Navigation */
.nav-links {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.back-link {
    color: var(--accent-tertiary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--accent-tertiary);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* No articles */
.no-articles {
    color: var(--text-muted);
    text-align: center;
    padding: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

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