html {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    background-color: gray;
}
/* Style général */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

/* Formulaire */
form {
    padding: 20px;
    border-radius: 8px;
    background-color: wheat;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

form label {
    margin-right: 10px;
}

form input {
    width: 60px;
    padding: 5px;
}

form button {
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    border: none;
    background-color: green;
    color: white;
    border-radius: 4px;
}

form button:hover {
    background-color: #005fcc;
}

/* Table / Grille */
table {
    border-collapse: collapse;
    margin-top: 30px;
    background-color: green;
}

td {
    width: 30px;
    height: 30px;
    border: 1px solid #444;
    text-align: center;
    padding: 0;
}

td div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Bombes et cases vides */
td div:contains("X") {
    color: red;
}

td div:contains("O") {
    color: #555;
}


.clicked {
    background-color: blue !important;
    pointer-events: none;
}

