/* Evyra Calculateurs — styles isolés (préfixe .evc) */

.evc {
	--evc-bg: #050505;
	--evc-bg-2: #0b0b0b;
	--evc-line: rgba(255, 255, 255, 0.12);
	--evc-line-strong: rgba(255, 255, 255, 0.28);
	--evc-text: #f4f4f4;
	--evc-muted: #8d8d8d;
	--evc-dim: #6a6a6a;
	--evc-accent: #f4f4f4;
	--evc-accent-glow: rgba(255, 255, 255, 0.06);
	--evc-radius: 999px;
	--evc-font: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;

	all: unset;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	max-width: 1190px;
	margin: 0 auto;
	font-family: var(--evc-font);
	font-weight: 400;
	color: var(--evc-text);
	background: var(--evc-bg);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	line-height: 1.4;
	position: relative;
	overflow: hidden;
}

.evc.evc-impact {
	--evc-accent: #00d68f;
	--evc-accent-glow: rgba(0, 214, 143, 0.14);
}

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

.evc-panel {
	padding: 40px 38px;
	min-width: 0;
}

.evc-inputs {
	border-right: 1px solid var(--evc-line);
	background: var(--evc-bg);
}

.evc-output {
	background: var(--evc-bg-2);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* halo diffus, monochrome sur FX, vert sur Impact */
.evc-output::before {
	content: '';
	position: absolute;
	inset: -40% -30% auto auto;
	width: 80%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at center, var(--evc-accent-glow), transparent 62%);
	pointer-events: none;
}

.evc-output > * { position: relative; }

/* ---------- En-tête ---------- */
.evc-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 30px;
	font-size: 13px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}
.evc-brand { color: var(--evc-accent); font-weight: 500; }
.evc-kind  { color: var(--evc-dim); font-weight: 400; letter-spacing: 0.22em; }

/* ---------- Champs ---------- */
.evc-field {
	display: block;
	margin: 0 0 24px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--evc-line);
}
.evc-field-last { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.evc-label {
	display: block;
	margin: 0 0 10px;
	font-size: 12.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--evc-muted);
}

.evc-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.evc-input,
.evc-select {
	all: unset;
	box-sizing: border-box;
	font-family: var(--evc-font);
	color: var(--evc-text);
	width: 100%;
	min-width: 0;
	background: transparent;
}
.evc-input::placeholder { color: var(--evc-dim); }

.evc-big,
.evc-select {
	font-size: 30px;
	font-weight: 300;
	letter-spacing: 0.01em;
	line-height: 1.1;
}

.evc-select-wrap { position: relative; }
.evc-select {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	padding-right: 8px;
}
.evc-select option { background: #111; color: #f4f4f4; font-size: 16px; }

.evc-unit {
	flex: none;
	font-size: 16px;
	color: var(--evc-muted);
}
.evc-muted { color: var(--evc-dim); }

.evc-input:focus-visible,
.evc-select:focus-visible { box-shadow: 0 1px 0 0 var(--evc-accent); }

/* ---------- Convertisseur ---------- */
.evc-conv {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: stretch;
	gap: 10px;
	margin-top: 6px;
}
.evc-conv-box {
	position: relative;
	border: 1px solid var(--evc-line);
	border-radius: 10px;
	padding: 20px 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	transition: border-color 0.25s ease;
}
.evc-conv-box:focus-within { border-color: var(--evc-line-strong); }
.evc-conv-label {
	position: absolute;
	top: -8px;
	left: 12px;
	padding: 0 6px;
	background: var(--evc-bg);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--evc-dim);
}
.evc-conv-amount { font-size: 26px; font-weight: 300; line-height: 1.1; }
.evc-cur {
	all: unset;
	box-sizing: border-box;
	font-family: var(--evc-font);
	font-size: 14px;
	color: var(--evc-muted);
	cursor: pointer;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238d8d8d' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right center;
}
.evc-cur option { background: #111; color: #f4f4f4; }
.evc-cur:focus-visible { outline: 1px solid var(--evc-accent); outline-offset: 2px; }
.evc-swap {
	all: unset;
	box-sizing: border-box;
	align-self: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--evc-line);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--evc-muted);
	font-size: 16px;
	transition: color 0.25s ease, border-color 0.25s ease;
}
.evc-swap:hover { color: var(--evc-text); border-color: var(--evc-line-strong); }
.evc-swap:focus-visible { outline: 1px solid var(--evc-accent); outline-offset: 2px; }
.evc-rate {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--evc-muted);
}
.evc-disclaimer {
	margin: 8px 0 0;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--evc-dim);
}
.evc-saving-note {
	margin: -12px 0 18px;
	font-size: 13px;
	color: var(--evc-dim);
	text-align: right;
}

