/* Block: MP – Cartes à icônes */

.mp-ci__filtres {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.mp-ci__inner {
	padding-top: 104px;
	padding-bottom: 104px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 56px;
}

.mp-ci__titre {
	margin: 0;
	text-align: center;
	font-family: var(--mp-font-title);
	font-weight: 700;
	font-size: 44px;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--mp-black);
	text-transform: none;
	text-wrap: balance;
}

.mp-ci__cartes {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: grid;
	grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
	gap: 20px;
}

.mp-ci__carte {
	margin: 0;
	padding: 28px 26px 30px;
	border: 1px solid #F0E3D4;
	border-radius: 24px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mp-fond--blanc .mp-ci__carte {
	background: var(--mp-cream);
	border-color: transparent;
}

.mp-ci__carte::before {
	content: none;
}

.mp-ci__carte .mp-icone {
	display: block;
	width: 58px;
	height: 58px;
	margin-bottom: 10px;
	object-fit: contain;
}

/* Card with a photo: the photo spans the top, the drawn icon sits in a badge over its edge. */
.mp-ci__carte.has-photo {
	padding-top: 0;
	overflow: hidden;
}

.mp-ci__photo {
	position: relative;
	margin: 0 -26px 30px;
}

.mp-ci__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mp-ci__badge {
	position: absolute;
	left: 18px;
	bottom: -26px;
	width: 62px;
	height: 62px;
	border-radius: 100px;
	background: #ffffff;
	box-shadow: 0 8px 20px -8px rgba(60, 30, 20, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mp-ci__badge .mp-icone,
.mp-ci__badge svg {
	width: 42px;
	height: 42px;
	margin: 0;
}

.mp-ci__carte-titre {
	margin: 0;
	font-family: var(--mp-font-title);
	font-weight: 700;
	font-size: 19px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--mp-black);
	text-transform: none;
}

.mp-ci__carte-texte {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #333333;
}

.mp-ci__note {
	margin: 0;
	text-align: center;
	font-size: 16px;
	color: var(--mp-muted);
}

.mp-ci--vide {
	padding: 24px;
	text-align: center;
	color: var(--mp-muted);
}

@media (max-width: 1000px) {
	.mp-ci__cartes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.mp-ci__inner {
		padding-top: 64px;
		padding-bottom: 72px;
		gap: 36px;
	}

	.mp-ci__titre {
		font-size: 30px;
	}

	.mp-ci__cartes {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.mp-ci__carte {
		padding: 22px 22px 24px;
	}

	.mp-ci__carte.has-photo {
		padding-top: 0;
	}

	.mp-ci__photo {
		margin: 0 -22px 30px;
	}

	.mp-ci__photo img {
		aspect-ratio: 16 / 9;
	}
}
