/* =============================================================================
   Page inventaire (?page=voitures) — direction B « Garage », préfixe .vp-
   Chargée par templates/header.php après style.css : réutilise les jetons
   (--noir, --anth, --blanc, --gris, --filet, --primary…), .sur, .champ, .btn,
   .vide et la carte .car-card du socle. Aucun effet gratuit : bandes
   primaires, capitales condensées, filets.
   ============================================================================= */

.vp { padding: 48px 0 96px; background: var(--noir); }

/* ---- En-tête de page : titre + nombre, trois chiffres à droite ------------ */
.vp-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--filet); }
.vp-tete__titre { min-width: 0; }
.vp-h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-family: var(--police-titre); font-weight: 700; font-size: clamp(2.1rem, 3.6vw, 3rem); line-height: .98; letter-spacing: .01em; text-transform: uppercase; color: var(--blanc); }
.vp-h1__nb { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-left: 4px solid var(--primary); background: var(--anth); font-size: 1.35rem; letter-spacing: .04em; line-height: 1; border-radius: var(--rayon-s); }
.vp-tete__chapo { margin-top: 12px; max-width: 600px; font-size: 1.08rem; }
.vp-chiffres { display: flex; flex: none; }
.vp-chiffres li { display: flex; flex-direction: column; gap: 6px; padding: 0 24px; border-left: 1px solid var(--filet-2); }
.vp-chiffres li:last-child { padding-right: 0; }
.vp-chiffres span { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gris-2); white-space: nowrap; }
.vp-chiffres b { font-family: var(--police-titre); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--blanc); white-space: nowrap; }

/* ---- Barre de filtres : anthracite à bord fin, cinq menus + bouton -------- */
.vp-filtres { margin-top: 28px; }
.vp-filtres__barre { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; padding: 9px; background: var(--anth); border: 1px solid var(--filet-2); border-radius: var(--rayon); }
.vp-filtres__btn { height: 50px; padding: 0 24px; }
.vp-filtres__ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 18px; }
.vp-compte { font-size: .95rem; color: var(--gris); }
.vp-compte b { font-family: var(--police-titre); font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--blanc); margin-right: 2px; }
.vp-compte__page { color: var(--gris-2); }
.vp-filtres__outils { display: flex; align-items: center; gap: 18px; flex: none; }
.vp-reset { display: inline-flex; align-items: center; gap: 6px; font-family: var(--police-titre); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); padding-bottom: 2px; border-bottom: 2px solid var(--primary); transition: color .2s, border-color .2s; }
.vp-reset svg { width: 14px; height: 14px; }
.vp-reset:hover { color: var(--blanc); border-color: var(--blanc); }
.vp-reset[hidden] { display: none; }
.vp-tri { width: 200px; }
.vp-tri select { background-color: var(--anth); }

/* ---- Résultats : grille 4 → 2 → 1, voile pendant le rafraîchissement ------ */
.vp-resultats { margin-top: 28px; transition: opacity .2s; }
.vp-resultats.est-charge { opacity: .55; pointer-events: none; }
.vp-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.vp-vide svg { color: var(--primary-texte, var(--primary)); }

/* ---- Pagination : cases 46 px, page courante en primaire ------------------ */
.vp-pagi { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--filet); }
.vp-pagi__num, .vp-pagi__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px; border: 2px solid var(--filet-2); border-radius: var(--rayon-s); font-family: var(--police-titre); font-weight: 700; font-size: 1.1rem; line-height: 1; color: var(--blanc); transition: border-color .2s, background .2s; }
.vp-pagi__btn svg { width: 18px; height: 18px; }
.vp-pagi__num:hover, .vp-pagi__btn:hover { border-color: var(--blanc); background: rgba(244, 243, 239, .06); }
.vp-pagi__num.est-actif { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.vp-pagi__btn.est-inactif { opacity: .35; pointer-events: none; }
.vp-pagi__pts { padding: 0 4px; color: var(--gris-2); font-family: var(--police-titre); font-weight: 700; }

/* ---- Adaptatif ------------------------------------------------------------ */
@media (max-width: 1100px) {
	.vp-filtres__barre { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vp-filtres__btn { grid-column: 3; }
	.vp-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 1000px) {
	.vp-tete { flex-direction: column; align-items: flex-start; gap: 24px; }
	.vp-chiffres li:first-child { padding-left: 0; border-left: 0; }
	.vp-filtres__barre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vp-filtres__btn { grid-column: 1 / -1; }
	.vp-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.vp { padding: 36px 0 72px; }
	.vp-tete { padding-bottom: 22px; }
	.vp-h1 { font-size: 2rem; }
	.vp-h1__nb { height: 30px; font-size: 1.1rem; }
	.vp-chiffres { flex-direction: column; width: 100%; border-top: 1px solid var(--filet); }
	.vp-chiffres li { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--filet); }
	.vp-chiffres b { font-size: 1.4rem; }
	.vp-filtres__barre { grid-template-columns: 1fr; padding: 10px; }
	.vp-filtres__btn { width: 100%; }
	.vp-filtres__ligne { flex-direction: column; align-items: stretch; gap: 14px; }
	.vp-filtres__outils { justify-content: space-between; }
	.vp-tri { width: auto; flex: 1; max-width: 220px; }
	.vp-grille { grid-template-columns: 1fr; gap: 18px; }
	.vp-pagi { margin-top: 32px; }
}
