body {
    background: #fdf6e3;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 30px;
    gap: 40px;
}

h1, h2 {
    color: #b5651d;
}

table {
    border-collapse: collapse;
    margin-top: 10px;
}

td {
    border: 3px solid #b5651d;
    width: 60px;
    height: 60px;
    text-align: center;
    position: relative;
    background-color: #f9e4c8;
}

.input-cell {
    background-color: #f9e4c8;
}

.input-cell input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 24px;
    background-color: transparent;
    color: #4b2e1f;
}

.input-cell input.filled {
    background-color: #deb887;
}

.input-cell input:focus {
    outline: none;
}

.product {
    background-color: #ecd9c0;
    font-weight: bold;
    color: #6b4226;
    font-size: 20px;
}

.calculated {
    position: absolute;
    bottom: 2px;
    right: 2px;
    color: green;
    font-size: 14px;
}

#bravo {
    margin-top: 20px;
    font-size: 22px;
    color: #a0522d;
    display: none;
    animation: pop 1s infinite alternate;
    text-align: center;
}

@keyframes pop {
    0% { transform: scale(1);}
    100% { transform: scale(1.05);}
}

/* Index - choix des grilles */

.grid-choice {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.card {
    background-color: #f9e4c8;
    border: 2px solid #b5651d;
    padding: 20px 30px;
    text-align: center;
    font-size: 20px;
    color: #6b4226;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
}

.card:hover {
    transform: scale(1.05);
    background-color: #deb887;
}
