/**
 * Home — Quel style de Onewheel (calque 2026).
 */

.rideon-style-boards {
	--h2-size: clamp(1.8rem, 5vw, 3.5rem);
	--lead-size: clamp(1rem, 2vw, 1.125rem);
	position: relative;
	z-index: 1;
	padding: clamp(3rem, 8vw, 5.5rem) 0;
	background: var(--white-pure, #fff);
	color: var(--black-pure, #000);
	overflow: visible;
	scroll-margin-top: calc(var(--site-top-offset, 120px) + 12px);
}

.rideon-style-boards .container {
	width: 100%;
	max-width: var(--container-width, 1440px);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.rideon-style-boards__layout {
	display: grid;
	grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 2.4fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: stretch;
}

.rideon-style-boards__header {
	/* Legacy theme : `header { position:fixed; height:130px }` → titre « envolé » */
	position: relative;
	top: auto;
	inset: auto;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0.75rem;
	width: 100%;
	max-width: 18rem;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	transition: none;
	overflow: visible;
}

/* Illu surfing — bleu Ride On, au-dessus du texte (flux) */
.rideon-style-boards__illu {
	position: relative;
	z-index: 0;
	display: block;
	width: min(8.5rem, 72%);
	margin: 0 0 0.15rem;
	pointer-events: none;
	user-select: none;
	color: var(--onewheel-blue, #4cc0e8);
	transform: rotate(-3deg);
	transform-origin: left center;
}

.rideon-style-boards__illu img {
	display: block;
	width: 100%;
	height: auto;
}

.rideon-style-boards__title {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 11ch;
	text-wrap: balance;
	font-family: var(--font-headline, "mono45-headline", Impact, sans-serif);
	font-size: var(--h2-size);
	font-weight: 700;
	line-height: 0.95 !important;
	letter-spacing: -0.02em;
	word-spacing: var(--headline-word-spacing, 0) !important;
	text-transform: uppercase;
	color: var(--black-pure, #000);
}

.rideon-style-boards__lead {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 22ch;
	font-family: var(--font-main, "Space Grotesk", sans-serif);
	font-size: var(--lead-size);
	font-weight: 500;
	line-height: 1.5;
	color: rgba(0, 0, 0, 0.68);
}

.rideon-style-boards__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.85rem, 1.6vw, 1.25rem);
	min-width: 0;
}

.rideon-style-boards__card {
	position: relative;
	display: block;
	isolation: isolate;
	min-height: clamp(26rem, 52vh, 34rem);
	overflow: hidden;
	color: var(--white-pure, #fff);
	text-decoration: none;
	background: #111;
	transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.rideon-style-boards__card:hover,
.rideon-style-boards__card:focus-visible {
	color: var(--white-pure, #fff);
	text-decoration: none;
	outline: none;
}

.rideon-style-boards__card:focus-visible {
	outline: 2px solid var(--electric-lime, #e9ff00);
	outline-offset: 3px;
}

.rideon-style-boards__media,
.rideon-style-boards__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.rideon-style-boards__media img {
	object-fit: cover;
	object-position: center;
	transform: scale(1.02);
	transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.rideon-style-boards__card:hover .rideon-style-boards__media img,
.rideon-style-boards__card:focus-visible .rideon-style-boards__media img {
	transform: scale(1.08);
}

.rideon-style-boards__card--pint-s .rideon-style-boards__media img {
	object-position: 28% 55%;
}

.rideon-style-boards__card--xr-classic .rideon-style-boards__media img {
	object-position: center 40%;
}

.rideon-style-boards__card--rally-xl .rideon-style-boards__media img {
	object-position: 60% center;
}

.rideon-style-boards__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.08) 18%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.88) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.05) 55%);
	pointer-events: none;
}

.rideon-style-boards__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	padding: clamp(1.15rem, 2.4vw, 1.65rem);
	box-sizing: border-box;
}

.rideon-style-boards__tag {
	margin: 0;
	font-family: var(--font-main, "Space Grotesk", sans-serif);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.rideon-style-boards__name {
	margin: 0;
	font-family: var(--font-headline, "mono45-headline", Impact, sans-serif);
	font-size: clamp(1.85rem, 3.2vw, 2.55rem);
	font-weight: 700;
	line-height: 0.95 !important;
	letter-spacing: -0.02em;
	word-spacing: var(--headline-word-spacing, 0) !important;
	text-transform: uppercase;
	color: var(--white-pure, #fff);
}

.rideon-style-boards__text {
	margin: 0.15rem 0 0;
	max-width: 28ch;
	font-family: var(--font-main, "Space Grotesk", sans-serif);
	font-size: clamp(0.92rem, 1.5vw, 1.02rem);
	font-weight: 500;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.86);
}

/* Tablette large : titre un peu plus étroit, triptyque toujours en ligne */
@media (max-width: 1200px) {
	.rideon-style-boards__layout {
		grid-template-columns: minmax(10rem, 0.72fr) minmax(0, 2.6fr);
		gap: clamp(1rem, 2.2vw, 1.75rem);
	}

	.rideon-style-boards__card {
		min-height: clamp(22rem, 48vh, 30rem);
	}

	.rideon-style-boards__name {
		font-size: clamp(1.55rem, 2.6vw, 2.15rem);
	}
}

/* Tablette : titre au-dessus, 3 cartes côte à côte */
@media (max-width: 980px) {
	.rideon-style-boards {
		padding: clamp(2.5rem, 6vw, 3.75rem) 0;
	}

	.rideon-style-boards__layout {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.rideon-style-boards__header {
		max-width: none;
		justify-content: flex-start;
		gap: 0.55rem;
	}

	.rideon-style-boards__illu {
		width: min(7.25rem, 32%);
		margin-bottom: 0.1rem;
		transform: rotate(-3deg);
	}

	.rideon-style-boards__title {
		max-width: 14ch;
		font-size: clamp(1.7rem, 4.6vw, 2.6rem);
	}

	.rideon-style-boards__lead {
		max-width: 34ch;
	}

	.rideon-style-boards__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.rideon-style-boards__card {
		min-height: clamp(20rem, 46vw, 26rem);
	}

	.rideon-style-boards__body {
		padding: 1rem;
		gap: 0.35rem;
	}

	.rideon-style-boards__text {
		max-width: 22ch;
		font-size: 0.88rem;
		margin: 0.1rem 0 0;
	}
}

/* Mobile : titre au-dessus + rail horizontal snap (triptyque) */
@media (max-width: 720px) {
	.rideon-style-boards {
		padding: 2.25rem 0 2.5rem;
		/* laisse le rail déborder jusqu’au bord droit */
		overflow-x: clip;
		overflow-y: visible;
	}

	.rideon-style-boards .container {
		padding-right: 0;
	}

	.rideon-style-boards__header {
		align-items: center;
		text-align: center;
		max-width: none;
		padding-right: 20px;
		gap: 0.45rem;
	}

	.rideon-style-boards__illu {
		width: min(6.25rem, 38%);
		margin-left: auto;
		margin-right: auto;
		transform: rotate(-2deg);
		transform-origin: center center;
	}

	.rideon-style-boards__title {
		max-width: 14ch;
		margin-left: auto;
		margin-right: auto;
		font-size: clamp(1.65rem, 8vw, 2.2rem);
		text-align: center;
	}

	.rideon-style-boards__lead {
		max-width: 28ch;
		margin-left: auto;
		margin-right: auto;
		font-size: 0.98rem;
		text-align: center;
	}

	.rideon-style-boards__grid {
		display: flex;
		gap: 0.75rem;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 20px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 0 20px 0.35rem 0;
		touch-action: pan-x;
	}

	.rideon-style-boards__grid::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	.rideon-style-boards__card {
		flex: 0 0 min(78vw, 19.5rem);
		width: min(78vw, 19.5rem);
		min-height: 22.5rem;
		scroll-snap-align: start;
	}

	.rideon-style-boards__name {
		font-size: clamp(1.55rem, 7vw, 1.95rem);
	}

	.rideon-style-boards__text {
		max-width: 24ch;
	}
}

@media (max-width: 420px) {
	.rideon-style-boards__card {
		flex-basis: 82vw;
		width: 82vw;
		min-height: 21rem;
	}
}

.rideon-style-boards .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
