/* Design moderne pour l'éditeur de texte riche personnalisé */
.custom-editor-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.custom-editor-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Toolbar */
.editor-toolbar {
    background: #f8fafc;
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.editor-toolbar button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.editor-toolbar button:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.editor-toolbar button.active {
    background: #e2e8f0;
    color: #2563eb;
    border-color: #94a3b8;
}

.editor-toolbar .separator {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 4px;
}

/* Sélecteur de taille */
.editor-toolbar select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

/* Zone de contenu */
.editor-content {
    padding: 15px;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    color: #1e293b;
}

.editor-content ul, .editor-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Tooltips simples via attribut title nativement gérés par le navigateur */
