/* Mise en forme partagée entre les éditeurs et les contenus publiés. */
.rich-text { text-align: left; line-height: 1.7; overflow-wrap: anywhere; }
.rich-text p { margin: 0 0 1em; line-height: inherit; color: inherit; }
.rich-text p:empty::before, .rich-text div:empty::before { content: '\00a0'; }
.rich-text h2, .rich-text h3, .rich-text h4, .rich-text h5, .rich-text h6 { margin: 1.4em 0 .6em; line-height: 1.3; }
.rich-text h2 { font-size: 1.8em; }
.rich-text h3 { font-size: 1.5em; }
.rich-text h4 { font-size: 1.25em; }
.rich-text ul, .rich-text ol { padding-left: 2em; margin: 0 0 1em; }
.rich-text ul { list-style-type: disc; }
.rich-text ol { list-style-type: decimal; }
.rich-text li { display: list-item; list-style: inherit; margin: .3em 0; }
.rich-text li > p { margin-bottom: .3em; }
.rich-text strong, .rich-text b { font-weight: 700; }
.rich-text em, .rich-text i { font-style: italic; }
.rich-text blockquote { margin: 1.2em 0; padding: .5em 1.2em; border-left: 4px solid #bc0d1e; background: #f7f7f8; font-style: italic; }
.rich-text a { color: #bc0d1e; text-decoration: underline; }
.rich-text pre { white-space: pre-wrap; padding: 1em; border: 1px solid #ddd; border-radius: 6px; background: #f5f5f5; }
.rich-text code { font-family: 'Courier New', Courier, monospace; }
.rich-text figure.table { width: auto; max-width: 100%; overflow-x: auto; margin: 1em auto; color: inherit; }
.rich-text table { width: 100%; border-collapse: collapse; }
.rich-text td, .rich-text th { border: 1px solid #bfc2c7; padding: .55em .7em; min-width: 2em; font-size: inherit; color: inherit; text-align: left; }
.rich-text th { font-weight: 700; background: #f3f3f5; }
.rich-text figure > figcaption { color: #62646d; background: #f7f7f8; padding: .5em; font-size: .85em; text-align: center; }
.rich-text img { max-width: 100%; height: auto; }
.rich-text::after { content: ''; display: block; clear: both; }
.rich-text hr { margin: 1.5em 0; border: 0; border-top: 1px solid #ccc; }
@media (max-width: 600px) { .rich-text figure.image { max-width: 100%; } }
@media print { .rich-text .page-break { break-after: page; } }

/* Taille de l’éditeur et validation dans l’administration uniquement. */
.form-field .ck-editor { min-width: 0; }
.form-field .ck-editor__editable_inline { min-height: 350px; padding: 20px 24px; }
.form-field .ck-source-editing-area textarea { min-height: 350px; font-family: monospace; }
.form-field .ck.ck-toolbar { border-radius: 8px 8px 0 0; }
.rich-editor-error { color: #bc0d1e; margin: 8px 0; font-size: 14px; }
.rich-editor-error[hidden] { display: none; }
