.octy-hero-calc {
	--octy-primary-900: #0f2b35;
	--octy-primary-800: #163b4a;
	--octy-primary-700: #1e4f63;
	--octy-primary-600: #28667e;
	--octy-primary-500: #307388;
	--octy-accent: #f07258;
	--octy-accent-light: #f4917d;
	--octy-accent-dark: #d4614a;
	--octy-accent-50: #fef0ec;
	--octy-cream: #faf7f4;
	--octy-gray-200: #e8e4e0;
	--octy-gray-300: #d5d0cb;
	--octy-gray-400: #a09a94;
	--octy-gray-500: #7a746e;
	--octy-gray-600: #5a5550;
	--octy-dark: #1a1f26;
	--octy-white: #fff;
	--octy-green-500: #10b981;
	--octy-ease: cubic-bezier(0.16, 1, 0.3, 1);

	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.97);
	color: var(--octy-dark);
	border-radius: 24px;
	padding: 28px;
	box-shadow: 0 32px 80px rgba(15, 43, 53, 0.4);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	position: relative;
	overflow: hidden;
	max-width: 1200px;
	margin: 0 auto;
	font-family: "DM Sans", system-ui, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.octy-hero-calc *,
.octy-hero-calc *::before,
.octy-hero-calc *::after {
	box-sizing: border-box;
}

.octy-hero-calc::before {
	content: "";
	position: absolute;
	top: -100px;
	right: -100px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(240, 114, 88, 0.08), transparent 70%);
	pointer-events: none;
}

.octy-hero-calc .hc-body-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	position: relative;
	z-index: 2;
}

.octy-hero-calc .hc-controls {
	display: flex;
	flex-direction: column;
}

.octy-hero-calc .hc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	position: relative;
	z-index: 2;
}

.octy-hero-calc .hc-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	background: var(--octy-accent-50);
	color: var(--octy-accent);
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.octy-hero-calc .hc-tag i {
	font-size: 11px;
}

.octy-hero-calc .hc-live {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 9px;
	font-weight: 600;
	color: var(--octy-gray-500);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.octy-hero-calc .hc-live-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--octy-green-500);
	animation: octy-hc-pulse 2s ease-in-out infinite;
}

@keyframes octy-hc-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.4;
	}
}

.octy-hero-calc .hc-field {
	margin-bottom: 12px;
	position: relative;
	z-index: 2;
}

.octy-hero-calc .hc-field:last-child {
	margin-bottom: 0;
}

.octy-hero-calc .hc-label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 7px;
	flex-wrap: wrap;
	gap: 4px;
}

