/* Styles pour le jeu */
#gameContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: #2d3748;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 1000;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.9);
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    color: white;
    display: none;
}

#gameOver h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

#gameOver p {
    font-size: 24px;
    margin-bottom: 30px;
}

#restartBtn, #menuBtn {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    margin: 5px;
}

#restartBtn:hover, #menuBtn:hover {
    transform: scale(1.1);
    background: #45b7aa;
}

section {
    justify-content: center;
}

jeu {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

jeu:hover {
    transform: scale(1.05);
    background-color: #555;
}