/**
 * galerie.css — Galerie véhicules publique (Royal Event).
 * Charte : Cormorant Garamond (titres) + Jost (textes) ;
 *          #2F1D02 #514533 #6A4A1A #F5F4ED #DDD9BF, blanc.
 * Tout est scopé sous #gvp pour ne rien casser dans le thème.
 */

#gvp {
	--gvp-brun-fonce: #2F1D02;
	--gvp-brun-moyen: #514533;
	--gvp-brun-clair: #6A4A1A;
	--gvp-creme: #F5F4ED;
	--gvp-sable: #DDD9BF;
	--gvp-gris: #D9D9D9;
	--gvp-gris-txt: #938F8F;
	--gvp-anthracite: #2E2C2C;
	font-family: 'Jost', sans-serif;
	color: var(--gvp-anthracite);
	max-width: 1280px;
	margin: 0 auto;
	padding: 10px 0 20px;
	box-sizing: border-box;
}
#gvp *, #gvp *::before, #gvp *::after { box-sizing: border-box; }

/* ---------------- En-tête ---------------- */
#gvp .gvp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}
#gvp .gvp-head-title {
	font-family: 'Jost', sans-serif;
	font-weight: 500;
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--gvp-gris-txt);
	margin: 0;
}
#gvp .gvp-head-actions { display: flex; align-items: center; gap: 18px; }
#gvp .gvp-active { color: #BDB7B7; font-size: 14px; }
#gvp .gvp-clear {
	background: none; border: 0; padding: 0; cursor: pointer;
	color: var(--gvp-brun-clair);
	font-family: 'Jost', sans-serif; font-size: 14px;
	text-decoration: underline;
}
#gvp .gvp-clear:hover { color: var(--gvp-brun-fonce); }

/* ---------------- Pilules FAMILLE ---------------- */
#gvp .gvp-pills { display: flex; flex-wrap: wrap; gap: 12px; }
#gvp .gvp-pill {
	appearance: none;
	background: #fff;
	border: 1px solid var(--gvp-anthracite);
	border-radius: 20px;
	padding: 8px 20px;
	font-family: 'Jost', sans-serif; font-size: 16px; font-weight: 500;
	color: var(--gvp-anthracite);
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	line-height: 1.1;
}
#gvp .gvp-pill:hover { border-color: var(--gvp-brun-fonce); }
#gvp .gvp-pill.is-active {
	background: var(--gvp-brun-fonce);
	border-color: var(--gvp-brun-fonce);
	color: #fff;
}

#gvp .gvp-sep { border: 0; border-top: 1px solid #E7E4DC; margin: 22px 0 8px; }

/* ---------------- Compteur résultats ---------------- */
#gvp .gvp-count-wrap { display: flex; justify-content: flex-end; margin-bottom: 18px; }
#gvp .gvp-count { color: var(--gvp-brun-clair); font-style: italic; font-size: 18px; }

/* ---------------- Corps deux colonnes ---------------- */
#gvp .gvp-body { display: flex; gap: 40px; align-items: flex-start; }
#gvp .gvp-filters { flex: 0 0 24%; max-width: 24%; }
#gvp .gvp-main { flex: 1 1 auto; min-width: 0; }

/* ---------------- Groupes de filtres ---------------- */
#gvp .gvp-group { margin-bottom: 30px; }
#gvp .gvp-group-title {
	font-family: 'Jost', sans-serif; font-weight: 500; font-size: 20px;
	text-transform: uppercase; letter-spacing: .5px;
	color: var(--gvp-gris-txt);
	margin: 0 0 14px;
}
/* --- Recherche directe par numero de vehicule --- */
#gvp .gvp-group-id { margin-bottom: 26px; }
#gvp .gvp-aide {
	font-size: 13px; line-height: 1.45; color: var(--gvp-gris-txt);
	margin: -6px 0 10px;
}
#gvp .gvp-id {
	width: 100%; max-width: 100%;
	font-family: 'Jost', sans-serif; font-size: 16px; color: var(--gvp-anthracite);
	padding: 11px 14px; margin: 0;
	border: 1px solid var(--gvp-sable); border-radius: 5px; background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none; appearance: none;
}
#gvp .gvp-id::placeholder { color: #B6B2B2; }
#gvp .gvp-id:focus {
	outline: none;
	border-color: var(--gvp-brun-clair);
	box-shadow: 0 0 0 3px rgba(106, 74, 26, .12);
}
/* Croix native de Safari/Chrome : on la garde, elle vide le champ. */
#gvp .gvp-id::-webkit-search-cancel-button { cursor: pointer; }

