html,
body {
    overscroll-behavior-y: none;
    /* Permet le défilement vertical uniquement */
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #6a11cb, #2575fc);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #ffffff;
}

/* Jeu Container */
.jeu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* Grille */
.grille {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    grid-template-rows: repeat(3, 120px);
    gap: 5px;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.case {
    background-color: #f8f8f8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333333;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.case:hover {
    background-color: #e6e6e6;
    transform: scale(1.05);
}

.case:active {
    background-color: #d4d4d4;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Button Styles */
.rejouer {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    background: #ffffff;
    border: 2px solid #2575fc;
    border-radius: 25px;
    color: #2575fc;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.rejouer:hover {
    background-color: #2575fc;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.rejouer:active {
    background-color: #1a5ac7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Message Styles */
#message {
    margin-top: 20px;
    padding: 10px 20px;
    background: #ffffff;
    color: #2575fc;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #2575fc;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}