/* PROFORMA – design autonome (aucun héritage du thème).
   Système « guichet premium » : feuille blanche sur fond gris doux,
   bleu de marque #014aad (« Blue Auto Export ») pour chaque action,
   Inter auto-hébergée, une seule question par écran. */

/* ---------- Police (auto-hébergée, aucun appel externe) ---------- */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
}

/* ---------- Jetons ---------- */

.pf {
	/* Palette */
	--pf-bg: #ffffff;
	--pf-page: #f6f7f9;
	--pf-fg: #0a0a0a;
	--pf-muted: #f4f5f7;
	--pf-muted-fg: #6b7280;
	--pf-border: #e6e7eb;
	--pf-border-strong: #d3d5db;

	--pf-accent: #014aad;
	--pf-accent-hover: #013c8c;
	--pf-accent-soft: #eff5ff;
	--pf-accent-ring: rgba(1, 74, 173, 0.16);

	--pf-ok-bg: #ecfdf5;
	--pf-ok-fg: #047857;
	--pf-destructive: #dc2626;
	--pf-err-bg: #fef2f2;
	--pf-err-border: #fecaca;

	/* Formes et rythme */
	--pf-radius: 12px;
	--pf-radius-card: 16px;
	--pf-radius-pill: 9999px;
	--pf-ring: 0 0 0 4px var(--pf-accent-ring);
	--pf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--pf-shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.08);
	--pf-transition: 0.15s ease;

	--pf-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	font-family: var(--pf-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--pf-fg);
	background: var(--pf-bg);
	max-width: 640px;
	margin: 0 auto;
	padding: 28px 20px 56px;
	-webkit-font-smoothing: antialiased;
}

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

/* Le header du site charge le CSS du thème sur cette page, dont une règle
   `body, textarea, input, button { font-family:'Poppins' !important }` :
   le !important est nécessaire ici pour garder la police du formulaire. */
.pf,
.pf h2,
.pf h3,
.pf p,
.pf ul,
.pf ol,
.pf li,
.pf label,
.pf input,
.pf textarea,
.pf select,
.pf button,
.pf a {
	font-family: var(--pf-font) !important;
}

.pf h2,
.pf h3 {
	line-height: 1.25;
}

.pf [hidden] {
	display: none !important;
}

.pf-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Titres ---------- */

.pf-kicker {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pf-accent);
}

.pf-title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--pf-fg);
}

.pf-subtitle {
	margin: 0 0 32px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--pf-muted-fg);
}

.pf-hint {
	margin: 0 0 24px;
	font-size: 13px;
	color: var(--pf-muted-fg);
}

/* ---------- Barre de progression (segments) ---------- */

.pf-progress {
	display: flex;
	gap: 6px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}

.pf-progress__step {
	flex: 1;
	min-width: 0;
}

.pf-progress__btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 0 0;
	border: 0;
	background: none;
	cursor: default;
	text-align: left;
	position: relative;
	-webkit-tap-highlight-color: transparent;
}

.pf-progress__btn::before {
	content: '';
	position: absolute;
	top: 6px;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: var(--pf-radius-pill);
	background: var(--pf-border);
	transition: background 0.3s ease;
}

.pf-progress__step.is-active .pf-progress__btn::before,
.pf-progress__step.is-done .pf-progress__btn::before {
	background: var(--pf-accent);
}

.pf-progress__step.is-done .pf-progress__btn:not(:disabled) {
	cursor: pointer;
}

.pf-progress__btn:focus-visible {
	outline: none;
}

.pf-progress__btn:focus-visible::before {
	box-shadow: var(--pf-ring);
}

