/* Espace Gold Change : graphique des cours (onglets dorés de la maquette, courbe dorée). */
.egc-graph {
	--egc-g-or: var(--e-global-color-primary, #C59956);
	--egc-g-fonce: var(--e-global-color-secondary, #231F20);
	width: 100%;
}

.egc-graph__onglets {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px 32px;
	margin-bottom: 26px;
}

.egc-graph .egc-graph__onglet {
	min-width: 175px;
	height: 50px;
	padding: 0 22px;
	border: 1px solid var(--egc-g-or) !important;
	border-radius: 33px !important;
	background: #FFFFFF !important;
	box-shadow: none;
	color: var(--egc-g-fonce) !important;
	font-family: var(--e-global-typography-egcbouton-font-family, Roboto), sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.egc-graph .egc-graph__onglet:hover,
.egc-graph .egc-graph__onglet:focus-visible {
	background: var(--e-global-color-egccreme, #F3EBDD) !important;
	outline: 0;
}

.egc-graph .egc-graph__onglet[aria-selected="true"] {
	border-color: var(--egc-g-or) !important;
	background: var(--egc-g-or) !important;
	box-shadow: 0 4px 0 var(--egc-g-fonce);
	color: #FFFFFF !important;
}

.egc-graph__entete {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 20px;
	margin-bottom: 12px;
}

.egc-graph__cours {
	margin: 0;
	color: var(--egc-g-fonce);
	font-size: 26px;
	font-weight: 700;
	line-height: 32px;
}

.egc-graph__cours small {
	margin-left: 4px;
	font-size: 16px;
	font-weight: 400;
}

.egc-graph__var {
	margin-left: 10px;
	font-size: 16px;
	font-weight: 700;
}

.egc-graph__var.est-hausse {
	color: #2E7D32;
}

.egc-graph__var.est-baisse {
	color: #B3261E;
}

.egc-graph__periodes {
	display: flex;
	gap: 6px;
	padding: 4px;
	border-radius: 22px;
	background: var(--e-global-color-egccreme, #F3EBDD);
}

.egc-graph .egc-graph__periode {
	padding: 6px 14px;
	border: 0 !important;
	border-radius: 18px !important;
	background: transparent !important;
	color: var(--egc-g-fonce) !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 18px;
	cursor: pointer;
}

.egc-graph .egc-graph__periode[aria-pressed="true"] {
	background: #FFFFFF !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.egc-graph .egc-graph__periode:disabled {
	opacity: 0.4;
	cursor: default;
}

.egc-graph__zone {
	position: relative;
	height: 380px;
}

.egc-graph__svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	touch-action: pan-y;
}

.egc-graph__svg .axe {
	stroke: var(--egc-g-fonce);
	stroke-width: 1.5;
}

.egc-graph__svg .grille {
	stroke: rgba(35, 31, 32, 0.07);
	stroke-width: 1;
}

.egc-graph__svg .etiquette {
	fill: #5A5A5A;
	font-family: Roboto, sans-serif;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.egc-graph__svg .courbe {
	fill: none;
	stroke: var(--egc-g-or);
	stroke-width: 2.5;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.egc-graph__svg .repere {
	stroke: var(--egc-g-fonce);
	stroke-width: 1;
	stroke-dasharray: 3 3;
}

.egc-graph__svg .point {
	fill: #FFFFFF;
	stroke: var(--egc-g-or);
	stroke-width: 3;
}

.egc-graph__bulle {
	position: absolute;
	top: 0;
	z-index: 2;
	padding: 6px 10px;
	border-radius: 10px;
	background: var(--egc-g-fonce);
	color: #FFFFFF;
	font-size: 13px;
	line-height: 18px;
	white-space: nowrap;
	pointer-events: none;
	transform: translateX(-50%);
}

.egc-graph__bulle[hidden],
.egc-graph__vide[hidden] {
	display: none;
}

.egc-graph__vide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 20px;
	text-align: center;
	color: #4A4A4A;
	font-size: 16px;
}

@media (max-width: 1024px) {
	.egc-graph__onglets {
		gap: 12px;
	}
	.egc-graph .egc-graph__onglet {
		min-width: 0;
		flex: 1 1 140px;
		max-width: 200px;
	}
	.egc-graph__zone {
		height: 320px;
	}
}

@media (max-width: 767px) {
	.egc-graph__onglets {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-bottom: 18px;
	}
	.egc-graph .egc-graph__onglet {
		max-width: none;
		height: 44px;
		font-size: 14px;
	}
	.egc-graph__cours {
		font-size: 20px;
		line-height: 26px;
	}
	.egc-graph__zone {
		height: 260px;
	}
}
