/*
 * Côté Piscine — calculateur de prix piscine.
 * Reprend le langage visuel du site (palette navy / bleu flash / bleu piscine,
 * pastille jaune, cartes 18px, boutons dégradés navy, halos). Tout est préfixé
 * par #cpc pour passer devant les styles globaux Elementor / Hello
 * (button:hover, input:not(...), label…).
 */

#cpc {
	--navy: #0a1b3d;
	--navy-2: #123a8f;
	--ink: #10213e;
	--ink-2: #283a58;
	--blue: #2d6cff;
	--blue-ink: #2663cc;
	--sky: #5ec8f2;
	--pool: #00c2d1;
	--yellow: #ffd84d;
	--muted: #55648a;
	--muted-2: #6b7a9c;
	--faint: #9aa8c0;
	--line: #e5eef9;
	--line-2: #d9e6f7;
	--soft: #f5faff;
	--soft-2: #eaf5ff;
	--spring: cubic-bezier(0.2, 0.9, 0.3, 1.15);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 24px 0 48px;
	padding: 56px 48px 48px;
	border-radius: 28px;
	background: linear-gradient(155deg, #eef7fd 0%, #dceefb 100%);
	color: var(--ink);
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

#cpc *,
#cpc *::before,
#cpc *::after {
	box-sizing: border-box;
}

#cpc :where(h1, h2, p, ul, ol, li) {
	margin: 0;
	padding: 0;
}

#cpc :where(ul, ol) {
	list-style: none;
}

#cpc button {
	appearance: none;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: 1.3;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#cpc button:focus {
	outline: none;
}

#cpc button:focus-visible,
#cpc a:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

#cpc .cpc-ico {
	display: inline-flex;
	flex: none;
	width: 18px;
	height: 18px;
}

#cpc .cpc-ico svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ── Halos ─────────────────────────────────────────────── */

#cpc .cpc-glow {
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}

#cpc .cpc-glow--a {
	top: -150px;
	left: -120px;
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(255, 216, 77, 0.38), transparent 70%);
	animation: cpc-drift 18s ease-in-out infinite alternate;
}

#cpc .cpc-glow--b {
	right: -160px;
	bottom: -200px;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, rgba(45, 108, 255, 0.22), transparent 70%);
	animation: cpc-drift 24s ease-in-out infinite alternate-reverse;
}

@keyframes cpc-drift {
	to {
		transform: translate(70px, 50px) scale(1.12);
	}
}

/* ── Hero ──────────────────────────────────────────────── */

#cpc .cpc-hero {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: center;
}

#cpc .cpc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

#cpc .cpc-eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--yellow);
	box-shadow: 0 0 0 4px rgba(255, 216, 77, 0.25);
}

#cpc .cpc-title {
	margin: 18px 0 16px;
	color: var(--navy);
	font-family: inherit;
	font-size: clamp(34px, 4.6vw, 54px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.06;
	text-wrap: balance;
}

#cpc .cpc-title span {
	background: linear-gradient(90deg, var(--blue) 0%, var(--pool) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

#cpc .cpc-lead {
	max-width: 560px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.7;
}

#cpc .cpc-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 26px;
}

#cpc .cpc-trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid rgba(38, 99, 204, 0.1);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(6px);
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
}

#cpc .cpc-trust-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pool);
}

/* ── Layout ────────────────────────────────────────────── */

#cpc .cpc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
	max-width: 1080px;
	margin: 0 auto;
}

/* ── Chat ──────────────────────────────────────────────── */

#cpc .cpc-beam {
	box-shadow: 0 30px 60px -30px rgba(10, 27, 61, 0.38), 0 0 0 1px rgba(10, 27, 61, 0.04);
}

#cpc .cpc-chat {
	display: flex;
	flex-direction: column;
	height: clamp(600px, 78vh, 720px);
	border-radius: 24px;
	background: #fff;
}

#cpc .cpc-chat-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #fff, var(--soft));
}

#cpc .cpc-avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 2px solid transparent;
	border-radius: 50%;
	background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--blue), var(--pool)) border-box;
}

