/* =======================================================================
   Simulateur QCM Éléa
   ======================================================================= */

.qcm-simulator {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.qcm-wrapper {
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.qcm-header {
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
}

.qcm-nav-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.qcm-nav-tabs span.active {
    font-weight: bold;
    color: #5b2e90;
    border-bottom: 2px solid #5b2e90;
    padding-bottom: 4px;
    font-size: 0.95rem;
}

/* Flèches de défilement gauche/droite entre les questions */
.qcm-nav-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qcm-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;
}

.qcm-nav-arrow:hover {
    background: #5b2e90;
    border-color: #5b2e90;
    color: #fff;
}

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

.qcm-top-nav {
    display: flex;
    gap: 30px;
    font-size: 0.95em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.qcm-nav-item {
    cursor: pointer;
    position: relative;
    padding-bottom: 15px;
}

.qcm-nav-item.active {
    color: #5b2e90;
    border-bottom: 3px solid #5b2e90;
    margin-bottom: -17px;
    background: #fff;
    z-index: 1;
}

.qcm-header-text {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #666;
}

.qcm-activity-title {
    display: none;
}

.qcm-question-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qcm-question-label {
    font-size: 1.1em;
    color: #000;
    margin-bottom: 4px;
    font-weight: 400;
    font-style: normal;
}

.qcm-q-num {
    color: #57068c;
    margin-right: 5px;
    font-weight: 700;
    font-style: italic;
}

.qcm-answers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qcm-answer-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.1s ease;
    min-height: 40px;
}

.qcm-answer-card:not(.disabled):not(.correct):not(.wrong):not(.selected):hover {
    border-color: #aaa;
    background: #fcfcfc;
}

.qcm-answer-card:not(.disabled):not(.correct):not(.wrong):active {
    background: #e9e9ed;
    border-color: #aaa;
    transform: scale(0.995);
}

.qcm-answer-card.selected {
    background: #e9e9ed;
    border: 1px solid #aaa;
}

.qcm-answer-card.correct {
    background: #a3eeb1;
    border-color: #8bdc9a;
    cursor: default;
}

.qcm-answer-card.wrong {
    background: #eea3a3;
    border-color: #dc8b8b;
    cursor: default;
}

.qcm-answer-card.disabled {
    cursor: default;
    opacity: 1;
}

.qcm-ans-icon {
    font-size: 1.5em;
}

.qcm-answer-card.correct .qcm-ans-icon {
    color: #000;
}

.qcm-answer-card.wrong .qcm-ans-icon {
    color: #000;
}

.qcm-feedback-text {
    font-size: 1.05em;
    margin-top: 8px;
}

.qcm-action-bar {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 6px;
}

.qcm-btn {
    background-color: #1a0dab;
    background: #1d0e4a;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.qcm-btn:hover {
    background-color: #311b70;
}

.qcm-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.qcm-end-screen {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
}

.qcm-result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
    text-align: center;
}

.qcm-score-line {
    font-size: 1.3em;
    font-weight: 600;
    color: #000;
}

.qcm-score-info {
    font-size: 1.1em;
    color: #000;
    margin-bottom: 20px;
}
/* =======================================================================
   Polish : reveal correct/faux plus fluide (couleurs en ~0.25s au lieu de
   0.1s) + apparition douce du feedback. AUCUN changement de dimensions/couleurs.
   ======================================================================= */
.qcm-answer-card {
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.1s ease;
}
@keyframes qcm-feedback-fade {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}
.qcm-feedback-text {
    animation: qcm-feedback-fade 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
    .qcm-feedback-text { animation: none; }
}
