/*
 * Le copilote commercial (03/11/2026, docs/BACKLOG-COPILOT.md) : chaque voiture du stock
 * comparée à ses semblables du marché, et l'action qui va avec. La fiche d'exemple du
 * héros, le problème, les trois étapes, les services (décider, agir), la règle de
 * validation et l'offre « analyse gratuite du stock ». Couleurs et espacements de
 * v3.css, cartes au même rayon que le reste de la page.
 */

/* ---------- Héros : la fiche du copilote à droite ---------- */
@media (min-width: 1024px) {
	.hero--copilot .hero-grid {
		grid-template-columns: minmax(0, 1fr) 440px;
		gap: var(--sp-700);
	}
}
.hero--copilot .hero-title {
	max-width: 640px;
}
.hero-card {
	display: flex;
	justify-content: center;
}
.cop-card {
	position: relative;
	display: grid;
	gap: var(--sp-200);
	width: 100%;
	max-width: 440px;
	padding: var(--sp-300);
	border: 1px solid var(--line);
	border-radius: var(--r-3xl);
	background: var(--bg-1);
	box-shadow:
		0 30px 80px -30px rgba(255, 210, 74, 0.18),
		0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.cop-sample {
	position: absolute;
	top: calc(-1 * var(--sp-100));
	right: var(--sp-300);
	padding: var(--sp-25) var(--sp-100);
	border: 1px solid var(--line);
	border-radius: var(--r-full);
	background: var(--bg-3);
	color: var(--text-dim);
	font-size: var(--fs-xs);
	line-height: var(--lh-xs);
}
.cop-car {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: var(--sp-200);
	align-items: center;
}
.cop-car img {
	width: 72px;
	height: 54px;
	border-radius: var(--r-lg);
	object-fit: cover;
}
.cop-name {
	font-weight: 600;
	font-size: var(--fs-base);
	line-height: var(--lh-base);
}
.cop-specs {
	color: var(--text-dim);
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
}
.cop-price {
	color: var(--gold);
	font-weight: 700;
	font-size: var(--fs-lg);
	line-height: var(--lh-lg);
	white-space: nowrap;
}
.cop-peers {
	padding-top: var(--sp-200);
	border-top: 1px solid var(--line);
	color: var(--text-muted);
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
}
.cop-peers b {
	color: var(--text);
	font-weight: 600;
}
/* L'échelle des prix des semblables, le point doré pour la voiture du garage. */
.cop-track {
	position: relative;
	height: 8px;
	border-radius: var(--r-full);
	background: linear-gradient(90deg, var(--bg-3), var(--bg-4) 50%, var(--bg-3));
}
.cop-dot {
	position: absolute;
	top: 50%;
	left: var(--at);
	width: 18px;
	height: 18px;
	border: 3px solid var(--bg-1);
	border-radius: var(--r-full);
	background: var(--gold);
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 4px rgba(255, 210, 74, 0.2);
}
.cop-ends {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-100);
	margin-top: var(--sp-75);
	color: var(--text-dim);
	font-size: var(--fs-xs);
	line-height: var(--lh-xs);
}
.cop-facts {
	display: grid;
	gap: var(--sp-75);
	margin: 0;
}
.cop-facts div {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-200);
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
}
.cop-facts dt {
	color: var(--text-muted);
}
.cop-facts dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}
.cop-facts dd.is-good {
	color: #6fdc8c;
}
.cop-facts dd.is-warn {
	color: #ffa95c;
}
.cop-action {
	display: grid;
	gap: var(--sp-75);
	padding: var(--sp-200);
	border: 1px solid var(--gold-line);
	border-radius: var(--r-2xl);
	background: var(--bg-warm);
}
.cop-action-label {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-75);
	color: var(--gold);
	font-weight: 600;
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
}
.cop-action-label svg {
	width: 16px;
	height: 16px;
}
.cop-action-text {
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
}
.cop-buttons {
	display: flex;
	gap: var(--sp-75);
	margin-top: var(--sp-50);
}
.cop-btn {
	padding: var(--sp-75) var(--sp-200);
	border: 1px solid var(--line);
	border-radius: var(--r-full);
	color: var(--text-muted);
	font-weight: 600;
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
}
.cop-btn.is-gold {
	border-color: var(--gold);
	background: var(--gold);
	color: var(--gold-ink);
}