#cpc .cpc-chat-id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#cpc .cpc-chat-id strong {
	color: var(--navy);
	font-size: 14.5px;
	font-weight: 700;
}

#cpc .cpc-chat-id span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted-2);
	font-size: 12px;
}

#cpc .cpc-online {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

#cpc .cpc-progress {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	margin-left: auto;
}

#cpc .cpc-progress-label {
	color: var(--blue-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

#cpc .cpc-progress-bar {
	display: flex;
	gap: 4px;
}

#cpc .cpc-progress-bar i {
	position: relative;
	overflow: hidden;
	width: 22px;
	height: 5px;
	border-radius: 99px;
	background: var(--line);
}

#cpc .cpc-progress-bar i::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--blue), var(--pool));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.7s var(--spring);
}

#cpc .cpc-progress-bar i.is-current::after {
	transform: scaleX(0.45);
}

#cpc .cpc-progress-bar i.is-done::after {
	transform: scaleX(1);
}

#cpc .cpc-log {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	min-height: 0;
	padding: 22px 20px 14px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--line-2) transparent;
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 22px);
	mask-image: linear-gradient(to bottom, transparent, #000 22px);
}

#cpc .cpc-turn {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#cpc .cpc-msg {
	max-width: 82%;
	padding: 11px 15px;
	border-radius: 18px;
	font-size: 14.5px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

#cpc .cpc-msg--bot {
	align-self: flex-start;
	border: 1px solid var(--line);
	border-bottom-left-radius: 6px;
	background: var(--soft);
	color: var(--ink);
}

#cpc .cpc-msg--bot strong {
	color: var(--navy);
	font-weight: 700;
}

#cpc .cpc-msg--bot.is-typing {
	padding: 8px 14px;
}

#cpc .cpc-msg--bot canvas {
	display: block;
}

#cpc .cpc-msg--user {
	align-self: flex-end;
	margin: 4px 0 6px;
	border-bottom-right-radius: 6px;
	background: linear-gradient(135deg, var(--navy-2), var(--navy) 120%);
	box-shadow: 0 10px 22px -10px rgba(18, 58, 143, 0.55);
	color: #fff;
	font-weight: 500;
}

#cpc .cpc-calc {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 12px;
	padding: 8px 18px 8px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 12px 30px -18px rgba(10, 27, 61, 0.3);
}

#cpc .cpc-shimmer {
	background: linear-gradient(90deg, var(--muted-2) 0%, var(--muted-2) 40%, var(--blue) 50%, var(--muted-2) 60%, var(--muted-2) 100%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 14px;
	font-weight: 600;
	animation: cpc-shimmer 1.6s linear infinite;
}

@keyframes cpc-shimmer {
	from {
		background-position: 100% 0;
	}
	to {
		background-position: 0 0;
	}
}

/* ── Estimation ────────────────────────────────────────── */

#cpc .cpc-estimate {
	position: relative;
	overflow: hidden;
	margin: 6px 0;
	padding: 22px;
	border: 1px solid var(--line-2);
	border-radius: 20px;
	background:
		radial-gradient(circle at 100% 0, rgba(0, 194, 209, 0.14), transparent 45%),
		radial-gradient(circle at 0 100%, rgba(255, 216, 77, 0.16), transparent 45%),
		#fff;
	box-shadow: 0 24px 44px -26px rgba(10, 27, 61, 0.35);
}

#cpc .cpc-estimate-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

#cpc .cpc-estimate-surface {
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--soft-2);
	color: var(--muted-2);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

#cpc .cpc-estimate-range {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 12px;
	margin: 14px 0 4px;
	font-size: clamp(26px, 3.4vw, 36px);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

#cpc .cpc-estimate-range span {
	background: linear-gradient(90deg, var(--navy-2), var(--blue));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	white-space: nowrap;
}

#cpc .cpc-estimate-range em {
	color: var(--line-2);
	font-style: normal;
	font-weight: 400;
}

#cpc .cpc-estimate-note {
	color: var(--muted);
	font-size: 13px;
}

#cpc .cpc-breakdown {
	display: grid;
	gap: 14px;
	margin: 20px 0 16px;
	padding-top: 18px;
	border-top: 1px dashed var(--line-2);
}