.octy-hero-calc .hc-label-name {
	font-size: 10px;
	font-weight: 600;
	color: var(--octy-gray-600);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.octy-hero-calc .hc-label-val {
	font-family: Fraunces, Georgia, serif;
	font-size: 17px;
	font-weight: 500;
	color: var(--octy-dark);
	letter-spacing: -0.01em;
}

.octy-hero-calc .hc-label-val .unit {
	font-size: 10px;
	color: var(--octy-gray-500);
	font-weight: 400;
	margin-left: 3px;
	font-family: "DM Sans", system-ui, sans-serif;
}

.octy-hero-calc .hc-val-input {
	font-family: Fraunces, Georgia, serif;
	font-size: 17px;
	font-weight: 500;
	color: var(--octy-dark);
	letter-spacing: -0.01em;
	background: transparent;
	border: none;
	border-bottom: 1px dashed rgba(15, 43, 53, 0.25);
	width: 56px;
	text-align: right;
	padding: 0 1px 1px;
	outline: none;
	-moz-appearance: textfield;
}

.octy-hero-calc .hc-val-input::-webkit-outer-spin-button,
.octy-hero-calc .hc-val-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.octy-hero-calc .hc-val-input.hc-val-wide {
	width: 80px;
}

.octy-hero-calc .hc-val-input:hover,
.octy-hero-calc .hc-val-input:focus {
	border-bottom-color: var(--octy-accent);
	color: var(--octy-primary-600);
}

.octy-hero-calc .hc-statut,
.octy-hero-calc .hc-pension {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
	background: var(--octy-cream);
	border: 1px solid var(--octy-gray-200);
	border-radius: 10px;
	padding: 3px;
}

.octy-hero-calc .hc-frais-toggle {
	display: flex;
	gap: 5px;
	background: var(--octy-cream);
	border: 1px solid var(--octy-gray-200);
	border-radius: 10px;
	padding: 3px;
}

.octy-hero-calc .hc-frais-toggle-btn {
	flex: 1;
}

.octy-hero-calc .hc-statut-btn,
.octy-hero-calc .hc-pension-btn,
.octy-hero-calc .hc-frais-toggle-btn {
	padding: 8px 6px;
	background: transparent;
	border: none;
	border-radius: 8px;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: var(--octy-gray-500);
	cursor: pointer;
	transition: all 0.25s var(--octy-ease);
	text-align: center;
	line-height: 1.1;
}

.octy-hero-calc .hc-statut-btn.active,
.octy-hero-calc .hc-pension-btn.active,
.octy-hero-calc .hc-frais-toggle-btn.active {
	background: var(--octy-dark);
	color: var(--octy-white);
	box-shadow: 0 3px 10px rgba(26, 31, 38, 0.15);
}

.octy-hero-calc .hc-remun {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 5px;
}

.octy-hero-calc .hc-remun-btn {
	padding: 8px 6px;
	background: var(--octy-cream);
	border: 1.5px solid var(--octy-gray-200);
	border-radius: 9px;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: var(--octy-gray-600);
	cursor: pointer;
	transition: all 0.25s var(--octy-ease);
	text-align: center;
	line-height: 1.1;
}

.octy-hero-calc .hc-remun-btn.active {
	background: var(--octy-accent-50);
	border-color: var(--octy-accent);
	color: var(--octy-accent-dark);
	font-weight: 600;
}

.octy-hero-calc .hc-slider {
	position: relative;
	height: 5px;
	background: var(--octy-gray-200);
	border-radius: 999px;
	cursor: pointer;
	margin-top: 4px;
	touch-action: none;
}

.octy-hero-calc .hc-slider-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--octy-primary-500) 0%, var(--octy-accent) 100%);
	border-radius: 999px;
	pointer-events: none;
}

.octy-hero-calc .hc-slider-thumb {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--octy-white);
	border: 2.5px solid var(--octy-accent);
	box-shadow: 0 3px 10px rgba(240, 114, 88, 0.3);
	cursor: grab;
	pointer-events: none;
}

.octy-hero-calc .hc-slider:hover .hc-slider-thumb {
	transform: translate(-50%, -50%) scale(1.12);
}

.octy-hero-calc .hc-enfants-row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 5px;
}

.octy-hero-calc .hc-enfants-btn {
	padding: 7px 0;
	background: var(--octy-cream);
	border: 1.5px solid var(--octy-gray-200);
	border-radius: 9px;
	font-family: Fraunces, Georgia, serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--octy-gray-500);
	cursor: pointer;
	transition: all 0.25s var(--octy-ease);
	text-align: center;
}

.octy-hero-calc .hc-enfants-btn.active {
	background: var(--octy-dark);
	color: var(--octy-accent-light);
	border-color: var(--octy-dark);
}

.octy-hero-calc .hc-accordion {
	margin-top: 16px;
}

.octy-hero-calc .hc-acc-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	background: var(--octy-cream);
	border: 1.5px dashed var(--octy-gray-300);
	border-radius: 12px;
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--octy-gray-600);
	cursor: pointer;
	letter-spacing: 0.01em;
	padding: 13px 16px;
	transition: all 0.25s var(--octy-ease);
	text-transform: none;
	position: relative;
}

.octy-hero-calc .hc-acc-toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
}

.octy-hero-calc .hc-acc-toggle-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--octy-gray-200);
	color: var(--octy-gray-600);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	transition: all 0.3s var(--octy-ease);
	flex-shrink: 0;
}

.octy-hero-calc .hc-acc-toggle-icon i {
	transition: transform 0.3s var(--octy-ease);
}

.octy-hero-calc .hc-acc-hint {
	font-size: 10px;
	font-weight: 500;
	color: var(--octy-gray-400);
	font-style: italic;
}

.octy-hero-calc .hc-acc-toggle:hover {
	background: var(--octy-accent-50);
	border-color: var(--octy-accent);
	color: var(--octy-accent-dark);
}

