:root {
    --bg: #0a0a0a;
    --card-bg: #141414;
    --text-main: #e4e4e7;
    --text-dim: #a1a1aa;
    --accent: #6366f1;
    --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }

/* Navigation */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex; justify-content: space-between; align-items: center; height: 70px;
}

.logo { font-weight: 800; letter-spacing: -1px; font-size: 1.2rem; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { 
    text-decoration: none; color: var(--text-dim); 
    font-size: 0.9rem; text-transform: uppercase; transition: 0.3s;
}
.nav-links a:hover { color: white; }

/* Hero */
.hero { padding: 160px 0 100px; }
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent); font-size: 0.8rem; margin-bottom: 1.5rem;
}
h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.text-gradient { color: var(--text-dim); }
.subtitle { font-size: 1.25rem; color: var(--text-dim); max-width: 600px; }

/* Sections & Grids */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-title { margin-bottom: 3rem; font-size: 1.5rem; }
.brand-github { color: #fff; }
.brand-itch { color: #ff2449; }

/* --- ICI : J'ai augmenté le gap à 2.5rem --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
}

/* --- ICI : J'ai forcé la marge pour qu'elles se poussent --- */
.card {
    background: var(--card-bg); 
    border: 1px solid var(--border);
    padding: 2rem; 
    border-radius: 16px; 
    transition: 0.3s ease; 
    margin-bottom: 1.5rem; /* Force l'espace même si la grid bug */
}

/* --- J'ai supprimé le card:last-child pour éviter les problèmes --- */

.card:hover { border-color: var(--accent); transform: translateY(-5px); }

.card h3 { margin-bottom: 1rem; }
.card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.5rem; }

.tags { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tags span { font-family: monospace; font-size: 0.75rem; color: var(--accent); }

.card-link { text-decoration: none; color: white; font-weight: 600; font-size: 0.9rem; }

/* Game Card spécifique */
.game-placeholder {
    width: 100%; height: 160px; background: #222; margin-bottom: 1.5rem; border-radius: 8px;
}

/* Footer */
.footer { padding: 100px 0; text-align: center; }
.contact-links { display: flex; justify-content: center; gap: 2rem; margin: 2rem 0; }
.contact-links a { color: white; font-size: 1.1rem; }
.copy { font-size: 0.8rem; color: #444; margin-top: 4rem; }