/* Styles pour l'interface à onglets Mobile-First */

/* Conteneur des onglets (Pill script) */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem 0;
    padding: 0 1rem;
    overflow-x: auto;
    /* Sécurité pour petits écrans */
}

.tab-btn {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.tab-btn:hover {
    background: #f8fafc;
}

.tab-btn.active {
    background: var(--color-theme-blue);
    color: white;
    border-color: var(--color-theme-blue);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.tab-btn.active[data-tab="act"] {
    background: var(--color-theme-green);
    /* Vert pour l'action */
    border-color: var(--color-theme-green);
    box-shadow: 0 4px 6px rgba(5, 150, 105, 0.2);
}

.tab-btn.active[data-tab="quiz"] {
    background: var(--color-theme-pink);
    /* Rose/Orange pour le jeu */
    border-color: var(--color-theme-pink);
    box-shadow: 0 4px 6px rgba(225, 29, 72, 0.2);
}

/* Contenu des onglets */
.tab-content {
    display: none;
    /* Masqué par défaut */
    animation: fadeIn 0.3s ease;
    padding-bottom: 4rem;
    /* Espace pour le scroll */
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Styles spécifiques pour "Comprendre" */
.txt-concept-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.txt-concept-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-base);
}

/* Styles spécifiques pour "Agir" */
.txt-act-body {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Style de l'expert intégré dans l'onglet */
.expert-box {
    margin-top: 2rem;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid #475569;
}

.expert-title {
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.expert-text {
    font-size: 0.95rem;
    color: #334155;
}

/* Nettoyage des styles précédents qui ne servent plus */
.insight-container {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
}