/* =========================================================
   Véhicules neufs (2026-10-23) : gamme d'une marque et page d'un modèle
   (inc/vn.php). Chargée sur les pages marque et modèle seulement.
   ========================================================= */

/* ---------- Filtres de la gamme ---------- */
.vn-filtres {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin: 0 0 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--g100);
}
.vn-filtres[hidden] { display: none; }
.vn-filtres__champ { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.vn-filtres__champ span { font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--g600); }
.vn-filtres__champ select {
	min-height: 44px;
	padding: 0 40px 0 14px;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: var(--navy);
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230F314C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--g200);
	border-radius: var(--radius);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.vn-filtres__champ select:hover { border-color: var(--g400); }
.vn-filtres__champ select:focus-visible { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(193,127,181,.2); }
.vn-filtres__champ--tri { margin-left: auto; }
.vn-filtres__compte { order: -1; flex-basis: 100%; margin: 0; font-size: .95rem; color: var(--g600); text-align: left; }
.vn-filtres__compte strong { color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- Grille et cartes ---------- */
.vn-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vn-carte { margin: 0; }
.vn-carte[hidden] { display: none; }
.vn-carte__lien {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--white);
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(15,49,76,.06), 0 4px 16px rgba(15,49,76,.06);
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: transform .25s cubic-bezier(.2,0,0,1), box-shadow .25s cubic-bezier(.2,0,0,1);
}
.vn-carte__lien:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15,49,76,.06), 0 18px 40px rgba(15,49,76,.12); }
.vn-carte__lien:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.vn-carte__photo {
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(180deg, #fff 0%, var(--g50) 100%);
}
.vn-carte__photo img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,0,0,1); }
.vn-carte__lien:hover .vn-carte__photo img { transform: scale(1.04); }
.vn-carte__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: var(--pink);
	color: var(--white);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.vn-carte__badge--bientot { background: var(--navy); }
