/* =================================
   EXERCICE VRAI/FAUX - DESIGN MODERNE
   ================================= */

/* Container principal */
.interactif-trueorfalse-container {
    background: white;
        font-family: system-ui;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Header de l'exercice - caché par défaut */
.exercise-header {
    background: linear-gradient(135deg, #00D9FF 0%, #0099CC 100%);
    padding: 25px;
    color: white;
    text-align: center;
    display: none; /* Caché par défaut */
}

/* Afficher uniquement s'il y a une image */
.exercise-header.has-image {
    display: block;
}

.exercise-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Image de l'exercice */
.exercise-image-container {
    text-align: center;
    margin: 20px 0;
}

.exercise-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Container des affirmations */
.statements-container {
    padding: 30px;
    background: #fafbfc;
}

/* Affirmations individuelles */
.interactif-trueorfalse-statement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.interactif-trueorfalse-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.interactif-trueorfalse-statement:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #00D9FF;
}

.interactif-trueorfalse-statement:hover::before {
    background: #00D9FF;
}

/* États des affirmations */
.interactif-trueorfalse-statement.correct {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.interactif-trueorfalse-statement.correct::before {
    background: #28a745;
}

.interactif-trueorfalse-statement.incorrect {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
}

.interactif-trueorfalse-statement.incorrect::before {
    background: #dc3545;
}

/* Texte des affirmations */
.statement-text {
    display: flex;
    align-items: flex-start;
    flex: 1;
    margin-right: 5px;
}

/* Support RTL pour le texte arabe */
.statement-text[dir="rtl"], 
[dir="rtl"] .statement-text,
html[dir="rtl"] .statement-text {
    flex-direction: row;
    margin-right: 0;
    margin-left: 20px;
}

.statement-number {
    background: #00D9FF;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Position du numéro pour RTL */
.statement-text[dir="rtl"] .statement-number, 
[dir="rtl"] .statement-text .statement-number,
html[dir="rtl"] .statement-text .statement-number {
    margin-right: 0;
    margin-left: 15px;
}

.statement-content {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #2c3e50;
    font-weight: 500;
    text-align: right; /* Alignement à droite pour l'arabe */
}

/* Support automatique pour les langues RTL */
.statement-content:dir(rtl) {
    text-align: right;
}

/* Responsive RTL */
@media (max-width: 768px) {
    .statement-text[dir="rtl"], 
    [dir="rtl"] .statement-text,
    html[dir="rtl"] .statement-text {
        margin-left: 0;
        margin-bottom: 15px;
    }
}

/* Options Vrai/Faux */
.truefalse-options {
    display: flex;
    align-items: center;
}

.interactif-trueorfalse-value {
    display: flex
;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    max-width: 150px;
    width: 100%;
    height: 40px;
    justify-content: center;
        min-width: 90px;
}

/* Icônes de correction */
.correction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    margin-left: 8px;
}

.correct .correction-icon {
    background: #28a745;
    color: white;
}

.incorrect .correction-icon {
    background: #dc3545;
    color: white;
}

/* ==============================
   FEEDBACK SECTION
   ============================== */



/* Styles pour la détection automatique de direction */
.rtl-text {
    text-align: right;
    direction: rtl;
}

.ltr-text {
    text-align: left;
    direction: ltr;line-height: 30px;
}

/* Layout pour les containers selon la langue */
.rtl-layout {
    direction: rtl;
}

.ltr-layout {
    direction: ltr;
}

/* Container principal pour les affirmations */
.interactif-trueorfalse-statement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Ajustements pour les éléments statement-text */
.statement-text {
    display: flex;
    align-items: center;
    flex: 1;
}


.statement-text.rtl-statement .statement-number {
    margin-left: 8px;
    margin-right: 0;
}

.statement-text.rtl-statement .statement-content {
    text-align: right;
}

/* Styles pour les affirmations LTR */
.statement-text.ltr-statement {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
}

.statement-text.ltr-statement .statement-number {
    margin-right: 8px;
    margin-left: 0;
}

.statement-text.ltr-statement .statement-content {
    text-align: left;
}

/* Styles pour les numéros */
.statement-number {
    font-weight: bold;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #00bcd4;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

/* Styles pour les options true/false */
.truefalse-options {
    
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Layout RTL pour les containers */
.rtl-layout .interactif-trueorfalse-statement {
    direction: rtl;
}

.ltr-layout .interactif-trueorfalse-statement {
    direction: ltr;
}

/* Responsive pour les différentes tailles d'écran */
@media (max-width: 768px) {
    .rtl-statement .statement-number,
    .ltr-statement .statement-number {
        min-width: 20px;
        font-size: 0.9em;
    }
    
    .rtl-statement .statement-number {
        margin-left: 6px;
    }
    
    .ltr-statement .statement-number {
        margin-right: 6px;
    }
}

/* ==============================
   FEEDBACK INTERACTIF TRUE/FALSE - DESIGN AMÉLIORÉ
   Couleurs principales: Cyan (#00ffff) et Blanc
   ============================== */

.interactif-trueorfalse-feedback {
    background: linear-gradient(145deg, #ffffff 0%, #f8feff 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    margin: 40px 0;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
}

.interactif-trueorfalse-feedback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #00ffff 0%, 
        #00d4ff 25%, 
        #0099ff 50%, 
        #00d4ff 75%, 
        #00ffff 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.interactif-trueorfalse-feedback h3 {
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 50%, #0099bb 100%);
    color: #ffffff;
    padding: 32px 40px;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.interactif-trueorfalse-feedback h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.text-reference {
    background: linear-gradient(135deg, #f0fffe 0%, #e6ffff 100%);
    padding: 24px 40px;
    border-left: 5px solid #00ffff;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #2c5282;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 255, 255, 0.1);
}

.text-reference::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 15px;
    font-size: 4rem;
    color: #00ffff;
    opacity: 0.3;
    line-height: 1;
}

.interactif-trueorfalse-feedback ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    background: linear-gradient(180deg, #fefffe 0%, #f9fffe 100%);
}

.interactif-trueorfalse-feedback li {
    background: #ffffff;
    border: 1px solid rgba(0, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.interactif-trueorfalse-feedback li:last-child {
    margin-bottom: 0;
}

.interactif-trueorfalse-feedback li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e2f8f8;
    transition: all 0.3s ease;
}

.interactif-trueorfalse-feedback li:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(0, 255, 255, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 255, 255, 0.2);
}

.interactif-trueorfalse-feedback li:hover::before {
    background: #00ffff;
    width: 6px;
}

.interactif-trueorfalse-feedback li.correct {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border-color: #00cc66;
    box-shadow: 0 8px 24px rgba(0, 204, 102, 0.1);
}

.interactif-trueorfalse-feedback li.correct::before {
    background: linear-gradient(180deg, #00ff88 0%, #00cc66 100%);
    width: 6px;
}

.interactif-trueorfalse-feedback li.incorrect {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7dd 100%);
    border-color: #ff4757;
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.1);
}

.interactif-trueorfalse-feedback li.incorrect::before {
    background: linear-gradient(180deg, #ff6b7a 0%, #ff4757 100%);
    width: 6px;
}

/* Feedback des affirmations */
.statement-feedback {
    margin-bottom: 16px;
}

.statement-feedback strong {
    color: #00cccc;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 12px;
    text-shadow: 0 1px 2px rgba(0, 204, 204, 0.2);
}

.answer-feedback {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.user-answer,
.correct-answer {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.user-answer {
    background: linear-gradient(135deg, #f0fffe 0%, #e1fffe 100%);
    color: #00999b;
    border: 2px solid rgba(0, 255, 255, 0.2);
}

.user-answer::before {
    content: '👤';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
}

.correct-answer {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    color: #00804d;
    border: 2px solid rgba(0, 204, 102, 0.2);
}

.correct-answer::before {
    content: '✓';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #00cc66;
    font-weight: bold;
}

/* Explications */
.statement-explanation {
    margin-top: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fffef0 0%, rgba(255, 254, 240, 0.8) 100%);
    border-left: 5px solid #ffb347;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(255, 179, 71, 0.1);
}

.statement-explanation::before {
    content: '💡';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.statement-explanation strong {
    color: #cc8800;
    font-weight: 700;
}

.global-explanation-container {
    background: linear-gradient(135deg, #f0fffe 0%, rgba(240, 255, 254, 0.8) 100%) !important;
    border: 2px solid rgba(0, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.global-explanation-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #00ffff 0%, #00cccc 100%);
}

.global-explanation {
    margin: 0;
    padding: 28px 32px;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c5282;
}

.global-explanation strong {
    color: #00aaaa;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */

@media (max-width: 768px) {
    .statements-container {
        padding: 16px;
    }
    
    .interactif-trueorfalse-feedback {
        margin: 24px 0;
        border-radius: 16px;
    }
    
    .interactif-trueorfalse-feedback h3 {
        padding: 24px 20px;
        font-size: 1.5rem;
    }
    
    .text-reference {
        padding: 20px 24px;
        font-size: 1rem;
    }
    
    .interactif-trueorfalse-feedback ul {
        padding: 16px;
    }
    
    .interactif-trueorfalse-feedback li {
        padding: 20px 24px;
        border-radius: 12px;
    }
    
    .answer-feedback {
        flex-direction: column;
    }
    
    .statement-explanation,
    .global-explanation {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .global-explanation-container {
        border-radius: 16px !important;
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .truefalse-options label{
        padding: 8px 8px;
    }
    }
    .interactif-trueorfalse-feedback h3 {
        font-size: 1.3rem;
        padding: 20px 16px;
    }
    
    .text-reference {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .interactif-trueorfalse-feedback ul {
        padding: 12px;
    }
    
    .interactif-trueorfalse-feedback li {
        padding: 16px 20px;
    }
    
    .statement-feedback strong {
        font-size: 1.1rem;
    }
    
    .user-answer,
    .correct-answer {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}

/* ==============================
   ANIMATIONS AMÉLIORÉES
   ============================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes correctPulse {
    0% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 204, 102, 0.1); }
    50% { transform: scale(1.02); box-shadow: 0 12px 32px rgba(0, 204, 102, 0.2); }
    100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 204, 102, 0.1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.interactif-trueorfalse-statement {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactif-trueorfalse-statement.correct {
    animation: correctPulse 0.8s ease-in-out;
}

.interactif-trueorfalse-statement.incorrect {
    animation: incorrectShake 0.6s ease-in-out;
}

.interactif-trueorfalse-feedback {
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactif-trueorfalse-feedback li {
    animation: slideInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.interactif-trueorfalse-feedback li:nth-child(1) { animation-delay: 0.1s; }
.interactif-trueorfalse-feedback li:nth-child(2) { animation-delay: 0.2s; }
.interactif-trueorfalse-feedback li:nth-child(3) { animation-delay: 0.3s; }
.interactif-trueorfalse-feedback li:nth-child(4) { animation-delay: 0.4s; }
.interactif-trueorfalse-feedback li:nth-child(5) { animation-delay: 0.5s; }

/* ==============================
   CLASSES MANQUANTES - RTL ET ÉLÉMENTS SPÉCIFIQUES
   ============================== */

/* Support RTL (Arabic) */
.interactif-truefalse-feedback[style*="rtl"],
.interactif-truefalse-feedback[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.interactif-truefalse-feedback[dir="rtl"] .text-reference::before {
    right: 15px;
    left: auto;
}

.interactif-truefalse-feedback[dir="rtl"] .statement-explanation::before {
    right: auto;
    left: 20px;
}

.interactif-truefalse-feedback[dir="rtl"] .user-answer::before,
.interactif-truefalse-feedback[dir="rtl"] .correct-answer::before {
    right: -2px;
    left: auto;
}

/* Item de feedback individuel */
.interactif-truefalse-item {
    background: #ffffff;
    border: 1px solid rgba(0, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.interactif-truefalse-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e2f8f8;
    transition: all 0.3s ease;
}

.interactif-truefalse-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(0, 255, 255, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 255, 255, 0.2);
}

.interactif-truefalse-item:hover::before {
    background: #00ffff;
    width: 6px;
}

/* Item correct */
.interactif-correct {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border-color: #00cc66;
    box-shadow: 0 8px 24px rgba(0, 204, 102, 0.1);
}

.interactif-correct::before {
    background: linear-gradient(180deg, #00ff88 0%, #00cc66 100%);
    width: 6px;
}

/* Item incorrect */
.interactif-incorrect {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7dd 100%);
    border-color: #ff4757;
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.1);
}

.interactif-incorrect::before {
    background: linear-gradient(180deg, #ff6b7a 0%, #ff4757 100%);
    width: 6px;
}

/* Badge de feedback */
.feedback-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e6ffed 0%, #d4edda 100%);
    color: #00804d;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 204, 102, 0.2);
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(0, 204, 102, 0.1);
}

.feedback-badge.incorrect {
    background: linear-gradient(135deg, #fed7dd 0%, #f8d7da 100%);
    color: #cc1f36;
    border-color: rgba(255, 71, 87, 0.2);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.1);
}

/* RTL pour badge */
[dir="rtl"] .feedback-badge {
    margin-right: 0;
    margin-left: 8px;
}

/* Justification manquante */
.missing-justification {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe4b3 100%);
    color: #cc6600;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 152, 0, 0.2);
    margin: 16px 0;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.08);
}

.missing-justification::before {
    content: '⚠️';
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1rem;
}

[dir="rtl"] .missing-justification::before {
    right: auto;
    left: 15px;
}

/* Boîte de correction */
.correction-box {
    background: linear-gradient(135deg, #f0fffe 0%, #e1fffe 100%);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 255, 255, 0.08);
}

.correction-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #00ffff 0%, #00cccc 100%);
    border-radius: 0 0 0 14px;
}

[dir="rtl"] .correction-box::before {
    left: auto;
    right: 0;
    border-radius: 0 0 14px 0;
}

.correction-box p {
    margin: 0 0 12px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #2c5282;
}

.correction-box p:last-child {
    margin-bottom: 0;
}

.correction-box strong {
    color: #00aaaa;
    font-weight: 700;
}

/* Paragraphes dans les items */
.interactif-truefalse-item p {
    margin: 0 0 12px 0;
    line-height: 1.7;
    color: #2d3748;
}

.interactif-truefalse-item p:last-child {
    margin-bottom: 0;
}

.interactif-truefalse-item p strong {
    color: #00cccc;
    font-weight: 700;
    font-size: 1.05rem;
}

/* Responsive pour nouveaux éléments */
@media (max-width: 768px) {
    .interactif-truefalse-item {
        padding: 20px 24px;
        border-radius: 12px;
    }
    
    .correction-box {
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .feedback-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .missing-justification {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .interactif-truefalse-item {
        padding: 16px 20px;
    }
    
    .correction-box {
        padding: 14px 18px;
    }
    
    .interactif-truefalse-item p {
        font-size: 0.95rem;
    }
    
    .correction-box p {
        font-size: 0.9rem;
    }
}

/* ==============================
   DARK MODE AMÉLIORÉ
   ============================== */

@media (prefers-color-scheme: dark) {
    .interactif-trueorfalse-feedback {
        background: linear-gradient(145deg, #1a1a1a 0%, #0f1419 100%);
        border-color: rgba(0, 255, 255, 0.2);
        color: #e2e8f0;
    }
    
    /* Dark mode pour nouveaux éléments */
    .interactif-truefalse-item {
        background: #2d3748;
        border-color: rgba(0, 255, 255, 0.15);
        color: #e2e8f0;
    }
    
    .interactif-correct {
        background: linear-gradient(135deg, #1a2e1a 0%, #0f1f0f 100%);
        border-color: #00aa55;
    }
    
    .interactif-incorrect {
        background: linear-gradient(135deg, #2e1a1a 0%, #1f0f0f 100%);
        border-color: #cc3344;
    }
    
    .feedback-badge {
        background: linear-gradient(135deg, #1a2e1a 0%, #0f1f0f 100%);
        color: #68d391;
        border-color: rgba(0, 204, 102, 0.3);
    }
    
    .feedback-badge.incorrect {
        background: linear-gradient(135deg, #2e1a1a 0%, #1f0f0f 100%);
        color: #fc8181;
        border-color: rgba(255, 71, 87, 0.3);
    }
    
    .missing-justification {
        background: linear-gradient(135deg, #2d2417 0%, #1f1a0f 100%);
        color: #e2d08a;
        border-color: rgba(213, 158, 46, 0.3);
    }
    
    .correction-box {
        background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
        border-color: rgba(0, 255, 255, 0.25);
    }
    
    .correction-box p {
        color: #cbd5e0;
    }
    
    .correction-box strong {
        color: #4fd1c7;
    }
    
    .interactif-truefalse-item p {
        color: #e2e8f0;
    }
    
    .interactif-truefalse-item p strong {
        color: #4fd1c7;
    }
    
    .interactif-trueorfalse-feedback h3 {
        background: linear-gradient(135deg, #00cccc 0%, #008888 50%, #006666 100%);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    
    .text-reference {
        background: linear-gradient(135deg, #0f2027 0%, #203a43 100%);
        color: #cbd5e0;
        border-left-color: #00cccc;
    }
    
    .interactif-trueorfalse-feedback ul {
        background: linear-gradient(180deg, #1e2328 0%, #151a1e 100%);
    }
    
    .interactif-trueorfalse-feedback li {
        background: #2d3748;
        border-color: rgba(0, 255, 255, 0.15);
        color: #e2e8f0;
    }
    
    .interactif-trueorfalse-feedback li:hover {
        box-shadow: 
            0 12px 32px rgba(0, 255, 255, 0.2),
            0 4px 16px rgba(0, 0, 0, 0.3);
    }
    
    .interactif-trueorfalse-feedback li.correct {
        background: linear-gradient(135deg, #1a2e1a 0%, #0f1f0f 100%);
        border-color: #00aa55;
    }
    
    .interactif-trueorfalse-feedback li.incorrect {
        background: linear-gradient(135deg, #2e1a1a 0%, #1f0f0f 100%);
        border-color: #cc3344;
    }
    
    .user-answer {
        background: linear-gradient(135deg, #1a2728 0%, #0f1f20 100%);
        color: #4fd1c7;
        border-color: rgba(0, 255, 255, 0.3);
    }
    
    .correct-answer {
        background: linear-gradient(135deg, #1a2e1a 0%, #0f1f0f 100%);
        color: #68d391;
        border-color: rgba(0, 204, 102, 0.3);
    }
    
    .statement-explanation {
        background: linear-gradient(135deg, #2d2417 0%, #1f1a0f 100%);
        color: #e2d08a;
        border-left-color: #d69e2e;
    }
    
    .global-explanation-container {
        background: linear-gradient(135deg, #0f2027 0%, rgba(15, 32, 39, 0.8) 100%) !important;
        border-color: rgba(0, 255, 255, 0.25) !important;
    }
    
    .global-explanation {
        color: #cbd5e0;
    }
    
    .statement-feedback strong {
        color: #4fd1c7;
        text-shadow: 0 1px 2px rgba(79, 209, 199, 0.3);
    }
    
    .global-explanation strong {
        color: #4fd1c7;
    }
}


/* Styles pour le bouton audio */
.audio-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 10px;
    border-radius: 50%;
    background-color: #f0f8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.audio-button:hover {
    background-color: #e1f5fe;
    transform: scale(1.1);
}

.audio-button:active {
    transform: scale(0.95);
}

.audio-button svg {
    width: 18px;
    height: 18px;
    fill: #00bcd4;
}

.rtl-statement .audio-button {
    margin-left: 0;
    margin-right: 10px;
}

/* Animation pendant la lecture */
.audio-button.playing svg {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}