/* Carrousel Bateaux – Layout Hanse style */

/* ── Wrapper ── */
.sbc-wrapper {
	max-width: 1440px;
	margin: 32px auto 0;
	width: 100%;
	overflow: hidden;
}

@media (min-width: 992px) {
	.sbc-wrapper {
		margin-top: 40px;
		padding: 4px;
	}
}

/* ── Figure (le lien/conteneur dans chaque slide) ── */
.sbc-figure {
	border-radius: 4px;
	color: #fff;
	display: block;
	height: 100%;
	overflow: hidden;
	position: absolute;
	width: 100%;
	text-decoration: none;
}

.sbc-image-wrapper {
	clip-path: none;
	height: 100%;
	position: absolute;
	width: 100%;
}

.sbc-figure img.sbc-slide__img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	transition: transform 0.5s ease;
}

/* Gradient overlay */
.sbc-gradient {
	background-image: linear-gradient(168deg, rgba(8, 12, 11, 0.64) 7.14%, rgba(8, 12, 11, 0) 58.73%);
	position: absolute;
	inset: 0;
}

/* ── Titre overlay (en haut) ── */
.sbc-slide__title {
	font-size: 16px;
	font-weight: 700;
	padding: 17px 0;
	position: absolute;
	text-align: center;
	text-transform: none;
	top: 0;
	width: 100%;
	color: #fff;
	z-index: 1;
}

@media (min-width: 992px) {
	.sbc-slide__title {
		font-size: 18px;
		padding: 24px 0;
	}
}

/* ── Link icon (arrow-up-right, bas droite) ── */
.sbc-link-icon {
	position: absolute;
	bottom: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	padding: 4px;
	border: 1px solid #ececec;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: all 0.2s linear;
	z-index: 1;
}

@media (min-width: 992px) {
	.sbc-link-icon {
		width: 48px;
		height: 48px;
		padding: 12px;
	}
}

/* ── Scale/opacity ─────────────────────────────────────────
   Le track est caché tant que JS n'a pas calculé les scales.
   Après 1.5s sans JS, le fallback animation le rend visible.
   ────────────────────────────────────────────────────────── */
@keyframes sbc-fallback-show {
	to { visibility: visible; }
}

.sbc-wrapper:not(.sbc-ready) .splide__track {
	visibility: hidden;
	animation: sbc-fallback-show 0s 1.5s forwards;
}

/* ── Fallback layout sans Splide (éditeur Elementor) ─────── */
.sbc-carousel:not(.is-initialized) .splide__list {
	display: flex;
	gap: 17px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.sbc-carousel:not(.is-initialized) .splide__slide {
	flex: 0 0 408px;
	height: 420px;
	position: relative;
}

.sbc-slide .sbc-figure {
	transform-origin: center center;
	will-change: transform, opacity;
}

/* Hide icon by default – JS shows it on center slide */
.sbc-slide .sbc-link-icon {
	display: none;
}

/* Hover effect: zoom image */
@media (hover: hover) {
	.sbc-figure:hover img.sbc-slide__img {
		transform: scale(1.03);
	}

	.sbc-figure:hover .sbc-link-icon {
		background-color: #fff;
		border-color: #005c84;
		box-shadow: rgba(0, 92, 132, 0.24) 0 0 0 2px;
		color: #00090d;
	}
}

/* ── Navigation arrows + progress bar ── */
.sbc-arrows {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 32px;
	padding: 0 16px;
	width: 100%;
}

@media (min-width: 992px) {
	.sbc-arrows {
		margin-top: 40px;
	}
}

.sbc-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	min-height: 46px;
	padding: 12px;
	border-width: 1px;
	border-style: solid;
	border-radius: 50% !important;
	cursor: pointer;
	outline: 0;
	transition: background-color 0.3s linear, border-color 0.3s linear;
	flex-shrink: 0;
	-webkit-appearance: none;
	appearance: none;
}

.sbc-arrow--prev svg {
	transform: rotate(180deg);
}

.sbc-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.sbc-arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.sbc-arrow svg {
	display: block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

/* ── Progress bar ── */
.sbc-progress {
	background-color: #ececec;
	border-radius: 200px;
	max-width: 408px;
	width: 100%;
	height: 8px;
	overflow: hidden;
}

.sbc-progress__fill {
	background-color: #fe6d2c;
	border-radius: 200px;
	height: 8px;
	width: 0;
	transition: width 0.4s;
}

/* ── Specs overlay (caractéristiques au hover) ── */
.sbc-specs {
	position: absolute;
	top: 60px;
	left: 0;
	width: 100%;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 1;
	pointer-events: none;
}

@media (min-width: 992px) {
	.sbc-specs {
		top: 72px;
	}
}

.sbc-spec {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.sbc-spec__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	object-fit: contain;
}

.sbc-spec__text {
	color: #ffffff;
	font-size: 13px;
	line-height: 1.3;
}

@media (min-width: 992px) {
	.sbc-spec__text {
		font-size: 14px;
	}
}

/* Desktop hover */
@media (hover: hover) {
	.sbc-figure:hover .sbc-specs {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}
}

/* Mobile/tablet touch */
.sbc-figure.sbc-touch-active .sbc-specs {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