#cpc .cpc-breakdown-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 7px;
	font-size: 13.5px;
}

#cpc .cpc-breakdown-head span {
	color: var(--ink-2);
	font-weight: 600;
}

#cpc .cpc-breakdown-head strong {
	color: var(--navy);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	white-space: nowrap;
}

#cpc .cpc-bar {
	overflow: hidden;
	height: 8px;
	border-radius: 99px;
	background: var(--soft-2);
}

#cpc .cpc-bar i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--blue), var(--pool));
	transition: width 1.2s var(--spring) 0.2s;
}

#cpc .cpc-breakdown li:nth-child(2) .cpc-bar i {
	transition-delay: 0.32s;
}

#cpc .cpc-breakdown li:nth-child(3) .cpc-bar i {
	transition-delay: 0.44s;
}

#cpc .cpc-estimate.is-in .cpc-bar i {
	width: var(--w);
}

#cpc .cpc-disclaimer {
	color: var(--muted-2);
	font-size: 11.5px;
	line-height: 1.5;
}

/* ── Zone de réponse ───────────────────────────────────── */

#cpc .cpc-composer {
	max-height: 64%;
	padding: 14px 20px 18px;
	overflow-y: auto;
	border-top: 1px solid var(--line);
	background: linear-gradient(180deg, var(--soft), #fff 60%);
	scrollbar-width: thin;
}

#cpc .cpc-composer:empty {
	display: none;
}

#cpc .cpc-composer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 24px;
	margin-bottom: 12px;
}

#cpc .cpc-composer-step {
	color: var(--muted-2);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

#cpc .cpc-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: -6px;
	padding: 4px 8px 4px 6px;
	border-radius: 8px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}

#cpc .cpc-back:hover {
	background: var(--soft-2);
	color: var(--blue);
}

#cpc .cpc-back .cpc-ico {
	width: 16px;
	height: 16px;
}

#cpc .cpc-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

#cpc .cpc-option {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--line-2);
	border-radius: 14px;
	background: #fff;
	color: var(--ink);
	text-align: left;
}

#cpc .cpc-option > .cpc-ico {
	width: 40px;
	height: 40px;
	padding: 10px;
	border-radius: 12px;
	background: linear-gradient(135deg, #e9f1ff, #dcf6fa);
	color: var(--blue);
	transition: transform 0.4s var(--spring);
}

#cpc .cpc-option-text {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	justify-content: center;
	min-width: 0;
}

#cpc .cpc-option strong {
	color: var(--navy);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

#cpc .cpc-option small {
	margin-top: 2px;
	color: var(--muted-2);
	font-size: 12px;
	line-height: 1.35;
}

#cpc .cpc-option:hover {
	border-color: var(--blue);
	background: #fff;
	box-shadow: 0 16px 30px -20px rgba(10, 27, 61, 0.45);
	color: var(--ink);
	transform: translateY(-2px);
}

#cpc .cpc-option:hover > .cpc-ico {
	transform: scale(1.08) rotate(-4deg);
}

#cpc .cpc-option:active {
	transform: translateY(0) scale(0.98);
}

#cpc .cpc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#cpc .cpc-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 13px 9px 11px;
	border: 1.5px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--ink-2);
	font-size: 13.5px;
	font-weight: 600;
}

#cpc .cpc-chip > .cpc-ico:first-child {
	color: var(--blue);
}

#cpc .cpc-chip-check {
	display: inline-grid;
	overflow: hidden;
	place-items: center;
	width: 0;
	height: 18px;
	margin-left: -8px;
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
	transition: width 0.35s var(--spring), margin 0.35s var(--spring);
}

#cpc .cpc-chip-check .cpc-ico {
	width: 12px;
	height: 12px;
}

#cpc .cpc-chip:hover {
	border-color: var(--blue);
	background: #fff;
	color: var(--ink-2);
	transform: translateY(-1px);
}

#cpc .cpc-chip[aria-pressed="true"] {
	border-color: var(--blue);
	background: var(--soft-2);
	color: var(--blue-ink);
}

#cpc .cpc-chip[aria-pressed="true"] .cpc-chip-check {
	width: 18px;
	margin-left: 0;
}

