/* =======================================================================
   Simulateur Éléa Test
   ======================================================================= */
.elea-test-simulator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f7;
    border-radius: 12px;
}

.elea-test-header {
    background-color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.elea-test-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.elea-test-nav-arrows {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.elea-nav-arrow {
    background: #f5f5f7;
    border: 1px solid #d1d1d6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #1d1d1f;
}

.elea-nav-arrow:hover {
    background: #007AFF;
    border-color: #007AFF;
    color: white;
}

.elea-nav-arrow i {
    font-size: 0.9em;
}

.elea-test-icon {
    color: #007AFF;
    font-size: 1.25em;
}

.elea-test-title {
    font-size: 1.15em;
    font-weight: 600;
}

.elea-test-desc {
    color: #6e6e73;
    font-size: 0.92em;
    margin-bottom: 10px;
}

.elea-test-progress {
    font-size: 0.9em;
    font-weight: 500;
    color: #86868b;
    text-align: right;
}

.elea-test-card {
    background-color: #fff;
    padding: 18px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.elea-question-header {
    margin-bottom: 15px;
}

.elea-question-name {
    font-size: 0.85em;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 5px;
    font-weight: 600;
}

.elea-question-text {
    font-size: 1.05em;
    line-height: 1.45;
}

.elea-answer-zone {
    margin-bottom: 20px;
}

/* Options Lists (Multichoice, TrueFalse) */
.elea-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elea-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.elea-option-item:hover {
    border-color: #007AFF;
    background-color: #f5faff;
}

.elea-option-item.selected {
    border-color: #007AFF;
    background-color: #eef7ff;
}

.elea-option-item.disabled {
    cursor: default;
    pointer-events: none;
}

.elea-option-item.should-be-selected {
    border-color: #34c759;
    background-color: #e8f8ec;
}

.elea-option-item.wrong-selection {
    border-color: #ff3b30;
    background-color: #fff2f2;
}

.elea-opt-icon {
    font-size: 1.2em;
    color: #007AFF;
    display: flex;
    align-items: center;
}

.elea-option-item.selected .elea-opt-icon {
    color: #007AFF;
}

.elea-option-item.should-be-selected .elea-opt-icon {
    color: #34c759;
}

.elea-option-item.wrong-selection .elea-opt-icon {
    color: #ff3b30;
}

/* Matching */
.elea-matching-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.elea-matching-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

.elea-matching-label {
    flex: 1;
    min-width: 200px;
}

.elea-select {
    padding: 8px;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    background-color: #fff;
    font-size: 0.95em;
    min-width: 150px;
}

/* Input (Numerical, ShortAnswer) */
.elea-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.elea-input {
    padding: 10px 15px;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
    max-width: 400px;
}

.elea-unit {
    font-weight: 500;
    color: #6e6e73;
}

/* Cloze */
.elea-cloze-text {
    line-height: 2;
}

.elea-cloze-input,
.elea-cloze-select {
    margin: 0 5px;
    padding: 4px 8px;
    border: 1px solid #d1d1d6;
    border-radius: 4px;
}

/* Feedback Section */
.elea-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.elea-feedback.correct {
    background-color: #e8f8ec;
    border: 1px solid #34c759;
}

.elea-feedback.incorrect {
    background-color: #fff2f2;
    border: 1px solid #ff3b30;
}

.elea-feedback.hint {
    background-color: #fff8e1;
    border: 1px solid #f9a825;
}

.elea-feedback.partial {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
}

.elea-feedback-icon {
    font-size: 1.5em;
}

.elea-feedback.correct .elea-feedback-icon {
    color: #34c759;
}

.elea-feedback.incorrect .elea-feedback-icon {
    color: #ff3b30;
}

.elea-feedback.hint .elea-feedback-icon {
    color: #f9a825;
}

.elea-feedback.partial .elea-feedback-icon {
    color: #ff9800;
}

.elea-feedback-content {
    flex: 1;
}

.elea-feedback-title {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Footer */
.elea-test-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* End Screen */
.elea-test-end {
    text-align: center;
    padding: 40px;
}

.elea-test-end-icon {
    font-size: 4em;
    color: #007AFF;
    margin-bottom: 20px;
}
/* =======================================================================
   Page d'accueil du Test (mode prof / page 0) : zone rectangulaire blanche
   propre, contenu CENTRÉ (icône + titre + description) et bouton « Commencer »
   au centre. Le bouton plein écran reste en haut à droite.
   ======================================================================= */
.elea-test-intro {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 44px 28px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}
.elea-test-intro__fs {
    position: absolute;
    top: 12px;
    right: 12px;
}
.elea-test-intro__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f1ff;
    color: #007AFF;
}
.elea-test-intro__title {
    margin: 4px 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
}
.elea-test-intro__desc {
    margin: 0;
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.55;
    color: #6e6e73;
}
.elea-test-intro__start {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 24px;
}
/* Page 0 (accueil) : on neutralise le cadre gris du simulateur pour que la zone
   blanche centrée touche les bords (continuité visuelle avec le bandeau footer). */
.elea-test-simulator--intro {
    background: transparent;
    padding: 0;
}
/* Pages-questions en preview (éditeur + modale de lecture Sucrerie / modale
   Caramel) : SURFACE BLANCHE PLEINE — on neutralise le cadre gris du Test pour
   supprimer le double-cadre gris-sur-gris et le vide. L'embed élève (rendu dans
   .embed__viewer, hors .sim-mount) garde le fond gris fidèle à Éléa. */
.sim-mount .elea-test-simulator,
.preview-modal__preview .elea-test-simulator {
    background: transparent;
    padding: 0;
    border-radius: 0;
}
