/* =========================================================
   Contenu des articles – partagé entre le site (.prose)
   et l'éditeur de l'administration (iframe, body.prose),
   pour que l'aperçu soit identique au résultat publié.
   ========================================================= */
.prose {
    --c-heading: #0b1736;
    --c-text: #33415f;
    --c-muted: #64748f;
    --c-accent: #1d5bff;
    --c-border: #e1e8f5;
    --c-tint: #eaf1ff;
    font-size: 1.06rem; line-height: 1.8; color: var(--c-text);
    overflow-wrap: break-word;
}
.prose::after { content: ""; display: table; clear: both; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: var(--c-heading); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.prose h2 { font-size: 1.6rem; margin: 1.7em 0 .6em; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.28rem; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.3em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img, .prose video { max-width: 100%; height: auto; border-radius: 12px; }
.prose figure { margin: 1.6em 0; }
.prose figure img { display: block; margin: 0 auto; }
.prose figcaption { text-align: center; font-size: .88rem; color: var(--c-muted); margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--c-accent); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--c-accent); background: var(--c-tint); border-radius: 0 12px 12px 0; color: var(--c-heading); font-weight: 600; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre { background: #061433; color: #e3ebff; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose code { font-family: Consolas, Monaco, "Courier New", monospace; font-size: .92em; }
.prose :not(pre) > code { background: var(--c-tint); color: #1e3a8a; padding: .1em .4em; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: #f4f7fd; color: var(--c-heading); font-weight: 700; }
.prose caption { caption-side: bottom; font-size: .85rem; color: var(--c-muted); padding-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--c-border); margin: 2.2em 0; }
.prose mark { background: #fef08a; padding: 0 .15em; border-radius: 3px; }
.prose details { border: 1px solid var(--c-border); border-radius: 12px; padding: 12px 16px; margin: 1em 0; background: #fff; }
.prose summary { cursor: pointer; font-weight: 700; color: var(--c-heading); }
.prose details[open] summary { margin-bottom: 8px; }

/* Alignement des images (barre d'outils de l'éditeur) */
.prose .align-left { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .align-right { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .align-center { display: block; margin-left: auto; margin-right: auto; }

/* ---------- Blocs prêts à l'emploi ---------- */
.prose .ste-callout { margin: 1.6em 0; padding: 18px 20px 18px 22px; border-radius: 14px; border-left: 5px solid var(--c-accent); background: var(--c-tint); color: var(--c-heading); }
.prose .ste-callout > :last-child { margin-bottom: 0; }
.prose .ste-callout.is-warning { border-color: #f59e0b; background: #fffbeb; }
.prose .ste-callout.is-success { border-color: #10b981; background: #ecfdf5; }
.prose .ste-callout.is-danger { border-color: #ef4444; background: #fef2f2; }
.prose .ste-cta { display: inline-block; padding: .85em 1.6em; border-radius: 12px; background: linear-gradient(135deg, #2f7bff, #1d5bff); color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(29, 91, 255, .7); }
.prose .ste-cta-wrap { text-align: center; margin: 1.8em 0; }
.prose .ste-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 1.6em 0; }
.prose .ste-cols.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .ste-cols > div > :last-child { margin-bottom: 0; }
.prose .ste-section { margin: 2em 0; padding: 32px; border-radius: 18px; background-color: var(--c-tint); background-size: cover; background-position: center; }
.prose .ste-section > :last-child { margin-bottom: 0; }
.prose .ste-quote { margin: 2em 0; padding: 0; border: 0; background: none; text-align: center; font-size: 1.4rem; line-height: 1.5; font-weight: 700; color: var(--c-heading); }
.prose .ste-quote cite { display: block; margin-top: 10px; font-size: .95rem; font-style: normal; font-weight: 600; color: var(--c-muted); }
.prose .ste-video { position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0; border-radius: 14px; overflow: hidden; background: #000; }
.prose .ste-video iframe, .prose .ste-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .ste-card { padding: 22px; border: 1px solid var(--c-border); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px -16px rgba(11, 33, 90, .3); }

@media (max-width: 640px) {
    .prose .ste-cols, .prose .ste-cols.cols-3 { grid-template-columns: 1fr; }
    .prose .align-left, .prose .align-right { float: none; max-width: 100%; margin: 1em auto; }
    .prose .ste-section { padding: 22px; }
}

/* ---------- Uniquement dans l'éditeur ---------- */
body.ste-editing { margin: 0; padding: 28px 32px 60px; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #fff; min-height: 100%; outline: none; }
body.ste-editing:empty::before, body.ste-editing.is-empty::before { content: attr(data-placeholder); color: #94a3bf; pointer-events: none; }
body.ste-editing td, body.ste-editing th { min-width: 40px; }
body.ste-editing table td:empty::after, body.ste-editing table th:empty::after { content: "\00a0"; }
body.ste-editing .ste-cols > div { outline: 1px dashed #c9d6ee; outline-offset: 4px; min-height: 2em; }
body.ste-editing .ste-video { outline: 2px dashed #c9d6ee; }
body.ste-editing .ste-video::after { content: "Vidéo"; position: absolute; top: 8px; left: 8px; background: #1d5bff; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
body.ste-editing .ste-video iframe { pointer-events: none; }
body.ste-editing .is-selected { outline: 2px solid #22d3ee !important; outline-offset: 2px; }
body.ste-editing img { cursor: pointer; }
body.ste-editing ::selection { background: #bfdbfe; }
