/* ============================================
   MOBILE FIRST
   ============================================ */

.timeline {
	--color-red: #c10230;
	--color-yellow: #ffcd00;
	--color-black: #000;

	font-family: "Montserrat", sans-serif;
	padding: 0 20px;
}

.presentation-container {
	display: flex;
	flex-direction: column;
	margin-bottom: 40px;
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease-out,
		transform 0.6s ease-out;
}

.presentation-container.fade-in {
	opacity: 1;
	transform: translateY(0);
}

.presentation-texte h2 {
	margin-bottom: 20px;
	line-height: 40px;
	font-weight: 800;
}

.presentation-texte p {
	display: block;
	line-height: 28px;
	margin-bottom: 20px;
}

.presentation-image {
	align-self: center;
}

.timeline-wrapper {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
}

.timeline-section {
	position: relative;
	margin-bottom: 0;
	display: block;
	padding-left: 65px;
	padding-bottom: 60px;
}

.timeline-section::before {
	content: "";
	position: absolute;
	left: 30px;
	top: 0;
	width: 2px;
	height: 100%;
	background-color: var(--color-red);
	z-index: 0;
}

.timeline-line-extension {
	position: relative;
	display: block;
	pointer-events: none;
}

.timeline-line-extension::before {
	content: "";
	position: absolute;
	left: 30px;
	top: 0;
	width: 2px;
	height: 100%;
	background-color: var(--color-red);
	z-index: 0;
}

.timeline-year-wrapper {
	position: relative;
	margin-bottom: 20px;
	z-index: 3;
}

.timeline-year {
	position: relative;
	left: 0;
	top: 0;
	transform: none;
	writing-mode: horizontal-tb;
	text-orientation: mixed;
	font-size: 50px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--color-red);
	width: fit-content;
	pointer-events: none;
}

.timeline-dot {
	position: absolute;
	left: 30px;
	width: 40px;
	height: 40px;
	background-color: var(--color-red);
	border-radius: 50%;
	transform: translate(-50%, 0);
	z-index: 10;
}

.timeline-section:first-child .timeline-dot {
	top: 0;
}

.timeline-section:not(:first-child) .timeline-dot {
	top: 10px;
}

.timeline-content {
	max-width: 100%;
	padding-right: 0;
	z-index: 2;
	opacity: 1;
	transform: none;
	display: flex;
	flex-direction: column;
}

.timeline-image-wrapper .timeline-image-desktop-line {
	display: none;
}

.timeline-title {
	font-size: 30px;
	font-weight: 900;
	margin-bottom: unset;
	line-height: 1.3;
	color: var(--color-black);
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease-out,
		transform 0.6s ease-out;
}

.timeline-title.fade-in {
	opacity: 1;
	transform: translateY(0);
}

.timeline-text-minuscules {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-gray-medium);
	margin-bottom: unset;
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease-out,
		transform 0.6s ease-out;
}

.timeline-text-minuscules.fade-in {
	opacity: 1;
	transform: translateY(0);
}

.timeline-text {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	margin-bottom: unset;
	color: var(--color-gray-dark);
	position: relative;
	padding-left: 60px;
	width: 100%;
}

.timeline-text p {
	margin-bottom: unset;
}

.timeline-text-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease-out,
		transform 0.6s ease-out;
	margin-bottom: 30px;
	overflow: visible;
}

.timeline-text-wrapper:last-child {
	margin-bottom: 0;
}

.timeline-text-wrapper.fade-in {
	opacity: 1;
	transform: translateY(0);
}

.timeline-text-wrapper .timeline-image-desktop-line {
	width: 30px;
	display: none;
}

.timeline-text strong {
	color: var(--color-red);
}

.timeline-text::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 30px;
	height: 1.5px;
	background-color: var(--color-black);
}

.timeline-text::after {
	content: "";
	position: absolute;
	left: var(--timeline-dot-left, 0);
	top: 0;
	width: 20px;
	height: 20px;
	background-color: var(--color-yellow);
	border-radius: 50%;
	z-index: 10;
}

.timeline-image-mobile {
	display: block;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 20px;
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease-out,
		transform 0.6s ease-out;
}

.timeline-image-mobile.fade-in {
	opacity: 1;
	transform: translateY(0);
}

.timeline-image-mobile img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.timeline-image-desktop {
	display: none;
}

/* ============================================
   DESKTOP (min-width: 1024px)
   ============================================ */

