/* GAP VIN Decoder : tout est scopé sous .gap-vin-wrap */

.gap-vin-wrap {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a2e;
	line-height: 1.7;
}

.gap-vin-intro p {
	font-size: 16px;
	margin-bottom: 24px;
}

/* ── Cartes étapes ─────────────────────────────────────── */

.gap-vin-card {
	background: linear-gradient(160deg, #0f0f1e 0%, #16213e 100%);
	border: 1px solid rgba(212, 168, 67, .3);
	border-radius: 12px;
	padding: 28px 30px;
	margin-bottom: 22px;
	color: #e2e5ea;
}

.gap-vin-card h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px;
	color: #fff;
	font-size: 20px;
}

.gap-vin-stepnum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 50%;
	background: linear-gradient(135deg, #d4a843 0%, #b8922e 100%);
	color: #0f0f1e;
	font-size: 15px;
	font-weight: 800;
}

.gap-vin-help {
	font-size: 13.5px;
	color: #8f97a6;
	margin: 0 0 16px;
}

.gap-vin-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.gap-vin-wrap input[type="text"],
.gap-vin-wrap textarea,
.gap-vin-wrap select {
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 6px;
	color: #fff;
	padding: 12px 14px;
	font-size: 15px;
	letter-spacing: .06em;
}

.gap-vin-wrap input[type="text"] {
	flex: 1;
	min-width: 240px;
	font-family: "SF Mono", Menlo, Consolas, monospace;
	text-transform: uppercase;
}

.gap-vin-wrap textarea {
	width: 100%;
	font-family: "SF Mono", Menlo, Consolas, monospace;
	text-transform: uppercase;
	margin-bottom: 14px;
	resize: vertical;
}

.gap-vin-wrap input:focus,
.gap-vin-wrap textarea:focus,
.gap-vin-wrap select:focus {
	outline: none;
	border-color: #d4a843;
}

.gap-vin-btn {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid #d4a843;
	border-radius: 6px;
	background: transparent;
	color: #d4a843;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease;
}

.gap-vin-btn:hover {
	background: #d4a843;
	color: #0f0f1e;
}

.gap-vin-btn-gold {
	background: linear-gradient(135deg, #d4a843 0%, #b8922e 100%);
	color: #0f0f1e;
	border: 0;
}

.gap-vin-btn-gold:hover {
	filter: brightness(1.08);
	background: linear-gradient(135deg, #d4a843 0%, #b8922e 100%);
	color: #0f0f1e;
}

/* ── Résultat identification ───────────────────────────── */

.gap-vin-result {
	margin-top: 18px;
}

.gap-vin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}

.gap-vin-grid > div {
	background: rgba(255, 255, 255, .06);
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
}

.gap-vin-grid strong {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #d4a843;
	margin-bottom: 4px;
}

.gap-vin-error { color: #fca5a5; margin: 0; }
.gap-vin-warn { color: #fcd34d; font-size: 13.5px; margin: 12px 0 0; }

.gap-vin-selects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

.gap-vin-selects label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #8f97a6;
}

.gap-vin-selects select { width: 100%; }

/* ── Rapport (document blanc) ──────────────────────────── */

.gap-vin-report-actions {
	text-align: right;
	margin-bottom: 12px;
}

.gap-vin-doc {
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(15, 15, 30, .12);
	padding: 40px 44px;
}

.gap-vin-doc-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 2px solid #1a1a2e;
	padding-bottom: 16px;
	margin-bottom: 20px;
}

.gap-vin-doc-brand {
	font-size: 15px;
	font-weight: 300;
	letter-spacing: .25em;
	color: #1a1a2e;
	line-height: 1.3;
}

.gap-vin-doc-brand span {
	font-weight: 800;
	color: #b8922e;
}

.gap-vin-doc-title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a2e;
	text-align: center;
	flex: 1;
	padding-top: 6px;
}

.gap-vin-doc-date {
	font-size: 13px;
	color: #6b7280;
	padding-top: 8px;
}

.gap-vin-doc-vehicle { text-align: center; margin-bottom: 26px; }
.gap-vin-doc-desc { font-size: 15.5px; }
.gap-vin-doc-sub { font-size: 13px; color: #6b7280; margin-top: 4px; }
.gap-vin-doc-base { font-size: 14px; margin-top: 10px; }

.gap-vin-doc-section {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-bottom: 1px solid #1a1a2e;
	padding-bottom: 4px;
	margin-bottom: 2px;
}

.gap-vin-doc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.gap-vin-doc-table td {
	padding: 7px 10px;
	border-bottom: 1px solid #e8eaef;
	vertical-align: top;
}

.gap-vin-doc-table .c-code {
	width: 70px;
	font-family: "SF Mono", Menlo, Consolas, monospace;
	font-weight: 600;
	white-space: nowrap;
}

.gap-vin-doc-table .c-price {
	width: 120px;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.gap-vin-doc-table .c-dot { color: #1a1a2e; font-size: 11px; }
.gap-vin-doc-table .r-unknown td { color: #9ca3af; }
.gap-vin-doc-table em { color: #6b7280; font-size: 12px; }

.gap-vin-doc-note {
	font-size: 12px;
	color: #6b7280;
	margin: 10px 0 0;
}

.gap-vin-doc-totals {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.gap-vin-doc-totals > div {
	display: flex;
	gap: 28px;
	font-size: 14.5px;
}

.gap-vin-doc-totals .t-final {
	border-top: 2px solid #1a1a2e;
	padding-top: 8px;
	font-size: 16px;
}

.gap-vin-doc-totals strong { min-width: 130px; text-align: right; }

.gap-vin-doc-foot {
	margin-top: 34px;
	padding-top: 12px;
	border-top: 1px solid #e2e5ea;
	font-size: 11.5px;
	color: #9ca3af;
	text-align: center;
}

/* ── Divers ────────────────────────────────────────────── */

.gap-vin-disclaimer {
	margin-top: 28px;
	padding: 18px 22px;
	background: #f5f6f8;
	border-left: 4px solid #d4a843;
	border-radius: 0 8px 8px 0;
	font-size: 13px;
	color: #374151;
}

.gap-vin-cta {
	margin-top: 20px;
	text-align: center;
	font-size: 15px;
}

.gap-vin-cta a { color: #066aab; font-weight: 600; }

@media (max-width: 640px) {
	.gap-vin-card { padding: 20px 18px; }
	.gap-vin-doc { padding: 24px 18px; }
	.gap-vin-doc-head { flex-direction: column; align-items: center; text-align: center; }
	.gap-vin-doc-table .c-price { width: 90px; }
}

/* ── Impression : ne sortir que le rapport ─────────────── */

@media print {
	body.gap-vin-printing * { visibility: hidden; }
	body.gap-vin-printing .gap-vin-doc,
	body.gap-vin-printing .gap-vin-doc * { visibility: visible; }
	body.gap-vin-printing .gap-vin-doc {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		box-shadow: none;
		border: 0;
		padding: 10mm 8mm;
	}
}
