/**
 * Espace Gold Change : estimation en ligne en 3 étapes (Figma 1016:34) et encadré « Cours au gramme ».
 */
.egc-est,
.egc-cours-g {
	--egc-est-or: var(--e-global-color-primary, #C59956);
	--egc-est-noir: var(--e-global-color-secondary, #231F20);
	--egc-est-creme: var(--e-global-color-egccreme, #F3EBDD);
	--egc-est-fonce: var(--e-global-color-accent, #85622E);
}

/* ---------- Cours au gramme (haut de page) ---------- */
.egc-cours-g {
	display: inline-flex;
	flex-direction: column;
	gap: 6px;
	min-width: 340px;
	padding: 22px 28px 20px;
	border: 1px solid rgba(197, 153, 86, 0.55);
	border-radius: 20px;
	background: var(--egc-est-noir);
	box-shadow: 0 14px 34px rgba(35, 31, 32, 0.28);
	color: #FFFFFF;
	box-sizing: border-box;
}

.egc-cours-g p {
	margin: 0;
}

.egc-cours-g .egc-cours-g__haut {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.egc-cours-g__libelle {
	color: var(--egc-est-or);
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

.egc-cours-g__direct {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 11px 4px 9px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 13px;
	font-weight: 600;
	line-height: 18px;
	white-space: nowrap;
}

.egc-cours-g__point {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3DBE6B;
}

.egc-cours-g__point::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #3DBE6B;
	animation: egc-cours-pouls 1.8s ease-out infinite;
}

@keyframes egc-cours-pouls {
	from { opacity: 0.7; transform: scale(1); }
	to { opacity: 0; transform: scale(2.6); }
}

.egc-cours-g .egc-cours-g__prix {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 4px;
	font-family: var(--e-global-typography-primary-font-family, Roboto), sans-serif;
	font-weight: 700;
	white-space: nowrap;
}

.egc-cours-g__valeur {
	font-size: 52px;
	line-height: 58px;
	font-variant-numeric: tabular-nums;
}

.egc-cours-g__unite {
	color: var(--egc-est-or);
	font-size: 24px;
	line-height: 30px;
}

.egc-cours-g .egc-cours-g__note {
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 20px;
}

@media (max-width: 767px) {
	.egc-cours-g {
		width: 100%;
		min-width: 0;
		padding: 16px 18px;
	}

	.egc-cours-g__libelle {
		font-size: 16px;
		line-height: 22px;
	}

	.egc-cours-g__valeur {
		font-size: 38px;
		line-height: 44px;
	}

	.egc-cours-g__unite {
		font-size: 20px;
		line-height: 26px;
	}

	.egc-cours-g .egc-cours-g__note {
		font-size: 13px;
		line-height: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.egc-cours-g__point::after {
		animation: none;
	}
}

/* ---------- Parcours ---------- */
.egc-est {
	display: flex;
	flex-direction: column;
	gap: 26px;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	color: var(--egc-est-noir);
}

.egc-est [hidden],
.egc-est button[hidden] {
	display: none !important;
}

.egc-est button {
	font-family: inherit;
}

/* Fil des étapes : ronds reliés par un trait. */
.egc-est__fil {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.egc-est__pas {
	display: flex;
	align-items: center;
}

.egc-est__pas + .egc-est__pas::before {
	content: "";
	width: 64px;
	height: 2px;
	margin: 0 14px;
	background: var(--egc-est-or);
}

.egc-est .egc-est__pas button {
	display: flex !important;
	align-items: center;
	gap: 12px;
	width: auto !important;
	min-width: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--egc-est-noir) !important;
	cursor: default;
}

.egc-est .egc-est__pas.est-fait button {
	cursor: pointer;
}

.egc-est__rond {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 2px solid var(--egc-est-or);
	border-radius: 50%;
	background: #FFFFFF;
	color: var(--egc-est-noir);
	font-size: 22px;
	font-weight: 700;
	transition: background-color 0.2s ease;
}

.egc-est__rond svg {
	display: none;
	width: 26px;
	height: 26px;
}

.egc-est__pas.est-courant .egc-est__rond,
.egc-est__pas.est-fait .egc-est__rond {
	background: var(--egc-est-or);
	color: #FFFFFF;
}

.egc-est__pas.est-fait .egc-est__num {
	display: none;
}

.egc-est__pas.est-fait .egc-est__rond svg {
	display: block;
}

.egc-est__lib {
	font-size: 19px;
	font-weight: 400;
	line-height: 24px;
}

.egc-est__pas.est-courant .egc-est__lib,
.egc-est__pas.est-fait .egc-est__lib {
	font-weight: 700;
}

.egc-est .egc-est__pas.est-fait button:hover .egc-est__rond,
.egc-est .egc-est__pas.est-fait button:focus-visible .egc-est__rond {
	background: var(--egc-est-noir);
}

/* Titre d'étape avec trait doré dessous. */
.egc-est__etape {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.egc-est__titre {
	position: relative;
	margin: 0 0 8px;
	padding-bottom: 10px;
	color: var(--egc-est-noir);
	font-family: var(--e-global-typography-egch3-font-family, Roboto), sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 30px;
	outline: 0;
}

.egc-est__titre::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100px;
	height: 2px;
	background: var(--egc-est-or);
}

.egc-est__aide {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 22px;
}

/* Étape 1 : cartes photo. */
.egc-est__objets {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.egc-est .egc-est__objet {
	position: relative;
	display: flex !important;
	align-items: flex-end;
	justify-content: center;
	width: 100% !important;
	aspect-ratio: 3 / 2;
	padding: 0 10px 14px !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 24px !important;
	background: var(--egc-est-or) var(--egc-est-img) center / cover no-repeat !important;
	box-shadow: none !important;
	color: #FFFFFF !important;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.egc-est .egc-est__objet::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(197, 153, 86, 0.95) 0%, rgba(197, 153, 86, 0.55) 30%, rgba(197, 153, 86, 0) 60%);
	transition: background-color 0.25s ease;
}

.egc-est__objet-nom {
	position: relative;
	font-size: 17px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	text-shadow: 0 1px 6px rgba(35, 31, 32, 0.35);
}

.egc-est .egc-est__objet:hover,
.egc-est .egc-est__objet:focus-visible {
	box-shadow: 0 14px 30px rgba(133, 98, 46, 0.3) !important;
	transform: translateY(-4px);
	outline: 0;
}

.egc-est .egc-est__objet:focus-visible {
	outline: 3px solid var(--egc-est-noir);
	outline-offset: 3px;
}

/* Étape 2 : lignes de pureté (2 colonnes ; une seule quand les lignes portent des exemples de pièces). */
.egc-est__puretes:has(.egc-est__ex) {
	grid-template-columns: minmax(0, 1fr);
}

.egc-est__puretes > li:has(.egc-est__inconnu) {
	grid-column: 1 / -1;
}

.egc-est__ex {
	min-width: 0;
}

.egc-est__puretes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.egc-est .egc-est__purete {
	display: flex !important;
	align-items: center;
	gap: 14px;
	width: 100% !important;
	height: 100%;
	min-height: 62px;
	padding: 10px 44px 10px 22px !important;
	position: relative;
	border: 1px solid var(--egc-est-or) !important;
	border-radius: 31px !important;
	background: #FFFFFF !important;
	box-shadow: none !important;
	color: var(--egc-est-noir) !important;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.egc-est__titre-p {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	min-width: 112px;
	font-size: 16px;
	line-height: 20px;
}

.egc-est__titre-p b {
	font-weight: 700;
}

.egc-est__ex {
	padding-left: 14px;
	border-left: 2px solid currentColor;
	font-size: 14px;
	font-weight: 700;
	line-height: 19px;
}

.egc-est__fl {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.egc-est .egc-est__purete .egc-est__fl {
	position: absolute;
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
}

.egc-est .egc-est__purete:hover,
.egc-est .egc-est__purete:focus-visible,
.egc-est .egc-est__purete.est-choisi {
	background: var(--egc-est-or) !important;
	color: #FFFFFF !important;
	outline: 0;
}

.egc-est .egc-est__purete:focus-visible {
	outline: 3px solid var(--egc-est-noir);
	outline-offset: 2px;
}

.egc-est .egc-est__inconnu {
	width: auto !important;
	margin-top: 8px;
	padding: 6px 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--egc-est-fonce) !important;
	font-size: 15px;
	font-weight: 700;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

.egc-est__note {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 20px;
}

/* Boutons dorés (suite, voir mon estimation). */
.egc-est .egc-est__suite,
.egc-est .egc-est__voir {
	display: inline-flex !important;
	align-items: center;
	align-self: center;
	gap: 14px;
	width: auto !important;
	margin-top: 14px;
	padding: 13px 30px !important;
	border: 0 !important;
	border-radius: 40px !important;
	background: var(--egc-est-or) !important;
	box-shadow: 0 4px 0 var(--egc-est-noir) !important;
	color: #FFFFFF !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 24px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.egc-est .egc-est__suite:hover,
.egc-est .egc-est__suite:focus-visible,
.egc-est .egc-est__voir:hover,
.egc-est .egc-est__voir:focus-visible {
	background: var(--egc-est-noir) !important;
}

/* Étape 3 : poids. */
.egc-est__poids {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	width: 280px;
	max-width: 100%;
	margin: 0 auto;
	border-bottom: 2px solid var(--egc-est-or);
}

.egc-est .egc-est__poids input {
	width: 100%;
	padding: 6px 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--egc-est-noir);
	font-family: inherit;
	font-size: 40px;
	font-weight: 700;
	line-height: 48px;
	text-align: center;
	-moz-appearance: textfield;
}

.egc-est .egc-est__poids input::-webkit-outer-spin-button,
.egc-est .egc-est__poids input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.egc-est .egc-est__poids input:focus {
	outline: 0;
}

.egc-est__poids:focus-within {
	border-bottom-color: var(--egc-est-noir);
}

.egc-est__poids span {
	font-size: 24px;
	font-weight: 700;
}

.egc-est__curseur {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 0;
	margin: 26px auto 0;
	width: 100%;
	max-width: 720px;
}

.egc-est .egc-est__curseur input[type="range"] {
	--egc-est-pc: 0%;
	grid-column: 1 / -1;
	width: 100%;
	height: 4px;
	margin: 0;
	border-radius: 2px;
	background: linear-gradient(to right, var(--egc-est-or) var(--egc-est-pc), rgba(197, 153, 86, 0.35) var(--egc-est-pc));
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.egc-est .egc-est__curseur input[type="range"]::-webkit-slider-thumb {
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: var(--egc-est-or);
	box-shadow: 0 2px 8px rgba(35, 31, 32, 0.25);
	-webkit-appearance: none;
	appearance: none;
}

.egc-est .egc-est__curseur input[type="range"]::-moz-range-thumb {
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: var(--egc-est-or);
}

.egc-est .egc-est__curseur input[type="range"]:focus-visible {
	outline: 3px solid var(--egc-est-noir);
	outline-offset: 10px;
}

.egc-est__borne {
	font-size: 16px;
	font-weight: 700;
}

.egc-est__borne + .egc-est__borne {
	text-align: right;
}

/* ---------- Résultat (Figma « Estimation or_Estimation ») ----------
   Un panneau blanc : carte dorée compacte à gauche (estimation + téléphone), prise de RDV à droite. */
.egc-est__resultat {
	display: grid;
	grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding: 18px 40px 18px 18px;
	border-radius: 32px;
	background: #FFFFFF;
}

.egc-est__carte {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 30px 32px 28px;
	border-radius: 24px;
	background: var(--egc-est-or);
	color: #FFFFFF;
}

.egc-est__carte-titre {
	margin: 0;
	color: #FFFFFF;
	font-family: var(--e-global-typography-egch3-font-family, Roboto), sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 34px;
	outline: 0;
}

.egc-est__resume {
	position: relative;
	margin: 0;
	padding-bottom: 16px;
	font-size: 17px;
	line-height: 23px;
}

.egc-est__resume::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 110px;
	height: 2px;
	background: #FFFFFF;
}

.egc-est__montant {
	margin: 14px 0 12px;
	font-size: 42px;
	font-weight: 700;
	line-height: 48px;
	text-align: center;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.egc-est__mention {
	margin: 0;
	font-size: 15px;
	line-height: 21px;
}

.egc-est__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-top: 18px;
}

.egc-est a.egc-est__tel {
	padding: 11px 20px;
	border-radius: 27px;
	background: #FFFFFF;
	box-shadow: 0 3px 0 var(--egc-est-noir);
	color: var(--egc-est-noir);
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.egc-est a.egc-est__tel:hover,
.egc-est a.egc-est__tel:focus-visible {
	background: var(--egc-est-noir);
	color: #FFFFFF;
}

.egc-est .egc-est__modifier {
	width: auto !important;
	padding: 4px 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #FFFFFF !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

.egc-est__agences {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 22px;
}

.egc-est__agences-titre {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 32px;
}

.egc-est__agences-texte {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 22px;
}

/* Liste des agences : hauteur limitée, défilement dans le panneau. */
.egc-est .egc-rdv-recherche--compacte .egc-rdv__liste {
	max-height: 336px;
	padding-right: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
	.egc-est__pas + .egc-est__pas::before {
		width: 48px;
	}
}

@media (max-width: 1024px) {
	.egc-est__objets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.egc-est__resultat {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding: 14px 14px 22px;
	}

	.egc-est__agences {
		padding: 0 8px;
	}

	.egc-est__pas + .egc-est__pas::before {
		width: 40px;
		margin: 0 12px;
	}

	.egc-est .egc-est__pas button {
		gap: 12px;
	}
}

@media (max-width: 767px) {
	.egc-est {
		gap: 22px;
	}

	.egc-est__puretes {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.egc-est__rond {
		width: 52px;
		height: 52px;
		font-size: 22px;
	}

	.egc-est__rond svg {
		width: 28px;
		height: 28px;
	}

	/* Mobile : libellé sous le rond. */
	.egc-est .egc-est__pas button {
		flex-direction: column;
		gap: 6px;
	}

	.egc-est__lib {
		font-size: 15px;
		line-height: 20px;
	}

	.egc-est__pas + .egc-est__pas::before {
		align-self: flex-start;
		width: 28px;
		margin: 26px 8px 0;
	}

	.egc-est__titre {
		font-size: 22px;
		line-height: 28px;
	}

	.egc-est__aide {
		margin-bottom: 18px;
		font-size: 16px;
		line-height: 22px;
	}

	.egc-est__objets {
		gap: 12px;
	}

	.egc-est .egc-est__objet {
		padding: 0 8px 14px !important;
		border-radius: 24px !important;
	}

	.egc-est__objet-nom {
		font-size: 15px;
		line-height: 20px;
	}

	.egc-est .egc-est__purete {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		min-height: 0;
		padding: 14px 48px 14px 22px !important;
		border-radius: 28px !important;
	}

	.egc-est__titre-p {
		font-size: 17px;
		line-height: 22px;
	}

	.egc-est__ex {
		padding: 6px 0 0;
		border-top: 1px solid currentColor;
		border-left: 0;
		font-size: 15px;
		line-height: 20px;
	}

	.egc-est .egc-est__purete .egc-est__fl {
		right: 20px;
	}

	.egc-est .egc-est__inconnu {
		font-size: 16px;
	}

	.egc-est .egc-est__poids input {
		font-size: 40px;
		line-height: 48px;
	}

	.egc-est__borne {
		font-size: 17px;
	}

	.egc-est .egc-est__suite,
	.egc-est .egc-est__voir {
		align-self: stretch;
		justify-content: center;
		padding: 16px 24px !important;
		font-size: 18px;
	}

	.egc-est__resultat {
		padding: 10px 10px 20px;
		border-radius: 24px;
	}

	.egc-est__carte {
		padding: 22px 20px;
		border-radius: 18px;
	}

	.egc-est__carte-titre {
		font-size: 24px;
		line-height: 30px;
	}

	.egc-est__resume {
		font-size: 16px;
	}

	.egc-est__montant {
		margin: 10px 0;
		font-size: 34px;
		line-height: 40px;
	}

	.egc-est__mention {
		font-size: 14px;
		line-height: 20px;
	}

	.egc-est__agences-titre {
		font-size: 21px;
		line-height: 27px;
	}

	.egc-est__agences-texte {
		font-size: 15px;
		line-height: 21px;
	}

	.egc-est .egc-rdv-recherche--compacte .egc-rdv__liste {
		max-height: none;
		overflow: visible;
	}
}

@media (prefers-reduced-motion: reduce) {
	.egc-est .egc-est__objet,
	.egc-est .egc-est__purete {
		transition: none;
	}
}
