body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
}

/* HEADER */
header {
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    margin: 0;
    font-size: 32px;
}

header p {
    color: #94a3b8;
    margin-top: 10px;
}

#container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    gap: 20px;

    justify-content: center; /* <-- centre la grille */

    padding: 20px;
    max-width: 1100px;
    margin: 0 auto; /* <-- centre la zone entière */
}

/* CARD */
.game {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.game:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* IMAGE (optionnel si tu en ajoutes plus tard) */
.game img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* CONTENT */
.game-content {
    padding: 15px;
}

.game h2 {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.game p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}