/* ============================================
   GAME MODULE - STYLES GLOBAUX ESSENTIELS
   Apparence générale du jeu et fenêtre modale
   ============================================ */

/* ==========================================
   MODAL DU JEU
   ========================================== */
#game-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

/* ==========================================
   CONTENEUR PRINCIPAL
   ========================================== */
.game-container {
    background: #f4f4f9;
    width: 95%;
    height: 99%;
    max-width: 1400px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==========================================
   EN-TÊTE DU JEU
   ========================================== */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.game-info,
.game-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-score,
.game-timer {
    font-size: 1rem;
    font-weight: bold;
}

.game-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ==========================================
   ZONE DE CONTENU
   ========================================== */
.game-content-area {
    flex-grow: 1;
    padding: 20px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* ==========================================
   ÉCRAN D'ACCUEIL
   ========================================== */
.game-start-screen {
    text-align: center;
}

.game-start-screen h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.game-start-screen .game-categories {
    color: #666;
    margin-bottom: 20px;
}

.game-start-screen .game-motivation {
    font-style: italic;
    margin-bottom: 30px;
}

/* ==========================================
   PIED DE PAGE
   ========================================== */
.game-footer {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #76c7c0;
    transition: width 0.3s ease;
}

/* ==========================================
   ÉCRAN DE RÉSULTATS
   ========================================== */
.game-results-container {
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.game-results-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.final-score {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.final-percentage {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 10px;
}

.final-time {
    font-size: 1.2rem;
    color: #777;
}

/* ==========================================
   ANIMATION
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* Très grands écrans (1600px et plus) */
@media (min-width: 1600px) {
    .game-container {
        max-width: 1600px;
    }
}

/* Grands écrans (1200px - 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .game-container {
        max-width: 1400px;
    }
}

/* Écrans moyens (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .game-container {
        max-width: 1100px;
    }
}

/* Tablettes (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .game-container {
        width: 98%;
    }

    .game-content-area {
        padding: 15px 25px;
    }
}

/* Mobiles (moins de 768px) */
@media (max-width: 767px) {
    .game-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .game-content-area {
        padding: 15px 20px;
    }

    .game-start-screen h2 {
        font-size: 1.8rem;
    }
}