/* SUPimage — correspondance entre le design du site et les blocs natifs de WordPress. */

/* Paragraphe « transparent » : ses éléments se placent comme s'il n'existait pas */
p.contents { display: contents; }

/* Boutons (bloc Bouton, styles « Vert », « Noir », « Contour ») */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button { margin: 0; }
.wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 .98rem/1 var(--f-body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s; white-space: nowrap; background: var(--ink); color: var(--paper); }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button:not(.is-style-ghost) .wp-block-button__link::after { content: ""; width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s var(--ease);
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button.is-style-acid .wp-block-button__link { background: var(--acid); color: var(--ink); }
.wp-block-button.is-style-ink .wp-block-button__link { background: var(--ink); color: var(--paper); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; border-color: currentColor; color: inherit; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .wp-block-buttons .wp-block-button { flex: 1 1 auto; } .wp-block-button__link { width: 100%; justify-content: center; } }
.facts .facts-cta .wp-block-button__link { justify-content: center; }

/* Tableaux « L'essentiel » (dt / dd devenus paragraphes) */
.facts .dl { margin: 0; padding: 8px 24px; }
.facts .row > p, .rncp-mention .row > p { margin: 0; }
.facts .dt { color: var(--muted-light); }
.facts .dd { font-weight: 500; }
.facts .dd a { text-decoration-color: var(--acid-deep); text-underline-offset: 3px; }

/* Espacements */
.mt-xl { margin-top: clamp(48px, 7vw, 88px); }
p.eyebrow { margin-top: 0; }
.director .wp-block-quote p { margin: 0; }
.wp-block-image.photo { margin: 0; }
.wp-block-image.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .wp-element-caption { position: absolute; right: 16px; top: 16px; left: auto; bottom: auto; margin: 0; background: var(--acid); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .85rem; }
.wp-block-details summary { cursor: pointer; }

/* Photo du titre des pages formation : image mise en avant ou photo par défaut (variable posée sur <main>) */
.f-hero.f-hero--img { background-image: linear-gradient(90deg, rgba(244,243,238,.97) 0%, rgba(244,243,238,.9) 42%, rgba(244,243,238,.25) 100%), var(--hero-img, none); }
.mod .wp-block-buttons { margin-top: auto; }