/* Les numéros restent pour les lecteurs d'écran. */
.pf-progress__num {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.pf-progress__label {
	display: none;
	font-size: 12px;
	font-weight: 600;
	color: var(--pf-muted-fg);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pf-progress__step.is-active .pf-progress__label {
	color: var(--pf-accent);
}

@media (min-width: 480px) {
	.pf-progress__label {
		display: block;
	}
}

/* ---------- Étapes ---------- */

@keyframes pf-step-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.pf-step.is-active {
	animation: pf-step-in 0.3s cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Gros boutons (étape 1) ---------- */

.pf-condition {
	display: grid;
	gap: 12px;
}

.pf-bigbtn {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 76px;
	padding: 18px 20px;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-card);
	background: var(--pf-bg);
	color: var(--pf-fg);
	font-size: 16px;
	text-align: left;
	cursor: pointer;
	transition: border-color var(--pf-transition), background var(--pf-transition), box-shadow var(--pf-transition);
	-webkit-tap-highlight-color: transparent;
}

.pf-bigbtn:hover {
	border-color: var(--pf-border-strong);
	box-shadow: var(--pf-shadow-sm);
}

.pf-bigbtn:focus-visible {
	outline: none;
	border-color: var(--pf-accent);
	box-shadow: var(--pf-ring);
}

.pf-bigbtn.is-selected {
	border-color: var(--pf-accent);
	background: var(--pf-accent-soft);
	box-shadow: inset 0 0 0 1px var(--pf-accent);
}

.pf-bigbtn__label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pf-bigbtn__text {
	font-size: 17px;
	font-weight: 600;
}

.pf-bigbtn__desc {
	font-size: 14px;
	color: var(--pf-muted-fg);
}

.pf-bigbtn__arrow {
	margin-left: auto;
	font-size: 18px;
	color: var(--pf-muted-fg);
	transition: transform var(--pf-transition), color var(--pf-transition);
}

.pf-bigbtn:hover .pf-bigbtn__arrow,
.pf-bigbtn.is-selected .pf-bigbtn__arrow {
	color: var(--pf-accent);
	transform: translateX(2px);
}

.pf-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--pf-muted);
	color: var(--pf-fg);
	transition: background var(--pf-transition), color var(--pf-transition);
}

.pf-chip svg {
	width: 22px;
	height: 22px;
}

.pf-bigbtn.is-selected .pf-chip {
	background: var(--pf-accent);
	color: #ffffff;
}

/* Variante empilée (étape « Livraison ») : une carte par ligne,
   pleine largeur, y compris sur grand écran. */
.pf-condition--stack {
	grid-template-columns: 1fr;
}

/* ---------- Question secondaire (procédure, payeur) ---------- */

.pf-procedure {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--pf-border);
}

.pf-procedure__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: var(--pf-fg);
}

.pf-procedure .pf-hint {
	margin-bottom: 16px;
}

.pf-options {
	display: grid;
	gap: 10px;
}

.pf-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 14px 18px;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius);
	background: var(--pf-bg);
	color: var(--pf-fg);
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: border-color var(--pf-transition), background var(--pf-transition), box-shadow var(--pf-transition);
	-webkit-tap-highlight-color: transparent;
}

.pf-option:hover {
	border-color: var(--pf-border-strong);
}

.pf-option:focus-visible {
	outline: none;
	border-color: var(--pf-accent);
	box-shadow: var(--pf-ring);
}

.pf-option.is-selected {
	border-color: var(--pf-accent);
	background: var(--pf-accent-soft);
	box-shadow: inset 0 0 0 1px var(--pf-accent);
	font-weight: 600;
}

.pf-option.is-selected::after {
	content: '';
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: var(--pf-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px 12px;
}

/* ---------- Recherche (étape 2) ---------- */

.pf-search {
	margin: 0 0 24px;
}

/* Conteneur relatif séparé : la ligne de statut sous le champ ne doit pas
   fausser le centrage vertical (top: 50%) de l'icône et du bouton effacer. */
.pf-search__box {
	position: relative;
}

.pf-search__icon {
	position: absolute;
	top: 50%;
	left: 18px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: var(--pf-muted-fg);
	pointer-events: none;
	transition: color var(--pf-transition);
}

.pf-search__box:focus-within .pf-search__icon {
	color: var(--pf-accent);
}

.pf-input--search {
	padding-left: 48px;
	padding-right: 52px;
	border-radius: var(--pf-radius-pill);
}

.pf-input--search::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.pf-search__clear {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--pf-muted-fg);
	cursor: pointer;
	transition: background var(--pf-transition), color var(--pf-transition);
	-webkit-tap-highlight-color: transparent;
}

.pf-search__clear:hover {
	background: var(--pf-muted);
	color: var(--pf-fg);
}

.pf-search__clear:focus-visible {
	outline: none;
	box-shadow: var(--pf-ring);
}

.pf-search__clear svg {
	width: 16px;
	height: 16px;
}

.pf-search__status {
	margin: 8px 4px 0;
	font-size: 13px;
	color: var(--pf-muted-fg);
}

.pf-search__status:empty {
	display: none;
}

/* ---------- Marques ---------- */

.pf-brands {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.pf-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-height: 68px;
	padding: 14px 16px;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius);
	background: var(--pf-bg);
	color: var(--pf-fg);
	text-align: left;
	cursor: pointer;
	transition: border-color var(--pf-transition), box-shadow var(--pf-transition), transform var(--pf-transition);
	-webkit-tap-highlight-color: transparent;
}

