/* PDE Recherche 2.0 — page WordPress dédiée. */

body.pde-search-wordpress-page #primary {
	float: none;
	width: 100%;
}

body.pde-search-wordpress-page #secondary,
body.pde-search-wordpress-page #primary > .page > .entry-header,
body.pde-search-wordpress-page #primary > article > .entry-header {
	display: none;
}

body.pde-search-wordpress-page #main,
body.pde-search-wordpress-page #primary,
body.pde-search-wordpress-page .entry-content {
	margin-top: 0;
}

body.pde-search-wordpress-page .entry-content {
	width: 100%;
}

body.pde-search-wordpress-page insertion,
body.pde-search-wordpress-page .pde-ai-chatbot-link,
body.pde-search-wordpress-page .pde-premium-bar {
	display: none !important;
}

.pde-search-page,
.pde-search-page * {
	box-sizing: border-box;
}

.pde-search-page {
	--pde-ink: #18242d;
	--pde-muted: #687781;
	--pde-line: #dbe5e9;
	--pde-soft: #f3f8fa;
	--pde-brand: #177c98;
	--pde-brand-dark: #11647b;
	--pde-focus: rgba(23, 124, 152, .18);
	width: 100%;
	max-width: 1040px;
	min-height: calc(100svh - 250px);
	margin: 0 auto;
	padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 30px) clamp(28px, 5vw, 52px);
	color: var(--pde-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pde-search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 60px;
	margin: 0;
	padding: 0 20px 0 62px;
	border: 2px solid #9bd7e6;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(20, 58, 74, .07);
	transition: border-color .18s ease, box-shadow .18s ease;
}

.pde-search-form:focus-within {
	border-color: var(--pde-brand);
	box-shadow: 0 0 0 4px var(--pde-focus), 0 10px 28px rgba(20, 58, 74, .1);
}

.pde-search-loupe {
	position: absolute;
	top: 50%;
	left: 23px;
	width: 24px;
	height: 24px;
	border: 2.5px solid var(--pde-brand-dark);
	border-radius: 50%;
	transform: translateY(-56%);
	pointer-events: none;
}

.pde-search-loupe::after {
	content: "";
	position: absolute;
	right: -8px;
	bottom: -6px;
	width: 11px;
	height: 2.5px;
	border-radius: 2px;
	background: var(--pde-brand-dark);
	transform: rotate(45deg);
	transform-origin: left center;
}

.pde-search-input,
.pde-search-input:focus,
.pde-search-input:focus-visible {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--pde-ink);
	font: inherit;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 52px;
	appearance: none;
	-webkit-appearance: none;
}

.pde-search-input::placeholder {
	color: #78868f;
	opacity: 1;
}

.pde-search-input::-webkit-search-decoration,
.pde-search-input::-webkit-search-cancel-button,
.pde-search-input::-webkit-search-results-button,
.pde-search-input::-webkit-search-results-decoration {
	display: none;
}

.pde-search-filters {
	display: flex;
	align-items: stretch;
	gap: 2px;
	width: 100%;
	min-height: 66px;
	margin: 10px 0 0;
	padding: 4px 6px 0;
	border: 1px solid #dce5e9;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(20, 58, 74, .06);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
}

.pde-search-filters::-webkit-scrollbar {
	display: none;
}

.pde-search-filter {
	position: relative;
	display: flex;
	flex: 1 0 72px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 72px;
	height: 60px;
	margin: 0;
	padding: 4px 6px 7px;
	border: 0;
	border-radius: 11px 11px 0 0;
	background: transparent;
	color: #4a5962;
	font: inherit;
	font-size: 11px;
	font-weight: 650;
	line-height: 14px;
	white-space: nowrap;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.pde-search-filter:hover,
.pde-search-filter:focus-visible {
	outline: 0;
	background: #f1f8fa;
	color: var(--pde-brand-dark);
}

.pde-search-filter[aria-selected="true"] {
	background: transparent;
	color: var(--pde-brand-dark);
}

.pde-search-filter[aria-selected="true"]::after {
	content: "";
	position: absolute;
	right: 10px;
	bottom: 0;
	left: 10px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--pde-brand);
}