#cpc .cpc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--navy-2), var(--navy) 120%) var(--navy);
	box-shadow: 0 10px 24px -8px rgba(18, 58, 143, 0.55);
	color: #fff;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

#cpc .cpc-btn:hover {
	box-shadow: 0 14px 30px -8px rgba(18, 58, 143, 0.65);
	color: #fff;
	transform: translateY(-2px);
}

#cpc .cpc-btn:active {
	transform: translateY(0) scale(0.98);
}

#cpc .cpc-btn--ghost,
#cpc .cpc-btn--ghost:hover {
	border: 1.5px solid var(--line-2);
	background: #fff;
	box-shadow: none;
	color: var(--navy);
}

#cpc .cpc-btn--ghost:hover {
	border-color: var(--blue);
}

#cpc .cpc-btn--block {
	width: 100%;
}

#cpc .cpc-beam-sm {
	box-shadow: 0 10px 24px -8px rgba(18, 58, 143, 0.55);
	transition: transform 0.18s ease, box-shadow 0.2s ease;
}

#cpc .cpc-beam-sm:hover {
	box-shadow: 0 14px 30px -8px rgba(18, 58, 143, 0.65);
	transform: translateY(-2px);
}

#cpc .cpc-beam-sm .cpc-btn,
#cpc .cpc-beam-sm .cpc-btn:hover {
	box-shadow: none;
	transform: none;
}

#cpc .cpc-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
}

#cpc .cpc-actions--end {
	justify-content: flex-end;
}

#cpc .cpc-actions--split,
#cpc .cpc-actions--center {
	margin-top: 0;
}

#cpc .cpc-actions--split .cpc-btn {
	flex: 1;
}

#cpc .cpc-actions--center {
	justify-content: center;
}

#cpc .cpc-link {
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

#cpc .cpc-link:hover {
	color: var(--blue);
}

/* Champs */

#cpc .cpc-form {
	display: grid;
	gap: 12px;
}

#cpc .cpc-field {
	position: relative;
	display: flex;
	align-items: center;
}

#cpc .cpc-field > .cpc-ico {
	position: absolute;
	left: 15px;
	color: var(--muted-2);
	pointer-events: none;
}

#cpc .cpc-input {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 14px 12px 46px;
	border: 1px solid #d5e0ed;
	border-radius: 12px;
	outline: none;
	background: #f8faff;
	box-shadow: none;
	color: var(--navy);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: normal;
	transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
}

#cpc .cpc-input::placeholder {
	color: var(--faint);
	font-weight: 400;
}

#cpc .cpc-input:focus {
	border-color: #50aaff;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(80, 170, 255, 0.15);
	color: var(--navy);
}

#cpc .cpc-input[aria-invalid="true"] {
	border-color: #e5484d;
}

#cpc .cpc-field:has(.cpc-send) .cpc-input {
	padding-right: 58px;
}

#cpc .cpc-send {
	position: absolute;
	right: 6px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--navy-2), var(--navy) 120%);
	color: #fff;
}

#cpc .cpc-send:hover {
	background: linear-gradient(135deg, var(--navy-2), var(--navy) 120%);
	color: #fff;
	transform: translateX(2px);
}

#cpc .cpc-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: #65748a;
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

#cpc .cpc-consent input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	accent-color: var(--blue-ink);
}

#cpc .cpc-consent a {
	color: var(--blue-ink);
	font-weight: 600;
	text-decoration: underline;
}

#cpc .cpc-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

#cpc .cpc-error {
	color: #d93036;
	font-size: 12.5px;
	font-weight: 600;
}

#cpc .cpc-error:empty {
	display: none;
}

#cpc .cpc-label {
	margin-top: 2px;
	color: var(--ink-2);
	font-size: 12.5px;
	font-weight: 600;
}

#cpc .cpc-slots {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

#cpc .cpc-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 100%;
	padding: 10px 6px;
	border: 1.5px solid var(--line-2);
	border-radius: 12px;
	background: #fff;
	text-align: center;
}

#cpc .cpc-slot strong {
	color: var(--navy);
	font-size: 13px;
	font-weight: 700;
}

