/* ===== Bannière slider ===== */
.bn-slider {
	--bn-height: clamp(220px, 32vw, 610px);   /* hauteur fixe, adaptée à l'écran */
	--bn-radius: 16px;

	position: relative;
	width: 100%;
	height: var(--bn-height);
	border-radius: var(--bn-radius);
	overflow: hidden;
	isolation: isolate;                        /* garde l'arrondi pendant le défilement (Safari) */
	background: #e9eef0;
}

.bn-slider__track {
	display: flex;
	height: 100%;
	touch-action: pan-y;                       /* le scroll vertical de la page reste possible */
	cursor: grab;
	will-change: transform;
	user-select: none;
	-webkit-user-select: none;
}
.bn-slider__track.is-dragging { cursor: grabbing; }

.bn-slider__slide {
	flex: 0 0 100%;
	height: 100%;
}

/* Toutes les images ont la même taille : elles remplissent le cadre */
.bn-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;                      /* empêche le glisser natif des images */
}

/* ===== Puces ===== */
.bn-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
}

.bn-slider__dot {
	width: 16px;                               /* zone cliquable plus large que la puce */
	height: 16px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.bn-slider__dot::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	border: 1px solid #fff;
	box-shadow: 0 0 3px rgba(0, 0, 0, .25);   /* lisible sur image claire */
	transition: background-color .25s ease;
}
.bn-slider__dot.is-active::before { background: #fff; }
.bn-slider__dot:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 50%; }

@media (max-width: 767.98px) {
	.bn-slider { --bn-radius: 12px; }
	.bn-slider__dots { bottom: 10px; }
}
