/* ALL IN LA BAULE - gabarits de pages (communs au thème en blocs, au thème enfant Divi et à l'aperçu) */
.has-sand-background-color { background-color: #f5f2ef !important; }
.has-terracotta-background-color { background-color: #e35336 !important; }
.has-terracotta-color { color: #e35336 !important; }
.has-terracotta-dark-background-color { background-color: #c23e24 !important; }
.has-terracotta-dark-color { color: #c23e24 !important; }
.has-clay-color { color: #6b625c !important; }
.has-white-background-color { background-color: #ffffff !important; }
.has-white-color { color: #ffffff !important; }
.has-black-background-color { background-color: #000000 !important; }

.ailb-eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #c23e24; margin-bottom: .5rem; }
.ailb-eyebrow-light { color: #ffffff !important; opacity: .85; }
.ailb-eyebrow + h2, .ailb-eyebrow + h3 { margin-top: 0 !important; }
h2.has-text-align-center::after { margin-left: auto; margin-right: auto; }
.wp-block-group > h2:first-child, .wp-block-cover__inner-container > h2:first-child { margin-top: 0 !important; }

/* Hero */
.ailb-hero { min-height: 560px; }
.ailb-hero .wp-block-cover__inner-container { padding: 3rem 1.5rem; }
.ailb-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); max-width: 20ch; margin: 0 auto .75rem; color: #fff !important; }
.ailb-hero p.has-medium-font-size { color: #fff !important; opacity: .92; max-width: 52ch; margin: 0 auto; }
.ailb-hero .wp-block-buttons { margin-top: 1.5rem; }

/* Section « feature » : photo estompée + carte blanche */
.wp-block-cover.ailb-feature { padding: 4rem 1.5rem; }
.wp-block-cover.is-light .wp-block-cover__inner-container { color: #000; }
.ailb-card { box-shadow: 0 20px 60px rgba(0, 0, 0, .12); text-align: left; }
.ailb-card .wp-block-columns { align-items: center; }
.ailb-card h2 { margin-top: 0; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.ailb-card .wp-block-image { margin: 0; }
.ailb-card .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ailb-card ul { margin-bottom: 1.25rem; }
@media (max-width: 782px) { .ailb-card { padding: 1.5rem !important; } .wp-block-cover.ailb-feature { padding: 2rem 1rem; } }

/* Cartes photo (sports, lieux, offres entreprises) */
.ailb-photo-card { min-height: 360px; color: #fff; }
.ailb-photo-card .wp-block-cover__inner-container { width: 100%; text-align: left; }
.ailb-photo-card h3 { color: #fff !important; margin: 0 0 .5rem; font-size: 1.4rem; }
.ailb-photo-card h3 a { color: #fff !important; text-decoration: none; }
.ailb-photo-card h3 a:hover { color: #e35336 !important; }
.ailb-photo-card p { color: #fff !important; margin-bottom: .75rem; }
.ailb-photo-card .ailb-eyebrow { margin-bottom: .25rem; }
.ailb-photo-card .wp-block-buttons { margin: 0; }
.ailb-photo-card .is-style-outline .wp-block-button__link { color: #fff !important; border-color: #fff !important; padding: .55rem 1.1rem; font-size: .8rem; }
.ailb-photo-card .is-style-outline .wp-block-button__link:hover { background: #fff !important; color: #000 !important; }

/* Bandeau terracotta avec logo en filigrane */
.ailb-cta { padding: 4rem 1.5rem; }
.ailb-cta h2 { color: #fff !important; margin-top: 0; }
.ailb-cta h2::after { display: none; }
.ailb-cta p { color: #fff !important; opacity: .95; }
.ailb-cta .is-style-outline .wp-block-button__link { color: #fff !important; border-color: #fff !important; }
.ailb-cta .is-style-outline .wp-block-button__link:hover { background: #fff !important; color: #c23e24 !important; border-color: #fff !important; }
.ailb-cta .wp-block-cover__image-background { object-fit: contain !important; object-position: 85% center; transform: scale(1.6); opacity: .35; }

/* Boutons contour sur fond clair */
.is-style-outline .wp-block-button__link { background: transparent; }
.wp-block-cover.is-light .is-style-outline .wp-block-button__link { color: #000; border-color: #000; }

/* Titres et textes noirs sur les bannières claires (cartes « feature ») */
.wp-block-cover.is-light h1, .wp-block-cover.is-light h2, .wp-block-cover.is-light h3, .ailb-card h2, .ailb-card h3 { color: #000 !important; max-width: none; margin-left: 0; margin-right: 0; }
.wp-block-cover.is-light p, .ailb-card p { color: inherit !important; opacity: 1; max-width: none; margin-left: 0; margin-right: 0; }
.ailb-card p.has-medium-font-size { color: #6b625c !important; }
.ailb-card .wp-block-buttons { margin-top: .5rem; }

/* Cartes tarifs / formules */
.ailb-price-card { height: 100%; }
.ailb-price-card h3 { margin-top: 0; font-size: 1.25rem; }
.ailb-price-card .ailb-eyebrow { margin-bottom: .35rem; }
.ailb-price-line { margin: .25rem 0 1rem; }
.ailb-price { font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.ailb-unit { color: #6b625c; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.ailb-price-card ul { padding-left: 1.1rem; font-size: .95rem; margin-bottom: 1.25rem; }
.ailb-note { color: #6b625c; }

/* Sélecteur par âge */
.ailb-age-card { height: 100%; background: #fff; }
.ailb-age-card h3.ailb-age { font-size: 1.6rem; margin: 0 0 .75rem; }
.ailb-age-card p { margin-bottom: .6rem; }
.ailb-age-card .ailb-eyebrow { margin-bottom: .15rem; }
.ailb-age-card .wp-block-buttons { margin-top: 1rem; }

/* Bandeau des dates */
.ailb-dates, .ailb-dates h3, .ailb-dates p { color: #fff !important; }
.ailb-dates h3 { margin: 0 0 .25rem; font-size: 1.4rem; }
.ailb-dates h3::after { display: none; }
.ailb-dates .ailb-eyebrow { color: #e35336 !important; margin-bottom: .25rem; }
.ailb-dates .wp-block-column { border-left: 1px solid #333; padding-left: 1.5rem; }
.ailb-dates .wp-block-column:first-child { border-left: 0; padding-left: 0; }

/* Responsive */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { min-width: 480px; }
@media (max-width: 782px) {
  .ailb-hero { min-height: 420px !important; }
  .ailb-hero h1 { font-size: 2rem; }
  .ailb-photo-card { min-height: 280px !important; }
  .ailb-price { font-size: 2rem; }
  .wp-block-cover.ailb-cta { min-height: 0 !important; padding: 3rem 1.25rem; }
  .wp-block-group.alignfull { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  .ailb-dates .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid #333; padding-top: 1rem; }
  .ailb-dates .wp-block-column:first-child { border-top: 0; padding-top: 0; }
  .wp-block-cover.ailb-feature { padding: 2rem 1rem; }
  .ailb-card { padding: 1.5rem !important; }
  .ailb-card .wp-block-image img { aspect-ratio: 3 / 2; }
}

/* Sections par public */
.ailb-audience .ailb-card h3 { font-size: 1rem; letter-spacing: .08em; margin: 1.25rem 0 .5rem; color: #c23e24 !important; }
.ailb-audience .ailb-card ul { margin-bottom: .5rem; }
.ailb-audience .ailb-card .wp-block-columns { align-items: flex-start; }
.ailb-audience .ailb-card .wp-block-image img { aspect-ratio: 3 / 4; }
@media (max-width: 782px) { .ailb-audience .ailb-card .wp-block-image img { aspect-ratio: 3 / 2; } }

/* Sous-navigation d'une section sport */
.ailb-subnav { border-bottom: 1px solid #e3ddd8; }
.ailb-subnav .wp-block-buttons { margin: 0; justify-content: center; }
.ailb-subnav .wp-block-button__link { font-size: .78rem; padding: .6rem 1.1rem; }
.ailb-subnav .wp-block-group { justify-content: center; gap: .5rem; }

/* Focus clavier visible partout (WCAG 2.4.7) : anneau noir décalé ; blanc sur les fonds sombres */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, .wp-block-button__link:focus-visible { outline: 3px solid #000 !important; outline-offset: 3px; }
.wp-block-cover:not(.is-light) a:focus-visible, .wp-block-cover:not(.is-light) button:focus-visible, .ailb-dates a:focus-visible, .ailb-dates button:focus-visible, .site-footer a:focus-visible, #main-footer a:focus-visible, .has-black-background-color a:focus-visible, .has-black-background-color button:focus-visible, .ailb-cta a:focus-visible { outline-color: #fff !important; }

/* Formulaire Brevo embarqué */
.ailb-brevo-form { background: #f5f2ef; padding: 1rem; }
.ailb-brevo-form iframe { background: #fff; }
.ailb-brevo-fallback { font-size: .85rem; color: #6b625c; margin: .75rem 0 0; }
