/* Éditeur de texte enrichi — fichier séparé de admin.css */

.rich-editor {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-surface);
  overflow: hidden;
}

.rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-bg);
}

.rich-editor__btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background: var(--admin-surface);
  color: var(--admin-heading);
  font: inherit;
  cursor: pointer;
}

.rich-editor__btn:hover {
  border-color: var(--admin-accent);
}

.rich-editor__select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--admin-text-muted);
}

.rich-editor__select-wrap select {
  width: auto;
  min-width: 7rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

.rich-editor__body {
  min-height: 100px;
  padding: 0.75rem 0.85rem;
  line-height: 1.65;
  color: var(--admin-heading);
  outline: none;
}

.rich-editor__body:focus {
  box-shadow: inset 0 0 0 2px rgba(243, 189, 12, 0.25);
}

#btn-undo:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.custom-icons-editor {
  display: grid;
  gap: 0.65rem;
}

.custom-icon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: var(--admin-bg);
}

.custom-icon-row__img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.custom-icon-row input[type="text"] {
  flex: 1 1 180px;
}

.feature-editor + .feature-editor,
.engagement-editor + .engagement-editor {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border);
}
