/**
 * BienHabillé — Landing « style Celio » (template sans Elementor)
 * Hero plein viewport sous header transparent + cadre typographique + CTA pilule.
 */

/* Coque pleine largeur : bh-full-bleed-shell + bh-full-bleed-shell.css (base thème). */

body.bh-celio-home .bh-site-content--celio-home {
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: none;
	overflow-x: visible;
}

/* Ligne recherche mobile : pas de retrait container sur les côtés (pilule bord à bord). */
@media (max-width: 1024px) {
	body.bh-celio-home .bh-mega-mobile-search .bh-mega-search__form {
		margin: 8px max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px));
	}
}

/* Logo / typo header : ref. Celio (minuscules). */
body.bh-celio-home .bh-logo-text,
body.bh-celio-home .bh-header__logo .bh-logo-text {
	text-transform: lowercase;
	font-weight: 700;
	letter-spacing: -0.02em;
}

body.bh-celio-home .bh-mega-mobile-label {
	display: none !important;
}

body.bh-celio-home .bh-mega-action--location {
	display: none !important;
}

@media (max-width: 1024px) {
	body.bh-celio-home .bh-mega-action--search-trigger {
		display: none !important;
	}
	/* Ref. mobile : pas de rangée catégories sous le chrome. */
	body.bh-celio-home .bh-mega-nav {
		display: none !important;
	}
}

/* ─── Remontée sous header (même logique que .bh-slider--under-header) ─── */
body.bh-hero-overlay.bh-mega-menu-active:not(.bh-has-announcement) .bh-celio-hero--under-header {
	margin-top: calc(-1 * (env(safe-area-inset-top, 0px) + var(--bh-mega-hero-header-stack, var(--bh-mega-header-total, 120px))));
}
body.bh-hero-overlay.bh-mega-menu-active.bh-has-announcement .bh-celio-hero--under-header {
	margin-top: calc(-1 * (env(safe-area-inset-top, 0px) + var(--bh-topbar-height, 36px) + var(--bh-mega-hero-header-stack, var(--bh-mega-header-total, 120px))));
}
body.bh-hero-overlay:not(.bh-mega-menu-active) .bh-celio-hero--under-header {
	margin-top: calc(-1 * var(--bh-header-height, 140px));
}

/* Compense le liseré résiduel dû aux arrondis de hauteur header / zoom navigateur. */
body.bh-hero-overlay.bh-mega-menu-active:not(.bh-has-announcement) .bh-celio-hero--under-header {
	margin-top: calc(-1 * (env(safe-area-inset-top, 0px) + var(--bh-mega-hero-header-stack, var(--bh-mega-header-total, 120px))) - 10px);
}
body.bh-hero-overlay.bh-mega-menu-active.bh-has-announcement .bh-celio-hero--under-header {
	margin-top: calc(-1 * (env(safe-area-inset-top, 0px) + var(--bh-topbar-height, 36px) + var(--bh-mega-hero-header-stack, var(--bh-mega-header-total, 120px))) - 10px);
}
body.bh-hero-overlay:not(.bh-mega-menu-active) .bh-celio-hero--under-header {
	margin-top: calc(-1 * var(--bh-header-height, 140px) - 10px);
}

@media (min-width: 1025px) {
	body.bh-hero-overlay.bh-mega-menu-active:not(.bh-has-announcement) .bh-celio-hero--under-header {
		margin-top: calc(-1 * (env(safe-area-inset-top, 0px) + var(--bh-mega-hero-header-stack, var(--bh-mega-header-total, 120px))) - 10px);
	}
	body.bh-hero-overlay.bh-mega-menu-active.bh-has-announcement .bh-celio-hero--under-header {
		margin-top: calc(-1 * (env(safe-area-inset-top, 0px) + var(--bh-topbar-height, 36px) + var(--bh-mega-hero-header-stack, var(--bh-mega-header-total, 120px))) - 10px);
	}
	body.bh-hero-overlay:not(.bh-mega-menu-active) .bh-celio-hero--under-header {
		margin-top: calc(-1 * var(--bh-header-height, 140px) - 10px);
	}
}