.vn-carte__corps { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.vn-carte__categorie { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-dark); text-align: left; }
.vn-carte__nom { margin: 0; font-size: 1.12rem; line-height: 1.25; color: var(--navy); text-wrap: balance; }
.vn-carte__energies { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.vn-carte__energies li {
	margin: 0;
	padding: 3px 9px;
	border-radius: var(--radius-pill);
	background: var(--g50);
	box-shadow: inset 0 0 0 1px var(--g100);
	font-size: .76rem;
	font-weight: 600;
	color: var(--g600);
}
.vn-carte__prix { margin: auto 0 0; padding-top: 10px; font-size: .86rem; color: var(--g600); text-align: left; }
.vn-carte__prix strong { font-size: 1.3rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.vn-carte__prix .vn-carte__prix-texte { font-size: 1rem; }
.vn-carte__voir { font-size: .86rem; font-weight: 700; color: var(--pink-dark); }
.vn-carte__voir span { display: inline-block; transition: translate .2s ease; }
.vn-carte__lien:hover .vn-carte__voir span { translate: 3px 0; }

.vn-vide { margin: 8px 0 0; text-align: center; color: var(--g600); }
.vn-vide[hidden] { display: none; }
.vn-vide__reset {
	min-height: 44px;
	margin-left: 6px;
	padding: 0 16px;
	border: 1px solid var(--g200);
	border-radius: var(--radius-pill);
	background: var(--white);
	font: inherit;
	font-weight: 700;
	color: var(--navy);
	cursor: pointer;
}
.vn-mention { margin: 24px auto 0; max-width: 820px; font-size: .8rem; line-height: 1.55; color: var(--g600); text-align: center; text-wrap: pretty; }

/* Autres modèles d'une page modèle : une rangée qui défile. */
.vn-grille--defile {
	grid-auto-flow: column;
	grid-template-columns: none;
	grid-auto-columns: minmax(250px, 280px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	padding: 4px 4px 16px;
	margin: -4px -4px 0;
	scrollbar-width: thin;
}
.vn-grille--defile > li { scroll-snap-align: start; }

/* ---------- Page d'un modèle ---------- */
.vn-fiche__grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.vn-fiche__photo {
	position: relative;
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, #fff 0%, var(--g50) 100%);
	box-shadow: inset 0 0 0 1px var(--g100);
	overflow: hidden;
}
.vn-fiche__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.vn-fiche__photo .vn-carte__badge { top: 16px; left: 16px; font-size: .78rem; }
.vn-fiche__infos { display: flex; flex-direction: column; gap: 14px; }
.vn-fiche__categorie { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-dark); text-align: left; }
.vn-fiche__nom { margin: -6px 0 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--navy); text-align: left; text-wrap: balance; }
.vn-fiche__energies { margin: 0; }
.vn-fiche__prix { margin: 6px 0 0; font-size: 1rem; color: var(--g600); text-align: left; }
.vn-fiche__prix strong { display: inline-block; font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; color: var(--navy); font-variant-numeric: tabular-nums; }
.vn-fiche__prix--texte strong { font-size: 1.5rem; }
.vn-fiche__renvoi { margin-left: 2px; font-weight: 700; color: var(--g600); vertical-align: super; font-size: .9rem; text-decoration: none; }
.vn-fiche__prix-energies { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 0; padding: 0; list-style: none; }
.vn-fiche__prix-energies li { margin: 0; padding: 6px 12px; border-radius: var(--radius); background: var(--g50); font-size: .86rem; color: var(--g600); }
.vn-fiche__prix-energies strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.vn-fiche__points { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.vn-fiche__points li { position: relative; margin: 0; padding-left: 28px; font-weight: 600; color: var(--text); text-align: left; }
.vn-fiche__points li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--pink-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A5629A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 11px;
}
.vn-fiche__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.vn-fiche__actions .btn { min-height: 48px; }
.vn-fiche__officiel { align-self: flex-start; font-size: .88rem; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.vn-fiche__officiel:hover { color: var(--pink-dark); }
.vn-fiche .vn-mention { text-align: left; margin-left: 0; max-width: none; }

/* ---------- Formulaire d'une page modèle ---------- */
.vn-form h2 { margin: 0 0 6px; text-align: center; text-wrap: balance; }
.vn-form__intro { margin: 0 0 24px; color: var(--g600); text-align: center; }
.vn-form__projets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.vn-form__projets legend { width: 100%; margin-bottom: 10px; padding: 0; font-size: .85rem; font-weight: 700; color: var(--navy); text-align: center; }
.vn-form__projet { position: relative; cursor: pointer; }
.vn-form__projet input { position: absolute; opacity: 0; pointer-events: none; }
.vn-form__projet span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--radius-pill);
	background: var(--white);
	box-shadow: inset 0 0 0 1.5px var(--g200);
	font-weight: 700;
	color: var(--navy);
	transition: box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.vn-form__projet:hover span { box-shadow: inset 0 0 0 1.5px var(--g400); }
.vn-form__projet input:checked + span { background: var(--navy); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--navy); }
.vn-form__projet input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.vn-form .form-card__grid { margin-bottom: 20px; }

/* ---------- Offre de la marque, chiffres clés ---------- */
/* Conditions de l'offre juste sous le prix (choix de Maxime du 23/10/2026),
   texte complet de la marque dans la mention (#vn-mention). */
.vn-fiche__offre {
	align-self: flex-start;
	margin: -8px 0 0;
	padding: 6px 12px;
	border-radius: 10px;
	background: rgba(193,127,181,.13);
	font-size: .86rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--pink-dark);
	text-align: left;
}
.vn-fiche__finitions { align-self: flex-start; font-size: .88rem; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.vn-fiche__finitions:hover { color: var(--pink-dark); }
.vn-carte__etoile { margin-left: 1px; font-size: .8rem; font-weight: 700; color: var(--g600); vertical-align: super; }

.vn-chiffres { margin-top: 40px; }
/* Petit titre façon intitulé : plus fort que la taille commune des titres de
   section (style-moderne.css, .section h2). */
.vn-chiffres__titre,
.style-moderne .section.vn-fiche h2.vn-chiffres__titre { margin: 0 0 14px; font-size: .8rem; line-height: 1.3; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-dark); text-align: left; }
.vn-chiffres__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
/* La valeur au-dessus de son libellé, sans changer l'ordre lu (dt puis dd). */
.vn-chiffres__item {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 4px;
	padding: 16px 18px;
	border-radius: var(--radius);
	background: var(--g50);
	box-shadow: inset 0 0 0 1px var(--g100);
}
.vn-chiffres__item dt { font-size: .8rem; font-weight: 600; color: var(--g600); }
.vn-chiffres__item dd { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.25; color: var(--navy); font-variant-numeric: tabular-nums; text-wrap: balance; }

