/*
 * HRE Immo – Formulaire « Que recherchez-vous ? ».
 * Les sélecteurs « :not(#hre) » augmentent la spécificité pour que les styles
 * du thème / du kit Elementor ne viennent pas écraser le design.
 */

.hre-rech {
	--hre-accent: #63323E;
	--hre-text: #111111;
	--hre-muted: #8A8A8E;
	--hre-field-color: #7E7E83;
	--hre-field-filled: #121212;
	--hre-invalid: #FF2C2C;
	--hre-field-size: 12px;
	--hre-field-bg: #FFFFFF;
	--hre-btn-bg: #111821;
	--hre-btn-color: #FFFFFF;
	--hre-btn-bg-hover: #63323E;
	--hre-btn-color-hover: #F5F5F7;
	--hre-success: #5FAA5F;
	--hre-error: #B83A33;
	--hre-radius: 6px;
	--hre-gap: 20px;
	--hre-field-h: 48px;
	--hre-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--hre-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

	color: var(--hre-text);
	font-family: var(--hre-sans);
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
}

.hre-rech *,
.hre-rech *::before,
.hre-rech *::after {
	box-sizing: inherit;
}

.hre-rech [hidden] {
	display: none !important;
}

/* ---------- En-tête ---------- */

.hre-rech .hre-rech__overtitle:not(#hre) {
	margin: 0 0 1rem;
	padding: 0;
	color: var(--hre-accent);
	font-family: var(--hre-sans);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hre-rech .hre-rech__title:not(#hre) {
	margin: 0 0 clamp(32px, 5vw, 56px);
	padding: 0;
	color: var(--hre-text);
	font-family: var(--hre-serif);
	font-size: 4rem;
	font-weight: 700;
	letter-spacing: -0.005em;
	line-height: 1.1;
	text-transform: none;
}

/* ---------- Grille ---------- */

.hre-rech__form {
	display: flex;
	flex-direction: column;
	gap: var(--hre-gap);
	margin: 0;
}

.hre-rech__row--2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--hre-gap);
	align-items: start;
}

