/* Stack « Recherche » — template-parts/stacks/recherche.php */

/* Formes décoratives (.cta__*) : stacks.css */

.stack-recherche {
	overflow-x: clip;
}

/*
 * Dégradé beige → transparent. Dans la composition d'origine, il couvrait aussi la stack
 * suivante (Explorateur) : il s'arrête ici aux trois quarts environ et reprend sous
 * celle-ci, dont la marge du haut devient un retrait pour que le fond soit continu.
 */
.stack-recherche--degrade {
	background-image: linear-gradient(180deg, var(--wp--preset--color--beige, #eae2d8) 0%, rgb(234 226 216 / 0.78) 100%);
}

.stack-recherche--degrade + * {
	background-image: linear-gradient(180deg, rgb(234 226 216 / 0.78) 0%, rgb(234 226 216 / 0) 100%);
}

.stack-recherche--degrade + .stack {
	margin-top: 0;
	padding-top: var(--wp--preset--spacing--5-xl);
}

.stack-recherche__wrapper {
	padding-top: var(--wp--preset--spacing--5-xl);
}

.stack-recherche__contenu {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--l);
	padding-bottom: var(--wp--preset--spacing--6-xl);
	padding-top: var(--wp--preset--spacing--xl);
	position: relative;
	text-align: center;
}

.stack-recherche__titre {
	color: var(--wp--preset--color--cafe);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--step-4);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin-block: 0;
	max-width: 73.75rem;
	position: relative;
	z-index: 1;
}

@media (max-width: 1024px) {
	.stack-recherche--degrade + .stack {
		padding-top: var(--wp--preset--spacing--4-xl);
	}

	.stack-recherche__wrapper {
		padding-top: var(--wp--preset--spacing--xl);
	}

	.stack-recherche__contenu {
		padding-bottom: var(--wp--preset--spacing--s);
	}
}