.octy-hero-calc .hc-acc-toggle:hover .hc-acc-toggle-icon {
	background: var(--octy-accent);
	color: var(--octy-white);
	transform: scale(1.05);
}

.octy-hero-calc .hc-acc-toggle.open {
	background: var(--octy-dark);
	border-color: var(--octy-dark);
	border-style: solid;
	color: var(--octy-white);
}

.octy-hero-calc .hc-acc-toggle.open .hc-acc-toggle-icon {
	background: var(--octy-accent);
	color: var(--octy-white);
}

.octy-hero-calc .hc-acc-toggle.open .hc-acc-toggle-icon i {
	transform: rotate(180deg);
}

.octy-hero-calc .hc-acc-toggle.open .hc-acc-hint {
	color: rgba(255, 255, 255, 0.5);
}

.octy-hero-calc .hc-acc-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s var(--octy-ease);
}

.octy-hero-calc .hc-acc-toggle.open + .hc-acc-body {
	max-height: 500px;
}

.octy-hero-calc .hc-acc-field {
	margin-top: 14px;
	margin-bottom: 14px;
}

.octy-hero-calc .hc-acc-field-last {
	margin-bottom: 0;
}

.octy-hero-calc [data-hc-frais-montant].is-hidden {
	display: none;
}

.octy-hero-calc .hc-result {
	margin-top: 0;
	padding: 24px 22px 20px;
	background: linear-gradient(135deg, var(--octy-dark) 0%, var(--octy-primary-800) 100%);
	color: var(--octy-white);
	border-radius: 16px;
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.octy-hero-calc .hc-result::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(240, 114, 88, 0.22), transparent 70%);
	pointer-events: none;
}

.octy-hero-calc .hc-result-head {
	position: relative;
	z-index: 2;
	margin-bottom: 10px;
}

.octy-hero-calc .hc-result-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--octy-accent-light);
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin-bottom: 5px;
}

.octy-hero-calc .hc-result-num {
	font-family: Fraunces, Georgia, serif;
	font-size: 54px;
	font-weight: 300;
	color: var(--octy-accent-light);
	letter-spacing: -0.035em;
	line-height: 1;
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.octy-hero-calc .hc-result-num .currency {
	color: var(--octy-accent-light);
	font-style: italic;
	font-weight: 400;
	font-size: 28px;
}

.octy-hero-calc .hc-result-num .period {
	font-size: 17px;
	color: rgba(255, 255, 255, 0.5);
	font-family: "DM Sans", system-ui, sans-serif;
	font-weight: 400;
	margin-left: 2px;
}

.octy-hero-calc .hc-chart {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 4px;
	padding: 6px 0;
}

.octy-hero-calc .hc-chart-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.octy-hero-calc .hc-chart-bar {
	width: 50px;
	height: 110px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
}

.octy-hero-calc .hc-chart-seg {
	width: 100%;
	transition: height 1s var(--octy-ease);
}

.octy-hero-calc .hc-chart-seg.cot {
	background: #5a6573;
}

.octy-hero-calc .hc-chart-seg.imp {
	background: var(--octy-accent);
}

.octy-hero-calc .hc-chart-seg.net {
	background: var(--octy-primary-500);
}

.octy-hero-calc .hc-chart-label {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-align: center;
}

.octy-hero-calc .hc-chart-label.with {
	color: var(--octy-accent-light);
}

.octy-hero-calc .hc-legend {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-top: 8px;
	position: relative;
	z-index: 2;
}

.octy-hero-calc .hc-legend-item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 500;
	line-height: 1.2;
}

.octy-hero-calc .hc-legend-dot {
	width: 7px;
	height: 7px;
	border-radius: 2px;
	flex-shrink: 0;
}

.octy-hero-calc .hc-legend-dot.cot {
	background: #5a6573;
}

.octy-hero-calc .hc-legend-dot.imp {
	background: var(--octy-accent);
}

.octy-hero-calc .hc-legend-dot.net {
	background: var(--octy-primary-500);
}

.octy-hero-calc .hc-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	z-index: 2;
}

