/* ==========================================================================
   Bien-Hêtre, fiche d'un soin (sln_service)
   Emplacement : /wp-content/themes/hello-elementor-child/bh-service.css
   Chargé uniquement sur is_singular('sln_service') (voir le snippet).
   Variables globales du site : --forest --gold --cream --ecru --paper --ink --muted --r --fs-min
   ========================================================================== */

.bh-service {
	--bh-forest: var(--forest, #2a3828);
	--bh-gold:   var(--gold, #b89a5a);
	--bh-cream:  var(--cream, #f4efe5);
	--bh-ecru:   var(--ecru, #ede6d4);
	--bh-paper:  var(--paper, #faf7f1);
	--bh-ink:    var(--ink, #1c2618);
	--bh-muted:  var(--muted, #7a8a70);
	--bh-r:      var(--r, 3px);
	--bh-min:    var(--fs-min, .875rem);
	background: var(--bh-paper);
	color: var(--bh-ink);
	overflow-x: clip;
}

/* ---------- Héros ---------- */
.bh-service__hero {
	position: relative;
	background:
		radial-gradient(60% 120% at 85% 0%, rgba(184, 154, 90, .16), transparent 60%),
		var(--bh-forest);
	color: var(--bh-cream);
	padding: 1.25rem 1.25rem 1.5rem;
}
.bh-service__hero.has-image {
	background:
		linear-gradient(180deg, rgba(42, 56, 40, .78) 0%, rgba(42, 56, 40, .92) 100%),
		var(--bh-hero-img) center / cover no-repeat,
		var(--bh-forest);
}
.bh-service__hero-inner {
	max-width: 62rem;
	margin: 0 auto;
}

.bh-service__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .6rem;
	font-size: var(--bh-min);
	color: rgba(244, 239, 229, .72);
	margin-bottom: 1rem;
}
.bh-service__crumbs a { color: inherit; text-decoration: none; }
.bh-service__crumbs a:hover,
.bh-service__crumbs a:focus-visible { color: var(--bh-gold); text-decoration: underline; text-underline-offset: 3px; }
.bh-service__crumbs [aria-current] { color: var(--bh-cream); }

/* Mobile : le fil d'Ariane se réduit à un lien de retour sur une seule ligne */
@media (max-width: 767px) {
	.bh-service__crumbs > :not(.bh-service__crumbs-hub) { display: none; }
	.bh-service__crumbs-hub::before { content: "‹\00a0"; }
}
@media (min-width: 768px) {
	.bh-service__hero { padding: clamp(2rem, 4vw, 3rem) 1.25rem clamp(2.5rem, 5vw, 4rem); }
	.bh-service__crumbs { margin-bottom: 2rem; }
}

.bh-service__eyebrow {
	margin: 0 0 .6rem;
	font: 700 var(--bh-min)/1.2 Lato, sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--bh-gold);
}
.bh-service__eyebrow--dark { color: var(--bh-gold); }

.bh-service__title {
	margin: 0;
	max-width: 34ch;
	font: 300 clamp(1.5rem, 3.6vw, 2.4rem)/1.18 Merriweather, serif;
	/* le thème impose une taille de h1 plus forte : on la reprend ici */
	font-size: clamp(1.5rem, 3.6vw, 2.4rem) !important;
	line-height: 1.18 !important;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--bh-cream);
	text-wrap: balance;
}

.bh-service__facts {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin: 1.1rem 0 0;
	padding: 0;
	list-style: none;
}
.bh-service__fact {
	margin: 0;
	padding: .4rem .85rem;
	border: 1px solid rgba(184, 154, 90, .55);
	border-radius: 999px;
	font: 400 var(--bh-min)/1.2 Lato, sans-serif;
	letter-spacing: .04em;
	color: var(--bh-cream);
}
.bh-service__fact--price {
	background: var(--bh-gold);
	border-color: var(--bh-gold);
	color: var(--bh-ink);
	font-weight: 700;
}

/* ---------- Bouton de réservation (héros, encart, barre mobile) ---------- */
.bh-service__cta {
	display: inline-block;
	margin-top: 2rem;
	padding: 1rem 2rem;
	background: var(--bh-gold);
	color: var(--bh-ink);
	border: 1px solid var(--bh-gold);
	border-radius: var(--bh-r);
	font: 700 var(--bh-min)/1 Lato, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bh-service__cta:hover,
.bh-service__cta:focus-visible {
	background: var(--bh-cream);
	border-color: var(--bh-cream);
	color: var(--bh-forest);
}
.bh-service__cta:focus-visible { outline: 2px solid var(--bh-cream); outline-offset: 3px; }

/* ---------- Corps : contenu Elementor + encart ---------- */
.bh-service__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	max-width: 62rem;
	margin: 0 auto;
	padding: clamp(2.25rem, 5vw, 4rem) 1.25rem;
}

/* Neutralise la mise en page boxée d'Elementor : la colonne de lecture est gérée ici */
.bh-service__content .elementor,
.bh-service__content .e-con,
.bh-service__content .e-con-inner {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100%;
	--padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.bh-service__content .e-con-inner { display: block; }
.bh-service__content .elementor-widget { margin: 0 !important; }

.bh-service__content {
	max-width: 44rem;
	font: 400 1.0625rem/1.8 Lato, sans-serif;
	color: var(--bh-ink);
}
.bh-service__content p { margin: 0 0 1.1rem; font-size: inherit; line-height: inherit; }

/* Chapô : premier paragraphe de la fiche */
.bh-service__content .e-con-inner > .elementor-widget:first-child p:first-child {
	font: 300 1.25rem/1.7 Merriweather, serif;
	color: var(--bh-forest);
}

/* Intertitres : filet or + Merriweather léger */
.bh-service__content h2,
.bh-service__content .elementor-heading-title {
	position: relative;
	margin: 3rem 0 1.1rem !important;
	padding-top: 1.1rem;
	font: 300 clamp(1.4rem, 2.6vw, 1.75rem)/1.3 Merriweather, serif !important;
	color: var(--bh-forest) !important;
	text-transform: none !important;
}
.bh-service__content h2::before,
.bh-service__content .elementor-heading-title::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 2.5rem; height: 2px;
	background: var(--bh-gold);
}

/* Listes : losange or */
.bh-service__content ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.bh-service__content li {
	position: relative;
	margin: 0 0 .6rem;
	padding-left: 1.5rem;
}
.bh-service__content li::before {
	content: "";
	position: absolute;
	left: .1rem; top: .72em;
	width: .42rem; height: .42rem;
	background: var(--bh-gold);
	transform: rotate(45deg);
}
.bh-service__content li p { margin: 0; }

/* Variantes (liste dont chaque entrée commence par un mot en gras) : cartes */
.bh-service__content li:has(b),
.bh-service__content li:has(strong) {
	padding: 1.1rem 1.25rem 1.1rem 1.5rem;
	margin-bottom: .85rem;
	background: #fff;
	border: 1px solid var(--bh-ecru);
	border-left: 3px solid var(--bh-gold);
	border-radius: var(--bh-r);
}
.bh-service__content li:has(b)::before,
.bh-service__content li:has(strong)::before { display: none; }
.bh-service__content li b,
.bh-service__content li strong {
	display: inline; /* le « : » du texte Elementor suit l'intitulé sur la même ligne */
	font: 700 var(--bh-min)/1.3 Lato, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bh-forest);
}

/* Boutons Elementor déjà présents dans le contenu */
.bh-service__content .elementor-button {
	padding: 1rem 2rem;
	background: var(--bh-forest);
	color: var(--bh-cream);
	border-radius: var(--bh-r);
	font: 700 var(--bh-min)/1 Lato, sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.bh-service__content .elementor-button:hover,
.bh-service__content .elementor-button:focus-visible { background: var(--bh-gold); color: var(--bh-ink); }
.bh-service__content .elementor-widget-button { margin: 1.75rem 0 !important; text-align: left; }
.bh-service__content .elementor-widget-button .elementor-button-wrapper,
.bh-service__content .elementor-align-center { text-align: left; }

/* ---------- Encart de réservation (grand écran) ---------- */
.bh-service__aside { display: none; }

@media (min-width: 1100px) {
	.bh-service__body {
		grid-template-columns: minmax(0, 1fr) 19rem;
		gap: 4rem;
		max-width: 72rem;
	}
	.bh-service__aside {
		display: block;
		align-self: start;
		position: sticky;
		top: 2rem;
		padding: 1.75rem 1.5rem 1.5rem;
		background: #fff;
		border: 1px solid var(--bh-ecru);
		border-top: 3px solid var(--bh-gold);
		border-radius: var(--bh-r);
	}
	.bh-service__aside-label {
		margin: 0 0 .4rem;
		font: 700 var(--bh-min)/1.2 Lato, sans-serif;
		letter-spacing: .16em;
		text-transform: uppercase;
		color: var(--bh-muted);
	}
	.bh-service__aside-title {
		margin: 0 0 1rem;
		font: 300 1.2rem/1.35 Merriweather, serif;
		color: var(--bh-forest);
	}
	.bh-service__aside-price {
		margin: 0;
		font: 300 2.1rem/1 Merriweather, serif;
		color: var(--bh-ink);
	}
	.bh-service__aside-meta {
		margin: .6rem 0 0;
		font-size: var(--bh-min);
		color: var(--bh-muted);
	}
	.bh-service__aside .bh-service__cta {
		display: block;
		text-align: center;
		margin-top: 1.5rem;
		padding: 1rem .75rem;
		letter-spacing: .1em;
		background: var(--bh-forest);
		border-color: var(--bh-forest);
		color: var(--bh-cream);
	}
	.bh-service__aside .bh-service__cta:hover,
	.bh-service__aside .bh-service__cta:focus-visible {
		background: var(--bh-gold);
		border-color: var(--bh-gold);
		color: var(--bh-ink);
	}
	.bh-service__aside-help {
		margin: 1.1rem 0 0;
		font-size: var(--bh-min);
		line-height: 1.5;
		color: var(--bh-muted);
	}
	.bh-service__aside-help a { color: var(--bh-forest); text-underline-offset: 3px; }
}

/* ---------- Autres soins ---------- */
.bh-service__more {
	background: var(--bh-cream);
	border-top: 1px solid var(--bh-ecru);
	padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
}
.bh-service__more-inner { max-width: 62rem; margin: 0 auto; }
.bh-service__more-title {
	margin: 0 0 1.75rem;
	font: 300 clamp(1.5rem, 3vw, 2rem)/1.25 Merriweather, serif;
	color: var(--bh-forest);
}
.bh-service__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin: 0; padding: 0;
	list-style: none;
}
.bh-service__card {
	display: grid;
	grid-template-columns: 1fr auto;
	align-content: space-between;
	gap: .5rem 1rem;
	height: 100%;
	min-height: 7.5rem;
	padding: 1.25rem 1.25rem 1.1rem;
	background: #fff;
	border: 1px solid var(--bh-ecru);
	border-radius: var(--bh-r);
	color: var(--bh-forest);
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
}
.bh-service__card:hover,
.bh-service__card:focus-visible { border-color: var(--bh-gold); transform: translateY(-2px); }
.bh-service__card-title { grid-column: 1 / -1; font: 300 1.1rem/1.35 Merriweather, serif; }
.bh-service__card-price { font: 700 var(--bh-min)/1 Lato, sans-serif; letter-spacing: .08em; color: var(--bh-muted); }
.bh-service__card-arrow { color: var(--bh-gold); font-size: 1.1rem; }
.bh-service__more-all { margin: 1.5rem 0 0; font-size: var(--bh-min); }
.bh-service__more-all a { color: var(--bh-forest); text-underline-offset: 3px; }

/* ---------- Barre de réservation mobile ---------- */
.bh-service__bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom, 0px));
	background: var(--bh-forest);
	color: var(--bh-cream);
	box-shadow: 0 -6px 24px rgba(28, 38, 24, .18);
	transition: transform .3s ease;
}
.bh-service__bar.is-hidden { transform: translateY(110%); visibility: hidden; }
.bh-service__bar-info { display: grid; gap: .15rem; min-width: 0; }
.bh-service__bar-title {
	font: 300 .95rem/1.25 Merriweather, serif;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bh-service__bar-price { font: 700 var(--bh-min)/1 Lato, sans-serif; color: var(--bh-gold); letter-spacing: .06em; }
.bh-service__cta--bar { margin: 0; padding: .9rem 1.4rem; flex-shrink: 0; }
/* Laisse la place au bouton « retour en haut » du thème, posé en bas à droite */
@media (max-width: 1099px) { .bh-service__bar { padding-right: 4.75rem; } }
/* Tablette : la colonne d'icônes du site occupe la gauche, la barre commence après elle */
@media (min-width: 768px) and (max-width: 1099px) { .bh-service__bar { left: 4.25rem; } }
@media (min-width: 1100px) { .bh-service__bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
	.bh-service__bar, .bh-service__card, .bh-service__cta { transition: none; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 600px) {
	.bh-service__title { max-width: none; }
	.bh-service__cta:not(.bh-service__cta--bar) { display: block; text-align: center; }
	.bh-service__content { font-size: 1rem; }
}

/* ---------- Listes numérotées (ex. « Comment se déroule une séance ? ») ---------- */
.bh-service__content ol { list-style: none; counter-reset: bh-step; margin: 0 0 1.25rem; padding: 0; }
.bh-service__content ol > li { counter-increment: bh-step; padding-left: 2.5rem; }
.bh-service__content ol > li::before {
	content: counter(bh-step);
	left: 0; top: .15em;
	width: 1.6rem; height: 1.6rem;
	display: grid; place-items: center;
	background: none; transform: none;
	border: 1px solid var(--bh-gold); border-radius: 50%;
	font: 700 var(--bh-min)/1 Lato, sans-serif;
	color: var(--bh-forest);
}

/* ---------- Un seul bouton de réservation par écran ----------
   Mobile/tablette : la barre fixe. Grand écran : l'encart. Les boutons « Prendre RDV »
   saisis dans Elementor (lien contenant sln_step_page) font doublon : masqués ici.
   Pour les réactiver, supprimer ce bloc, ou les retirer soin par soin dans Elementor. */
.bh-service__content .elementor-widget-button:has(a[href*="sln_step_page"]) { display: none; }