.pf-brand:hover {
	border-color: var(--pf-border-strong);
	box-shadow: var(--pf-shadow-sm);
	transform: translateY(-1px);
}

.pf-brand:focus-visible {
	outline: none;
	border-color: var(--pf-accent);
	box-shadow: var(--pf-ring);
}

.pf-brand__name {
	font-size: 15px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.pf-brand__count {
	font-size: 13px;
	color: var(--pf-muted-fg);
}

/* ---------- Sous-titres de vue (étape 2) ---------- */

.pf-subhead {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

#pf-selected-view .pf-subhead {
	margin-bottom: 4px;
}

/* Une fois le véhicule confirmé, la consigne de recherche n'a plus lieu d'être. */
.pf-step[data-pf-step='2']:has(#pf-selected-view:not([hidden])) .pf-step2-sub {
	display: none;
}

/* ---------- Lien retour ---------- */

.pf-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 16px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--pf-muted-fg);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: color var(--pf-transition);
}

.pf-link:hover {
	color: var(--pf-fg);
}

.pf-link:focus-visible {
	outline: none;
	border-radius: 6px;
	box-shadow: var(--pf-ring);
}

/* ---------- Cartes véhicule ---------- */

.pf-cards {
	display: grid;
	gap: 14px;
}

.pf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-card);
	background: var(--pf-bg);
	color: var(--pf-fg);
	text-align: left;
	overflow: hidden;
	cursor: pointer;
	transition: border-color var(--pf-transition), box-shadow var(--pf-transition), transform var(--pf-transition);
	-webkit-tap-highlight-color: transparent;
}

.pf-card:hover {
	border-color: var(--pf-border-strong);
	box-shadow: var(--pf-shadow-lift);
	transform: translateY(-2px);
}

.pf-card:focus-visible {
	outline: none;
	border-color: var(--pf-accent);
	box-shadow: var(--pf-ring);
}

.pf-card.is-selected {
	border-color: var(--pf-accent);
	background: var(--pf-accent-soft);
	box-shadow: inset 0 0 0 1px var(--pf-accent);
}

.pf-card__media {
	position: relative;
	display: block;
	width: 100%;
}

.pf-card__photo {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	background: var(--pf-muted);
}

.pf-card__photo--empty {
	aspect-ratio: 16 / 10;
	background: var(--pf-muted);
}

@keyframes pf-check-pop {
	from {
		transform: scale(0.6);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.pf-card__check {
	position: absolute;
	top: 12px;
	right: 12px;
	display: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--pf-accent);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(1, 74, 173, 0.35);
}

.pf-card__check svg {
	width: 16px;
	height: 16px;
}

.pf-card.is-selected .pf-card__check {
	display: inline-flex;
	animation: pf-check-pop 0.15s ease-out;
}

.pf-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
}

.pf-card__badge {
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: var(--pf-radius-pill);
	background: var(--pf-accent-soft);
	box-shadow: inset 0 0 0 1px rgba(1, 74, 173, 0.25);
	color: var(--pf-accent);
	font-size: 12px;
	font-weight: 600;
}

.pf-card.is-selected .pf-card__badge {
	background: #ffffff;
}

.pf-card__name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}

.pf-card__version {
	font-size: 13px;
	color: var(--pf-muted-fg);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pf-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
}

.pf-card__year {
	padding: 3px 10px;
	border-radius: var(--pf-radius-pill);
	background: var(--pf-muted);
	color: var(--pf-muted-fg);
	font-size: 13px;
	font-weight: 500;
}

.pf-card.is-selected .pf-card__year {
	background: #ffffff;
}

.pf-card__price {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.pf-card__ht {
	font-size: 12px;
	font-weight: 500;
	color: var(--pf-muted-fg);
}

/* Récapitulatif du véhicule sélectionné */

.pf-card--summary {
	cursor: default;
}

.pf-card--summary:hover {
	transform: none;
	box-shadow: inset 0 0 0 1px var(--pf-accent);
}

@media (min-width: 480px) {
	.pf-card--summary {
		flex-direction: row;
		align-items: stretch;
	}

	.pf-card--summary .pf-card__media {
		width: 44%;
		flex: none;
	}

	.pf-card--summary .pf-card__photo,
	.pf-card--summary .pf-card__photo--empty {
		height: 100%;
		aspect-ratio: auto;
		min-height: 150px;
	}

	.pf-card--summary .pf-card__body {
		justify-content: center;
		padding: 20px;
	}
}

/* ---------- État vide ---------- */

.pf-empty {
	margin: 8px 0 0;
	padding: 40px 24px;
	border: 1px dashed var(--pf-border-strong);
	border-radius: var(--pf-radius-card);
	color: var(--pf-muted-fg);
	font-size: 15px;
	text-align: center;
}

/* ---------- Champs ---------- */

.pf-field {
	margin: 0 0 20px;
}

.pf-field-row {
	display: grid;
	gap: 0 16px;
}

@media (min-width: 480px) {
	.pf-field-row {
		grid-template-columns: 1fr 1fr;
	}
}

.pf-label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pf-fg);
}

