/*
--------------------------------------
Main container
--------------------------------------
*/

.two-column-slider {
	position: relative;
	display: flex;
	font-family: var(--e-global-typography-primary-font-family);
	width: 100%;
}

/*
--------------------------------------
Navigation verticale
--------------------------------------
*/

.two-column-slider__vertical-nav {
	display: flex;
	justify-content: center;
	flex: 1 0 10%;
}

.two-column-slider__nav-item {
	position: relative;
	padding: 15px 0;
	color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.3s ease;
	border-left: 2px solid transparent;
}

.two-column-slider__nav-item:hover {
	color: #4ecdc4;
}

.two-column-slider__nav-item.active {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

/*
--------------------------------------
Indicateur de position des slides
--------------------------------------
*/

.slider-position-indicator {
	display: none;
}

/*
--------------------------------------
Indicateur de scroll
--------------------------------------
*/

.two-column-slider__scroll-indicator {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding-top: 2em;
}

.two-column-slider__scroll-dot {
	background: rgba(255, 255, 255, 0.65);
	border: 2px solid;
	border-color: transparent;
	border-radius: 50%;
	transition: all 0.3s ease;
	cursor: pointer;
	width: 8px;
	height: 8px;
}

.two-column-slider__scroll-dot.active {
	background: var(--e-global-color-accent);
	border-color: #fff;
	width: 12px;
	height: 12px;
}

.two-column-slider__nav-item.active {
	border-left: none;
	padding-left: 25px;
	position: relative;
}

.two-column-slider__nav-item.active::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 3px;
	background-image: url('data:image/svg+xml;utf8,<svg width="14" height="3" viewBox="0 0 14 3" fill="none" xmlns="http://www.w3.org/2000/svg"><line y1="1.5" x2="14" y2="1.5" stroke="white" stroke-width="2"/></svg>');
	background-repeat: no-repeat;
	background-size: contain;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

/*
--------------------------------------
Slides
--------------------------------------
*/

.two-column-slider__slides {
	position: relative;
	width: 100%;
	height: 120vh;
	overflow: hidden;
}

/* Slides */

.two-column-slider__slide {
	position: absolute;
	width: 100%;
	height: 120vh;
	display: flex;
	opacity: 0;
}

.two-column-slider__slide.active {
	opacity: 1;
}

.two-column-slider__slide.prev {
	transform: translateY(-100%);
}

/* Section image (gauche) */

.two-column-slider__img {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 0 calc(280px + (720 - 280) * ((100vw - 320px) / (1920 - 320)));
	opacity: 0;
	transform: translateY(-250px);
	animation: slideInElement 0.5s ease forwards;
}

/* Section contenu (droite) */

.two-column-slider__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #fff;
	opacity: 0;
	transform: translateY(250px);
	animation: slideInElement 0.5s ease forwards;
}

.two-column-slider__title {
	margin-bottom: calc(6px + (30 - 6) * ((100vw - 320px) / (1920 - 320)));
}

.two-column-slider__title span {
	font-size: 45px;
	font-weight: 600;
	color: #fff;
	letter-spacing: -0.9px;
}

.two-column-slider__description p {
	font-size: 18px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/*
--------------------------------------
Keyframes
--------------------------------------
*/

@keyframes slideInElement {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}