#cpc .cpc-slot small {
	color: var(--muted-2);
	font-size: 11.5px;
}

#cpc .cpc-slot:hover {
	border-color: var(--blue);
	background: #fff;
}

#cpc .cpc-slot[aria-pressed="true"] {
	border-color: var(--blue);
	background: var(--soft-2);
	box-shadow: 0 0 0 3px rgba(45, 108, 255, 0.12);
}

/* Dimensions sur mesure */

#cpc .cpc-dims {
	display: grid;
	gap: 12px;
}

#cpc .cpc-dims-top {
	display: flex;
	align-items: center;
	gap: 16px;
}

#cpc .cpc-pool {
	display: grid;
	flex: none;
	place-items: center;
	width: 124px;
	height: 72px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: repeating-linear-gradient(45deg, #f2f7fc 0 6px, #e9f1fa 6px 12px);
}

#cpc .cpc-pool i {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	background: linear-gradient(135deg, var(--sky), var(--blue));
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75), 0 6px 14px -6px rgba(45, 108, 255, 0.6);
	transition: width 0.5s var(--spring), height 0.5s var(--spring);
}

#cpc .cpc-pool i::after {
	content: "";
	position: absolute;
	inset: -60%;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 30%);
	animation: cpc-caustic 4s ease-in-out infinite alternate;
}

@keyframes cpc-caustic {
	to {
		transform: translate(30%, 25%);
	}
}

#cpc .cpc-dims-out strong {
	display: block;
	color: var(--navy);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

#cpc .cpc-dims-out span {
	color: var(--muted-2);
	font-size: 13px;
}

#cpc .cpc-range {
	display: grid;
	gap: 4px;
	margin: 0;
	color: var(--ink-2);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

#cpc .cpc-range-head {
	display: flex;
	justify-content: space-between;
}

#cpc .cpc-range output {
	color: var(--blue-ink);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

#cpc .cpc-range input {
	width: 100%;
	height: 6px;
	margin: 8px 0;
	padding: 0;
	border: 0;
	border-radius: 99px;
	outline: none;
	background: linear-gradient(90deg, var(--blue), var(--pool)) 0 / var(--p, 50%) 100% no-repeat, var(--line);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

#cpc .cpc-range input::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	border: 2px solid var(--blue);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 10px -2px rgba(18, 58, 143, 0.45);
	transition: transform 0.25s var(--spring);
	-webkit-appearance: none;
}

#cpc .cpc-range input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid var(--blue);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 10px -2px rgba(18, 58, 143, 0.45);
}

#cpc .cpc-range input:active::-webkit-slider-thumb {
	transform: scale(1.15);
}

#cpc .cpc-range input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 5px rgba(45, 108, 255, 0.2);
}

/* ── Récapitulatif ─────────────────────────────────────── */

#cpc .cpc-summary {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 18px;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(10px);
	box-shadow: 0 24px 50px -30px rgba(10, 27, 61, 0.3);
}

#cpc .cpc-summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#cpc .cpc-summary h2 {
	margin: 0;
	color: var(--navy);
	font-family: inherit;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

#cpc .cpc-summary-count {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--soft-2);
	color: var(--blue-ink);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

#cpc .cpc-summary-steps {
	display: grid;
	gap: 2px;
}

#cpc .cpc-summary-steps li {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 7px 0;
}

#cpc .cpc-summary-steps li:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 39px;
	bottom: -5px;
	left: 13px;
	width: 2px;
	border-radius: 2px;
	background: var(--line);
	transition: background 0.4s;
}

#cpc .cpc-summary-steps li.is-done:not(:last-child)::before {
	background: linear-gradient(180deg, var(--blue), var(--pool));
}

#cpc .cpc-summary-num {
	display: grid;
	flex: none;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(38, 99, 204, 0.12);
	border-radius: 50%;
	background: var(--soft-2);
	color: var(--blue-ink);
	font-size: 12px;
	font-weight: 700;
	transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

#cpc .cpc-summary-num .cpc-ico {
	width: 14px;
	height: 14px;
}