.pf-field .pf-hint {
	margin: 6px 0 0;
}

.pf-input {
	display: block;
	width: 100%;
	min-height: 56px;
	padding: 14px 18px;
	border: 1px solid var(--pf-border-strong);
	border-radius: var(--pf-radius);
	background: var(--pf-bg);
	color: var(--pf-fg);
	font-size: 16px;
	line-height: 1.4;
	transition: border-color var(--pf-transition), box-shadow var(--pf-transition);
	appearance: none;
}

.pf-input::placeholder {
	color: #9ca3af;
}

.pf-input:focus,
.pf-input:focus-visible {
	outline: none;
	border-color: var(--pf-accent);
	box-shadow: var(--pf-ring);
}

.pf-input--area {
	min-height: 96px;
	resize: vertical;
}

.pf-input.is-invalid {
	border-color: var(--pf-destructive);
	background: var(--pf-err-bg);
}

.pf-input.is-invalid:focus,
.pf-input.is-invalid:focus-visible {
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

/* ---------- Note d'information ---------- */

.pf-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 4px 0 24px;
	padding: 14px 16px;
	border-radius: var(--pf-radius);
	background: var(--pf-muted);
	color: var(--pf-muted-fg);
	font-size: 14px;
	line-height: 1.5;
}

.pf-note strong {
	color: var(--pf-fg);
	font-weight: 600;
}

.pf-note .pf-chip {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #ffffff;
	color: var(--pf-accent);
}

.pf-note .pf-chip svg {
	width: 18px;
	height: 18px;
}

/* ---------- Erreurs ---------- */

.pf-error {
	margin: 20px 0 0;
	padding: 12px 16px;
	border-left: 3px solid var(--pf-destructive);
	border-radius: 0 var(--pf-radius) var(--pf-radius) 0;
	background: var(--pf-err-bg);
	color: #991b1b;
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Boutons de navigation ---------- */

.pf-nav {
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
	margin-top: 32px;
}

.pf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 14px 28px;
	border: 0;
	border-radius: var(--pf-radius-pill);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--pf-transition), color var(--pf-transition), transform var(--pf-transition), box-shadow var(--pf-transition);
	-webkit-tap-highlight-color: transparent;
}

.pf-btn:focus-visible {
	outline: none;
	box-shadow: var(--pf-ring);
}

.pf-btn--primary {
	background: var(--pf-accent);
	color: #ffffff;
}

.pf-btn--primary:hover {
	background: var(--pf-accent-hover);
}

.pf-btn--primary:active {
	transform: scale(0.985);
}

.pf-btn--primary:disabled {
	background: var(--pf-border);
	color: #9ca3af;
	cursor: not-allowed;
	transform: none;
}

/* « Retour » : simple lien texte, volontairement discret. */
.pf-btn--ghost {
	min-height: 48px;
	padding: 10px 16px;
	background: none;
	color: var(--pf-muted-fg);
	font-weight: 500;
}

.pf-btn--ghost::before {
	content: '\2190';
	font-size: 17px;
	line-height: 1;
}

.pf-btn--ghost:hover {
	color: var(--pf-fg);
	background: var(--pf-muted);
}

/* « Changer de véhicule » garde son libellé sans flèche trompeuse. */
#pf-change-car::before {
	content: none;
}

@keyframes pf-spin {
	to {
		transform: rotate(360deg);
	}
}

.pf-btn.is-loading {
	opacity: 0.85;
}

.pf-btn.is-loading::after {
	content: '';
	width: 18px;
	height: 18px;
	flex: none;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	animation: pf-spin 0.7s linear infinite;
}

/* ---------- Écran de confirmation ---------- */