#gvp .gvp-check {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 0; cursor: pointer;
	font-size: 16px; font-weight: 500; color: var(--gvp-anthracite);
}
#gvp .gvp-check input { position: absolute; opacity: 0; width: 0; height: 0; }
#gvp .gvp-box {
	width: 20px; height: 20px; flex: 0 0 20px;
	border: 1px solid #D7D5D4; border-radius: 5px; background: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s ease, border-color .15s ease;
}
#gvp .gvp-check input:checked + .gvp-box {
	background: var(--gvp-brun-fonce); border-color: var(--gvp-brun-fonce);
}
#gvp .gvp-box::after {
	content: ""; width: 6px; height: 10px; margin-top: -2px;
	border: solid #fff; border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0); transition: transform .15s ease;
}
#gvp .gvp-check input:checked + .gvp-box::after { transform: rotate(45deg) scale(1); }
/* Cases COULEUR : la couleur réelle sert de remplissage à la case */
#gvp .gvp-check.has-swatch .gvp-box { border-color: #D7D5D4; }
#gvp .gvp-check .gvp-label { flex: 1 1 auto; }
#gvp .gvp-check .gvp-num {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 26px; height: 26px; padding: 0 6px;
	background: var(--gvp-creme); border-radius: 999px;
	color: #BDB7B7; font-size: 14px;
}
#gvp .gvp-check.is-empty { opacity: .45; }
/* Bouton « Voir plus / moins » (Couleur, Carrosserie) */
#gvp .gvp-more {
	background: none; border: 0; padding: 6px 0; margin-top: 4px; cursor: pointer;
	color: var(--gvp-brun-clair); font-family: 'Jost', sans-serif; font-size: 15px;
	text-decoration: underline;
}
#gvp .gvp-more:hover { color: var(--gvp-brun-fonce); }

/* ---------------- Cartes véhicules ---------------- */
#gvp .gvp-list { display: flex; flex-direction: column; gap: 24px; }
#gvp .gvp-card {
	display: flex; gap: 26px;
	background: #fff; border: 1px solid #D7D5D4; border-radius: 6px;
	padding: 24px; align-items: flex-start;
}
#gvp .gvp-card-img {
	flex: 0 0 250px; width: 250px; height: 150px;
	background: var(--gvp-creme); border-radius: 5px; overflow: hidden;
}
#gvp .gvp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#gvp .gvp-card-body { flex: 1 1 auto; min-width: 0; }
#gvp .gvp-card-title {
	font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 26px;
	line-height: 1.15; color: var(--gvp-brun-fonce);
	margin: 0 0 10px;
}
#gvp .gvp-card-desc {
	font-family: 'Jost', sans-serif; font-weight: 500; font-size: 16px;
	line-height: 1.5; color: var(--gvp-brun-clair); margin: 0;
}

/* États liste */
#gvp .gvp-state { padding: 40px 0; text-align: center; color: var(--gvp-brun-clair); font-size: 18px; }
#gvp .gvp-skel {
	height: 150px; border-radius: 6px; border: 1px solid #E7E4DC;
	background: linear-gradient(90deg, #f4f2ec 25%, #ece9e0 37%, #f4f2ec 63%);
	background-size: 400% 100%; animation: gvp-shimmer 1.2s ease infinite;
	margin-bottom: 24px;
}
@keyframes gvp-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------------- Pagination ---------------- */
#gvp .gvp-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 34px; }
#gvp .gvp-page {
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--gvp-gris); border-radius: 8px; background: #fff;
	font-family: 'Jost', sans-serif; font-size: 15px; color: var(--gvp-anthracite);
	cursor: pointer; transition: all .15s ease;
}
#gvp .gvp-page:hover:not(:disabled) { border-color: var(--gvp-brun-fonce); }
#gvp .gvp-page.is-active {
	background: var(--gvp-brun-fonce); border-color: var(--gvp-brun-fonce); color: #fff;
}
#gvp .gvp-page:disabled { opacity: .4; cursor: default; }
#gvp .gvp-page-ellipsis { align-self: center; color: #BDB7B7; padding: 0 4px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
	#gvp .gvp-body { flex-direction: column; }
	#gvp .gvp-filters, #gvp .gvp-main { flex: 1 1 100%; max-width: 100%; width: 100%; }
	#gvp .gvp-filters {
		display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 8px 30px; margin-bottom: 24px;
	}
	/* La recherche par numéro occupe toute la largeur : dans une colonne de
	   150 px, la phrase d'aide et le champ deviennent illisibles. */
	#gvp .gvp-group-id { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	#gvp .gvp-card { flex-direction: column; }
	#gvp .gvp-card-img { flex: 0 0 auto; width: 100%; height: 190px; }
	#gvp .gvp-count-wrap { justify-content: flex-start; }
	#gvp .gvp-head-title { font-size: 18px; }
}
/* Coche foncée sur les pastilles blanches (sinon blanc sur blanc = invisible) */
#gvp .gvp-check.has-swatch .gvp-box[style*="#ffffff"]::after {
	border-color: #2F1D02;
}
/* ---------------- Sélection de véhicules (panier) ---------------- */
#gvp .gvp-card.is-picked {
	border-color: #B08D57;
	box-shadow: 0 0 0 1px #B08D57 inset;
	background: #FFFCF2;
}

