/**
 * NineSigma Use Case Slider - styles.
 * Reproduit les cartes "View case study" (fond navy, image arrondie,
 * barre orange, titre blanc, extrait, bouton pill outline).
 */

.ns-ucs {
	position: relative;
	padding: 8px 0;
}

.ns-ucs__swiper {
	overflow: hidden;
}

/* Slides de même hauteur : chaque slide s'étire à la hauteur
   de la plus grande carte, le bouton (margin-top:auto) se cale en bas. */
.ns-ucs__slide {
	height: auto;
	display: flex;
}

/* Carte */
.ns-ucs__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

/* Image */
.ns-ucs__media {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	aspect-ratio: 16 / 10;
	background: rgba(255, 255, 255, 0.06);
}

.ns-ucs__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
	transition: transform 0.5s ease;
}

.ns-ucs__card:hover .ns-ucs__media img {
	transform: scale(1.04);
}

.ns-ucs__media--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
}

/* Corps de carte */
.ns-ucs__body {
	padding-top: 22px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/* Barre orange (accent) */
.ns-ucs__accent {
	display: block;
	width: 44px;
	height: 4px;
	border-radius: 2px;
	background-color: #E8622A;
	margin-bottom: 18px;
}

/* Titre */
.ns-ucs__title {
	margin: 0 0 16px;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	color: #ffffff;
}

.ns-ucs__title a {
	color: inherit;
	text-decoration: none;
}

.ns-ucs__title a:hover {
	text-decoration: none;
	opacity: 0.9;
}

/* Extrait */
.ns-ucs__excerpt {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.6;
	color: #D7DCEC;
}

/* Bouton pill outline */
.ns-ucs__btn {
	display: inline-block;
	margin-top: auto;
	align-self: flex-start;
	padding: 13px 30px;
	border: 2px solid #ffffff;
	border-radius: 999px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ns-ucs__btn:hover,
.ns-ucs__btn:focus {
	background-color: #ffffff;
	color: #1B2559;
	text-decoration: none;
}

/* Pagination (points) */
.ns-ucs__pagination {
	position: static;
	margin-top: 28px;
	text-align: center;
}

.ns-ucs .swiper-pagination-bullet {
	width: 9px;
	height: 9px;
	background: #ffffff;
	opacity: 0.35;
	transition: opacity 0.25s ease, width 0.25s ease;
}

.ns-ucs .swiper-pagination-bullet-active {
	opacity: 1;
	width: 24px;
	border-radius: 5px;
}

/* Flèches */
.ns-ucs__arrow {
	position: absolute;
	top: 32%;
	transform: translateY(-50%);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: rgba(0, 0, 0, 0.15);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.ns-ucs__arrow:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: #1B2559;
}

.ns-ucs__arrow--prev {
	left: -10px;
}

.ns-ucs__arrow--next {
	right: -10px;
}

.ns-ucs__arrow.swiper-button-disabled {
	opacity: 0.25;
	cursor: default;
}

/* Responsive */
@media (max-width: 1024px) {
	.ns-ucs__title {
		font-size: 23px;
	}
	.ns-ucs__arrow--prev {
		left: 4px;
	}
	.ns-ucs__arrow--next {
		right: 4px;
	}
}

@media (max-width: 767px) {
	.ns-ucs__title {
		font-size: 22px;
	}
	.ns-ucs__arrow {
		display: none;
	}
}
