/* Résultats de recherche : modèle compact raccordé aux pages sombres du site. */

body.search {
	background-color: #071b29;
	background-image: url("../../images/prototype/fond-direct-habitat-66.webp");
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: cover;
	background-attachment: fixed;
}

body.search :is(#main-container, .site-main, .site-main > div, .ct-container-full),
body.search .dh66-site-footer {
	background: transparent;
}

/* Le logo contient déjà le nom complet de l'entreprise. */
body.search #header .site-title-container {
	display: none;
}

.dh66-search {
	--dh66-search-panel: rgb(4 24 42 / 0.68);
	--dh66-search-border: rgb(255 255 255 / 0.2);
	--dh66-search-edge: rgb(255 255 255 / 0.3);
	width: 100%;
	max-width: none;
	min-height: 70dvh;
	margin: 0;
	color: #f7fafc;
}

.dh66-search *,
.dh66-search *::before,
.dh66-search *::after {
	box-sizing: border-box;
}

.dh66-search__shell {
	width: min(1160px, calc(100% - (2 * clamp(20px, 4vw, 48px))));
	margin-inline: auto;
}

.dh66-search__hero {
	padding-block: clamp(56px, 7vw, 92px) clamp(44px, 5vw, 68px);
	border-bottom: 1px solid rgb(255 255 255 / 0.16);
}

.dh66-search__kicker {
	margin: 0 0 14px;
	color: var(--dh66-green-500, #4caf00);
	font-size: clamp(12px, 0.72rem + 0.15vw, 14px);
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.dh66-search .dh66-search__title {
	max-width: 18ch;
	margin: 0;
	color: #f7fafc;
	font-size: clamp(38px, 5vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.045em;
	overflow-wrap: anywhere;
}

.dh66-search__summary {
	margin: 18px 0 0;
	color: rgb(247 250 252 / 0.78);
	font-size: clamp(16px, 1.3vw, 19px);
}

.dh66-search__form {
	width: min(100%, 760px);
	margin-top: clamp(28px, 4vw, 40px);
}

.dh66-search__label {
	display: block;
	margin-bottom: 10px;
	color: #f7fafc;
	font-size: 14px;
	font-weight: 800;
}

.dh66-search__form-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
}

.dh66-search .dh66-search__field {
	min-width: 0;
	min-height: 52px;
	padding: 13px 16px;
	border: 1px solid rgb(255 255 255 / 0.3);
	border-radius: 12px;
	background: rgb(255 255 255 / 0.1);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
	color: #fff;
	font-size: 16px;
	-webkit-appearance: none;
}

.dh66-search .dh66-search__field::placeholder {
	color: rgb(247 250 252 / 0.58);
	opacity: 1;
}

.dh66-search .dh66-search__field:focus {
	border-color: var(--dh66-green-500, #4caf00);
	box-shadow: 0 0 0 3px rgb(76 175 0 / 0.22);
	outline: 0;
}

.dh66-search .dh66-search__submit {
	min-height: 52px;
	padding: 13px 22px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--dh66-orange-500, #ff7300);
	color: var(--dh66-navy-900, #002858);
	cursor: pointer;
	font-weight: 850;
	line-height: 1.15;
	transition: transform 180ms ease, filter 180ms ease;
}

.dh66-search .dh66-search__submit:hover,
.dh66-search .dh66-search__submit:focus-visible {
	filter: brightness(1.08);
	transform: translateY(-2px);
}

.dh66-search__content {
	padding-block: clamp(54px, 7vw, 92px);
}

.dh66-search .dh66-search__section-title {
	max-width: 30ch;
	margin: 0 0 clamp(26px, 4vw, 42px);
	color: #f7fafc;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.dh66-search__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.5vw, 26px);
}

.dh66-search .dh66-search-card {
	display: flex;
	min-width: 0;
	min-height: 250px;
	flex-direction: column;
	padding: clamp(22px, 2.7vw, 30px);
	overflow: hidden;
	border: 1px solid var(--dh66-search-border);
	border-radius: 16px;
	background:
		radial-gradient(circle at 14% 0%, rgb(255 255 255 / 0.12), transparent 38%),
		linear-gradient(135deg, rgb(255 255 255 / 0.08), rgb(5 28 48 / 0.3)),
		var(--dh66-search-panel);
	box-shadow:
		inset 0 1px 0 var(--dh66-search-edge),
		0 20px 56px rgb(0 15 36 / 0.24);
	backdrop-filter: blur(var(--dh66-glass-blur, 20px)) saturate(135%);
	-webkit-backdrop-filter: blur(var(--dh66-glass-blur, 20px)) saturate(135%);
}

.dh66-search-card__type {
	margin: 0 0 12px;
	color: #ffad69;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.dh66-search .dh66-search-card__title {
	max-width: none;
	margin: 0;
	color: #f7fafc;
	font-size: clamp(22px, 2vw, 29px);
	line-height: 1.12;
	letter-spacing: -0.035em;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}

.dh66-search-card__title a {
	color: inherit;
	text-decoration: none;
}

.dh66-search-card__title a:hover,
.dh66-search-card__title a:focus-visible {
	color: #ffad69;
}

.dh66-search-card__excerpt {
	margin: 16px 0 22px;
	color: rgb(247 250 252 / 0.74);
	font-size: 15px;
	line-height: 1.58;
}

.dh66-search-card__link {
	align-self: flex-start;
	margin-top: auto;
	color: #ffad69;
	font-size: 14px;
	font-weight: 850;
	text-decoration: none;
}

.dh66-search-card__link:hover,
.dh66-search-card__link:focus-visible {
	color: #fff;
}

.dh66-search .navigation.pagination {
	margin-top: clamp(34px, 5vw, 54px);
}

.dh66-search .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.dh66-search .page-numbers {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 9px 13px;
	border: 1px solid var(--dh66-search-border);
	border-radius: 10px;
	background: rgb(4 24 42 / 0.72);
	color: #f7fafc;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.dh66-search .page-numbers.current,
.dh66-search .page-numbers:hover,
.dh66-search .page-numbers:focus-visible {
	border-color: var(--dh66-orange-500, #ff7300);
	background: var(--dh66-orange-500, #ff7300);
	color: var(--dh66-navy-900, #002858);
}

.dh66-search__empty {
	max-width: 760px;
	padding: clamp(24px, 4vw, 38px);
	border: 1px solid var(--dh66-search-border);
	border-radius: 16px;
	background: var(--dh66-search-panel);
	box-shadow: inset 0 1px 0 var(--dh66-search-edge);
}

.dh66-search__empty p {
	margin: 0;
	color: rgb(247 250 252 / 0.78);
}

.dh66-search__empty ul {
	display: grid;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.dh66-search__empty a {
	color: #ffad69;
	font-weight: 800;
}

@media (max-width: 64rem) {
	.dh66-search__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 47.99rem) {
	body.search {
		background-position: 30% center;
		background-attachment: scroll;
	}

	.dh66-search__hero {
		padding-block: 42px 38px;
	}

	.dh66-search__form-row,
	.dh66-search__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.dh66-search .dh66-search__submit {
		width: 100%;
		min-height: 48px;
	}

	.dh66-search .dh66-search-card {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dh66-search .dh66-search__submit {
		transition: none;
	}
}
