/**
 * Espace Gold Change : recherche dans la FAQ (champ + bouton « Rechercher », Figma « Page FAQ » 646:2004).
 */
.egc-faqr {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	margin: 0;
}

.egc-faqr__champ {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.egc-faqr input[type="search"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 0 48px 0 26px;
	border: 1px solid var(--e-global-color-primary, #C59956);
	border-radius: 22px;
	background: #FFFFFF;
	color: var(--e-global-color-secondary, #231F20);
	font-family: var(--e-global-typography-text-font-family, Roboto), sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
}

.egc-faqr input[type="search"]::placeholder {
	color: var(--e-global-color-secondary, #231F20);
	opacity: 1;
}

.egc-faqr input[type="search"]:focus {
	outline: 2px solid var(--e-global-color-accent, #85622E);
	outline-offset: 2px;
}

.egc-faqr__loupe {
	position: absolute;
	top: 50%;
	right: 18px;
	display: flex;
	width: 20px;
	height: 20px;
	color: var(--e-global-color-primary, #C59956);
	transform: translateY(-50%);
	pointer-events: none;
}

.egc-faqr__loupe svg {
	width: 100%;
	height: 100%;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Chargement : cercle doré qui tourne à la place de la loupe. */
.egc-faqr__loupe::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2.5px solid rgba(197, 153, 86, 0.25);
	border-top-color: var(--e-global-color-primary, #C59956);
	border-radius: 50%;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.egc-faqr.est-chargement .egc-faqr__loupe svg {
	opacity: 0;
	transform: scale(0.6);
}

.egc-faqr.est-chargement .egc-faqr__loupe::after {
	opacity: 1;
	transform: scale(1);
	animation: egc-faqr-tour 0.7s linear infinite;
}

@keyframes egc-faqr-tour {
	to { transform: rotate(360deg); }
}

/* Les questions s'estompent le temps du filtrage. */
.egc-faqt {
	transition: opacity 0.2s ease;
}

.egc-faqt.est-chargement {
	opacity: 0.45;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.egc-faqr.est-chargement .egc-faqr__loupe::after {
		animation-duration: 1.6s;
	}
}

.egc-faqr .egc-faqr__bouton {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 44px;
	min-width: 175px;
	min-height: 0;
	margin: 0;
	padding: 0 26px;
	border: 0 !important;
	border-radius: 33px;
	background: var(--e-global-color-primary, #C59956);
	box-shadow: 0 4px 0 #231F20;
	color: #FFFFFF;
	font-family: var(--e-global-typography-egcbouton-font-family, Roboto), sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 22px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.egc-faqr .egc-faqr__bouton:hover,
.egc-faqr .egc-faqr__bouton:focus-visible {
	background: var(--e-global-color-secondary, #231F20);
	color: #FFFFFF;
}

.egc-faqr__etat,
.egc-faqr__aucun {
	margin: 14px 0 0;
	color: var(--e-global-color-secondary, #231F20);
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	text-align: center;
}

.egc-faqr__etat[hidden],
.egc-faqr__aucun[hidden] {
	display: none !important;
}

@media (max-width: 767px) {
	.egc-faqr {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.egc-faqr input[type="search"] {
		padding-left: 18px;
		font-size: 15px;
	}

	.egc-faqr .egc-faqr__bouton {
		min-width: 0;
	}
}
