/**
 * Timeline — Notre histoire
 *
 * Carrousel Swiper 2 slides visibles
 * Flèches en bas à gauche
 */

.dt-timeline {
	position: relative;
}

.dt-swiper-timeline {
	overflow: hidden;
}

.dt-swiper-timeline .swiper-wrapper {
	align-items: stretch !important;
}

.dt-swiper-timeline .swiper-slide {
	height: auto !important;
	align-self: stretch;
}

/* Slide */
.dt-timeline-item {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.dt-timeline-image-wrap {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background-color: #f0f0f0;
}

.dt-timeline-no-img {
	width: 100%;
	height: 100%;
	background-color: #cccccc;
}

.dt-timeline-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Contenu */
.dt-timeline-content {
	padding: 1.5em 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.dt-timeline-title {
	font-size: 1.4em;
	font-weight: 700;
	color: #222222;
	margin: 0;
	line-height: 1.3;
}

.dt-timeline-text {
	font-size: 0.95em;
	color: #444444;
	line-height: 1.6;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.dt-timeline-text p:last-child {
	margin-top: auto;
}

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

.dt-timeline-annee {
	font-size: 1.1em;
	font-weight: 700;
	color: #222222;
	margin: auto 0 0;
	padding-top: 1em;
}

/* Navigation */
.dt-timeline-nav {
	display: flex;
	gap: 10px;
	padding-top: 1em;
	margin-left: -13em;
	top: -5em;
	position: relative;
}

.dt-timeline-prev,
.dt-timeline-next {
	cursor: pointer;
	color: var(--dt-gris-fonce);
	opacity: 0.6;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.dt-timeline-prev:hover,
.dt-timeline-next:hover {
	opacity: 1;
}

.dt-timeline-next:hover {
	transform: translateX(5px);
}

.dt-timeline-prev:hover {
	transform: translateX(-5px);
}

.dt-timeline-prev.swiper-button-disabled,
.dt-timeline-next.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

/* Responsive */
@media (max-width: 980px) {
	.dt-timeline-nav {
		margin-left: 0;
		top: 0;
		justify-content: center;
	}
}