@keyframes pf-pop {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}
	70% {
		transform: scale(1.08);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.pf-thanks {
	padding: 40px 0 24px;
	text-align: center;
}

.pf-thanks__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin: 0 auto 28px;
	border-radius: 50%;
	background: var(--pf-ok-bg);
	color: var(--pf-ok-fg);
	animation: pf-pop 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.pf-thanks__icon svg {
	width: 40px;
	height: 40px;
}

.pf-thanks__ref {
	display: inline-block;
	margin: 4px auto 12px;
	padding: 8px 18px;
	border-radius: var(--pf-radius-pill);
	background: var(--pf-muted);
	font-size: 15px;
}

.pf-thanks__ref strong {
	letter-spacing: 0.04em;
}

.pf-thanks .pf-subtitle {
	max-width: 440px;
	margin-left: auto;
	margin-right: auto;
}

.pf-thanks .pf-btn {
	margin-top: 8px;
	text-decoration: none;
}

/* ---------- Adaptations ≥ 600px ---------- */

@media (min-width: 600px) {
	.pf {
		padding: 44px 32px 64px;
	}

	.pf-title {
		font-size: 30px;
	}

	/* Barre de recherche : pilule centrée et resserrée, icône plus généreuse,
	   léger relief — un élément dessiné, pas un simple champ pleine largeur. */
	.pf-search {
		max-width: 520px;
		margin: 0 auto 28px;
	}

	.pf-search__icon {
		left: 20px;
		width: 20px;
		height: 20px;
	}

	.pf-input--search {
		padding-left: 54px;
		padding-right: 58px;
		box-shadow: var(--pf-shadow-sm);
	}

	.pf-search__clear {
		right: 11px;
		width: 40px;
		height: 40px;
	}

	.pf-search__clear svg {
		width: 17px;
		height: 17px;
	}

	.pf-search__status {
		margin: 8px 0 0;
		text-align: center;
	}

	.pf-condition {
		grid-template-columns: 1fr 1fr;
	}

	.pf-bigbtn {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		min-height: 150px;
		padding: 22px;
	}

	.pf-bigbtn__arrow {
		display: none;
	}

	.pf-condition--stack {
		grid-template-columns: 1fr;
	}

	.pf-condition--stack .pf-bigbtn {
		flex-direction: row;
		align-items: center;
		gap: 16px;
		min-height: 88px;
		padding: 20px 24px;
	}

	.pf-condition--stack .pf-bigbtn__arrow {
		display: block;
	}

	.pf-options--inline {
		grid-template-columns: 1fr 1fr;
	}

	.pf-brands {
		grid-template-columns: repeat(3, 1fr);
	}

	.pf-cards {
		grid-template-columns: 1fr 1fr;
	}

	.pf-nav {
		flex-direction: row;
		align-items: center;
		justify-content: flex-end;
	}

	.pf-nav .pf-btn--primary {
		min-width: 200px;
	}

	.pf-nav .pf-btn--ghost {
		margin-right: auto;
	}
}

/* ---------- Animations réduites ---------- */

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

	.pf-btn.is-loading::after {
		display: none;
	}
}

/* ---------- Page autonome /proforma (hors du scope .pf : valeurs littérales) ---------- */

body.pf-standalone {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: #f6f7f9;
	color: #0a0a0a;
	font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.pf-standalone.admin-bar .pf-topbar {
	top: 32px;
}

/* La « feuille » : le formulaire devient une carte blanche sur fond gris. */
body.pf-standalone .pf {
	width: min(640px, calc(100% - 32px));
	margin: 28px auto 72px;
	background: #ffffff;
	border: 1px solid #e6e7eb;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.pf-topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: saturate(1.2) blur(8px);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid #e6e7eb;
}

.pf-topbar__logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.pf-topbar__logo img {
	display: block;
	max-height: 44px;
	width: auto;
}

.pf-topbar__name {
	font-size: 17px;
	font-weight: 700;
	color: #0a0a0a;
}

.pf-topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid #e6e7eb;
	border-radius: 9999px;
	background: #ffffff;
	color: #0a0a0a;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.pf-topbar__phone:hover {
	border-color: #d3d5db;
	background: #f6f7f9;
}

.pf-standalone__main {
	flex: 1;
	width: 100%;
}

/* ---------- En-tête héro (au-dessus de la carte du formulaire) ---------- */

.pf-hero {
	width: min(640px, calc(100% - 32px));
	margin: 36px auto 0;
	text-align: center;
}

/* Le CSS du thème (via le header du site) impose Poppins en !important
   au niveau de body : même parade que pour .pf. */
