.sss-wrapper {
	--sss-ratio: 16 / 9;
	--sss-overlay-bg: rgba(0, 0, 0, 0.55);
	--sss-title-color: #fff;
	position: relative;
	margin: 2em 0;
}

.sss-swiper {
	padding-bottom: 40px; /* place pour la pagination */
}

/* Slide = image de mise en avant au ratio choisi */
.sss-link {
	position: relative;
	display: block;
	aspect-ratio: var(--sss-ratio);
	overflow: hidden;
	border-radius: 6px;
	background: #eee;
	text-decoration: none;
}

.sss-link .sss-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

/* Titre au survol */
.sss-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1em;
	background: var(--sss-overlay-bg);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.sss-title {
	color: var(--sss-title-color);
	font-size: 1.15em;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	transform: translateY(10px);
	transition: transform 0.3s ease;
}

.sss-link:hover .sss-overlay,
.sss-link:focus-visible .sss-overlay {
	opacity: 1;
}

.sss-link:hover .sss-title,
.sss-link:focus-visible .sss-title {
	transform: translateY(0);
}

.sss-link:hover .sss-img,
.sss-link:focus-visible .sss-img {
	transform: scale(1.05);
}

/* Écrans tactiles (pas de survol) : titre toujours visible en bas */
@media (hover: none) {
	.sss-overlay {
		opacity: 1;
		align-items: flex-end;
		background: linear-gradient(to top, var(--sss-overlay-bg), transparent 60%);
	}
	.sss-title {
		transform: none;
	}
}

/* Flèches et pagination */
.sss-swiper .swiper-button-prev,
.sss-swiper .swiper-button-next {
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	top: calc(50% - 20px);
}

.sss-swiper .swiper-button-prev::after,
.sss-swiper .swiper-button-next::after {
	font-size: 16px;
	font-weight: bold;
}

.sss-swiper .swiper-pagination-bullet-active {
	background: #222;
}
