/* --- Conteneur Principal --- */
.aeq-qcm-container {
    width: 100%;
    margin: 40px auto;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- Onglets de Navigation --- */
.aeq-tabs {
    list-style-type: none;
    margin: 0 0 30px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    border-bottom: none;
}

.aeq-tab-link {
    padding: 12px 24px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
}

.aeq-tab-link:hover {
    background: #f9fafb;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.aeq-tab-link.current {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* --- Contenu des Onglets --- */
.aeq-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.aeq-tab-content.current {
    display: block;
    opacity: 1;
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Grille de Cartes QCM --- */
.aeq-qcm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.aeq-qcm-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.aeq-qcm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.aeq-card-header {
    background: linear-gradient(to right, #f8fafc, #fff);
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aeq-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.aeq-card-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- Sections de Question --- */
.aeq-question-section {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.aeq-question-section:last-child {
    border-bottom: none;
}

/* Couleurs Thématiques subtiles */
.aeq-question-section.q-tech {
    background-color: #fff;
    border-left: 4px solid #ef4444;
}

/* Rouge */
.aeq-question-section.q-comp {
    background-color: #fafafa;
    border-left: 4px solid #f97316;
}

/* Orange */
.aeq-question-section.q-secours {
    background-color: #fff;
    border-left: 4px solid #10b981;
}

/* Vert */

.aeq-question-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
}

.aeq-question-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
    font-weight: 600;
    margin-bottom: 16px;
}

.aeq-q-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* --- Boutons et Actions --- */
.aeq-reveal-button {
    background: #fff;
    color: #4f46e5;
    border: 2px solid #e0e7ff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

.aeq-reveal-button:hover {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.aeq-reveal-button.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

/* --- Réponse Cachée --- */
.aeq-answer-hidden {
    display: none;
    margin-top: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.aeq-answer-hidden p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.aeq-q-video {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.aeq-video-player,
.aeq-q-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* --- Gamification UI REMOVED --- */

/* --- Animations --- */
.aeq-answer-hidden.revealed {
    display: block;
    animation: expand 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes expand {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .aeq-qcm-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Gamification responsive styles removed */

    .aeq-tabs {
        gap: 8px;
    }

    .aeq-tab-link {
        padding: 10px 16px;
        font-size: 0.9rem;
        flex: 1 1 auto;
        text-align: center;
    }
}