.pf-hero,
.pf-hero__title,
.pf-hero__subtitle {
	font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.pf-hero__title {
	margin: 0 0 18px;
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.28;
	color: #0a0a0a;
}

.pf-hero__pill {
	display: inline-block;
	padding: 3px 16px 5px;
	border-radius: 9999px;
	background: #0a0a0a;
	color: #ffffff;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
	vertical-align: 3%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.pf-hero__subtitle {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #6b7280;
}

.pf-standalone__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px;
	color: #6b7280;
	font-size: 13px;
}

.pf-standalone__footer a {
	color: #0a0a0a;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pf-standalone__footer a:hover {
	color: #6b7280;
}

@media (min-width: 600px) {
	.pf-topbar {
		padding: 14px 32px;
	}

	.pf-hero {
		width: min(760px, calc(100% - 32px));
		margin-top: 56px;
	}

	/* Titre sur 2 lignes garanties (spans .pf-hero__line) ; clamp pour que la
	   2e ligne (pilule + « en –60 secondes ») tienne sans retour parasite. */
	.pf-hero__title {
		font-size: clamp(30px, 5.6vw, 43px);
	}

	.pf-hero__line {
		display: block;
	}

	.pf-hero__line + .pf-hero__line {
		margin-top: 10px;
	}

	.pf-hero__subtitle {
		font-size: 17px;
	}

	body.pf-standalone .pf {
		margin-top: 32px;
		padding-left: 56px;
		padding-right: 56px;
	}
}

/* ---------- Étape « Documents » : justificatifs ---------- */

.pf-secure {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px;
	padding: 12px 16px;
	border: 1px solid #a7f3d0;
	border-radius: var(--pf-radius);
	background: var(--pf-ok-bg);
	color: var(--pf-ok-fg);
	font-size: 14px;
	line-height: 1.5;
}

.pf-secure .pf-chip {
	flex: none;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--pf-radius-pill);
	background: #ffffff;
	color: var(--pf-ok-fg);
}

.pf-secure .pf-chip svg {
	width: 18px;
	height: 18px;
}

.pf-hint--docs {
	margin: 0 0 24px;
	color: var(--pf-muted-fg);
	font-size: 14px;
}

.pf-proc-indicator {
	margin: 0 0 10px;
	padding: 6px 12px;
	border: 1px solid var(--pf-border);
	border-left: 3px solid var(--pf-accent);
	border-radius: var(--pf-radius);
	background: var(--pf-accent-soft);
}

.pf-proc-indicator__label {
	margin: 0;
	font-size: 13px;
}

.pf-proc-indicator__name {
	color: var(--pf-accent);
}

.pf-proc-indicator__change {
	margin: 0;
	padding: 2px 0;
	font-size: 12px;
	font-weight: 400;
	color: var(--pf-muted-fg);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pf-doc {
	margin: 0 0 12px;
	padding: 16px;
	border: 1px solid var(--pf-border);
	border-radius: var(--pf-radius-card);
	background: var(--pf-bg);
	transition: border-color var(--pf-transition), background var(--pf-transition);
}

.pf-doc.is-filled {
	border-color: #a7f3d0;
	background: var(--pf-ok-bg);
}

.pf-doc.is-invalid {
	border-color: var(--pf-destructive);
	background: var(--pf-err-bg);
}

.pf-doc__label {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.pf-doc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	padding: 14px 20px;
	border: 1.5px dashed var(--pf-border-strong);
	border-radius: var(--pf-radius);
	background: var(--pf-muted);
	color: var(--pf-fg);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--pf-transition), background var(--pf-transition);
	-webkit-tap-highlight-color: transparent;
}

.pf-doc__btn svg {
	width: 18px;
	height: 18px;
	color: var(--pf-accent);
}

.pf-doc__btn:hover {
	border-color: var(--pf-accent);
	background: var(--pf-accent-soft);
}

/* L'input est masqué : le focus clavier se voit sur le bouton. */
.pf-doc__input:focus-visible + .pf-doc__btn {
	outline: none;
	border-style: solid;
	border-color: var(--pf-accent);
	box-shadow: var(--pf-ring);
}

.pf-doc.is-filled .pf-doc__btn {
	display: none;
}

.pf-doc__file {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
}

.pf-doc__file .pf-doc__check {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--pf-ok-fg);
}

.pf-doc__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
}

.pf-doc__size {
	flex: none;
	color: var(--pf-muted-fg);
	font-size: 13px;
}

.pf-doc__remove {
	flex: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--pf-radius-pill);
	background: transparent;
	color: var(--pf-muted-fg);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background var(--pf-transition), color var(--pf-transition);
	-webkit-tap-highlight-color: transparent;
}

.pf-doc__remove:hover {
	background: var(--pf-err-bg);
	color: var(--pf-destructive);
}

.pf-doc__remove:focus-visible {
	outline: none;
	box-shadow: var(--pf-ring);
}

