/* steps/cartes-regles — 4 cartes blanches numerotees a pictogramme et source liee.
 * Engagement 5 : aucun hexadecimal, valeurs de repli comprises. */

.ivy-steps--cartes-regles {
	padding-block: clamp( 80px, 9vw, 136px );
	color: var( --ivy-ink, rgb( 14 47 56 ) );
}

.ivy-steps--cartes-regles .ivy-steps__inner {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: calc( 1376px + 2 * clamp( 20px, 2.4vw, 32px ) );
	margin-inline: auto;
	padding-inline: clamp( 20px, 2.4vw, 32px );
}

.ivy-steps--cartes-regles .ivy-steps__title {
	margin: 0;
	color: var( --ivy-title-color, inherit );
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.ivy-steps--cartes-regles .ivy-steps__lead {
	margin: 16px 0 8px;
	color: var( --ivy-caption-color, var( --ivy-muted, rgb( 86 101 106 ) ) );
	line-height: 1.45;
}

.ivy-steps--cartes-regles .ivy-steps__source {
	margin: 0;
	color: var( --ivy-text-color, var( --ivy-muted, rgb( 86 101 106 ) ) );
	font-size: calc( var( --ivy-font-body ) * 0.8235 );
	line-height: 1.55;
}

.ivy-steps--cartes-regles .ivy-steps__source p {
	margin: 0;
	font-size: inherit;
}

.ivy-steps--cartes-regles .ivy-steps__source a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.ivy-steps--cartes-regles .ivy-steps__source a[href^="http"]::after {
	content: '';
	display: inline-block;
	inline-size: 13px;
	block-size: 13px;
	margin-inline-start: 0.25em;
	vertical-align: -1px;
	background-color: currentColor;
	-webkit-mask: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E" ) no-repeat center / contain;
	mask: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E" ) no-repeat center / contain;
}

.ivy-steps--cartes-regles .ivy-steps__grid {
	list-style: none;
	margin: clamp( 40px, 4.5vw, 64px ) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 16px;
}

.ivy-steps--cartes-regles .ivy-steps__card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 72px;
	min-block-size: 260px;
	margin: 0;
	padding: 20px;
	border-radius: var( --ivy-radius-surface, 20px );
	background: var( --ivy-card, rgb( 255 255 255 ) );
}

.ivy-steps--cartes-regles .ivy-steps__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.ivy-steps--cartes-regles .ivy-steps__icon {
	display: inline-flex;
	color: var( --ivy-item_icon-color, inherit );
	font-size: var( --ivy-item_icon-size, 26px );
	line-height: 1;
}

.ivy-steps--cartes-regles .ivy-steps__icon :is( svg, i ) {
	inline-size: 1em;
	block-size: 1em;
	font-size: 1em;
}

.ivy-steps--cartes-regles .ivy-steps__num {
	color: var( --ivy-item_number-color, inherit );
	font-size: calc( var( --ivy-font-body ) * 1.1765 );
	line-height: 1.55;
}

.ivy-steps--cartes-regles .ivy-steps__item-title {
	margin: 0;
	color: var( --ivy-item_title-color, inherit );
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.ivy-steps--cartes-regles .ivy-steps__item-text {
	margin: 10px 0 0;
	color: var( --ivy-item_text-color, var( --ivy-muted, rgb( 86 101 106 ) ) );
	font-size: calc( var( --ivy-font-body ) * 0.9412 );
	line-height: 1.55;
}

@media ( hover: hover ) {
	.ivy-steps--cartes-regles .ivy-steps__source a:hover {
		text-decoration-thickness: 2px;
	}
}

@media ( hover: hover ) and ( prefers-reduced-motion: no-preference ) {
	.ivy-steps--cartes-regles .ivy-steps__card {
		transition: transform calc( 320ms * var( --ivy-motion, 1 ) ) var( --ivy-ease, cubic-bezier( 0.16, 1, 0.3, 1 ) );
	}

	.ivy-steps--cartes-regles .ivy-steps__card:hover {
		transform: translateY( -4px );
	}
}

@media ( max-width: 999px ) {
	.ivy-steps--cartes-regles .ivy-steps__grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 599px ) {
	.ivy-steps--cartes-regles .ivy-steps__grid {
		grid-template-columns: minmax( 0, 1fr );
	}

	.ivy-steps--cartes-regles .ivy-steps__card {
		min-block-size: 0;
		gap: 32px;
	}
}
