/* Paramètres globaux d'accessibilité */
* {
    box-sizing: border-box;
    user-select: none; /* Empêche la sélection de texte accidentelle */
    -webkit-tap-highlight-color: transparent; /* Enlève le flash bleu sur Android */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #F0F4F8;
    color: #1A1A1A;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #2C3E50;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

.btn-retour {
    background-color: #E74C3C;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 4px 0 #C0392B;
}

.btn-retour:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Page d'accueil */
.home-container {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-text {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.games-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.game-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    width: 300px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border: 4px solid transparent;
    transition: border-color 0.2s;
}

.game-card:active {
    border-color: #3498DB;
    background-color: #EBF5FB;
}

.game-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.game-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.game-desc {
    font-size: 1.3rem;
    color: #666;
}

.game-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ddd;
}