/**
 * Senolo TTS - Styles pour le bouton "Ecouter"
 *
 * FICHIER STANDALONE - ne modifie aucun CSS existant
 * A inclure dans discussion.php une fois valide
 */

.tts-container {
    display: inline-flex;
    margin-top: 8px;
}

.tts-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #EBF5FF;
    color: #002FA7;
    border: 1px solid #B3D4FC;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.tts-btn:hover {
    background: #D6E8FF;
    border-color: #002FA7;
    transform: translateY(-1px);
}

.tts-btn.tts-playing {
    background: #002FA7;
    color: white;
    border-color: #002FA7;
    animation: tts-pulse 1.5s ease-in-out infinite;
}

.tts-btn.tts-playing:hover {
    background: #001f6e;
}

@keyframes tts-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 47, 167, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(0, 47, 167, 0); }
}

.tts-btn i {
    font-size: 0.85rem;
}

/* WCAG AAA — Mouvement reduit */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
