/* Mise en forme du texte (gras, souligné, couleur) : barre d’outils et champ riche partagés
   par le carnet de notes et le contexte d’arène, rendu coloré dans les notes, Mon fil et
   les arènes (personal-note-format.js). Palette identique à MnoriaNoteFormat.COLORS. */
.format-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.format-toolbar[hidden]{display:none!important}
/* Bouton qui déplie la barre (repliée par défaut). */
.format-toggle{display:inline-flex;align-items:center;gap:6px;width:fit-content;max-width:100%;justify-self:start;align-self:flex-start;min-height:30px;margin:0 0 8px;padding:5px 12px;border:1px solid #d1d5db;border-radius:999px;background:#f7f9fa;color:#516776;font-size:12px;font-weight:700;line-height:1;box-shadow:none;cursor:pointer}
.format-toggle:hover{background:#eef3f6;color:#243038}
.format-toggle[aria-expanded=true]{background:#fdf3dd;border-color:#e8c886;color:#243038}
.format-toggle:disabled{opacity:.45;cursor:default}
.format-toggle-icon{font-family:Georgia,'Times New Roman',serif;font-size:14px;font-weight:700;letter-spacing:-.02em}
.format-toolbar .format-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;margin:0;padding:0;border:1px solid #d1d5db;border-radius:9px;background:#f7f9fa;color:#243038;font-size:15px;line-height:1;box-shadow:none;cursor:pointer}
.format-toolbar .format-button:hover{background:#eef3f6}
.format-toolbar .format-button[aria-pressed=true]{background:#fdf3dd;border-color:#e8c886}
.format-toolbar .format-button:disabled{opacity:.45;cursor:default}
.format-toolbar .format-button b,.format-toolbar .format-button u{font-family:Georgia,'Times New Roman',serif;font-size:16px}
.format-toolbar .format-color{width:30px;height:30px;min-height:30px;border-radius:50%;background:#fff}
.format-swatch{display:block;width:18px;height:18px;border-radius:50%}
.format-swatch.is-default{box-shadow:inset 0 0 0 2px #fff}
.format-separator{width:1px;height:22px;margin:0 4px;background:#e5e7eb}
.rich-text-field{white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}
.rich-text-field.is-empty::before{content:attr(data-placeholder);color:#6b7280;pointer-events:none}
.rich-text-field[contenteditable=false]{opacity:.7}
.note-fmt-c-red{color:#dc2626}
.note-fmt-c-orange{color:#ea580c}
.note-fmt-c-green{color:#16a34a}
.note-fmt-c-blue{color:#2563eb}
.note-fmt-c-violet{color:#7c3aed}
.debate-context-text.is-formatted{white-space:pre-wrap;overflow-wrap:anywhere}
/* Champ de contexte de la page de création : même cadre que les autres zones de saisie. */
.create-context-format-toolbar{margin:4px 0 8px}
.create-context-editor{box-sizing:border-box;width:100%;min-height:120px;padding:12px 14px;border:1px solid #d1d5db;border-radius:12px;background:#fff;color:#1f2937;font-size:15px;line-height:1.6;text-align:left}
.create-context-editor:focus{outline:2px solid #e8c886;outline-offset:1px}
/* Téléphone : barre tenue sur une ligne pour rester compacte au-dessus du clavier. */
@media(max-width:600px){.format-toolbar{gap:4px}.format-toolbar .format-button{width:30px;height:30px;min-height:30px}.format-toolbar .format-color{width:26px;height:26px;min-height:26px}.format-swatch{width:16px;height:16px}.format-separator{margin:0 2px}}