/* ---------- Finitions d'une page modèle ---------- */
.vn-finitions__grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vn-finition {
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--white);
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(15,49,76,.06), 0 4px 16px rgba(15,49,76,.06);
	overflow: hidden;
}
.vn-finition__photo { aspect-ratio: 16 / 9; background: linear-gradient(180deg, #fff 0%, var(--g50) 100%); }
.vn-finition__photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vn-finition__corps { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.vn-finition__nom { margin: 0; font-size: 1.15rem; line-height: 1.25; color: var(--navy); text-align: left; text-wrap: balance; }
.vn-finition__prix { margin: 0; font-size: .86rem; color: var(--g600); text-align: left; }
.vn-finition__prix strong { font-size: 1.3rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.vn-finition__prix .vn-finition__prix-texte { font-size: 1rem; }
.vn-finition__offre {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	background: rgba(193,127,181,.14);
	font-size: .72rem;
	font-weight: 800;
	color: var(--pink-dark);
	vertical-align: 3px;
}
.vn-finition__moteur { margin: -4px 0 0; font-size: .82rem; color: var(--g600); text-align: left; }
.vn-finition__equipements { display: grid; gap: 6px; margin: 4px 0 12px; padding: 0; list-style: none; }
.vn-finition__equipements li { position: relative; margin: 0; padding-left: 24px; font-size: .9rem; line-height: 1.4; color: var(--text); text-align: left; }
.vn-finition__equipements li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--pink-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A5629A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 10px;
}
.vn-finition__bouton { width: 100%; min-height: 44px; margin-top: auto; padding: 11px 20px; font-size: .9rem; }

/* ---------- Téléphone ---------- */
@media (max-width: 900px) {
	.vn-fiche__grille { grid-template-columns: 1fr; gap: 24px; }
	.vn-filtres__champ--tri { margin-left: 0; }
}
@media (max-width: 600px) {
	.vn-filtres { gap: 10px; }
	.vn-filtres__champ { flex: 1 1 calc(50% - 5px); min-width: 0; }
	.vn-filtres__champ--tri { flex-basis: 100%; }
	/* Deux colonnes compactes : une gamme de dix-neuf modèles se parcourt
	   d'un coup d'œil au lieu de dix-neuf écrans. */
	.vn-grille:not(.vn-grille--defile) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.vn-grille:not(.vn-grille--defile) .vn-carte__corps { gap: 4px; padding: 10px 12px 14px; }
	.vn-grille:not(.vn-grille--defile) .vn-carte__nom { font-size: .98rem; }
	.vn-grille:not(.vn-grille--defile) .vn-carte__energies,
	.vn-grille:not(.vn-grille--defile) .vn-carte__voir { display: none; }
	.vn-grille:not(.vn-grille--defile) .vn-carte__prix { padding-top: 6px; font-size: .78rem; }
	.vn-grille:not(.vn-grille--defile) .vn-carte__prix strong { display: block; font-size: 1.08rem; }
	.vn-grille:not(.vn-grille--defile) .vn-carte__badge { top: 8px; left: 8px; padding: 3px 8px; font-size: .64rem; }
	.vn-grille--defile { grid-auto-columns: 78%; }
	.vn-fiche__actions .btn { flex: 1 1 100%; justify-content: center; }
	.vn-fiche__offre { font-size: .82rem; }
	.vn-chiffres { margin-top: 28px; }
	.vn-chiffres__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.vn-chiffres__item { padding: 12px 14px; }
	.vn-chiffres__item dd { font-size: 1.02rem; }
	/* Nombre impair : le dernier chiffre prend toute la ligne plutôt que de rester seul. */
	.vn-chiffres__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
	/* Finitions : une rangée qui défile au doigt, la suivante dépasse pour le montrer. */
	.vn-finitions__grille {
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: 80%;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		padding: 4px 4px 16px;
		margin: -4px -4px 0;
		scrollbar-width: thin;
	}
	.vn-finitions__grille > li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
	.vn-carte__lien, .vn-carte__photo img, .vn-carte__voir span { transition: none; }
	.vn-carte__lien:hover, .vn-carte__lien:hover .vn-carte__photo img { transform: none; }
}
