/* ==========================================================================
   Business Réussite — compléments spécifiques à WordPress
   ========================================================================== */

/* Barre d’administration */
body.admin-bar .capsule { top: 46px; }
@media (max-width: 782px) { body.admin-bar .capsule { top: 56px; } }

/* Pot de miel anti-spam du formulaire */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { margin: 0 0 24px; padding: 14px 18px; border-left: 2px solid var(--error); background: rgba(154, 59, 43, .08); font: 400 14.5px/1.5 var(--f-ui); color: var(--error); }
.form-error a { text-decoration: underline; }
.btn.is-loading { opacity: .6; pointer-events: none; }

/* Pages standard */
.page-title { margin-top: clamp(28px, 4vw, 56px); }
.post-body--page { grid-column: 1 / span 8; }
.legal__content { margin-top: 28px; max-width: 760px; }
@media (max-width: 1023px) { .post-body--page { grid-column: 1 / -1; } }

/* Contenu Gutenberg dans les articles */
.post-body > * + * { margin-top: 0; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.post-body figure { margin: 2em 0; }
.post-body figcaption, .post-body .wp-element-caption { margin-top: 10px; font: 500 12px/1.4 var(--f-ui); color: var(--muted); }
.post-body a:not(.chip):not(.icon-btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body h3 { margin: 1.8em 0 .6em; font: 400 clamp(22px, 2vw, 28px)/1.15 var(--f-display); letter-spacing: -.02em; }
.post-body ol { padding-left: 1.4em; list-style: decimal; margin-bottom: 1.15em; }
.post-body > ul:not(.prose__list) { margin-bottom: 1.15em; }
.post-body .wp-block-quote.pull { position: relative; margin: 2.4em 0; padding: 48px 0 30px !important; border-left: 0; }
.post-body .wp-block-quote.pull p { margin: 0; }
.post-body .wp-block-quote cite { display: block; margin-top: 18px; font: 600 11px/1.4 var(--f-ui); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-body .alignwide, .post-body .alignfull { width: auto; }
.post-body .wp-block-image { margin: 2em 0; }
.post-body .wp-block-separator { border: 0; height: 5px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 3em 0; opacity: .8; }
.post-body .wp-block-table table { width: 100%; border-collapse: collapse; font: 400 15px/1.5 var(--f-ui); }
.post-body .wp-block-table td, .post-body .wp-block-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body .wp-block-embed { margin: 2em 0; }
.page-links { margin-top: 32px; display: flex; gap: 8px; font: 500 14px var(--f-ui); }

/* Photos à la une : couvrent le cadre comme les gravures */
.media__inner img.wp-post-image { width: 100%; height: 100%; object-fit: cover; }

/* Cartes rubriques supplémentaires (rubriques créées par la suite) */
.cats:has(> .cat:nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1199px) { .cats:has(> .cat:nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .cats:has(> .cat:nth-child(5)) { grid-template-columns: 1fr; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }
