/* ---------- Interface vocale ---------- */
.voice-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  animation: voiceFade 0.25s ease-out;
}

.voice-overlay.hidden { display: none; }

@keyframes voiceFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Cercle central */
.voice-circle {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.08);
}

.voice-circle::before,
.voice-circle::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.18);
  animation: voicePulse 2s ease-out infinite;
}

.voice-circle::after { animation-delay: 1s; }

@keyframes voicePulse {
  0%   { transform: scale(0.92); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

.voice-icon {
  font-size: 2rem;
  color: var(--accent);
}

.voice-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.voice-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Onde audio animee */
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}

.voice-wave span {
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
  transition: height 0.08s ease;
  opacity: 0.85;
}

.voice-wave.idle span {
  animation: waveIdle 1.4s ease-in-out infinite;
}

.voice-wave.idle span:nth-child(2n) { animation-delay: 0.15s; }
.voice-wave.idle span:nth-child(3n) { animation-delay: 0.3s; }
.voice-wave.idle span:nth-child(5n) { animation-delay: 0.45s; }

@keyframes waveIdle {
  0%, 100% { height: 6px; }
  50%      { height: 20px; }
}

/* Bouton raccrocher rouge */
.voice-hangup {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #dc2626;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.voice-hangup:hover { background: #b91c1c; }
.voice-hangup:active { transform: scale(0.94); }