.hre-rech__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hre-rech .hre-rech__fieldset:not(#hre) {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* ---------- Libellés ---------- */

.hre-rech .hre-rech__label:not(#hre) {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 10px;
	padding: 0 0 0 6px;
	color: var(--hre-text);
	font-family: var(--hre-serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.hre-rech .hre-rech__req {
	color: var(--hre-accent);
}

.hre-rech .hre-rech__optional {
	font-family: var(--hre-serif);
	font-size: 11px;
	font-weight: 400;
	vertical-align: baseline;
}

/* Grille des critères (comme la maquette) :
   moitié gauche = 2 colonnes (2/5 – 3/5), moitié droite = Localisation ou PEB + Jardin. */
.hre-rech .hre-rech__row--criteria {
	margin-top: 34px;
}

.hre-rech__half {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: var(--hre-gap);
	align-items: start;
	min-width: 0;
}

.hre-rech__half--end {
	grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
}

.hre-rech .hre-rech__fieldset--jardin:not(#hre) {
	padding-left: 16px;
}

/* « Je dois vendre pour acheter » : sous le budget, sur toute la moitié gauche. */
.hre-rech .hre-rech__fieldset--vendre:not(#hre) {
	grid-column: 1 / -1;
}

.hre-rech .hre-rech__fieldset--vendre .hre-rech__choices--inline {
	min-height: 0;
	padding: 4px 0 0 6px;
}

.hre-rech .hre-rech__fieldset.has-error .hre-rech__dot {
	box-shadow: 0 0 0 1.5px var(--hre-invalid);
}

.hre-rech .hre-rech__field--message {
	margin-top: 34px;
}

/* ---------- Champs ---------- */

.hre-rech .hre-rech__input:not(#hre) {
	display: block;
	width: 100%;
	max-width: none;
	height: var(--hre-field-h);
	min-height: 0;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: var(--hre-radius);
	outline: none;
	background: var(--hre-field-bg);
	box-shadow: none;
	color: var(--hre-field-filled);
	font-family: var(--hre-sans);
	font-size: var(--hre-field-size);
	font-weight: 400;
	line-height: var(--hre-field-h);
	letter-spacing: 0;
	transition: box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.hre-rech .hre-rech__input:not(#hre)::placeholder {
	color: var(--hre-field-color);
	font-family: var(--hre-sans);
	font-size: var(--hre-field-size);
	opacity: 1;
}

.hre-rech .hre-rech__input:not(#hre):focus,
.hre-rech .hre-rech__input:not(#hre):focus-visible {
	box-shadow: 0 0 0 1.5px var(--hre-accent);
}

.hre-rech .hre-rech__input:not(#hre).is-invalid {
	box-shadow: 0 0 0 1.5px var(--hre-invalid);
}

.hre-rech .hre-rech__input:not(#hre).is-invalid::placeholder {
	color: var(--hre-invalid);
}

.hre-rech .has-error > .hre-rech__label:not(#hre),
.hre-rech .has-error > .hre-rech__label .hre-rech__req,
.hre-rech .hre-rech__captcha.is-invalid > .hre-rech__label:not(#hre),
.hre-rech .hre-rech__captcha.is-invalid > .hre-rech__label .hre-rech__req {
	color: var(--hre-invalid);
}

.hre-rech .hre-rech__textarea:not(#hre) {
	height: auto;
	min-height: 216px;
	padding: 18px 20px;
	line-height: 1.5;
	resize: vertical;
}

/* Select avec chevron */
.hre-rech__select-wrap {
	position: relative;
}

.hre-rech__select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 22px;
	width: 6px;
	height: 6px;
	margin-top: -4px;
	border-right: 1.2px solid var(--hre-field-color);
	border-bottom: 1.2px solid var(--hre-field-color);
	transform: rotate(45deg);
	pointer-events: none;
}

.hre-rech .hre-rech__select:not(#hre) {
	padding-right: 48px;
	color: var(--hre-field-color);
	cursor: pointer;
	background-image: none;
}

.hre-rech .hre-rech__select:not(#hre).is-filled {
	color: var(--hre-field-filled);
}

/* Localisation : plusieurs communes (étiquettes) */
.hre-rech__communes {
	position: relative;
	min-width: 0;
}

.hre-rech .hre-rech__suggestions:not(#hre) {
	position: absolute;
	z-index: 50;
	top: calc(100% + 4px);
	left: 0;
	width: max(100%, 320px);
	max-width: calc(100vw - 32px);
	margin: 0;
	padding: 6px 0 0;
	list-style: none;
	border-radius: var(--hre-radius);
	background: var(--hre-field-bg);
	box-shadow: 0 8px 24px rgba(17, 24, 33, 0.12);
	overflow: hidden;
}

.hre-rech .hre-rech__suggestion:not(#hre) {
	display: flex;
	flex-direction: column;
	gap: 1px;
	margin: 0;
	padding: 8px 20px;
	color: var(--hre-field-color);
	font-family: var(--hre-sans);
	font-size: var(--hre-field-size);
	line-height: 1.35;
	cursor: pointer;
}

.hre-rech .hre-rech__suggestion:not(#hre)::before { content: none; }

.hre-rech .hre-rech__suggestion:not(#hre):hover,
.hre-rech .hre-rech__suggestion:not(#hre).is-active {
	background: #F5F5F7;
}

.hre-rech__suggestion-main {
	color: var(--hre-text);
}

.hre-rech__suggestion-sec {
	color: var(--hre-field-color);
}

.hre-rech .hre-rech__suggestion-attr:not(#hre) {
	margin: 4px 0 0;
	padding: 6px 20px 8px;
	border-top: 1px solid #EEEEF0;
	color: #9A9AA0;
	font-family: Roboto, Arial, sans-serif;
	font-size: 10px;
	text-align: right;
}

/* ---------- Captcha ---------- */

.hre-rech__captcha {
	margin-top: 8px;
}

.hre-rech__captcha-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hre-rech .hre-rech__captcha-q:not(#hre) {
	min-width: 52px;
	padding-left: 6px;
	color: var(--hre-text);
	font-family: var(--hre-sans);
	font-size: 16px;
	white-space: nowrap;
}

.hre-rech .hre-rech__captcha-input:not(#hre) {
	width: 140px;
}

.hre-rech__recaptcha {
	display: inline-block;
	min-height: 78px;
	border-radius: 3px;
}

.hre-rech__captcha.is-invalid .hre-rech__recaptcha {
	box-shadow: 0 0 0 1.5px var(--hre-invalid);
}

/* ---------- Choix ronds (cases & radios) ---------- */

.hre-rech__choices {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	padding-top: 2px;
}

.hre-rech__choices--inline {
	gap: 10px 18px;
	min-height: var(--hre-field-h);
	padding-top: 0;
}

.hre-rech .hre-rech__choice:not(#hre) {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	color: var(--hre-text);
	font-family: var(--hre-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
	user-select: none;
}

.hre-rech .hre-rech__choice input,
.hre-rech .hre-rech__consent input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}

.hre-rech__dot {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #FFFFFF;
	transition: box-shadow 0.15s ease;
}

.hre-rech__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 50%;
	background: var(--hre-accent);
	transform: scale(0);
	transition: transform 0.15s ease;
}

.hre-rech .hre-rech__choice input:checked + .hre-rech__dot::after {
	transform: scale(1);
}

.hre-rech .hre-rech__choice input:focus-visible + .hre-rech__dot {
	box-shadow: 0 0 0 2px var(--hre-accent);
}

/* ---------- Consentement ---------- */

.hre-rech .hre-rech__consent:not(#hre) {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 16px 0 0;
	padding: 0 0 0 6px;
	color: var(--hre-text);
	font-family: var(--hre-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

.hre-rech__consent-box {
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	margin-top: -1px;
	border: 1.5px solid var(--hre-text);
	border-radius: 1px;
	background: transparent;
	position: relative;
}

.hre-rech .hre-rech__consent input:checked + .hre-rech__consent-box {
	background: var(--hre-accent);
	border-color: var(--hre-accent);
}

.hre-rech .hre-rech__consent input:checked + .hre-rech__consent-box::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 0;
	width: 4px;
	height: 7px;
	border-right: 1.5px solid #FFF;
	border-bottom: 1.5px solid #FFF;
	transform: rotate(45deg);
}

.hre-rech .hre-rech__consent input:focus-visible + .hre-rech__consent-box {
	box-shadow: 0 0 0 2px var(--hre-accent);
}

.hre-rech .hre-rech__consent.is-invalid .hre-rech__consent-box {
	border-color: var(--hre-invalid);
}

.hre-rech .hre-rech__consent:not(#hre).is-invalid,
.hre-rech .hre-rech__consent:not(#hre).is-invalid a {
	color: var(--hre-invalid);
}

.hre-rech .hre-rech__consent a:not(#hre) {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hre-rech .hre-rech__form-error {
	margin: 0;
	color: var(--hre-invalid);
	font-size: 14px;
}

/* ---------- Bouton ---------- */

.hre-rech .hre-rech__submit:not(#hre) {
	position: relative;
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	justify-content: center;
	min-width: 186px;
	height: 46px;
	margin: 30px 0 0;
	padding: 0 40px;
	border: 0;
	border-radius: 999px;
	background: var(--hre-btn-bg);
	box-shadow: none;
	color: var(--hre-btn-color);
	font-family: var(--hre-sans);
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.hre-rech .hre-rech__submit:not(#hre):hover,
.hre-rech .hre-rech__submit:not(#hre):focus-visible {
	background: var(--hre-btn-bg-hover);
	color: var(--hre-btn-color-hover);
}

.hre-rech .hre-rech__submit:not(#hre):focus-visible {
	outline: 2px solid var(--hre-btn-bg-hover);
	outline-offset: 3px;
}

.hre-rech .hre-rech__submit:not(#hre)[disabled] {
	cursor: wait;
	opacity: 0.85;
}

.hre-rech__spinner {
	display: none;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: hre-rech-spin 0.7s linear infinite;
}

.hre-rech.is-loading .hre-rech__spinner {
	display: inline-block;
}

@keyframes hre-rech-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Écrans de résultat ---------- */

.hre-rech__result {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(24px, 6vw, 80px) 0 clamp(32px, 6vw, 80px);
	text-align: center;
	outline: none;
	animation: hre-rech-fade 0.3s ease;
}

.hre-rech__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-bottom: 40px;
	border-radius: 50%;
	color: #FFFFFF;
}

.hre-rech__icon--success { background: var(--hre-success); }
.hre-rech__icon--error   { background: var(--hre-error); }

.hre-rech .hre-rech__result-text:not(#hre) {
	margin: 0;
	color: var(--hre-text);
	font-family: var(--hre-sans);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	white-space: pre-line;
}

.hre-rech .hre-rech__retry:not(#hre) {
	align-self: center;
	margin-top: 36px;
}

.hre-rech__result-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.hre-rech .hre-rech__back-link:not(#hre) {
	margin: 0;
	padding: 4px 8px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--hre-text);
	font-family: var(--hre-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	cursor: pointer;
}

.hre-rech .hre-rech__back-link:not(#hre):hover,
.hre-rech .hre-rech__back-link:not(#hre):focus-visible {
	background: none;
	color: var(--hre-accent);
}

@keyframes hre-rech-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Localisation : étiquettes de communes ---------- */

.hre-rech .hre-rech__tags:not(#hre) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	height: auto;
	min-height: var(--hre-field-h);
	padding: 7px 14px 7px 20px;
	line-height: 1.3;
	cursor: text;
}

.hre-rech .hre-rech__tags:not(#hre):focus-within {
	box-shadow: 0 0 0 1.5px var(--hre-accent);
}

.hre-rech .hre-rech__tags:not(#hre).is-invalid {
	box-shadow: 0 0 0 1.5px var(--hre-invalid);
}

.hre-rech .hre-rech__chips:not(#hre) {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hre-rech .hre-rech__chip:not(#hre) {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	margin: 0;
	padding: 0 4px 0 12px;
	border-radius: 999px;
	background: #F5F5F7;
	color: var(--hre-field-filled);
	font-family: var(--hre-sans);
	font-size: var(--hre-field-size);
	line-height: 30px;
	white-space: nowrap;
}

.hre-rech .hre-rech__chip:not(#hre)::before { content: none; }

.hre-rech__chip-text {
	overflow: hidden;
	text-overflow: ellipsis;
}

.hre-rech .hre-rech__chip-remove:not(#hre) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--hre-field-color);
	font-family: var(--hre-sans);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.hre-rech .hre-rech__chip-remove:not(#hre):hover,
.hre-rech .hre-rech__chip-remove:not(#hre):focus-visible {
	background: var(--hre-accent);
	color: #FFFFFF;
	outline: none;
}

.hre-rech .hre-rech__tags-input:not(#hre) {
	flex: 1 1 120px;
	min-width: 120px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	color: var(--hre-field-filled);
	font-family: var(--hre-sans);
	font-size: var(--hre-field-size);
	line-height: 32px;
	-webkit-appearance: none;
	appearance: none;
}

.hre-rech .hre-rech__tags-input:not(#hre)::placeholder {
	color: var(--hre-field-color);
	opacity: 1;
}

.hre-rech .hre-rech__tags:not(#hre).is-invalid .hre-rech__tags-input::placeholder {
	color: var(--hre-invalid);
}

.hre-rech .hre-rech__suggestion-empty:not(#hre) {
	margin: 0;
	padding: 8px 20px 10px;
	color: var(--hre-field-color);
	font-family: var(--hre-sans);
	font-size: var(--hre-field-size);
	cursor: default;
}

.hre-rech .hre-rech__suggestion-empty:not(#hre)::before { content: none; }

/* ---------- Budget maximum (curseur, comme le filtre des biens) ---------- */

.hre-rech__budget {
	position: relative;
}

.hre-rech__budget-panel {
	position: absolute;
	z-index: 40;
	top: calc(100% + 8px);
	left: 0;
	width: max(100%, 300px);
	max-width: calc(100vw - 32px);
	padding: 16px 18px 14px;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: 0 8px 24px rgba(17, 24, 33, 0.16);
	font-family: var(--hre-sans);
}

.hre-rech__budget-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 36px;
}

.hre-rech .hre-rech__budget-title:not(#hre) {
	margin: 0;
	padding: 0;
	color: var(--hre-field-color);
	font-family: var(--hre-sans);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
}

.hre-rech__budget-manual {
	position: relative;
	display: block;
	flex: 1;
	max-width: 176px;
}

.hre-rech .hre-rech__budget-manual-input:not(#hre) {
	display: block;
	width: 100%;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0 28px 0 12px;
	border: 1px solid #E2E2E6;
	border-radius: 8px;
	outline: none;
	background: #FFFFFF;
	box-shadow: none;
	color: var(--hre-field-filled);
	font-family: var(--hre-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 34px;
	text-align: right;
}

.hre-rech .hre-rech__budget-manual-input:not(#hre)::placeholder {
	color: var(--hre-field-color);
	font-weight: 400;
	opacity: 1;
}

.hre-rech .hre-rech__budget-manual-input:not(#hre):focus {
	border-color: var(--hre-accent);
}

.hre-rech__budget-unit {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	color: var(--hre-field-filled);
	font-size: 14px;
	font-weight: 500;
	pointer-events: none;
}

.hre-rech__budget-slider {
	position: relative;
}

.hre-rech__budget-bubble {
	position: absolute;
	bottom: calc(100% + 4px);
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--hre-accent);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
}

.hre-rech__budget-bubble::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -4px;
	border: 4px solid transparent;
	border-top-color: var(--hre-accent);
}

.hre-rech .hre-rech__budget-range:not(#hre) {
	--hre-fill: 100%;
	display: block;
	width: 100%;
	height: 20px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.hre-rech__budget-range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(to right, var(--hre-accent) var(--hre-fill), #E2E2E6 var(--hre-fill));
}

.hre-rech__budget-range::-moz-range-track { height: 4px; border-radius: 4px; background: #E2E2E6; }
.hre-rech__budget-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--hre-accent); }

.hre-rech__budget-range::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	margin-top: -7px;
	border: 3px solid #FFFFFF;
	border-radius: 50%;
	background: var(--hre-accent);
	box-shadow: 0 1px 4px rgba(18, 18, 18, 0.3);
	-webkit-appearance: none;
}

.hre-rech__budget-range::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 3px solid #FFFFFF;
	border-radius: 50%;
	background: var(--hre-accent);
	box-shadow: 0 1px 4px rgba(18, 18, 18, 0.3);
}

.hre-rech__budget-range:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px rgba(99, 50, 62, 0.35);
}

.hre-rech__budget-scale {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	color: var(--hre-field-color);
	font-size: 11px;
}

/* ---------- Écran de confirmation : lien « Retour » ---------- */

.hre-rech .hre-rech__back-link--main:not(#hre) {
	margin-top: 36px;
	padding: 4px 2px;
	font-size: 18px;
	text-underline-offset: 4px;
}

/* Texte réservé aux lecteurs d'écran */
.hre-rech__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Pot de miel anti-spam */
.hre-rech__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.hre-rech__row--split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.hre-rech {
		--hre-gap: 16px;
	}

	.hre-rech__row--2 {
		grid-template-columns: 1fr;
	}

	.hre-rech .hre-rech__fieldset--jardin:not(#hre) {
		padding-left: 0;
	}

	.hre-rech .hre-rech__label:not(#hre) {
		font-size: 20px;
	}

	.hre-rech .hre-rech__title:not(#hre) {
		font-size: 2.5rem;
	}

	.hre-rech .hre-rech__submit:not(#hre) {
		align-self: stretch;
	}

	.hre-rech .hre-rech__result-text:not(#hre) {
		font-size: 16px;
	}
}

@media (max-width: 560px) {
	.hre-rech__half,
	.hre-rech__half--end {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hre-rech *,
	.hre-rech *::before,
	.hre-rech *::after {
		animation: none !important;
		transition: none !important;
	}
}