.octy-hero-calc .hc-compare-block {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.octy-hero-calc .hc-compare-label {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 2px;
}

.octy-hero-calc .hc-compare-val {
	font-family: Fraunces, Georgia, serif;
	font-size: 19px;
	font-weight: 500;
	color: var(--octy-white);
	font-variant-numeric: tabular-nums;
}

.octy-hero-calc .hc-compare-block.with .hc-compare-val {
	color: var(--octy-accent-light);
}

.octy-hero-calc .hc-compare-block.with .hc-compare-label {
	color: var(--octy-accent-light);
	opacity: 0.7;
}

.octy-hero-calc .hc-cumul {
	margin-top: 10px;
	padding: 9px 11px;
	background: rgba(240, 114, 88, 0.08);
	border: 1px solid rgba(240, 114, 88, 0.18);
	border-radius: 9px;
	position: relative;
	z-index: 2;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.45;
}

.octy-hero-calc .hc-cumul strong {
	color: var(--octy-accent-light);
	font-family: Fraunces, Georgia, serif;
	font-weight: 500;
	font-size: 16px;
}

.octy-hero-calc .hc-upsell {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	position: relative;
	z-index: 2;
}

.octy-hero-calc .hc-upsell-row {
	display: flex;
	gap: 7px;
	align-items: flex-start;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

.octy-hero-calc .hc-upsell-row i {
	font-size: 15px;
	flex-shrink: 0;
	margin-top: 1px;
	color: rgba(255, 255, 255, 0.5);
}

.octy-hero-calc .hc-upsell-row strong {
	color: #fff;
	font-weight: 600;
}

.octy-hero-calc .hc-upsell-row.accent {
	color: rgba(255, 255, 255, 0.92);
}

.octy-hero-calc .hc-upsell-row.accent i {
	color: var(--octy-accent-light);
}

.octy-hero-calc .hc-upsell-row.accent strong {
	color: var(--octy-accent-light);
}

.octy-hero-calc .hc-cta {
	display: inline-flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 13px;
	background: var(--octy-accent);
	color: var(--octy-white);
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.25s var(--octy-ease);
	position: relative;
	z-index: 2;
	box-shadow: 0 8px 20px rgba(240, 114, 88, 0.3);
	font-family: "DM Sans", system-ui, sans-serif;
}

.octy-hero-calc .hc-cta:hover {
	background: var(--octy-accent-dark);
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(240, 114, 88, 0.4);
	color: var(--octy-white);
}

.octy-hero-calc .hc-cta i {
	transition: transform 0.2s var(--octy-ease);
}

.octy-hero-calc .hc-cta:hover i {
	transform: translateX(3px);
}

.octy-hero-calc .hc-disclaimer {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.45);
	text-align: center;
	margin-top: 6px;
	margin-bottom: 0;
	position: relative;
	z-index: 2;
	line-height: 1.4;
}

@media (max-width: 1199px) {
	.octy-hero-calc .hc-body-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.octy-hero-calc .hc-result {
		margin-top: 8px;
	}
}

@media (max-width: 767px) {
	.octy-hero-calc {
		padding: 18px;
		border-radius: 18px;
	}

	.octy-hero-calc .hc-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		margin-bottom: 14px;
	}

	.octy-hero-calc .hc-body-grid {
		gap: 18px;
	}

	.octy-hero-calc .hc-statut-btn,
	.octy-hero-calc .hc-pension-btn,
	.octy-hero-calc .hc-frais-toggle-btn {
		font-size: 10px;
		padding: 8px 4px;
	}

	.octy-hero-calc .hc-result-num {
		font-size: 34px;
	}

	.octy-hero-calc .hc-result-num .currency {
		font-size: 22px;
	}

	.octy-hero-calc .hc-chart-bar {
		width: 42px;
		height: 90px;
	}

	.octy-hero-calc .hc-result {
		padding: 16px 14px 14px;
	}

	.octy-hero-calc .hc-acc-toggle {
		font-size: 12px;
		padding: 11px 14px;
	}

	.octy-hero-calc .hc-legend {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.octy-hero-calc .hc-live-dot,
	.octy-hero-calc .hc-chart-seg,
	.octy-hero-calc .hc-acc-body,
	.octy-hero-calc .hc-acc-toggle-icon i {
		animation: none;
		transition: none;
	}
}
