/* Bloc général */
.ce-exercice {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* Liste de mots */
.liste-mots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 30px;
    text-align: center;
}

/* Mots (pastilles) */
.ce-mot {
    display: inline-block;
    padding: 6px 12px;
    border: 2px solid #0073aa;
    border-radius: 20px;
    background: #e6f3fa;
    cursor: grab;
    font-weight: bold;
}
.ce-mot:active { cursor: grabbing; }

/* Trous */
.ce-trou {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 36px;
    border: 2px dashed #aaa;
    border-radius: 6px;
    background: #f9f9f9;
    text-align: center;
    vertical-align: middle;
    padding: 4px 8px;
    margin: 0 2px;
}
.ce-trou.over { outline: 2px dashed #0073aa; outline-offset: 2px; }
.ce-trou.correct { border: 2px solid green !important; }
.ce-trou.incorrect { border: 2px solid red !important; }

/* Mot placé dans un trou */
.ce-trou .ce-mot {
    background: #fff8e1;
    border-color: #ff9800;
}

/* Boutons */
.ce-boutons {
    text-align: center;
    margin-top: 30px;
}
.ce-verifier, .ce-reset {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background-color: #0073aa;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}
.ce-verifier:hover, .ce-reset:hover { background-color: #005f8d; }

/* Vérification phrases */
.ce-phrase.correct { border: 2px solid green; border-radius: 6px; padding: 4px; margin: 2px 0; }
.ce-phrase.incorrect { border: 2px solid red; border-radius: 6px; padding: 4px; margin: 2px 0; }

/* Feedback */
.ce-feedback {
    margin-top: 20px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.ce-feedback ul { margin: 10px 0 0 20px; }

/* Sélection (fallback clic) */
.ce-mot.selected, .ce-phrase.selected { outline: 3px solid #ff9800; outline-offset: 2px; }


/* Solution attendue (phrases en ordre correct) */
.ce-feedback ol {
    margin: 10px 0 0 20px;
}
.ce-feedback ol li {
    margin-bottom: 4px;
}


/* Espacement amélioré pour les phrases (Exercice 2) */
.ce-phrases {
    padding: 10px 0;
}
.ce-phrase {
    margin: 10px 0;
    padding: 10px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: grab;
}
