/* Module LOVALANCHE : carrousel du parcours [lv_parcours]. */

.lv-parcours {
	--lv-carte-l: 270px;
	--lv-carte-h: 470px;
	--lv-ecart: 40px;
	--lv-zoom-actif: 1.18;
	position: relative;
	width: 100%;
	padding: 70px 0 0;
	color: #E7E6E4;
}

.lv-parcours__fenetre {
	overflow: hidden;
	padding: 50px 0;
}
.lv-parcours__piste {
	display: flex;
	align-items: center;
	gap: var(--lv-ecart);
	will-change: transform;
}
.lv-parcours__piste.est-anime {
	transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lv-parcours__carte {
	position: relative;
	flex: 0 0 var(--lv-carte-l);
	height: var(--lv-carte-h);
	background-color: #2A2A2A;
	background-size: cover;
	background-position: center;
	transform: scale(1);
	transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
	user-select: none;
}
.lv-parcours__carte::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%);
}
.lv-parcours__carte.est-active {
	transform: scale(var(--lv-zoom-actif));
	z-index: 1;
}

.lv-parcours__contenu {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 24px;
}
.lv-parcours__titre {
	margin: 0 0 10px;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 26px;
	line-height: 32px;
	font-weight: 500;
	text-transform: uppercase;
	color: #E7E6E4;
}
.lv-parcours__texte {
	margin: 0;
	font-family: Georgia, serif;
	font-size: 13px;
	line-height: 19px;
	color: #E7E6E4;
}
.lv-parcours__lien {
	display: inline-block;
	margin-top: 14px;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 14px;
	line-height: 20px;
	font-weight: 300;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.lv-parcours__lien:hover,
.lv-parcours__lien:focus-visible {
	color: #fff;
	opacity: 0.8;
}

/* Carte texte (étape sans photo). */
.lv-parcours__carte--texte {
	background-color: #2A2A2A;
}
.lv-parcours__carte--texte::before {
	display: none;
}
.lv-parcours__carte--texte .lv-parcours__contenu {
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	text-align: center;
}
.lv-parcours__carte--texte .lv-parcours__titre {
	font-size: 20px;
	line-height: 26px;
	font-weight: 600;
}

/* Bouton pause. */
.lv-parcours__pause {
	position: absolute;
	top: 10px;
	right: 40px;
	width: 32px !important;
	min-width: 32px !important;
	height: 32px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	cursor: pointer;
	box-sizing: border-box !important;
}
.lv-parcours__icone-pause {
	display: block;
	width: 12px;
	height: 14px;
	margin: 0 auto;
	border-left: 4px solid #fff;
	border-right: 4px solid #fff;
	box-sizing: border-box;
}
.lv-parcours.est-en-pause .lv-parcours__icone-pause {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}

/* Flèches. */
.lv-parcours__fleche {
	position: absolute;
	top: calc(70px + 50px + var(--lv-carte-h) / 2);
	width: 44px !important;
	min-width: 44px !important;
	height: 44px;
	margin-top: -22px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	cursor: pointer;
	z-index: 2;
	box-sizing: border-box !important;
}
.lv-parcours__fleche::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
}
.lv-parcours__fleche--prec { left: 20px; }
.lv-parcours__fleche--prec::before { transform: translate(-30%, -50%) rotate(-45deg); }
.lv-parcours__fleche--suiv { right: 20px; }
.lv-parcours__fleche--suiv::before { transform: translate(-70%, -50%) rotate(135deg); }

/* Barres de progression. */
.lv-parcours__barres {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 10px;
}
.lv-parcours__barre {
	position: relative;
	width: 108px !important;
	min-width: 0 !important;
	height: 12px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	cursor: pointer;
	box-sizing: border-box !important;
}
.lv-parcours__barre::before,
.lv-parcours__barre span {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	height: 2px;
}
.lv-parcours__barre::before {
	right: 0;
	background: #505050;
}
.lv-parcours__barre span {
	width: 0;
	background: #fff;
}
.lv-parcours__barre.est-faite span {
	width: 100%;
}

/* Tablette. */
@media (max-width: 1024px) {
	.lv-parcours {
		--lv-carte-l: 240px;
		--lv-carte-h: 420px;
		--lv-ecart: 30px;
	}
}

/* Mobile : grandes cartes, barres en haut par-dessus les photos. */
@media (max-width: 767px) {
	.lv-parcours {
		--lv-carte-l: 72vw;
		--lv-carte-h: min(150vw, 620px);
		--lv-ecart: 12px;
		--lv-zoom-actif: 1;
		padding-top: 0;
	}
	.lv-parcours__fenetre {
		padding: 0;
	}
	.lv-parcours__barres {
		position: absolute;
		top: 16px;
		left: 15px;
		right: 15px;
		z-index: 2;
		margin: 0;
	}
	.lv-parcours__barre {
		flex: 1 1 0;
		width: auto !important;
	}
	.lv-parcours__pause {
		top: auto;
		bottom: 12px;
		right: 15px;
		z-index: 2;
	}
	.lv-parcours__fleche {
		display: none;
	}
	.lv-parcours__titre {
		font-size: 24px;
		line-height: 30px;
	}
	.lv-parcours__texte {
		font-size: 14px;
		line-height: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lv-parcours__piste.est-anime,
	.lv-parcours__carte {
		transition: none;
	}
}
