:root {
    --bg-dark: #0a0c10;
    --bg-surface: #12161f;
    --border-color: #1f2633;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #7c3aed;         /* Violet foncé */
    --accent-hover: #6d28d9;   /* Nuance encore plus sombre au survol */
    --radius: 8px;
    --max-w: 960px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

nav {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    letter-spacing: 0.05em;
    font-size: 1.15rem;
}

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

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Layout général */
main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

h1, h2, h3, h4 {
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
}

h2 {
    font-size: 1.85rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

p strong {
    color: var(--text-main);
}

ul {
    color: var(--text-muted);
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.35rem;
}

li strong {
    color: var(--text-main);
}

/* Hero Section (#accueil) */
#accueil {
    padding: 6rem 0 4.5rem;
}

.tagline {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 600;
}

#accueil h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin: 0.5rem 0 1.25rem;
}

#accueil p:nth-of-type(2) {
    font-size: 1.15rem;
    max-width: 650px;
    margin-bottom: 2rem;
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Grilles & Cartes */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.card-stack {
    margin-bottom: 1.5rem;
}

/* Devlogs */
#devlogs article header {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0.75rem;
}

#devlogs small {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
footer {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.logo a {
    color: inherit;
    text-decoration: none;
}