/* ==================================================
HOME / ABOUT — VALUES
================================================== */
.home-values {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
}

.home-values__inner {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding: 64px 64px 96px;
	box-sizing: border-box;
}

.home-values__title {
	margin: 0 0 64px;
}

/* GRID
-------------------------------------------------- */
.home-values__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: start;
	gap: 32px;
}

/* VALUE
-------------------------------------------------- */
.value-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
	text-align: center;
}

.value-card__icon {
	display: block;
	width: 48px;
	height: 48px;
	margin: 0 0 12px;
	object-fit: contain;
}

.value-card__label {
	margin: 0;
	font-family: var(--wp--preset--font-family--geist);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--wp--preset--color--dark-violet);
}

.value-card__label strong {
	display: block;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.1;
}

.value-card__label span {
	display: block;
	margin-top: 4px;
}

/* ==================================================
VALUES — SCROLL ANIMATION
================================================== */
.home-values__grid .value-card {
	opacity: 1;
	transform: translateY(0);
	transition:
	opacity 520ms ease,
	transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.home-values__grid .value-card.is-entering {
	opacity: 0;
	transform: translateY(18px);
}

/* ==================================================
TABLET
================================================== */
@media (min-width: 783px) and (max-width: 1024px) {
	.home-values__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 20px;
	}

}

/* ==================================================
MOBILE
================================================== */
@media (max-width: 782px) {
	.home-values__inner {
		padding: 64px 20px;
	}

	.home-values__title {
		margin-bottom: 48px;
	}

	.home-values__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
		row-gap: 48px;
	}

	/* Le 5e élément est centré sur la dernière ligne */
	.value-card:last-child {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 12px);
	}

	.value-card__icon {
		width: 44px;
		height: 44px;
	}

	.value-card__label {
		font-size: 1.125rem;
	}

	.value-card__label strong {
		font-size: 1.125rem;
	}

}

/* ==================================================
REDUCED MOTION
================================================== */
@media (prefers-reduced-motion: reduce) {
	.home-values__grid .value-card {
		transition: none;
	}

	.home-values__grid .value-card.is-entering {
		opacity: 1;
		transform: none;
	}

}

/* ==================================================
HOME VALUES — VARIANT CARDS
================================================== */
.home-values--cards .home-values__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.home-values--cards .value-card {
	justify-content: center;
	min-height: 180px;
	padding: 24px;
	border-radius: 24px;
	box-sizing: border-box;
}

/* Violet clair */
.home-values--cards .value-card:nth-child(odd) {
	background:
	radial-gradient(
	circle at 20% 15%,
	rgba(255, 255, 255, 0.55) 0%,
	rgba(255, 255, 255, 0) 55%
	),
	var(--wp--preset--color--blue-clear);
}

/* Jaune clair */
.home-values--cards .value-card:nth-child(even) {
	background:
	radial-gradient(
	circle at 80% 15%,
	rgba(255, 255, 255, 0.5) 0%,
	rgba(255, 255, 255, 0) 55%
	),
	color-mix(
	in srgb,
	var(--wp--preset--color--yellow) 50%,
	white
	);
}

.home-values--cards .value-card:nth-child(1),
.home-values--cards .value-card:nth-child(3),
.home-values--cards .value-card:nth-child(5) {
	background:
	radial-gradient(
	circle at 20% 15%,
	rgba(255, 255, 255, 0.55) 0%,
	rgba(255, 255, 255, 0) 55%
	),
	var(--wp--preset--color--blue-clear);
}

.home-values--cards .value-card:nth-child(2),
.home-values--cards .value-card:nth-child(4) {
	background:
	radial-gradient(
	circle at 80% 15%,
	rgba(255, 255, 255, 0.5) 0%,
	rgba(255, 255, 255, 0) 55%
	),
	color-mix(
	in srgb,
	var(--wp--preset--color--yellow) 50%,
	white
	);
}

@media (max-width: 782px) {
	.home-values--cards .home-values__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.home-values--cards .value-card {
		width: 100%;
		min-height: 150px;
		padding: 20px 12px;
	}

	.home-values--cards .value-card:last-child {
		grid-column: auto;
		justify-self: stretch;
		width: 100%;
	}

}

@media (max-width: 782px) {
	.home-values--cards .value-card:nth-child(3) {
		background:
		radial-gradient(
		circle at 80% 15%,
		rgba(255, 255, 255, 0.5) 0%,
		rgba(255, 255, 255, 0) 55%
		),
		color-mix(
		in srgb,
		var(--wp--preset--color--yellow) 50%,
		white
		);
	}

	.home-values--cards .value-card:nth-child(4) {
		background:
		radial-gradient(
		circle at 20% 15%,
		rgba(255, 255, 255, 0.55) 0%,
		rgba(255, 255, 255, 0) 55%
		),
		var(--wp--preset--color--blue-clear);
	}

}

/* ==================================================
VALUES CARDS — HOVER
================================================== */
.home-values--cards .value-card {
	border: 1px solid rgba(24, 14, 66, 0.06);
	box-shadow:
	0 4px 12px rgba(24, 14, 66, 0.04);
	transition:
	opacity 520ms ease,
	transform 520ms cubic-bezier(.2, .8, .2, 1),
	box-shadow 320ms ease,
	border-color 320ms ease;
}

@media (hover: hover) {
	.home-values--cards .value-card:not(.is-entering):hover {
		transform: translateY(-8px);
		border-color: rgba(24, 14, 66, 0.1);
		box-shadow:
		0 8px 16px rgba(24, 14, 66, 0.05),
		0 20px 40px rgba(24, 14, 66, 0.08);
	}

}
