.rideon-hotspots {
	--roh-bg: url("bg/onewheel-studio-background.webp");
	margin: 0 auto 2.5rem;
	max-width: 1100px;
	padding: 0 16px;
}

/* PDP : fond pleine largeur, planche à la même hauteur qu’avant (~1100px de large). */
body.pdp-board-landing-page .rideon-hotspots {
	max-width: none;
	width: 100%;
	margin: 1rem 0 0;
	padding: 0;
}

.rideon-hotspots__stage {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	background-color: #1a1d22;
	background-image: var(--roh-bg);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	overflow: visible;
	isolation: isolate;
}

body.pdp-board-landing-page .rideon-hotspots__stage {
	min-height: 0;
}

/* Zone planche = référentiel des % (pins calés sur l’image, pas le fond large). */
.rideon-hotspots__board-wrap {
	position: relative;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	z-index: 1;
}

.rideon-hotspots__board {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
	position: relative;
	z-index: 1;
	user-select: none;
	pointer-events: none;
}

/* Pins : look type Image Map Pro / Onewheel (disque noir + croix blanche + pulse). */
.rideon-hotspots__pin {
	--roh-pin-size: 40px;
	position: absolute;
	z-index: 2;
	width: var(--roh-pin-size);
	height: var(--roh-pin-size);
	margin: 0;
	padding: 0;
	border: 1.5px solid rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	background: rgba(10, 10, 10, 0.72);
	color: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
	transform: translate(-50%, -50%);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}

.rideon-hotspots__pin::before {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.5);
	opacity: 0.85;
	animation: roh-pin-pulse 2.6s ease-out infinite;
	pointer-events: none;
}

.rideon-hotspots__pin:hover,
.rideon-hotspots__pin:focus-visible {
	background: rgba(10, 10, 10, 0.9);
	transform: translate(-50%, -50%) scale(1.06);
	outline: none;
}

.rideon-hotspots__pin.is-open {
	background: #0a0a0a;
	border-color: #fff;
	transform: translate(-50%, -50%) scale(1.04);
}

.rideon-hotspots__pin.is-open::before {
	animation: none;
	opacity: 0;
}

.rideon-hotspots__pin-icon {
	position: relative;
	display: block;
	width: 14px;
	height: 14px;
	pointer-events: none;
	transition: transform 0.2s ease;
}

.rideon-hotspots__pin-icon::before,
.rideon-hotspots__pin-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: #fff;
	border-radius: 1px;
	transform: translate(-50%, -50%);
}

.rideon-hotspots__pin-icon::before {
	width: 14px;
	height: 2px;
}

.rideon-hotspots__pin-icon::after {
	width: 2px;
	height: 14px;
}

.rideon-hotspots__pin.is-open .rideon-hotspots__pin-icon {
	transform: rotate(45deg);
}

@keyframes roh-pin-pulse {
	0% {
		transform: scale(0.92);
		opacity: 0.75;
	}
	70% {
		transform: scale(1.28);
		opacity: 0;
	}
	100% {
		transform: scale(1.28);
		opacity: 0;
	}
}

.rideon-hotspots__leaders {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
	overflow: visible;
}

.rideon-hotspots__leader {
	stroke: #fff;
	stroke-width: 1.5;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.rideon-hotspots__leader[hidden] {
	display: none;
}

.rideon-hotspots__panel {
	position: absolute;
	z-index: 4;
	width: min(280px, 72%);
	max-width: 300px;
	background: #fff;
	color: #0a0a0a;
	border-radius: 2px;
	padding: 16px 18px 14px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
	font-family: var(--font-main, "Space Grotesk", system-ui, sans-serif);
}

.rideon-hotspots__panel.is-side-right {
	text-align: left;
}

.rideon-hotspots__panel.is-side-left {
	text-align: left;
}

.rideon-hotspots__panel[hidden] {
	display: none !important;
}

.rideon-hotspots__panel-close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #0a0a0a;
	opacity: 0.55;
}

.rideon-hotspots__panel-close:hover,
.rideon-hotspots__panel-close:focus-visible {
	opacity: 1;
	outline: none;
}

.rideon-hotspots__panel-title {
	margin: 0 28px 8px 0;
	font-family: var(--font-headline, "mono45-headline", Impact, sans-serif);
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	word-spacing: -0.04em;
	text-transform: uppercase;
	line-height: 1.05;
}

.rideon-hotspots__panel-desc {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
}

.rideon-hotspots__panel-desc p:last-child {
	margin-bottom: 0;
}

.rideon-hotspots .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Mobile : bloc masqué (pas d’expérience pins sur petit écran). */
@media (max-width: 781px) {
	.rideon-hotspots {
		display: none !important;
	}
}
