/* ==========================================================
   Carrousel au survol des produits (boucles boutique)
   Souris : flèches gauche / droite au survol de l'image.
   Tactile : glissement horizontal. Points de pagination en bas de l'image.
   ========================================================== */

.ps-survol {
	position: relative;
	overflow: hidden;
}

.ps-survol__piste {
	display: flex;
	width: 100%;
	height: 100%;
}

.ps-survol__piste > img {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	object-fit: cover;
}

/* Souris : images superposées, la courante au premier plan */
.ps-survol--souris .ps-survol__piste {
	display: grid;
}

.ps-survol--souris .ps-survol__piste > img {
	grid-area: 1 / 1;
	height: 100%;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ps-survol--souris .ps-survol__piste > img.is-active {
	opacity: 1;
}

/* Tactile : bande défilante avec aimantation */
.ps-survol--tactile .ps-survol__piste {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ps-survol--tactile .ps-survol__piste::-webkit-scrollbar {
	display: none;
}

.ps-survol--tactile .ps-survol__piste > img {
	scroll-snap-align: start;
}

/* Points */
.ps-survol__points {
	position: absolute;
	left: 50%;
	bottom: max(10px, 0.6614vw);
	z-index: 2;
	display: flex;
	gap: 6px;
	padding: 5px 7px;
	border-radius: 99px;
	background: rgba(0, 0, 0, 0.35);
	translate: -50% 0;
	pointer-events: none;
}

.ps-survol__point {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	transition: background-color 0.2s ease, scale 0.2s ease;
}

.ps-survol__point.is-active {
	background: #fff;
	scale: 1.25;
}

/* Flèches (souris) : visibles au survol de l'image */
.ps-survol button.ps-survol__fleche,
.ps-survol button.ps-survol__fleche:is(:hover, :focus) {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: max(36px, 2.381vw);
	height: max(36px, 2.381vw);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: var(--e-global-color-primary);
	box-shadow: none;
	color: var(--e-global-color-412b816);
	cursor: pointer;
	opacity: 0;
	translate: 0 -50%;
	transition: opacity 0.25s ease, scale 0.2s ease;
}

.ps-survol button.ps-survol__fleche--prec { left: max(10px, 0.6614vw); }
.ps-survol button.ps-survol__fleche--suiv { right: max(10px, 0.6614vw); }
.ps-survol button.ps-survol__fleche--suiv svg { transform: scaleX(-1); }

.ps-survol button.ps-survol__fleche svg {
	width: 45%;
	height: 45%;
}

.ps-survol:hover button.ps-survol__fleche,
.ps-survol button.ps-survol__fleche:focus-visible {
	opacity: 1;
}

.ps-survol button.ps-survol__fleche:active {
	scale: 0.92;
}
