/* ==============================================
   Voice Dictation - bouton micro dans les champs texte
   ============================================== */

.dictation-wrap {
    position: relative;
    width: 100%;
}

.dictation-wrap > textarea {
    padding-right: 46px;
}

.dictation-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card, #fff);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.dictation-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.dictation-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dictation-btn.recording {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
    animation: dictation-pulse 1.4s ease-out infinite;
}

@keyframes dictation-pulse {
    0% { box-shadow: 0 0 0 0 var(--danger-soft); }
    100% { box-shadow: 0 0 0 12px transparent; }
}

.dictation-interim {
    display: none;
    position: absolute;
    left: 8px;
    right: 48px;
    bottom: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm, 6px);
    background: var(--danger-soft);
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dictation-interim.visible {
    display: block;
}
