/* Stores Isol Vérandas — Bloc « etapes » — chargé seulement sur les pages qui l'utilisent. Dépend de global.css. */

.siv-steps .siv-heading--center {
	margin-bottom: 56px;
}

.siv-steps__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.siv-step {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-height: 200px;
	padding: 24px;
	border: 1px solid var(--siv-bord);
	border-radius: 8px;
	background: var(--siv-creme);
}

.siv-step__number {
	color: var(--siv-orange);
	font-family: var(--siv-titre);
	font-size: 32px;
	font-weight: 700;
	line-height: normal;
}

.siv-step__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--siv-texte);
	font-size: 14px;
	line-height: 1.5;
}

.siv-step__title {
	color: var(--siv-noir);
	font-family: var(--siv-titre);
	font-size: 20px;
	font-weight: 600;
	line-height: normal;
}

@media (max-width: 1023px) {
	.siv-steps .siv-heading--center {
		margin-bottom: 40px;
	}

	.siv-steps__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.siv-step {
		min-height: 0;
	}
}

.siv-steps__dots {
	display: none;
}

@media (max-width: 767px) {
	.siv-steps .siv-heading--center {
		margin-bottom: 32px;
	}

	/* Carrousel : défilement horizontal aimanté, la carte suivante dépasse pour inviter au geste.
	   position: relative retient les textes masqués (screen-reader-text) dans le carrousel. */
	.siv-steps__list {
		position: relative;
		display: flex;
		align-items: stretch;
		gap: 16px;
		margin-right: calc(-1 * var(--siv-gouttiere));
		margin-left: calc(-1 * var(--siv-gouttiere));
		padding: 4px var(--siv-gouttiere) 4px;
		scroll-padding-inline: var(--siv-gouttiere);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.siv-steps__list::-webkit-scrollbar {
		display: none;
	}

	.siv-step {
		flex: 0 0 72%;
		scroll-snap-align: start;
	}

	.siv-step {
		gap: 12px;
		padding: 20px;
	}

	.siv-step__number {
		font-size: 28px;
	}

	.siv-steps__dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: 16px;
	}

	.siv-steps__dot {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: var(--siv-bord);
		cursor: pointer;
		transition: width 0.2s, background-color 0.2s;
	}

	.siv-steps__dot.is-active {
		width: 24px;
		background: var(--siv-orange);
	}

	.siv-steps__dot:focus-visible {
		outline: 2px solid var(--siv-orange);
		outline-offset: 2px;
	}
}