/* ---------- Le problème : les trois questions du garagiste ---------- */
.instinct {
	background: var(--bg-1);
}
.instinct .section-head {
	margin-bottom: var(--sp-400);
}
.pain-questions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-200);
	margin: 0;
	padding: 0;
	list-style: none;
}
.pain-questions li {
	padding: var(--sp-300);
	border: 1px solid var(--line);
	border-radius: var(--r-3xl);
	background: var(--bg);
	font-weight: 600;
	font-size: var(--fs-xl);
	line-height: var(--lh-xl);
	letter-spacing: -0.01em;
}
.pain-questions li::before {
	content: '« ';
	color: var(--gold);
}
.pain-questions li::after {
	content: ' »';
	color: var(--gold);
}
:lang(en) .pain-questions li::before,
:lang(nl) .pain-questions li::before {
	content: '“';
}
:lang(en) .pain-questions li::after,
:lang(nl) .pain-questions li::after {
	content: '”';
}
.pain-answer {
	max-width: 680px;
	margin-top: var(--sp-400);
	color: var(--text-muted);
	font-size: var(--fs-lg);
	line-height: var(--lh-lg);
}

/* ---------- Il lit, il compare, il propose ---------- */
.how-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-300);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.how-step {
	display: grid;
	align-content: start;
	gap: var(--sp-100);
	padding-top: var(--sp-300);
	border-top: 2px solid var(--gold-line);
}
.how-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-bottom: var(--sp-75);
	border-radius: var(--r-full);
	background: var(--gold);
	color: var(--gold-ink);
	font-weight: 700;
}
.how-step h3,
.service-card h4,
.copilot-rule h3 {
	margin: 0;
	font-size: var(--fs-xl);
	line-height: var(--lh-xl);
	letter-spacing: -0.02em;
}
.how-step p,
.service-card p,
.copilot-rule p {
	color: var(--text-muted);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
}

/* ---------- Ce que fait le copilote : décider, agir ---------- */
.services {
	background: var(--bg-warm);
}
.service-group + .service-group {
	margin-top: var(--sp-500);
}
.service-group-title {
	margin-bottom: var(--sp-200);
	color: var(--gold);
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.service-grid {
	display: grid;
	gap: var(--sp-200);
	margin: 0;
	padding: 0;
	list-style: none;
}
.service-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-card {
	display: flex;
	flex-direction: column;
	gap: var(--sp-100);
	padding: var(--sp-300);
	border: 1px solid var(--line);
	border-radius: var(--r-3xl);
	background: var(--bg-1);
}
.copilot-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: var(--sp-75);
	border: 1px solid var(--gold-line);
	border-radius: var(--r-xl);
	background: var(--bg-warm);
	color: var(--gold);
}
.copilot-icon svg {
	width: 26px;
	height: 26px;
}

/* ---------- La règle : il propose, vous décidez ---------- */
.copilot-rule {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--sp-300);
	align-items: center;
	margin-top: var(--sp-500);
	padding: var(--sp-400);
	border: 1px solid var(--gold);
	border-radius: var(--r-3xl);
	background:
		linear-gradient(120deg, rgba(255, 210, 74, 0.12), rgba(255, 210, 74, 0.02) 60%), var(--bg-1);
}
.copilot-rule .copilot-icon {
	width: 56px;
	height: 56px;
	margin-bottom: 0;
	border: 0;
	background: var(--gold);
	color: var(--gold-ink);
}
.copilot-rule h3 {
	font-size: var(--fs-2xl);
	line-height: var(--lh-2xl);
}
.copilot-rule p {
	max-width: 720px;
	margin-top: var(--sp-75);
}

/* ---------- L'offre : l'analyse gratuite du stock ---------- */
.analysis-card {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: var(--sp-600);
	align-items: center;
	padding: clamp(28px, 5vw, 56px);
	border: 1px solid var(--gold-line);
	border-radius: var(--r-3xl);
	background: var(--bg-warm);
}
.analysis-copy .section-title {
	max-width: 520px;
}
.analysis-side {
	display: grid;
	justify-items: start;
	gap: var(--sp-200);
}
.analysis-list {
	display: grid;
	gap: var(--sp-100);
	margin: 0 0 var(--sp-100);
	padding: 0;
	list-style: none;
}
.analysis-list li {
	display: flex;
	align-items: center;
	gap: var(--sp-100);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
}
.analysis-list svg {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--gold);
}
.analysis-side .offer-note {
	color: var(--text-dim);
	font-size: var(--fs-sm);
	line-height: var(--lh-sm);
}

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1023px) {
	.service-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 900px) {
	.pain-questions,
	.how-steps,
	.service-grid--3,
	.analysis-card {
		grid-template-columns: 1fr;
	}
	.analysis-card {
		gap: var(--sp-400);
	}
}
@media (max-width: 600px) {
	.service-grid--4 {
		grid-template-columns: 1fr;
	}
	.cop-card {
		padding: var(--sp-200);
	}
	.cop-sample {
		right: var(--sp-200);
	}
	.cop-car {
		grid-template-columns: 56px minmax(0, 1fr) auto;
		gap: var(--sp-100);
	}
	.cop-car img {
		width: 56px;
		height: 42px;
	}
	.pain-questions li {
		font-size: var(--fs-lg);
		line-height: var(--lh-lg);
	}
	.copilot-rule {
		grid-template-columns: 1fr;
		gap: var(--sp-200);
		padding: var(--sp-300);
	}
}
