/* Composant bandeau de recherche (components/bandeau_recherche.php) : maquette Recherche. */

.bandeau_recherche {
	/* pleine largeur malgre les marges du body */
	margin: 0 calc(-1 * var(--espace-m));
	background: var(--chr-primary);
}

.bandeau_recherche_inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: var(--space-5) var(--gutter);
	box-sizing: border-box;
}

.bandeau_recherche_form {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	max-width: 880px;
	margin: 0 auto;
	padding: 5px 5px 5px 22px;
	box-sizing: border-box;
	background: var(--chr-blanc);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-md);
}

.bandeau_recherche_form:focus-within {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

.bandeau_recherche_loupe {
	flex-shrink: 0;
	color: var(--chr-primary-dark);
}

.bandeau_recherche_champ {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: var(--font-sans);
	font-size: 17px;
	font-weight: var(--fw-medium);
	color: var(--chr-encre);
}

.bandeau_recherche_champ::placeholder {
	color: var(--chr-ardoise);
}

.bandeau_recherche_effacer {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--tap-target);
	height: var(--tap-target);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--chr-ardoise);
	cursor: pointer;
}

.bandeau_recherche_effacer[hidden] {
	display: none;
}

.bandeau_recherche_effacer:hover {
	background: var(--chr-givre);
	color: var(--chr-primary-dark);
}

.bandeau_recherche_bouton {
	flex-shrink: 0;
	min-height: 50px;
	padding: 0 30px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--chr-secondary);
	font-family: var(--font-sans);
	font-size: 17px;
	font-weight: var(--fw-bold);
	color: var(--chr-encre);
	cursor: pointer;
}

.bandeau_recherche_bouton:hover {
	background: var(--chr-secondary-dark);
}

@media (max-width: 560px) {
	.bandeau_recherche_inner {
		padding-left: var(--gutter-mobile);
		padding-right: var(--gutter-mobile);
	}

	.bandeau_recherche_bouton {
		padding: 0 18px;
	}
}
