/**
 * ================================================================
 * FICHIER : lecture_vocale.css
 * EMPLACEMENT : _modules/lecture_vocale/
 * SHORT_DESC : Styles du panneau de lecture vocale (Dialogue MBR n° 495) : sombre par défaut, html.bright_mode en clair.
 * CRÉATION : 12/10/2026 (Claude, MONSTERJaxX #2) — A VALIDER PAR JaxX
 * MODIFICATIONS :
 *   - 13/10/2026 04:30 : Le titre de l'article ne disparaît plus pendant la lecture : surlignage en
 *                        background-color (et non en raccourci background) + halo pour les titres en dégradé
 *                        détouré (.text_or_bleu, .text-gradient), Dialogue MBR n° 591 — A VALIDER PAR JaxX
 * ================================================================
 */

/* [CTRL+D] [PANNEAU] Bouton flottant et barre de contrôle, en bas à gauche */
.lv_panneau
{
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 990;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

.lv_lanceur,
.lv_controles
{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #e2e8f0;
}

.lv_lanceur[hidden],
.lv_controles[hidden]
{
    display: none;
}

.lv_lanceur
{
    padding: 0.6rem 1rem 0.6rem 0.8rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.lv_lanceur:hover,
.lv_lanceur:focus-visible
{
    transform: translateY(-2px);
    border-color: #22d3ee;
}

.lv_lanceur .material-symbols-rounded,
.lv_bt .material-symbols-rounded
{
    font-size: 1.35rem;
    color: #22d3ee;
}

.lv_controles
{
    padding: 0.3rem 0.45rem;
}

.lv_bt
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.4rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #e2e8f0;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
}

.lv_bt:hover,
.lv_bt:focus-visible
{
    background: rgba(34, 211, 238, 0.14);
}

.lv_bt_lecture
{
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.lv_bt_lecture .material-symbols-rounded
{
    color: #ffffff;
}

.lv_bt_lecture:hover,
.lv_bt_lecture:focus-visible
{
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

.lv_bt_stop .material-symbols-rounded
{
    color: #f87171;
}

.lv_progression
{
    min-width: 3.2rem;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
}

/* [CTRL+D] [SURLIGNAGE] Passage en cours de lecture */
/* 13/10/2026 04:30 (n° 591) : background-color seul, jamais le raccourci « background » : ce dernier écrasait
   le dégradé et le détourage (background-clip: text) des titres .text_or_bleu / .text-gradient, dont le texte
   est transparent ⇒ le titre de l'article disparaissait pendant la lecture (fond cyan vide à la place) */
.lv_en_cours
{
    /* background: rgba(34, 211, 238, 0.12); */ /* 13/10/2026 04:30 n° 591 */
    background-color: rgba(34, 211, 238, 0.12);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
    border-radius: 6px;
    /* transition: background 0.25s ease, box-shadow 0.25s ease; */ /* 13/10/2026 04:30 n° 591 */
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* 13/10/2026 04:30 (n° 591) : titres en dégradé détouré (texte transparent) : le fond serait détouré dans les
   lettres, donc invisible ; la mise en évidence passe par un halo extérieur et un voile intérieur léger,
   le dégradé du titre reste intact et lisible */
.lv_en_cours.text_or_bleu,
.lv_en_cours.text-gradient
{
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16), inset 0 0 0 100vmax rgba(34, 211, 238, 0.08);
}

/* [CTRL+D] [ARTICLE] Bouton dans les métadonnées de l'article */
.lv_bouton_article
{
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.lv_bouton_article .material-symbols-rounded
{
    font-size: 1.1rem;
}

.lv_bouton_article:hover,
.lv_bouton_article.lv_actif
{
    background: rgba(34, 211, 238, 0.2);
}

/* [CTRL+D] [CLAIR] Mode clair */
html.bright_mode .lv_lanceur,
html.bright_mode .lv_controles
{
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(8, 145, 178, 0.35);
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

html.bright_mode .lv_bt
{
    color: #0f172a;
}

html.bright_mode .lv_lanceur .material-symbols-rounded,
html.bright_mode .lv_bt .material-symbols-rounded
{
    color: #0891b2;
}

html.bright_mode .lv_bt_lecture .material-symbols-rounded
{
    color: #ffffff;
}

html.bright_mode .lv_bt_stop .material-symbols-rounded
{
    color: #dc2626;
}

html.bright_mode .lv_en_cours
{
    /* background: rgba(8, 145, 178, 0.1); */ /* 13/10/2026 04:30 n° 591 */
    background-color: rgba(8, 145, 178, 0.1);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

/* 13/10/2026 04:30 (n° 591) : titres en dégradé détouré, mode clair */
html.bright_mode .lv_en_cours.text_or_bleu,
html.bright_mode .lv_en_cours.text-gradient
{
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.14), inset 0 0 0 100vmax rgba(8, 145, 178, 0.06);
}

html.bright_mode .lv_bouton_article
{
    color: #0e7490;
    border-color: rgba(8, 145, 178, 0.4);
    background: rgba(8, 145, 178, 0.08);
}

/* [CTRL+D] [MOBILE] */
@media (max-width: 768px)
{
    .lv_panneau
    {
        left: 12px;
        bottom: 12px;
    }

    .lv_lanceur
    {
        padding: 0.55rem 0.85rem 0.55rem 0.7rem;
    }

    .lv_bt
    {
        min-width: 36px;
        height: 36px;
    }
}

@media print
{
    .lv_panneau,
    .lv_bouton_article
    {
        display: none;
    }
}
