/**
 * Slider comparatif Onewheel — calque DEV26 (boards only).
 */

.onewheel-comparison-section {
	--h2-size: clamp(1.8rem, 5vw, 3.5rem);
}

.onewheel-comparison-section .container {
	width: 100%;
	max-width: var(--container-width, 1440px);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1rem, 3vw, 1.5rem);
	padding-right: clamp(1rem, 3vw, 1.5rem);
	box-sizing: border-box;
}

.onewheel-comparison-section .slider-main-title {
	font-family: var(--font-headline, "mono45-headline", Impact, sans-serif);
	font-size: var(--h2-size);
	font-weight: 900;
	letter-spacing: -0.03em;
	word-spacing: var(--headline-word-spacing, -0.2em);
	text-transform: uppercase;
	line-height: 0.92;
}

.onewheel-comparison-section {
	background: url('https://cdn.shopify.com/s/files/1/0696/2011/files/GraySeamless4FamilySlide_Desktop.png') center center / cover no-repeat;
	padding: clamp(44px, 7vw, 84px) 0;
	overflow: hidden;
	/* Ancre « Comparer les modèles » (hero) : titre visible sous .site-top sticky. */
	scroll-margin-top: calc(var(--site-top-offset, 120px) + 20px);
}

.slider-header-shell {
	position: relative;
	z-index: 2;
}

.slider-full-bleed {
	width: 100%;
}

/* Titre = h2 global (--h2-size). Ici : layout seulement. */
.slider-main-title {
	text-align: center;
	color: #000;
	max-width: 1100px;
	margin: 0 auto clamp(14px, 1.8vw, 24px);
}

/* Barre d’onglets modèles (pleine largeur, synchro avec le slider planches) */
.board-model-tabs-shell {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	margin-bottom: 28px;
	box-sizing: border-box;
}

.board-model-tabs {
	position: relative;
	height: 46px;
	padding: 0;
	border-radius: var(--pill-radius, 100px);
	background: rgba(255, 255, 255, 0.88);
	background-clip: padding-box;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 8px;
	touch-action: pan-x;
	scrollbar-width: none;
	-ms-overflow-style: none;
	box-sizing: border-box;
	isolation: isolate;
	transform: translateZ(0);
	-webkit-mask-image: -webkit-radial-gradient(white, black);
}

.board-model-tabs * {
	box-sizing: border-box;
}

.board-model-tabs::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.board-model-tab {
	flex: 0 0 auto;
	width: auto;
	min-width: 92px;
	min-height: 0;
	align-self: stretch;
	border-radius: var(--pill-radius, 100px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border: 0;
	margin: 0;
	background: transparent;
	cursor: pointer;
	font-family: var(--font-main);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: #2b2b2b;
	text-transform: none;
	white-space: nowrap;
	box-sizing: border-box;
	overflow: hidden;
	text-overflow: ellipsis;
	scroll-snap-align: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.board-model-tab:focus-visible {
	outline: 2px solid rgba(43, 43, 43, 0.45);
	outline-offset: 2px;
}

.board-model-tab.is-active {
	background: #7f7f7f;
	color: #fff;
	font-weight: 500;
	border-radius: var(--pill-radius, 100px);
	overflow: hidden;
}

.main-slider,
.main-slider .slick-list,
.main-slider .slick-track {
	height: auto;
}

.board-slide {
	padding: 0 10px 6px;
}

.board-image-container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
}

/* Frame = planche + badge « Nouveau » (même scale / opacity). */
.board-feature-frame {
	position: relative;
	display: block;
	max-width: min(900px, 100%);
	width: 100%;
	margin: 0 auto;
	transform: scale(0.95);
	opacity: 0.75;
	transition: transform 0.45s ease, opacity 0.45s ease;
	will-change: transform;
	cursor: pointer;
}

.board-feature {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	margin: 0;
	transform: none;
	opacity: 1;
}

.board-slider-new-badge {
	position: absolute;
	top: clamp(0.25rem, 1.8vw, 0.95rem);
	left: clamp(0.25rem, 2.8vw, 1.4rem);
	z-index: 2;
	width: clamp(5.75rem, 16vw, 9.75rem);
	height: auto;
	pointer-events: none;
	user-select: none;
}

.main-slider .slick-current .board-feature-frame {
	transform: scale(1);
	opacity: 1;
	cursor: pointer;
}

.main-slider .slick-current .board-feature-frame:hover {
	transform: scale(1.04);
}

.board-info-bar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	background: transparent;
	backdrop-filter: none;
	border: 0;
	border-radius: 0;
	padding: 16px;
	width: fit-content;
	max-width: 100%;
	margin: 20px auto 0;
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
	transition: opacity 0.14s ease, transform 0.14s ease;
}