#gvp .gvp-card-actions {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
	margin-top: 16px;
}
#gvp .gvp-card-ref {
	font-family: 'Jost', sans-serif; font-size: 14px; color: var(--gvp-gris-txt);
}

#gvp .gvp-pick {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 10px 18px;
	border: 1px solid var(--gvp-brun-fonce); border-radius: 999px;
	background: #fff;
	font-family: 'Jost', sans-serif; font-size: 15px; color: var(--gvp-brun-fonce);
	cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease;
}
#gvp .gvp-pick:hover:not(:disabled) { background: var(--gvp-creme); }
#gvp .gvp-pick:disabled { opacity: .45; cursor: not-allowed; }

/* Pastille : « + » quand non sélectionné, coche quand sélectionné */
#gvp .gvp-pick-ico {
	position: relative; flex: 0 0 auto;
	width: 18px; height: 18px; border-radius: 50%;
	border: 1px solid currentColor;
}
#gvp .gvp-pick-ico::before,
#gvp .gvp-pick-ico::after {
	content: ''; position: absolute; background: currentColor;
}
#gvp .gvp-pick-ico::before { left: 7.5px; top: 3.5px; width: 1.5px; height: 9px; }
#gvp .gvp-pick-ico::after  { left: 3.5px; top: 7.5px; width: 9px; height: 1.5px; }

#gvp .gvp-pick.is-on {
	background: #B08D57; border-color: #B08D57; color: #fff;
}
#gvp .gvp-pick.is-on:hover { background: #9b7a49; border-color: #9b7a49; }
#gvp .gvp-pick.is-on .gvp-pick-ico { border-color: #fff; }
#gvp .gvp-pick.is-on .gvp-pick-ico::before {
	left: 7px; top: 3px; width: 1.5px; height: 8px; background: #fff;
	transform: rotate(40deg); transform-origin: center;
}
#gvp .gvp-pick.is-on .gvp-pick-ico::after {
	left: 4px; top: 8px; width: 5px; height: 1.5px; background: #fff;
	transform: rotate(40deg); transform-origin: left center;
}

@media (max-width: 600px) {
	#gvp .gvp-pick { width: 100%; justify-content: center; }
	#gvp .gvp-card-actions { gap: 8px; }
}

/* ---------------- Capacité : plage saisie à la main ---------------- */
#gvp .gvp-cap-plage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
#gvp .gvp-cap-plage label {
	display: inline-flex; align-items: center; gap: 7px;
	font-family: 'Jost', sans-serif; font-size: 15px; color: var(--gvp-anthracite);
}
#gvp .gvp-cap-plage input {
	width: 78px; height: 38px; padding: 0 10px; margin: 0;
	border: 1px solid var(--gvp-gris); border-radius: 8px; background: #fff;
	font-family: 'Jost', sans-serif; font-size: 15px; color: var(--gvp-anthracite);
}
#gvp .gvp-cap-plage input:focus { outline: none; border-color: #B08D57; }
#gvp .gvp-cap-aide {
	flex: 1 1 100%; margin: 2px 0 0;
	font-family: 'Jost', sans-serif; font-size: 13px; font-style: italic; color: var(--gvp-gris-txt);
}
#gvp .gvp-cap-vide {
	margin: 0; font-family: 'Jost', sans-serif; font-size: 14px;
	font-style: italic; color: var(--gvp-gris-txt);
}
