/* Effets d'accessibilité visuelle et sonore */

/* Animation de lecture vocale active */
.speaking-indicator {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  vertical-align: middle;
}

.speaking-bar {
  width: 3px;
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  animation: soundWave 0.8s ease-in-out infinite alternate;
}

.speaking-bar:nth-child(2) {
  animation-delay: 0.2s;
}

.speaking-bar:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes soundWave {
  0% {
    height: 20%;
  }

  100% {
    height: 100%;
  }
}

/* Modale de profil / ceintures */
.profile-modal-body {
  text-align: left;
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.avatar-selector {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.avatar-option {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  background: var(--bg-panel-left);
  transition: all var(--transition-fast);
}

.avatar-option:hover {
  transform: scale(1.1);
  border-color: #2563EB;
}

.avatar-option.selected {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

/* Atelier Libre : Analyseur de consigne personnalisée */
.custom-lab-container {
  width: 100%;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

.custom-input-box textarea {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.25rem;
  font-family: inherit;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  min-height: 110px;
  resize: vertical;
}

.custom-palette-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--bg-panel-left);
  border-radius: var(--radius-md);
}

.palette-tool-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.palette-tool-btn.active {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Notifications toast / dopamine feedback */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2000;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: #1E293B;
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: popSuccess 0.25s ease;
}

.toast-success {
  background: #065F46;
  border: 1.5px solid #10B981;
}

.toast-info {
  background: #1E3A8A;
  border: 1.5px solid #3B82F6;
}