.info-col {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.logo-col {
	min-width: 210px;
}

.info-separator {
	display: none;
}

.logo-col svg,
.logo-col .board-slider__logo {
	display: block;
	width: auto;
	height: clamp(34px, 4.2vw, 50px);
	max-width: min(220px, 100%);
	max-height: 50px;
	object-fit: contain;
	object-position: center;
	opacity: 1;
	visibility: visible;
	flex: 0 0 auto;
}

.specs-col {
	flex-direction: column;
	gap: 6px;
}

.specs-col p {
	font-weight: 700;
	font-size: 1.08rem;
	line-height: 1.25;
	margin: 0;
	text-align: center;
}

.board-spec-line {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0.35em 0.5em;
}

.board-spec-line__label {
	font-weight: 700;
	font-size: 0.86em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #555;
}

.board-spec-line__value {
	font-weight: 800;
	color: var(--black-pure, #000);
	display: inline-block;
	font-size: 1.04em;
}

.main-slider .slick-current .board-info-bar {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* CTA inverse → .btn-pill-inverse (style.css) */

/* Responsive only (<1024) : planche centrale plus grande, peeks latéraux plus proches */
@media (max-width: 1023px) {
	.board-slide {
		padding: 0 2px 6px;
	}

	.board-image-container {
		min-height: clamp(240px, 52vw, 360px);
	}

	.board-feature-frame {
		max-width: min(980px, 100%);
		transform: scale(0.78);
		opacity: 0.55;
	}

	.main-slider .slick-current .board-feature-frame {
		transform: scale(1.08);
		opacity: 1;
	}

	.main-slider .slick-current .board-feature-frame:hover {
		transform: scale(1.1);
	}
}

@media (min-width: 768px) {
	.board-model-tabs-shell {
		margin-bottom: 34px;
	}

	.board-model-tabs {
		height: 44px;
		padding: 0;
		justify-content: flex-start;
		overflow: hidden;
		width: fit-content;
		max-width: 100%;
		margin: 0 auto;
		transform: translateZ(0);
		-webkit-mask-image: -webkit-radial-gradient(white, black);
	}

	.board-model-tab {
		flex: 0 0 112px;
		width: 112px;
		min-width: 112px;
		font-size: 15px;
		font-weight: 600;
		padding: 0 8px;
		white-space: normal;
		text-align: center;
		line-height: 1.05;
		word-break: keep-all;
		overflow-wrap: normal;
	}

	.logo-col .board-slider__logo {
		height: 52px;
		max-height: 52px;
		max-width: 240px;
	}

	.board-image-container {
		min-height: 380px;
	}

	.board-info-bar {
		grid-template-columns: auto 1px auto 1px auto;
		align-items: center;
		justify-content: center;
		gap: 20px;
		padding: 14px 20px;
	}

	.info-separator {
		display: block;
		width: 1px;
		height: 36px;
		background: rgba(0, 0, 0, 0.22);
	}
}

@media (min-width: 1024px) {
	.slider-full-bleed {
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}

	.board-slide {
		padding-inline: 20px;
	}

	.board-image-container {
		min-height: 460px;
	}

	.board-feature-frame {
		max-width: 1020px;
	}
}
