/* 1. Configuration des couleurs "Cyber Dark" */
:root {
    --bg-dark: #0f172a;       /* Fond principal */
    --bg-card: #1e293b;       /* Fond des cartes/sections */
    --primary: #38bdf8;       /* Bleu néon */
    --accent: #818cf8;        /* Violet néon */
    --text-bright: #f8fafc;   /* Texte clair */
    --text-dim: #94a3b8;      /* Texte secondaire */
    --border: #334155;
    --glow: rgba(56, 189, 248, 0.3);
    --site-width: 1000px;     /* Ta largeur fixe souhaitée */
}

/* 2. Reset & Structure */
body {
    background-color: var(--bg-dark);
    color: var(--text-bright);
    font-family: 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tout le contenu */
}

.container {
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. Header & Menu Stylisé */
header {
    width: 100%;
    max-width: var(--site-width);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

/* Style des boutons du Menu */
.nav-link {
    text-decoration: none;
    color: var(--text-bright);
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-3px);
}

/* 4. Section Hero / Intro */
.hero {
    width: 100%;
    max-width: var(--site-width);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* 5. Cartes de Services */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    transition: border-color 0.3s ease;
}


/* Conteneur principal des jeux */
.games-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Définit les deux colonnes égales */
    gap: 30px;                      /* Espace entre les colonnes et les lignes */
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;              /* Centre la grille */
}

/* Style de chaque bloc de jeu */
.game-card {
    background: var(--bg-card);     /* Utilise la couleur du thème sombre précédent */
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;               /* Pour que l'image ne dépasse pas des bords arrondis */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Si tu as des images de jeux */
.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Recadre l'image proprement */
    border-bottom: 1px solid var(--border);
}

/* Contenu textuel sous le jeu */
.game-info {
    padding: 20px;
}

/* Responsive : repasser sur une seule colonne sur mobile */
@media (max-width: 768px) {
    .games-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

.card:hover {
    border-color: var(--primary);
}

.card h2 {
    color: var(--primary);
    margin-top: 0;
}

.card p {
    color: var(--text-dim);
}

/* 6. Footer simple */
footer {
    margin-top: 50px;
    padding: 40px;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-align: center;
}