/* ═══════════════════════════════════════
   LECTURE ASSISTÉE — Styles des 3 modes
   ═══════════════════════════════════════ */

/* ── 🎧 CONTEUR : Paragraphe actif ── */
.conteur-actif {
    background: rgba(246, 166, 35, 0.1);
    border-left: 3px solid var(--accent-primary, #f6a623);
    padding-left: 12px;
    border-radius: 0 8px 8px 0;
    transition: background 0.3s ease, border-left 0.3s ease;
}

/* Bouton flottant Conteur */
#btn-conteur-flottant {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9990;
    display: none;
    gap: 8px;
    background: var(--bg-card, #1e1e3a);
    border: 2px solid var(--accent-primary, #f6a623);
    border-radius: 50px;
    padding: 8px 14px;
    box-shadow: 0 4px 20px rgba(246, 166, 35, 0.3);
    animation: slideUp 0.3s ease;
}

#btn-conteur-flottant button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

#btn-conteur-flottant button:hover {
    background: rgba(246, 166, 35, 0.15);
}

/* ── 📖 COMPAGNON : Phrases cliquables ── */
.phrase-compagnon {
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 4px;
    padding: 1px 2px;
}

.phrase-compagnon:hover {
    background: rgba(52, 152, 219, 0.12);
}

.phrase-active {
    background: rgba(52, 152, 219, 0.18) !important;
    border-bottom: 2px solid #3498db;
}

/* ── Karaoké : Mot en cours de lecture ── */
.mot-karaoke-item {
    transition: background 0.15s ease, color 0.15s ease;
    border-radius: 3px;
    padding: 0 1px;
}

.mot-karaoke {
    background: var(--accent-primary, #f6a623) !important;
    color: #1a1200 !important;
    border-radius: 4px;
    padding: 1px 3px;
    font-weight: 700;
}

/* ── Bouton Conteur dans la lecture ── */
#btn-lancer-conteur {
    display: none;
    margin: 10px auto;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-primary, #f6a623), #e8950a);
    color: #1a1200;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#btn-lancer-conteur:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(246, 166, 35, 0.4);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    #btn-conteur-flottant {
        bottom: 20px;
        right: 12px;
        padding: 6px 10px;
    }
    #btn-conteur-flottant button {
        font-size: 1.3rem;
    }
}