@media (max-width: 1024px) {
	body.bh-hero-overlay.bh-mega-menu-active:not(.bh-has-announcement) .bh-celio-hero--under-header {
		margin-top: calc(-1 * (env(safe-area-inset-top, 0px) + var(--bh-mega-hero-header-stack, var(--bh-mega-header-total, 120px))) - 10px);
	}
	body.bh-hero-overlay.bh-mega-menu-active.bh-has-announcement .bh-celio-hero--under-header {
		margin-top: calc(-1 * (env(safe-area-inset-top, 0px) + var(--bh-topbar-height, 36px) + var(--bh-mega-hero-header-stack, var(--bh-mega-header-total, 120px))) - 10px);
	}
	body.bh-hero-overlay:not(.bh-mega-menu-active) .bh-celio-hero--under-header {
		margin-top: calc(-1 * var(--bh-header-height, 140px) - 10px);
	}
}

/* Hauteur plein viewport */
body.bh-hero-overlay .bh-celio-hero--under-header {
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	min-height: calc(100dvh + 10px);
	height: calc(100dvh + 10px);
	max-height: none;
	box-sizing: border-box;
	position: relative;
	isolation: isolate;
	width: 100%;
	overflow: hidden;
}

.bh-celio-hero__swiper {
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.bh-celio-hero__swiper .swiper-wrapper {
	height: 100%;
}

.bh-celio-hero__slide {
	position: relative;
	height: 100%;
	min-height: inherit;
	box-sizing: border-box;
	overflow: hidden;
}

.bh-celio-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	transform: scale(1.02);
}

.bh-celio-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.28) 0%,
		rgba(0, 0, 0, 0.12) 38%,
		rgba(0, 0, 0, 0.35) 100%
	);
	pointer-events: none;
}

.bh-celio-hero__cell {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 5rem 1.25rem 6.5rem;
	box-sizing: border-box;
	text-align: center;
}

.bh-celio-hero__frame {
	border: 2px solid #fff;
	padding: 1.35rem 1.5rem 1.5rem;
	max-width: min(22rem, calc(100vw - 2.5rem));
	box-sizing: border-box;
	margin-bottom: 1.75rem;
}

.bh-celio-hero__title {
	margin: 0;
	font-family: var(--bh-font-heading, var(--bh-font-body, system-ui, sans-serif));
	font-size: clamp(1.45rem, 4.8vw, 2rem);
	font-weight: 700;
	line-height: 1.12;
	color: #fff;
	text-transform: lowercase;
	letter-spacing: -0.02em;
}

.bh-celio-hero__title-line {
	display: block;
}

.bh-celio-hero__subtitle {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.95);
	text-transform: lowercase;
}

.bh-celio-hero__subtitle strong {
	font-weight: 700;
	color: #fff;
}

.bh-celio-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
	padding: 0.72rem 2.35rem;
	background: #000;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: lowercase;
	letter-spacing: 0.04em;
	border-radius: 999px;
	transition: opacity 0.2s ease, transform 0.2s ease;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.bh-celio-hero__cta:hover,
.bh-celio-hero__cta:focus-visible {
	opacity: 0.92;
	transform: translateY(-1px);
}

.bh-celio-hero__pagination.swiper-pagination-bullets {
	bottom: 1.35rem !important;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	padding: 0;
}

.bh-celio-hero__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
	transition: background 0.2s ease, transform 0.2s ease;
}

.bh-celio-hero__pagination .swiper-pagination-bullet-active {
	background: #fff;
	transform: scale(1.15);
}

@media (min-width: 1025px) {
	.bh-celio-hero__cell {
		padding: 6rem 2rem 7rem;
	}
	.bh-celio-hero__frame {
		max-width: 28rem;
		padding: 1.75rem 2rem 2rem;
	}
	.bh-celio-hero__title {
		font-size: clamp(2rem, 2.8vw, 2.75rem);
	}
}