.pf-doc .pf-doc__error {
	margin-top: 12px;
}

/* ---------- Mobile compact (≤599px) : chaque étape tient dans un écran ----------
   Bloc additif : le desktop (≥600px) reste inchangé. Rollback = supprimer ce bloc. */

@media (max-width: 599.98px) {

	/* --- Chrome de page + héro (objectif : ≤ ~145px au-dessus du contenu d'étape) --- */

	.pf-siteheader {
		display: none;
	}

	.pf-hero {
		margin: 16px auto 0;
	}

	.pf-hero__title {
		margin: 0 0 8px;
		font-size: 23px;
		line-height: 1.3;
	}

	.pf-hero__pill {
		padding: 2px 12px 4px;
		font-size: 0.84em;
	}

	.pf-hero__subtitle {
		font-size: 14px;
		line-height: 1.4;
	}

	body.pf-standalone .pf {
		margin: 14px auto 24px;
	}

	.pf {
		padding: 14px 16px 20px;
	}

	.pf-standalone__footer {
		padding: 10px 16px;
		font-size: 12px;
	}

	/* --- Barre de progression + trio d'en-tête (toutes les étapes) --- */

	.pf-progress {
		margin: 0 0 12px;
	}

	.pf-progress__btn {
		padding: 10px 0 0;
	}

	.pf-progress__btn::before {
		top: 4px;
	}

	.pf-kicker {
		margin: 0 0 2px;
		font-size: 11px;
	}

	.pf-title {
		margin: 0 0 4px;
		font-size: 20px;
	}

	.pf-subtitle {
		margin: 0 0 14px;
		font-size: 13px;
		line-height: 1.45;
	}

	.pf-hint {
		margin: 0 0 10px;
		font-size: 12px;
	}

	/* --- Gros boutons, options, navigation --- */

	.pf-condition {
		gap: 10px;
	}

	.pf-bigbtn {
		min-height: 60px;
		padding: 8px 14px;
		gap: 12px;
	}

	.pf-bigbtn__text {
		font-size: 15px;
	}

	.pf-bigbtn__desc {
		font-size: 12px;
	}

	.pf-chip {
		width: 38px;
		height: 38px;
		border-radius: 10px;
	}

	.pf-procedure {
		margin-top: 14px;
		padding-top: 12px;
	}

	.pf-procedure__title {
		margin: 0 0 2px;
		font-size: 15px;
	}

	.pf-procedure .pf-hint {
		margin-bottom: 8px;
	}

	.pf-options {
		gap: 8px;
	}

	.pf-option {
		min-height: 46px;
		padding: 10px 14px;
		font-size: 14px;
	}

	/* Réponses courtes (« qui paie ») : une seule rangée. */
	.pf-options--inline {
		grid-template-columns: 1fr 1fr;
	}

	.pf-nav {
		flex-direction: row;
		align-items: center;
		gap: 8px;
		margin-top: 14px;
	}

	.pf-nav .pf-btn--primary {
		flex: 1 1 auto;
		min-height: 50px;
		padding: 12px 18px;
		font-size: 15px;
	}

	.pf-nav .pf-btn--ghost {
		flex: 0 0 auto;
		min-height: 48px;
		padding: 10px 12px;
	}

	/* Libellés longs (« Changer de véhicule ») : on garde la pile. */
	#pf-selected-view .pf-nav {
		flex-direction: column-reverse;
	}

	/* --- Champs --- */

	.pf-field {
		margin: 0 0 12px;
	}

	.pf-field-row {
		grid-template-columns: 1fr 1fr;
		gap: 0 10px;
	}

	.pf-label {
		margin: 0 0 4px;
		font-size: 13px;
	}

	/* font-size reste 16px : évite le zoom automatique iOS au focus. */
	.pf-input {
		min-height: 48px;
		padding: 10px 14px;
	}

	.pf-input--area {
		min-height: 72px;
	}

	.pf-note {
		margin: 2px 0 10px;
		padding: 10px 12px;
		font-size: 12px;
	}

	.pf-note .pf-chip {
		width: 30px;
		height: 30px;
	}

	.pf-field .pf-hint {
		margin: 3px 0 0;
	}

	/* --- Étape documents : carte compacte en rangée (libellé + bouton) --- */

	.pf-doc {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px 10px;
		margin: 0 0 8px;
		padding: 10px 12px;
	}

	.pf-doc__label {
		flex: 1 1 140px;
		margin: 0;
		font-size: 13px;
		line-height: 1.3;
	}

	.pf-doc__btn {
		flex: 0 0 auto;
		width: auto;
		min-height: 44px;
		padding: 8px 14px;
		font-size: 13px;
	}

	.pf-doc__file,
	.pf-doc .pf-doc__error {
		flex-basis: 100%;
	}

	.pf-doc__file {
		min-height: 40px;
	}

	.pf-doc .pf-doc__error {
		margin-top: 4px;
	}

	.pf-secure {
		margin: 0 0 6px;
		padding: 8px 10px;
		font-size: 12px;
	}

	.pf-secure .pf-chip {
		width: 28px;
		height: 28px;
	}

	.pf-hint--docs {
		margin: 0 0 8px;
		font-size: 12px;
	}

	.pf-proc-indicator {
		margin: 0 0 8px;
		padding: 5px 10px;
	}

	.pf-proc-indicator__label {
		font-size: 12px;
	}

	.pf-proc-indicator__change {
		font-size: 11px;
		padding: 4px 0;
	}

	/* --- Étape 2 : grilles bornées avec défilement interne ---
	   330px ≈ chrome page + en-têtes + recherche + navigation au-dessus des grilles. */

	.pf-brands,
	.pf-cards {
		max-height: calc(100svh - 330px);
		min-height: 220px;
		/* min-height + grid : sans ceci les rangées s'étirent quand la liste est courte. */
		align-content: start;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		padding: 2px;
		-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
		        mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
	}

	.pf-brand {
		min-height: 56px;
		padding: 8px 12px;
	}

	.pf-brand__count {
		font-size: 12px;
	}

	.pf-search {
		margin: 0 0 12px;
	}

	.pf-subhead {
		margin: 0 0 8px;
		font-size: 16px;
	}

	.pf-link {
		margin: 0 0 8px;
		padding: 6px 0;
	}

	.pf-cards {
		gap: 10px;
	}

	/* Le raccourci « padding » de .pf-input ci-dessus écraserait le retrait
	   réservé à l'icône et au bouton effacer : on le rétablit après coup. */
	.pf-input--search {
		padding-left: 48px;
		padding-right: 52px;
	}

	/* Résultats en rangée (photo latérale) : 3-4 cartes visibles dans la zone
	   défilante au lieu d'1,5. Ciblé sur #pf-cards pour ne pas toucher au récap. */
	#pf-cards .pf-card {
		flex-direction: row;
		align-items: stretch;
	}

	#pf-cards .pf-card__media {
		width: 38%;
		flex: none;
	}

	#pf-cards .pf-card__photo,
	#pf-cards .pf-card__photo--empty {
		height: 100%;
		aspect-ratio: auto;
		min-height: 96px;
	}

	#pf-cards .pf-card__body {
		flex: 1;
		justify-content: center;
		min-width: 0;
		padding: 10px 12px;
		gap: 3px;
	}

	#pf-cards .pf-card__name {
		font-size: 14px;
	}

	#pf-cards .pf-card__version {
		font-size: 12px;
	}

	#pf-cards .pf-card__price {
		font-size: 16px;
	}

	#pf-cards .pf-card__check {
		width: 24px;
		height: 24px;
		top: 8px;
		right: 8px;
	}

	#pf-cards .pf-card__check svg {
		width: 13px;
		height: 13px;
	}

	.pf-search__status {
		margin-top: 6px;
		font-size: 12px;
	}

	/* Récap du véhicule choisi : photo latérale au lieu d'une image pleine largeur. */
	.pf-card--summary {
		flex-direction: row;
		align-items: stretch;
	}

	.pf-card--summary .pf-card__media {
		width: 44%;
		flex: none;
	}

	.pf-card--summary .pf-card__photo,
	.pf-card--summary .pf-card__photo--empty {
		height: 100%;
		aspect-ratio: auto;
		min-height: 120px;
	}

	.pf-card--summary .pf-card__body {
		justify-content: center;
		padding: 14px;
	}

	/* --- Écran de confirmation --- */

	.pf-thanks {
		padding: 16px 0 8px;
	}

	.pf-thanks__icon {
		width: 64px;
		height: 64px;
		margin: 0 auto 14px;
	}
}

/* Écrans très courts (SE, navigateur avec chrome haut) : cran supplémentaire. */
@media (max-width: 599.98px) and (max-height: 640px) {

	.pf-hero {
		margin-top: 8px;
	}

	.pf-hero__title {
		font-size: 19px;
	}

	.pf-subtitle {
		margin-bottom: 8px;
	}

	.pf-bigbtn {
		min-height: 54px;
	}
}
