/* === GENERAL === */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #121212;
    color: #fff;
}

section {
    padding: 20px;
    text-align: center;
}

/* === TITRE === */
.titre-style {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 20px;
}

/* === HUD === */
#pacman-hud {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 1.1em;
    color: #FFD700;
}

/* === MESSAGE === */
#pacman-message {
    margin: 10px 0 10px 0;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    border: 1px dashed lightgreen;
    color: white;
	max-width: 600px;
	margin: 10px auto 10px auto;
}

/* === CANVAS === */
#pacman-canvas {
    display: block;
    margin: 10px auto;
    box-shadow: 0 0 10px #0ff;
    border-radius: 15px;
    background-color: #1f1f1f;
}

/* === MOBILE CONTROLS === */
#mobile-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
	margin-top: 15px;
}

/* Ligne gauche / droite */
#mobile-controls .row {
    display: flex;
    gap: 15px;
}

/* Boutons */
#mobile-controls button {
    font-size: 1.4em;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    background-color: #1E90FF;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transition: 0.2s;
}

#mobile-controls button:active {
    background-color: #1C86EE;
    transform: scale(0.95);
}


/* === INFO SESSION === */
.info-session {
    margin-bottom: 20px;
    font-size: 1em;
    color: #ccc;
}

/* === END ACTIONS === */
#pacman-end-actions {
    margin-top: 15px;
    display: none;
}

/* Cacher les boutons directionnels sur PC (écran large > 768px) */
/* Affichage uniquement mobile */
@media screen and (max-width: 768px) {
    #mobile-controls {
        display: flex;
    }
}

/* === RESPONSIVE === */
@media(max-width: 650px){
    #pacman-canvas {
        width: 90%;
        height: 90%;
    }

    #pacman-hud {
        flex-direction: column;
        gap: 5px;
    }
}

