/* Container principal */
.container {
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: #EAEAFF;	
}

/* Grille de jeu avec fond bleu plateau */
.grid-container {
    display: grid;
    margin: 0 auto;
    grid-template-columns: repeat(7, 50px);
    grid-template-rows: repeat(6, 50px);
    gap: 3px;
    background-color: #4aa3df; /* Fond bleu plateau */
    padding: 10px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
}

/* Cellules (blanches) */
.cell {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid #aaaaaa;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.1s ease;
}

.cell:hover {
    transform: scale(1.1);
}

/* Pions avec effet 3D */
.yellow {
    background: radial-gradient(circle at 30% 30%, #fff200, #e6c200);
    box-shadow: inset -2px -2px 5px rgba(0,0,0,0.3),
                2px 2px 5px rgba(0,0,0,0.2);
}

.red {
    background: radial-gradient(circle at 30% 30%, #ff4d4d, #b30000);
    box-shadow: inset -2px -2px 5px rgba(0,0,0,0.3),
                2px 2px 5px rgba(0,0,0,0.2);
}

/* Message de statut */
#status-message {
    margin-top: 20px;
    font-weight: bold;
    font-size: 20px;
    display: block;
    text-align: center;
}

/* Bouton "Rejouer" */
#restart-button {
    margin-top: 20px;
    font-size: 16px;
	font-weight: bold;
    padding: 8px 16px;
    background-color: #000042;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: 0.2s;
}

#restart-button:hover {
    background-color: white;
    color: #000042;
}

/* Score centré sous le bouton */
#score {
    margin-top: 10px;
    font-weight: bold;
    padding: 5px 15px;
    background-color: #000042; /* fond bleu foncé */
    border-radius: 5px;
    display: inline-block;       /* pour padding et largeur automatique */
    color: white;
    text-align: center;          /* centre le texte à l’intérieur */
    margin-left: auto;           /* centre le bloc horizontalement */
    margin-right: auto;
}

/* Score des joueurs */
#score-yellow {
    color: yellow;
    font-weight: bold;
}

#score-red {
    color: red;
    font-weight: bold;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(7, 30px);
        grid-template-rows: repeat(6, 30px);
        gap: 2px;
        padding: 5px;
    }

    .cell {
        width: 30px;
        height: 30px;
    }

    #status-message {
        font-size: 18px;
    }

    #restart-button {
        font-size: 14px;
        padding: 6px 12px;
    }

    #score {
        font-size: 16px;
        padding: 4px 10px;
    }
}
