/* Réinitialisation et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    /* Le ../ permet de remonter d'un dossier pour trouver l'image bg.png */
    background: url('../bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

/* Voile sombre en arrière-plan pour faire ressortir le site */
.backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 6, 22, 0.5);
    z-index: -1;
}

/* Barre de navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 10, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff4500;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    color: #bf55ec;
    text-shadow: 0 0 10px #bf55ec;
    letter-spacing: 2px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: bold;
    transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    color: #ff4500;
    text-shadow: 0 0 10px #ff4500;
}

/* Conteneur principal */
main {
    margin-top: 100px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

/* Sections au style "Glow & Glass" */
section {
    background: rgba(20, 15, 35, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(191, 85, 236, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ff4500;
    text-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
    padding-bottom: 0.5rem;
}

/* Grille pour la page des Jeux */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #bf55ec;
    box-shadow: 0 0 15px rgba(191, 85, 236, 0.4);
}

.game-card h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Boutons de téléchargement */
.btn-download {
    display: inline-block;
    background: linear-gradient(45deg, #ff4500, #bf55ec);
    color: white;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-download:hover {
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.8);
}

/* Pied de page */
footer {
    background: rgba(10, 6, 22, 0.9);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(191, 85, 236, 0.2);
    font-size: 0.9rem;
    color: #aaa;
}