body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #101820, #243447);
    color: white;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
    text-align: center;
}

h1 {
    color: #ffcc00;
    font-size: 42px;
    margin-bottom: 5px;
}

.subtitle {
    color: #ddd;
    margin-bottom: 30px;
}

.game-layout {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.grille {
    display: grid;
    gap: 3px;
    background: #111;
    padding: 10px;
    border: 4px solid #ffcc00;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.4);
}

.case {
    width: 38px;
    height: 38px;
    background: white;
    position: relative;
    border-radius: 4px;
}

.case.noire {
    background: #111;
}

.case input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    background: transparent;
    outline: none;
}

.numero {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 10px;
    color: #333;
    font-weight: bold;
}

.definitions {
    width: 360px;
    background: white;
    color: #222;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.definitions h2 {
    color: #111;
    text-align: center;
}

.definitions h3 {
    color: #d19a00;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
}

.definitions li {
    margin-bottom: 10px;
    line-height: 1.4;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: #ffcc00;
    color: #111;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #ffd633;
}

#resultat {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

.correct {
    background: #c8f7c5 !important;
}

.incorrect {
    background: #ffb3b3 !important;
}
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 30px;
    }

    .game-layout {
        flex-direction: column;
        align-items: center;
    }

    .grille {
        overflow-x: auto;
        max-width: 100%;
        padding: 6px;
    }

    .case {
        width: 28px;
        height: 28px;
    }

    .case input {
        font-size: 16px;
    }

    .definitions {
        width: 100%;
        max-width: 360px;
    }
}
