body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #e0f2f7;
    /* Bleu très clair */
    color: #333;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 90%;
    border: 1px solid #cceeff;
    /* Bordure plus douce */
}

h1 {
    color: #007bff;
    /* Bleu primaire */
    margin-bottom: 25px;
    font-size: 2.2em;
}

.word-display-area {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.word-box {
    background-color: #f0f8ff;
    /* Bleu très pâle */
    border: 1px solid #a0d9f2;
    /* Bordure bleue claire */
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px;
    min-width: 120px;
    flex-grow: 1;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: #0056b3;
    /* Bleu plus foncé pour le texte */
    font-weight: bold;
}

.word-box span {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

#finalSentence {
    margin-top: 25px;
    font-size: 1.5em;
    color: #28a745;
    /* Vert pour la phrase finale */
    min-height: 1.8em;
    font-weight: bold;
}

.controls button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 8px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.controls button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.controls button:active {
    transform: translateY(0);
}

.controls button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Styles spécifiques pour les boutons */
#startButton {
    background-color: #007bff;
}

#startButton:hover {
    background-color: #0056b3;
}

#nextButton {
    background-color: #28a745;
    /* Vert */
}

#nextButton:hover {
    background-color: #218838;
}

#resetButton {
    background-color: #6c757d;
    /* Gris */
}

#resetButton:hover {
    background-color: #5a6268;
}

/* Masquer les boîtes de mots initialement */
#subjectBox,
#verbBox,
#complementBox {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
}

/* Afficher les boîtes de mots quand le jeu commence */
body.game-started #subjectBox,
body.game-started #verbBox,
body.game-started #complementBox {
    visibility: visible;
    opacity: 1;
}