.pde-search-filter__icon {
	display: grid;
	width: 25px;
	height: 25px;
	padding: 0;
	place-items: center;
	background: transparent;
}

.pde-search-filter__icon svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pde-search-filter__label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	font-size: 11px;
	line-height: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pde-search-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 42px;
	padding: 8px 2px 10px;
	border-bottom: 1px solid var(--pde-line);
	color: var(--pde-muted);
	font-size: 15px;
	line-height: 24px;
}

.pde-search-meta__query,
.pde-search-meta__count {
	display: block;
}

.pde-search-meta__count {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
}

.pde-search-meta.is-loading::before {
	content: "";
	width: 16px;
	height: 16px;
	margin-right: 9px;
	border: 2px solid #d4e5ea;
	border-top-color: var(--pde-brand);
	border-radius: 50%;
	animation: pde-search-spin .75s linear infinite;
}

@keyframes pde-search-spin {
	to {
		transform: rotate(360deg);
	}
}

.pde-search-results {
	min-height: clamp(280px, 44vh, 540px);
}

.pde-search-results-list {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pde-search-result {
	width: 100%;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e7edef;
	list-style: none;
}

.pde-search-result__link {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 15px;
	width: 100%;
	min-height: 106px;
	padding: 15px 8px;
	border-radius: 14px;
	color: var(--pde-ink);
	text-align: left;
	text-decoration: none;
	transition: background .16s ease;
}

.pde-search-result__side {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.pde-search-result__link:hover,
.pde-search-result__link:focus-visible {
	outline: 0;
	background: var(--pde-soft);
}

.pde-search-result__media {
	display: grid;
	width: 52px;
	height: 52px;
	place-items: center;
	border-radius: 17px;
	background: #e8f5f8;
	color: var(--pde-brand);
}

.pde-search-result__media--agenda {
	background: #fff3df;
	color: #9b6816;
}

.pde-search-result__media--member,
.pde-search-result__media--group {
	background: #edf0ff;
	color: #5365a5;
}

.pde-search-result__media--resource {
	background: #e9f7ef;
	color: #2d7d52;
}

.pde-search-result__media--announcement {
	background: #fff0ed;
	color: #a55242;
}

.pde-search-result__media svg {
	width: 25px;
	height: 25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pde-search-result__media.has-avatar {
	overflow: hidden;
	border-radius: 50%;
}

.pde-search-result__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pde-search-result__content {
	display: block;
	min-width: 0;
}

.pde-search-result__type {
	display: block;
	width: 100%;
	overflow: hidden;
	color: var(--pde-brand);
	font-size: 13px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pde-search-result__title {
	display: block;
	color: var(--pde-ink);
	font-size: clamp(16px, 1.7vw, 19px);
	font-weight: 700;
	line-height: 1.35;
}

.pde-search-result__excerpt {
	display: -webkit-box;
	margin-top: 4px;
	overflow: hidden;
	color: var(--pde-muted);
	font-size: 14px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.pde-search-result__chevron {
	display: block !important;
	width: 24px !important;
	height: 24px !important;
	fill: none !important;
	stroke: #65747d !important;
	stroke-width: 2.3 !important;
	stroke-linecap: round;
	stroke-linejoin: round;
	visibility: visible !important;
	opacity: 1 !important;
}

.pde-search-result__chevron path {
	fill: none !important;
	stroke: inherit !important;
}

.pde-search-empty {
	display: grid;
	min-height: 260px;
	padding: 48px 20px;
	place-content: center;
	text-align: center;
}

.pde-search-empty strong {
	color: var(--pde-ink);
	font-size: 19px;
}

.pde-search-empty span {
	max-width: 420px;
	margin-top: 6px;
	color: var(--pde-muted);
	font-size: 15px;
}

.pde-search-load-more.pde-load-more-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 16px auto 6px;
	padding: 0;
	background: #fff;
}

.pde-search-load-more[hidden] {
	display: none;
}

.pde-search-load-more .pde-load-more-label {
	color: #1685b5;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.pde-search-load-more .members-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-width: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid #1685b5;
	border-radius: 50%;
	background: #fff;
	color: #1685b5;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
}

.pde-search-load-more .members-load-more::after {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.pde-search-load-more .members-load-more:hover,
.pde-search-load-more .members-load-more:focus-visible {
	outline: 0;
	background: #edf7f9;
}

.pde-search-load-more .members-load-more:disabled {
	opacity: .55;
	cursor: wait;
}

.pde-search-ai {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22px;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 68px;
	margin-top: 20px;
	padding: 11px 16px;
	border: 1px solid #b9dce5;
	border-radius: 20px;
	background: linear-gradient(135deg, #edf8fb 0%, #f6fbfc 100%);
	color: var(--pde-ink);
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(20, 74, 91, .06);
	transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.pde-search-ai:hover,
.pde-search-ai:focus-visible {
	border-color: #7ebfce;
	outline: 0;
	box-shadow: 0 9px 22px rgba(20, 74, 91, .11);
	transform: translateY(-1px);
}

.pde-search-ai__copy,
.pde-search-ai__copy strong {
	display: block;
	min-width: 0;
}

.pde-search-ai__copy strong {
	font-size: 15px;
	line-height: 1.35;
}

.pde-search-ai > svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: var(--pde-brand-dark);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 600px) {
	.pde-search-page {
		min-height: calc(100svh - 210px);
		padding: 14px 10px 28px;
	}

	.pde-search-form {
		height: 56px;
		padding-right: 15px;
		padding-left: 56px;
		border-radius: 28px;
	}

	.pde-search-loupe {
		left: 20px;
		width: 22px;
		height: 22px;
	}

	.pde-search-input,
	.pde-search-input:focus,
	.pde-search-input:focus-visible {
		height: 50px;
		font-size: 18px;
		line-height: 50px;
	}

	.pde-search-filters {
		min-height: 62px;
		margin-top: 8px;
		padding-right: 4px;
		padding-left: 4px;
		border-radius: 16px;
	}

	.pde-search-filter {
		flex-basis: 66px;
		min-width: 66px;
		height: 56px;
		padding: 3px 4px 7px;
		font-size: 10px;
	}

	.pde-search-filter__icon {
		width: 23px;
		height: 23px;
	}

	.pde-search-filter__icon svg {
		width: 21px;
		height: 21px;
	}

	.pde-search-filter__label {
		font-size: 10px;
		line-height: 13px;
	}

	.pde-search-meta {
		min-height: 38px;
		padding-bottom: 8px;
		font-size: 14px;
	}

	.pde-search-result__link {
		grid-template-columns: 72px minmax(0, 1fr) 20px;
		gap: 11px;
		min-height: 108px;
		padding: 12px 4px;
		border-radius: 11px;
	}

	.pde-search-result__media {
		width: 48px;
		height: 48px;
		border-radius: 14px;
	}

	.pde-search-result__media svg {
		width: 22px;
		height: 22px;
	}

	.pde-search-result__title {
		font-size: 16px;
	}

	.pde-search-result__type {
		font-size: 12px;
	}

	.pde-search-result__excerpt {
		font-size: 13px;
		-webkit-line-clamp: 2;
	}

	.pde-search-ai {
		grid-template-columns: minmax(0, 1fr) 18px;
		min-height: 62px;
		margin-top: 16px;
		padding: 10px 12px;
		border-radius: 17px;
	}

	.pde-search-ai__copy strong {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pde-search-page *,
	.pde-search-page *::before,
	.pde-search-page *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
