/*
--------------------------------------
Titre
--------------------------------------
*/

.section-text__title-second-line.title-element-w-gradient.section-text__title-second-line--tertiary {
	background: linear-gradient(132deg, #F43AE3 7.74%, #6A25F9 53.48%, #57DEE7 99.21%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/*
--------------------------------------
Items
--------------------------------------
*/

.formation-search {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: min(1100px, 100%);
	margin: 0 auto 2.5rem;
	padding: 0 16px;
}

.formation-search__form {
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: linear-gradient(120deg, rgba(244, 58, 227, 0.15), rgba(87, 222, 231, 0.14));
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	padding: 10px;
	backdrop-filter: blur(6px);
}

.formation-search__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(14, 20, 28, 0.35);
	padding: 0 14px;
}

.formation-search__input {
	width: 100%;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	padding: 14px 44px 14px 8px;
	outline: none;
}

.formation-search__input::placeholder {
	color: rgba(255, 255, 255, 0.65);
}

.formation-search__clear {
	position: absolute;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	visibility: hidden;
}

.formation-search__clear:hover,
.formation-search__clear:focus-visible {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.05);
}

.formation-search__submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: none;
	border-radius: 999px;
	padding: 14px 26px;
	background: linear-gradient(132deg, #F43AE3 7.74%, #6A25F9 53.48%, #57DEE7 99.21%);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(90, 41, 204, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formation-search__submit:hover,
.formation-search__submit:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 36px rgba(90, 41, 204, 0.45);
}

.formation-search__submit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
}

.formation-search__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 0 16px;
}

.formation-search__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	border: 1px dashed rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	padding: 10px 16px;
	cursor: grab;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.formation-search__chip:hover {
	border-color: rgba(255, 255, 255, 0.9);
	transform: translateY(-1px);
}

.formation-search__chip:active {
	cursor: grabbing;
}

.post-items__wrapper {
	/*overflow: hidden;*/
	/*overflow-x: auto;*/
	padding-bottom: calc(8px + (48 - 8) * ((100vw - 320px) / (1920 - 320)));
}

/*Style uniquement appliqué si swiper est inactif parce que flex n'est pas compatible avec swiper*/
.post-items--formations.post-items--homepage.posts-items__grid {
	display: flex;
	justify-content: center;
	position: relative;
	max-width: 100%;
	margin: 0;
}

.post-items--formations.posts-items__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	max-width: 100%;
}

.post-items--formations.posts-items__grid.post-items--all {
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 95%;
	padding-bottom: 5em;
	margin: auto;
}

.post-items__wrapper::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	border-radius: 10px;
	background-color: transparent;
	margin-inline: calc(50px + (150 - 50) * ((100vw - 320px) / (1920 - 320))) 0;
}

.post-items__wrapper::-webkit-scrollbar {
	height: 10px;
	background-color: transparent;
}

.post-items__wrapper::-webkit-scrollbar-thumb {
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
	background: linear-gradient(to right, #F43AE3 7.74%, #6A25F9 53.48%, #57DEE7 99.21%);
}

/*
--------------------------------------
Item
--------------------------------------
*/

.post-items--formations .post-item__link {
	position: relative;
	background: linear-gradient(209deg, rgba(244, 58, 227, 0.05) 0%, rgba(103, 80, 164, 0.15)) 100%, linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.50) 100%);
	border-radius: 8px;
	transition: all 0.35s ease-in-out;
	width: calc(280px + (370 - 280) * ((100vw - 320px) / (1920 - 320)));
	padding: calc(16px + (20 - 16) * ((100vw - 320px) / (1920 - 320)));
}

.post-items--formations .post-item__link:hover {
	box-shadow: 0 0 60px 2px rgba(87, 222, 231, 0.35);
}

.post-items--formations.post-items--all .post-item__link {
	width: auto;
	margin: 0 auto;
}

.post-items--formations .post-item__link * {
	color: #fff;
}

.post-items--formations .post-item {
	position: relative;
	display: flex;
	flex-direction: column;
	font-family: var(--e-global-typography-primary-font-family);
	background: transparent;
	border-radius: 8px;
	/*overflow:hidden;*/
	height: 100%;
}

/*image*/

.post-items--formations .post-item__image {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	width: 100%;
	height: 0;
	padding-bottom: 80%; /*régler le pourcentage pour une image moins haute au besoin*/
}

.post-items--formations .post-item__image img {
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 8px;
	object-fit: cover;
	transform: scale(1);
	transition: all 0.75s ease-in-out;
	width: 100%;
	height: 100%;
}

.post-items--formations .post-item:hover img {
	transform: scale(1.025);
}

/*content*/

.post-items--formations .post-item__content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding-top: 2em;
}

/*name*/

.post-items--formations.post-items .post-item__title {
	font-size: calc(20px + (24 - 20) * ((100vw - 320px) / (1920 - 320)));
	font-weight: 600;
	line-height: 1;
	letter-spacing: -1px;
}

.post-items--all.post-items .post-item__title {
	padding-bottom: 0.5em;
}

/*tags + price + link */

.post-items--formations .post-item__tags-price-link-container {
	margin-top: auto;
}

/*tags*/

.post-items--formations .post-item__tags {
	display: flex;
	column-gap: 8px;
	padding: 15px 0 25px 0;
}

.post-items--formations .post-item__tag {
	font-size: calc(12.5px + (15 - 12.5) * ((100vw - 320px) / (1920 - 320)));
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(22, 28, 34, 0.20);
	backdrop-filter: blur(7.5px);
	text-align: center;
	padding: 6px 16px;
}

/*price*/

.post-items--formations .training_price-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(22, 28, 34, 0.20);
	backdrop-filter: blur(7.5px);
	padding: 4px calc(8px + (35 - 8) * ((100vw - 320px) / (1920 - 320)));
}

.training_price-text-from {
	font-size: 10px;
}

/*btn*/

.post-items--formations .post-item__btn-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: auto;
}

.post-items--formations .post-item__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.20);
	backdrop-filter: blur(7.5px);
	padding: 9px 25px;
}

.post-items--formations .post-item__btn:hover,
.post-items--formations .post-item__btn:focus {
	background: rgba(255, 255, 255, 0.5);
}

/*
--------------------------------------
Swiper
--------------------------------------
*/

.post-items--formations.swiper .swiper-slide {
	height: auto;
}

.post-items--formations.swiper .swiper-wrapper {
	padding-bottom: calc(14px + (64 - 14) * ((100vw - 320px) / (1920 - 320)));
}

.post-items--formations.swiper .swiper-scrollbar {
	background: #fff;
}

.post-items--formations.swiper .swiper-scrollbar-drag {
	background: var(--e-global-color-secondary);
}


.is-hidden-by-search {
	display: none !important;
}

/* Scroll horizontal et masquage de la scrollbar sur le wrapper */

.post-items__wrapper.post-items--draggable {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.post-items__wrapper.post-items--draggable::-webkit-scrollbar {
  display: none;
}
.post-items__wrapper.post-items--draggable {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.post-items__wrapper.post-items--draggable > .post-items > * {
  display: inline-block;
  vertical-align: top;
  white-space: normal;
}

/* Empêche la sélection de texte lors du drag horizontal */

.post-items--draggable.is-dragging,
.post-items--draggable.is-dragging * {
  user-select: none !important;
  cursor: grabbing !important;
}