/* ---------- Pastilles ---------- */
.evc-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}
.evc-pill { position: relative; cursor: pointer; }
.evc-pill input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.evc-pill span {
	display: inline-block;
	padding: 11px 24px;
	border: 1px solid var(--evc-line);
	border-radius: var(--evc-radius);
	color: var(--evc-muted);
	font-size: 15px;
	transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.evc-pill:hover span { border-color: var(--evc-line-strong); }
.evc-pill input:checked + span {
	color: var(--evc-accent);
	border-color: var(--evc-accent);
}
.evc.evc-impact .evc-pill input:checked + span {
	box-shadow: 0 0 22px -6px rgba(0, 214, 143, 0.55);
}
.evc-pill input:focus-visible + span { outline: 1px solid var(--evc-accent); outline-offset: 3px; }

/* ---------- Résultat ---------- */
.evc-result .evc-label { color: var(--evc-accent); }
.evc.evc-fx .evc-result .evc-label { color: var(--evc-muted); }

.evc-figure {
	margin: 0 0 12px;
	font-size: clamp(52px, 6vw, 78px);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.evc-figure-unit {
	font-size: 0.38em;
	letter-spacing: 0.06em;
	vertical-align: baseline;
	color: var(--evc-text);
}
.evc-figure sub { font-size: 0.65em; vertical-align: baseline; position: relative; top: 0.1em; }

.evc-explain {
	margin: 0 0 26px;
	color: var(--evc-muted);
	font-size: 16px;
	line-height: 1.5;
	max-width: 46ch;
}

.evc-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 18px 0 20px;
	border-top: 1px solid var(--evc-line);
	font-size: 16px;
	color: var(--evc-muted);
}
.evc-line strong {
	font-weight: 400;
	color: var(--evc-text);
	white-space: nowrap;
}
.evc.evc-impact .evc-line strong { color: var(--evc-accent); }

/* ---------- Boutons ---------- */
.evc-btn {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	font-family: var(--evc-font);
	font-size: 15px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 18px 28px;
	border: 1px solid var(--evc-accent);
	border-radius: var(--evc-radius);
	color: var(--evc-accent);
	text-align: center;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.evc-btn-primary { width: 100%; }
.evc-btn:hover { background: var(--evc-accent); color: #050505; }
.evc.evc-impact .evc-btn:hover { box-shadow: 0 0 40px -8px rgba(0, 214, 143, 0.6); }
.evc-btn:focus-visible { outline: 1px solid var(--evc-accent); outline-offset: 4px; }
.evc-btn[disabled] { opacity: 0.55; cursor: progress; }
.evc-btn-ghost { border-color: var(--evc-line); color: var(--evc-muted); }
.evc-btn-ghost:hover { background: transparent; color: var(--evc-text); border-color: var(--evc-line-strong); }

.evc-note {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--evc-dim);
}

/* ---------- Formulaire lead ---------- */
.evc-lead .evc-field { padding-bottom: 12px; margin-bottom: 20px; }
.evc-lead .evc-input { font-size: 20px; font-weight: 300; }
.evc-consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 6px 0 18px;
	font-size: 14px;
	color: var(--evc-muted);
	cursor: pointer;
}
.evc-consent input {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	border: 1px solid var(--evc-line-strong);
	border-radius: 3px;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.evc-consent input:checked { border-color: var(--evc-accent); }
.evc-consent input:checked::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid var(--evc-accent);
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}
.evc-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

.evc-error {
	margin: 0 0 14px;
	font-size: 14px;
	color: #ff8a8a;
}
.evc-lead-actions {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
}

.evc-thanks-title {
	margin: 0 0 10px;
	font-size: 34px;
	font-weight: 300;
	color: var(--evc-accent);
}
.evc-thanks-body { margin: 0; color: var(--evc-muted); font-size: 16px; max-width: 42ch; }

/* ---------- Transitions de panneaux ---------- */
.evc-result, .evc-lead, .evc-thanks {
	transition: opacity 0.35s ease, transform 0.35s ease;
}
.evc [hidden] { display: none !important; }
.evc-enter { opacity: 0; transform: translateY(8px); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.evc { grid-template-columns: 1fr; }
	.evc-inputs { border-right: 0; border-bottom: 1px solid var(--evc-line); }
	.evc-panel { padding: 30px 24px; }
	.evc-big, .evc-select { font-size: 26px; }
	.evc-figure { font-size: 52px; }
	.evc-lead-actions { grid-template-columns: 1fr; }
	.evc-conv { grid-template-columns: 1fr; }
	.evc-swap { justify-self: center; transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
	.evc *, .evc *::before, .evc *::after { transition: none !important; }
}
