.sm-ba-block {
	background: var(--wp--preset--color--bg-2);
	padding: clamp(64px, 9vw, 120px) 0;
}
.sm-ba__container {
	max-width: var(--sm-col-max, 1280px);
	margin: 0 auto;
	padding-left: var(--sm-pad-x, clamp(20px, 4vw, 56px));
	padding-right: var(--sm-pad-x, clamp(20px, 4vw, 56px));
}
.sm-ba__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 56px;
	flex-wrap: wrap;
}
.sm-ba__head-text { flex: 1 1 60%; }
.sm-ba__title {
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: clamp(40px, 5.5vw, 72px);
	line-height: 0.95;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	max-width: 18ch;
	margin: 0;
	color: var(--sm-fg);
}
.sm-ba__subtitle {
	color: var(--sm-fg-mute);
	font-size: 15px;
	max-width: 36ch;
	flex: 1 1 28%;
	margin: 0;
	line-height: 1.55;
}

/* Slider */
.sm-ba {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--sm-radius-lg, 8px);
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	cursor: ew-resize;
	margin-bottom: 24px;
	background: rgba(0,0,0,0.04);
	/* Empêche le browser mobile d'interpréter le geste horizontal comme un scroll.
	   Sans ça, iOS/Chrome mobile annulent le pointer dès qu'on bouge le doigt. */
	touch-action: none;
	-webkit-touch-callout: none;
}
.sm-ba__handle {
	touch-action: none;
}
.sm-ba__pane {
	position: absolute;
	inset: 0;
}
.sm-ba__pane--after {
	clip-path: inset(0 0 0 var(--split, 50%));
}
.sm-ba__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}
.sm-ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #fff;
	left: var(--split, 50%);
	transform: translateX(-50%);
	z-index: 5;
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.sm-ba__handle::before {
	content: "‹ ›";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	background: #fff;
	color: var(--sm-fg);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 18px;
	letter-spacing: 4px;
	box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.sm-ba__label {
	position: absolute;
	top: 16px;
	font-family: var(--sm-font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0,0,0,0.55);
	padding: 6px 12px;
	border-radius: 4px;
	z-index: 4;
	pointer-events: none;
}
.sm-ba__label--l { left: 16px; }
.sm-ba__label--r { right: 16px; }

/* Miniatures */
.sm-ba__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 12px;
}
.sm-ba__thumb {
	position: relative;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--sm-radius, 4px);
	overflow: hidden;
	cursor: pointer;
	aspect-ratio: 4 / 3;
	background: rgba(0,0,0,0.04);
	transition: border-color .2s var(--sm-ease);
}
.sm-ba__thumb.is-active { border-color: var(--sm-accent); }
.sm-ba__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sm-ba__thumb-lbl {
	position: absolute;
	bottom: 8px;
	left: 8px;
	font-family: var(--sm-font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: rgba(255,255,255,0.92);
	padding: 4px 8px;
	border-radius: 3px;
	color: var(--sm-fg);
}

.sm-ba__cta {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

@media (max-width: 900px) {
	.sm-ba__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 40px;
	}
	.sm-ba__head-text,
	.sm-ba__subtitle {
		flex: 1 1 100%;
		max-width: none;
	}
}
@media (max-width: 640px) {
	.sm-ba__thumbs { grid-template-columns: repeat(2, 1fr); }
}
