/**
 * BienHabillé — Coque pleine largeur (base thème)
 *
 * Contre-règle la « page classique » : gouttières implicites sur #bh-content, clip html/#bh-page,
 * alignement header (--bh-container-padding sur .bh-mega-top-inner en ≤480px).
 *
 * S’active si :
 *   - body.bh-full-bleed-shell (page avec [bh_bleed] dans le contenu, accueil PHP, template Celio, filtre) ;
 *   - ou présence dans le DOM de .bh-sc-bleed / .bh-slider / .bh-celio-hero sous #bh-content
 *     (ex. shortcode rendu, Elementor + widget shortcode, sans dépendre du seul post_content).
 *
 * Dépend de : mega-menu-bienhabille.css (ordre d’enqueue).
 */

:is(
	body.bh-full-bleed-shell,
	body:has(#bh-content .bh-sc-bleed),
	body:has(#bh-content .bh-slider),
	body:has(#bh-content .bh-celio-hero),
	body.woocommerce.bh-full-bleed-shell,
	body.woocommerce:has(#bh-content .bh-sc-bleed),
	body.woocommerce:has(#bh-content .bh-slider),
	body.woocommerce:has(#bh-content .bh-celio-hero),
	body.woocommerce-page.bh-full-bleed-shell,
	body.woocommerce-page:has(#bh-content .bh-sc-bleed),
	body.woocommerce-page:has(#bh-content .bh-slider),
	body.woocommerce-page:has(#bh-content .bh-celio-hero)
) :is(#bh-page.bh-page-wrapper, .bh-content-wrapper, #bh-content.bh-content-wrapper, main#primary) {
	width: 100% !important;
	max-width: none !important;
	margin-inline: 0 !important;
	padding-inline: 0 !important;
	box-sizing: border-box;
}

:is(
	body.bh-full-bleed-shell,
	body:has(#bh-content .bh-sc-bleed),
	body:has(#bh-content .bh-slider),
	body:has(#bh-content .bh-celio-hero),
	body.woocommerce.bh-full-bleed-shell,
	body.woocommerce:has(#bh-content .bh-sc-bleed),
	body.woocommerce:has(#bh-content .bh-slider),
	body.woocommerce:has(#bh-content .bh-celio-hero),
	body.woocommerce-page.bh-full-bleed-shell,
	body.woocommerce-page:has(#bh-content .bh-sc-bleed),
	body.woocommerce-page:has(#bh-content .bh-slider),
	body.woocommerce-page:has(#bh-content .bh-celio-hero)
) #bh-page.bh-page-wrapper {
	display: flow-root;
}
