/* ==========================================================================
   Tools Adapter — Frise des Étapes (Timeline)
   ========================================================================== */

.ta-timeline-wrap {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Ligne continue verticale */
.ta-timeline-wrap::before {
	content: '';
	position: absolute;
	top: 36px;
	bottom: 36px;
	left: 36px; /* Centre exact d'un badge de 72px */
	width: 3px;
	margin-left: -1.5px;
	background: linear-gradient(to bottom, #7bc81d, #152718);
	border-radius: 3px;
	z-index: 1;
	pointer-events: none;
}

.ta-timeline--no-line::before {
	display: none !important;
}

/* Ligne d'étape */
.ta-timeline-step-row {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 30px;
	margin-bottom: 35px;
	box-sizing: border-box;
}

.ta-timeline-step-row:last-child {
	margin-bottom: 0;
}

/* Badge circulaire de phase */
.ta-timeline-badge {
	position: relative;
	z-index: 2;
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	min-width: 72px;
	border-radius: 50%;
	background-color: #152718;
	color: #ffffff;
	border: 4px solid #ffffff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.ta-timeline-step-row:hover .ta-timeline-badge {
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.ta-timeline-badge__num {
	font-size: 18px;
	font-weight: 800;
	color: #7bc81d;
	line-height: 1.1;
}

.ta-timeline-badge__lbl {
	font-size: 9px;
	text-transform: uppercase;
	color: #cbd5e1;
	letter-spacing: 0.6px;
	font-weight: 700;
	line-height: 1;
	margin-top: 2px;
}

.ta-timeline-badge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #7bc81d;
	line-height: 1;
}

.ta-timeline-badge__icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.ta-timeline-badge__custom {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

/* Carte de contenu */
.ta-timeline-card {
	position: relative;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 28px 30px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
	flex-grow: 1;
	box-sizing: border-box;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
				border-color 0.25s ease,
				box-shadow 0.3s ease;
}

/* Effet de survol sur la carte */
.ta-timeline--has-hover .ta-timeline-card:hover {
	border-color: #7bc81d;
	transform: translateX(6px);
	box-shadow: 0 12px 28px -3px rgba(0, 0, 0, 0.08), 0 4px 14px -2px rgba(123, 200, 29, 0.15);
}

/* Titre de l'étape avec icône */
.ta-timeline-card__title {
	margin: 0 0 10px 0;
	font-size: 19px;
	font-weight: 700;
	color: #152718;
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.35;
}

.ta-timeline-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #7bc81d;
	font-size: 18px;
	flex-shrink: 0;
	line-height: 1;
}

.ta-timeline-card__icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Description */
.ta-timeline-card__desc {
	font-size: 14px;
	color: #64748b;
	line-height: 1.7;
}

.ta-timeline-card__desc p {
	margin: 0;
}

.ta-timeline-card__desc strong {
	font-weight: 700;
	color: #152718;
}

/* Lien invisible sur toute la carte */
.ta-timeline-card__link {
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
	.ta-timeline-wrap::before {
		top: 26px;
		bottom: 26px;
		left: 26px; /* Centre du badge 52px */
	}

	.ta-timeline-step-row {
		gap: 20px;
		margin-bottom: 26px;
	}

	.ta-timeline-badge {
		width: 52px;
		height: 52px;
		min-width: 52px;
		border-width: 3px;
	}

	.ta-timeline-badge__num {
		font-size: 14px;
	}

	.ta-timeline-badge__lbl {
		font-size: 7.5px;
		letter-spacing: 0.4px;
	}

	.ta-timeline-card {
		padding: 22px 22px;
	}

	.ta-timeline-card__title {
		font-size: 17px;
	}

	.ta-timeline--has-hover .ta-timeline-card:hover {
		transform: translateX(3px);
	}
}

@media (max-width: 480px) {
	.ta-timeline-wrap::before {
		top: 22px;
		bottom: 22px;
		left: 22px; /* Centre du badge 44px */
	}

	.ta-timeline-step-row {
		gap: 14px;
		margin-bottom: 22px;
	}

	.ta-timeline-badge {
		width: 44px;
		height: 44px;
		min-width: 44px;
	}

	.ta-timeline-badge__num {
		font-size: 13px;
	}

	.ta-timeline-badge__lbl {
		display: none; /* Masqué sur très petits écrans pour garder le chiffre bien visible */
	}

	.ta-timeline-card {
		padding: 18px 16px;
	}

	.ta-timeline-card__title {
		font-size: 15px;
		gap: 8px;
	}

	.ta-timeline-card__icon {
		font-size: 15px;
	}

	.ta-timeline-card__desc {
		font-size: 13px;
		line-height: 1.6;
	}
}