@media (min-width: 1024px) {
	.timeline {
		--timeline-zone-height: calc(100vh - 140px);
		padding: unset;
		max-width: 1200px;
		width: 100%;
		margin: 0 auto;
	}

	.presentation-container {
		flex-direction: row-reverse;
		justify-content: space-between;
	}

	.presentation-texte {
		width: 80%;
	}

	.presentation-image {
		width: fit-content;
	}

	.presentation-image img {
		width: 148px;
		height: 304px;
		object-fit: cover;
	}

	.timeline-wrapper {
		position: relative;
		max-width: 1400px;
		margin: 0 auto;
		margin-top: 160px;
	}

	.timeline-section {
		position: relative;
		display: flex;
		flex-direction: column;
		height: auto;
		padding-left: unset;
		margin-bottom: 0;
		padding-bottom: 150px;
	}

	.timeline-section::before {
		content: "";
		position: absolute;
		left: 170px;
		top: 0;
		width: 4px;
		height: 100%;
		background-color: var(--color-red);
		z-index: 1;
	}

	.timeline-line-extension {
		height: 150px;
	}

	.timeline-line-extension::before {
		left: 170px;
		width: 4px;
		z-index: 1;
	}

	.timeline-year-zone {
		flex-shrink: 0;
		height: var(--timeline-zone-height);
		width: 120px;
		z-index: 2;
		pointer-events: none;
	}

	.timeline-year-wrapper {
		position: sticky;
		top: 50%;
		height: 0;
		left: 0;
		z-index: 3;
		pointer-events: none;
	}

	.timeline-year {
		position: absolute;
		left: auto;
		right: 0;
		top: 0;
		font-size: 120px;
		color: var(--color-red);
		pointer-events: none;
		line-height: 1;
	}

	.timeline-year span {
		display: block;
		writing-mode: sideways-lr;
		white-space: nowrap;
	}

	.timeline-dot {
		position: absolute;
		left: 170px;
		top: 120px;
		width: 40px;
		height: 40px;
		background-color: var(--color-red);
		border-radius: 50%;
		transform: translate(-50%, -50%);
		z-index: 10;
	}

	.timeline-section:first-child .timeline-dot {
		top: 0;
		transform: translate(-50%, 0);
	}

	.timeline-title.timeline-title--no-subtitle {
		margin-bottom: 40px;
	}

	.timeline-content {
		width: calc(100% - 200px);
		max-width: 900px;
		margin-left: auto;
		margin-top: calc(-1 * var(--timeline-zone-height));
		display: flex;
		flex-direction: column;
		flex-shrink: 0;
		padding-left: unset;
		overflow: visible;
	}

	.timeline-image-wrapper {
		display: flex;
		gap: 30px;
		align-items: center;
		opacity: 0;
		transition: opacity 0.6s ease-out;
	}

	.timeline-image-wrapper .timeline-image-desktop-line {
		display: block;
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 0.6s ease-out;
	}

	.timeline-image-wrapper.fade-in {
		opacity: 1;
	}

	.timeline-image-wrapper.fade-in .timeline-image-desktop-line {
		transform: scaleX(1);
	}

	.timeline-content .timeline-title,
	.timeline-content .timeline-text-minuscules,
	.timeline-content .timeline-text {
		opacity: 0;
		transform: translateY(24px);
		transition:
			opacity 0.6s ease-out,
			transform 0.6s ease-out;
	}

	.timeline-content .timeline-title.fade-in,
	.timeline-content .timeline-text-minuscules.fade-in,
	.timeline-content .timeline-text.fade-in {
		opacity: 1;
		transform: translateY(0);
	}

	.timeline-title {
		font-size: 80px;
		font-weight: 900;
		line-height: 72px;
		margin-bottom: 10px;
		color: var(--color-black);
	}

	.timeline-text-minuscules {
		font-size: 26px;
		font-weight: 700;
		margin-bottom: 40px;
	}

	.timeline-text {
		font-size: 16px;
		line-height: 28px;
		padding-left: 0;
	}

	.timeline-text::after {
		bottom: 0;
		margin: auto 0;
	}

	.timeline-content .timeline-text.fade-in {
		opacity: 1;
	}

	.timeline-text-wrapper {
		gap: 30px;
		margin-bottom: 40px;
		overflow: visible;
	}

	.timeline-text-wrapper .timeline-image-desktop-line {
		width: 110px;
		display: block;
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 0.6s ease-out;
	}

	.timeline-text-wrapper.fade-in .timeline-image-desktop-line {
		transform: scaleX(1);
	}

	.timeline-text::before {
		display: none;
	}

	.timeline-image-desktop {
		display: block;
		width: 570px;
		height: 210px;
		margin-top: 0;
		overflow: hidden;
	}

	.timeline-image-desktop-line {
		width: 300px;
		height: 1px;
		background-color: var(--color-black);
		margin: unset;
		flex-shrink: 0;
	}

	.timeline-image-desktop img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.timeline-image-mobile {
		display: none;
	}
}

/* ============================================
   TABLETTE (768px - 1023px)
   ============================================ */

@media (min-width: 768px) and (max-width: 1023px) {
	.timeline-section {
		padding-left: 115px;
	}

	.timeline-section::before {
		left: 60px;
		width: 3px;
	}

	.timeline-line-extension::before {
		left: 60px;
		width: 3px;
	}

	.timeline-dot {
		left: 60px;
		top: 90px;
	}

	.timeline-section:first-child .timeline-dot {
		top: 0;
	}

	.timeline-year {
		font-size: 60px;
	}

	.timeline-title {
		font-size: 28px;
	}

	.timeline-text {
		font-size: 16px;
	}
}

