/*
--------------------------------------
item
--------------------------------------
*/

.category-item {
	display: flex;
	flex-direction: column;
	font-family: var(--e-global-typography-primary-font-family);
	background: #fff;
	height: 100%;

}


/*content*/

.category-item__content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 2em 1em;
}

/*name*/

.category-items .category-item__name {
	font-size: calc(29px + (35 - 29) * ((100vw - 320px) / (1920 - 320)));
	font-weight: 700;
	color: var(--e-global-color-primary);
	line-height: 1;
	letter-spacing: -1px;
	text-align: center;
	padding-bottom: 0.5em;
}

/*description*/

.category-items .category-item__description {
	font-family: var(--e-global-typography-text-font-family);
	font-size: 16px;
	font-weight: 500;
	color: var(--e-global-color-primary);
	text-align: center;
	line-height: 30px;
	opacity: 0.8;
	padding-bottom: 1em;
}

/*image*/

.category-item__image {
	position: relative;
	width: 100%;
	padding-bottom: 60%;
	height: 0;
	overflow: hidden; /* 👈 essentiel pour couper ce qui déborde */
}
.category-item__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.category-item__image:hover img {
	transform: scale(1.05); /* ✅ zoom uniquement sur l'image */
}

.category-item__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*btn*/

.category-item__btn {
	display: flex;
	justify-content: center;
	margin-top: auto;
}

/*
--------------------------------------
slider
--------------------------------------
*/

.category-items.swiper {
	width: 96%;
	max-width: 100vw;
	position: relative;
	overflow: visible;
}

@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(50px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}


.category-items .swiper-wrapper {
	width: 100%;
	padding-left: 3.5%;
	padding-bottom: 5em;
}

.category-items .swiper-slide {
	background: #f1f1f1;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 24px;
	font-weight: bold;
	height: auto;
}

.category-items .swiper-scrollbar {
	left: 22% !important;
	display: flex;
	align-items: center;
	background-color: #8A85B3;
	height: 3px;
	max-width: 1075px;
	margin: 0 auto;
}

.category-items .swiper-scrollbar-drag {
	background-color: #fff;
	height: 6px;
}