#cpc li.is-current .cpc-summary-num {
	border-color: var(--blue);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(45, 108, 255, 0.14);
	animation: cpc-pulse 2s ease-in-out infinite;
}

#cpc li.is-done .cpc-summary-num {
	border-color: transparent;
	background: linear-gradient(135deg, var(--blue), var(--pool));
	color: #fff;
}

@keyframes cpc-pulse {
	50% {
		box-shadow: 0 0 0 7px rgba(45, 108, 255, 0.06);
	}
}

#cpc .cpc-summary-steps strong {
	display: block;
	color: var(--navy);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
}

#cpc .cpc-summary-val {
	display: block;
	color: var(--faint);
	font-size: 12.5px;
	line-height: 1.45;
}

#cpc li.has-value .cpc-summary-val {
	color: var(--muted);
}

#cpc .cpc-teaser {
	position: relative;
	overflow: hidden;
	padding: 18px;
	border-radius: 16px;
	background:
		radial-gradient(circle at 15% 20%, rgba(45, 108, 255, 0.45), transparent 50%),
		radial-gradient(circle at 90% 90%, rgba(0, 194, 209, 0.35), transparent 55%),
		linear-gradient(160deg, var(--navy), #0e245a);
	color: #fff;
}

#cpc .cpc-teaser-eyebrow {
	color: var(--yellow);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

#cpc .cpc-teaser-value {
	margin: 8px 0 6px;
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
	transition: filter 0.9s ease, opacity 0.9s ease;
}

#cpc .cpc-teaser[data-locked] .cpc-teaser-value {
	filter: blur(7px);
	opacity: 0.75;
	user-select: none;
}

#cpc .cpc-teaser-lock {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #a9c0e8;
	font-size: 12px;
	overflow-wrap: anywhere;
}

#cpc .cpc-teaser-lock .cpc-ico {
	width: 14px;
	height: 14px;
}

#cpc .cpc-assurances {
	display: grid;
	gap: 8px;
}

#cpc .cpc-assurances li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 12.5px;
}

#cpc .cpc-assurances li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--soft-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232663CC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

#cpc .cpc-noscript {
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	text-align: center;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 960px) {
	#cpc {
		padding: 40px 20px 24px;
		border-radius: 24px;
	}

	#cpc .cpc-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	#cpc .cpc-summary {
		position: static;
	}
}

@media (max-width: 600px) {
	#cpc {
		margin: 12px 0 32px;
		padding: 32px 10px 10px;
		border-radius: 20px;
	}

	#cpc .cpc-hero {
		margin-bottom: 28px;
		padding: 0 6px;
	}

	#cpc .cpc-lead {
		font-size: 15.5px;
	}

	#cpc .cpc-trust {
		gap: 6px;
	}

	#cpc .cpc-trust li {
		padding: 6px 11px;
		font-size: 12px;
	}

	#cpc .cpc-chat {
		height: 82vh;
		height: 82dvh;
		min-height: 540px;
		max-height: 760px;
	}

	#cpc .cpc-chat-head {
		gap: 10px;
		padding: 12px 14px;
	}

	#cpc .cpc-avatar {
		width: 40px;
		height: 40px;
	}

	#cpc .cpc-chat-id strong {
		font-size: 14px;
	}

	#cpc .cpc-chat-id span {
		display: none;
	}

	#cpc .cpc-progress-bar i {
		width: 14px;
	}

	#cpc .cpc-log {
		padding: 18px 14px 10px;
	}

	#cpc .cpc-msg {
		max-width: 88%;
		font-size: 14px;
	}

	#cpc .cpc-composer {
		padding: 12px 14px 14px;
	}

	#cpc .cpc-options {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	#cpc .cpc-option {
		gap: 10px;
		padding: 9px 12px;
	}

	#cpc .cpc-option > .cpc-ico {
		width: 34px;
		height: 34px;
		padding: 8px;
		border-radius: 10px;
	}

	#cpc .cpc-slots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#cpc .cpc-actions--split {
		flex-direction: column;
		align-items: stretch;
	}

	#cpc .cpc-estimate {
		padding: 18px;
	}

	#cpc .cpc-summary {
		padding: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#cpc *,
	#cpc *::before,
	#cpc *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
