/* Block: MP – Hero jeux */

.mp-hero {
	position: relative;
	background: transparent;
}

/* By default the theme's fixed swirl background shows through. A custom image can override it. */
.mp-hero--fond {
	background-color: #ffffff;
	background-image: var(--mp-hero-fond);
	background-size: cover;
	background-position: center bottom;
}

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

.mp-hero__inner {
	padding-top: 48px;
	padding-bottom: 64px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px 56px;
}

/* Text column */

.mp-hero__texte {
	flex: 1 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.mp-hero__preuve {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.mp-hero__visages {
	display: flex;
	align-items: center;
}

.mp-hero__visages img {
	position: relative;
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 100px;
	border: 2px solid #ffffff;
	object-fit: cover;
	margin-left: -9px;
}

.mp-hero__visages img:first-child {
	margin-left: 0;
}

.mp-hero__avis {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.mp-hero__etoiles {
	display: flex;
	gap: 1px;
}

.mp-hero__etoiles svg {
	width: 15px;
	height: 15px;
	fill: var(--mp-black);
}

.mp-hero__preuve-texte {
	font-size: 13px;
	line-height: 1.3;
	color: #333333;
}

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

.mp-hero__sous-titre {
	margin: 0;
	max-width: 470px;
	font-size: 19px;
	line-height: 1.5;
	color: var(--mp-text);
}

.mp-hero__boutons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Image column with hand-written labels */

.mp-hero__visuel {
	position: relative;
	flex: 1 1 560px;
	min-width: 0;
}

.mp-hero__visuel.has-etiquettes {
	margin-bottom: 92px;
}

.mp-hero__image {
	display: block;
	width: 100%;
	height: auto;
}

.mp-hero__etiquettes {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mp-hero__etiquette {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translateX(-50%);
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

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

.mp-hero__etiquette-lien {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--mp-ink);
	text-decoration: none;
}

a.mp-hero__etiquette-lien:hover .mp-hero__etiquette-texte {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.mp-hero__etiquette-texte {
	font-family: var(--mp-font-hand);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.05;
	text-align: center;
}

.mp-hero__fleche {
	width: 34px;
	height: 47px;
	margin-bottom: 4px;
	overflow: visible;
	fill: none;
	stroke: var(--mp-ink);
	stroke-width: 3.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mp-hero__etiquette--haut-droite .mp-hero__fleche {
	margin-left: 46px;
}

.mp-hero__etiquette--haut-gauche .mp-hero__fleche {
	margin-right: 46px;
}

/* Arrow beside the text, curling up towards the image. */
.mp-hero__etiquette--droite .mp-hero__etiquette-lien {
	flex-direction: row-reverse;
	align-items: flex-end;
	gap: 6px;
}

.mp-hero__etiquette--droite .mp-hero__fleche {
	margin-bottom: 10px;
}

.mp-hero__visuel--vide {
	min-height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px dashed #d8cbbb;
	border-radius: 20px;
	color: var(--mp-muted);
}

/* Tablet and mobile */

@media (max-width: 1100px) {
	.mp-hero__titre {
		font-size: 44px;
	}
}

@media (max-width: 760px) {
	.mp-hero__inner {
		padding-top: 28px;
		padding-bottom: 44px;
		gap: 28px;
	}

	.mp-hero__texte {
		gap: 18px;
	}

	.mp-hero__titre {
		font-size: 34px;
	}

	.mp-hero__sous-titre {
		font-size: 17px;
	}

	.mp-hero__boutons .mp-btn {
		flex: 1 1 auto;
	}

	/* Labels drop below the image in a simple row. */
	.mp-hero__visuel.has-etiquettes {
		margin-bottom: 0;
	}

	.mp-hero__etiquettes {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px 22px;
		margin-top: 14px;
	}

	.mp-hero__etiquette {
		position: static;
		transform: none;
	}

	.mp-hero__fleche {
		display: none;
	}

	.mp-hero__etiquette-texte {
		font-size: 21px;
	}
}
