/* ── Panneau des paramètres ── */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.settings-container h2 { font-size: 1.4rem; font-weight: 600; }
.settings-subtitle     { color: var(--text-muted); font-size: 0.9rem; margin-top: -1rem; }

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.settings-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.settings-part-name   { font-weight: 600; }
.settings-part-arabic { font-family: var(--arabic); font-size: 1.3rem; color: var(--gold); }

.settings-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.settings-row label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

.settings-select {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-family: var(--ui);
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  min-height: 44px;
}
.settings-select:focus { outline: none; border-color: var(--primary-light); }

.settings-search {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-family: var(--ui);
  font-size: 0.88rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 0.4rem;
  min-height: 44px;
}
.settings-search::placeholder          { color: var(--text-muted); }
.settings-search:focus                 { border-color: var(--primary-light); }
.settings-search::-webkit-search-cancel-button { opacity: 0.5; cursor: pointer; }

/* ── Sélecteur de vitesse ── */
.speed-selector { display: flex; gap: 0.5rem; }
.speed-btn {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--ui);
  transition: all 0.2s;
  min-height: 44px;
}
.speed-btn.active          { background: var(--primary); border-color: var(--primary-light); color: white; }
.speed-btn:hover:not(.active) { border-color: var(--primary-light); color: var(--text); }

/* ── Toggle interrupteur ── */
.settings-row-toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.settings-toggle-label { font-size: 0.9rem; font-weight: 500; }
.settings-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; line-height: 1.4; }

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 28px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px; width: 20px;
  left: 4px; bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .toggle-slider              { background: var(--primary); }
input:checked + .toggle-slider::before     { transform: translateX(24px); }
