/**
 * SOS Timeline Horizontale — styles scopés (classes stables sos-tl-h-*).
 *
 * Reproduit le rendu réel de la page d'origine (base widget + réglages
 * Elementor de la page) :
 *   - ligne de liaison bleu marque #009FE6
 *   - rond 40px, n° Outfit 20px/900
 *   - titre Outfit 20px/700 #1B2058, description 14px #4A4A68
 *
 * Desktop : grille + subgrid pour aligner les blocs entre étapes —
 * tous les titres occupent la même bande (hauteur du plus grand titre) et
 * toutes les descriptions démarrent sur la même ligne, quel que soit le
 * nombre de lignes du titre.
 *
 * La couleur de fond du rond est aussi injectée par le contrôle Elementor
 * « Couleur du rond numéroté » (défaut #1B2058) ; le background-color ci-dessous
 * sert de filet de sécurité.
 */

.sos-tl-h-wrapper {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	/* 3 pistes partagées par toutes les étapes : marqueur / titre / description. */
	grid-template-rows: auto auto auto;
	column-gap: 16px;
}

.sos-tl-h-item {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 3;
}

/* Le conteneur s'efface (display:contents) pour que le titre et la description
   tombent directement dans le subgrid de l'étape → alignement inter-colonnes. */
.sos-tl-h-content {
	display: contents;
}

.sos-tl-h-marker {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	margin-bottom: 20px;
}

.sos-tl-h-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: 50%;
	/* Fallback : garantit le fond du rond même si le CSS généré par le
	   contrôle Elementor « Couleur du rond » n'est pas (re)chargé.
	   Le contrôle Elementor reste prioritaire (sélecteur plus spécifique). */
	background-color: #1B2058;
	color: #FFFFFF;
	font-family: "Outfit", sans-serif;
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(27, 32, 88, 0.18);
}

.sos-tl-h-line {
	display: block;
	flex-grow: 1;
	height: 2px;
	background-color: #009FE6;
}

.sos-tl-h-line--empty {
	background-color: transparent;
}

.sos-tl-h-title {
	margin: 0 0 8px 0;
	padding: 0 4px;
	text-align: center;
	font-family: "Outfit", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #1B2058;
	line-height: 1.3;
}

.sos-tl-h-desc {
	margin: 0;
	padding: 0 4px;
	text-align: center;
	font-family: "Outfit", sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #4A4A68;
	line-height: 1.5;
}

/* Responsive : bascule verticale sous 767px (retour en flex, pas de subgrid). */
@media (max-width: 767px) {

	.sos-tl-h-wrapper {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.sos-tl-h-item {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 16px;
	}

	.sos-tl-h-content {
		display: block;
		flex: 1;
		padding: 8px 0 24px 0;
	}

	.sos-tl-h-title,
	.sos-tl-h-desc {
		padding: 0;
	}

	.sos-tl-h-marker {
		flex-direction: column;
		align-items: center;
		width: auto;
		margin-bottom: 0;
		align-self: stretch;
	}

	.sos-tl-h-line,
	.sos-tl-h-line--empty {
		width: 2px;
		height: auto;
		flex-grow: 1;
	}
}
