/* Auto's Edition : véhicules. Reprend les couleurs et typographies du thème. */
.ae-veh {
	--ae-noir: var(--wp--preset--color--noir, #0E0E0F);
	--ae-rouge: var(--wp--preset--color--rouge, #D4131B);
	--ae-rouge-fonce: #B0101A;
	--ae-texte: var(--wp--preset--color--texte, #3D3A36);
	--ae-gris: var(--wp--preset--color--gris, #6B675F);
	--ae-bordure: var(--wp--preset--color--bordure, #E2DED6);
	--ae-sable: var(--wp--preset--color--sable, #E9E6E0);
	--ae-blanc: #FFFFFF;
	--ae-titres: var(--wp--preset--font-family--titres, "Archivo", sans-serif);
	display: flex;
	flex-direction: column;
	gap: 24px;
	color: var(--ae-texte);
}
.ae-veh * { box-sizing: border-box; }
.ae-veh p { margin: 0; }

/* Bandeau démonstration */
.ae-veh-demo {
	padding: 12px 16px;
	border: 1px dashed #CFCAC1;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.6);
	color: var(--ae-gris);
	font-size: 15px;
}

/* Filtres */
.ae-veh-filtres-boite > summary { display: none; }
.ae-veh-filtres {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	align-items: end;
	padding: 20px;
	background: var(--ae-blanc);
	border: 1px solid var(--ae-bordure);
	border-radius: 4px;
}
.ae-veh-filtre { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ae-veh-filtre label { font-size: 14px; font-weight: 700; color: var(--ae-texte); }
.ae-veh-filtre select {
	font: inherit;
	font-weight: 500;
	min-height: 48px;
	width: 100%;
	padding: 0 36px 0 12px;
	border: 1px solid #CFCAC1;
	border-radius: 4px;
	background: var(--ae-blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E0E0F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--ae-noir);
	appearance: none;
	-webkit-appearance: none;
}
.ae-veh-filtre select:focus { outline: 2px solid var(--ae-rouge); outline-offset: 1px; }
.ae-veh-filtres__ok {
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 4px;
	background: var(--ae-noir);
	color: var(--ae-blanc);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.ae-veh-filtres.ae-js .ae-veh-filtres__ok { display: none; }

.ae-veh-compte {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 24px;
	font-weight: 700;
}
.ae-veh-compte a { color: var(--ae-noir); text-underline-offset: 4px; }

/* Grille de cartes */
.ae-veh-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 24px;
}
.ae-veh-carte {
	background: var(--ae-blanc);
	border: 1px solid var(--ae-bordure);
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.ae-veh-carte:hover { border-color: var(--ae-noir); }
.ae-veh-carte__lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ae-veh-carte__lien:focus-visible { outline: 3px solid var(--ae-rouge); outline-offset: -3px; }
.ae-veh-carte__photo { position: relative; aspect-ratio: 4 / 3; background: var(--ae-sable); overflow: hidden; }
.ae-veh-carte__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ae-veh-carte:hover .ae-veh-carte__photo img { transform: scale(1.03); }
.ae-veh-carte__sans-photo {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-conic-gradient(#E2DED6 0 25%, #E9E6E0 0 50%) 0 0 / 24px 24px;
}
.ae-veh-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 3px;
	background: var(--ae-rouge);
	color: var(--ae-blanc);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.ae-veh-carte__corps { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 20px 20px 22px; }
.ae-veh .ae-veh-carte__titre {
	margin: 0;
	font-family: var(--ae-titres);
	font-stretch: 125%;
	font-weight: 800;
	font-size: 20px;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--ae-noir);
}
.ae-veh-carte__version { font-size: 15px; color: var(--ae-gris); }
.ae-veh-carte__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.ae-veh-carte__specs li {
	padding: 3px 9px;
	border-radius: 3px;
	background: var(--ae-sable);
	font-size: 13px;
	font-weight: 600;
	color: var(--ae-texte);
	white-space: nowrap;
}
.ae-veh-carte__prix {
	margin-top: auto !important;
	padding-top: 14px;
	font-family: var(--ae-titres);
	font-stretch: 125%;
	font-weight: 800;
	font-size: 24px;
	color: var(--ae-noir);
	font-variant-numeric: tabular-nums;
}

/* Liste vide, pagination */
.ae-veh-vide {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(24px, 4vw, 48px);
	background: var(--ae-blanc);
	border: 1px solid var(--ae-bordure);
	border-top: 4px solid var(--ae-rouge);
	border-radius: 4px;
}
.ae-veh .ae-veh-vide__titre { margin: 0; font-weight: 700; font-size: 20px; color: var(--ae-noir); }
.ae-veh-vide a { color: var(--ae-noir); font-weight: 700; }
.ae-veh-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; }
.ae-veh-pagination a { color: var(--ae-noir); text-underline-offset: 4px; }

/* Fiche */
.ae-veh-retour { align-self: flex-start; color: var(--ae-noir); font-weight: 700; text-decoration: none; }
.ae-veh-retour:hover { text-decoration: underline; text-underline-offset: 4px; }
.ae-veh-fiche__haut {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}
.ae-veh-galerie { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ae-veh-galerie__scene { position: relative; aspect-ratio: 4 / 3; background: var(--ae-noir); border-radius: 4px; overflow: hidden; }
.ae-veh-galerie__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.ae-veh-galerie__fleche {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(14, 14, 15, 0.72);
	color: #FFFFFF;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.ae-veh-galerie__fleche:hover { background: var(--ae-rouge); }
.ae-veh-galerie__fleche:focus-visible { outline: 3px solid #FFFFFF; }
.ae-veh-galerie__fleche--prec { left: 12px; }
.ae-veh-galerie__fleche--suiv { right: 12px; }
.ae-veh-galerie__compteur {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 4px 10px;
	border-radius: 3px;
	background: rgba(14, 14, 15, 0.72);
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
}
.ae-veh-galerie__vignettes {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
}
.ae-veh-galerie__vignettes li { flex: 0 0 auto; }
.ae-veh-galerie__vignettes button {
	display: block;
	width: 96px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: none;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.7;
}
.ae-veh-galerie__vignettes button[aria-current="true"] { border-color: var(--ae-rouge); opacity: 1; }
.ae-veh-galerie__vignettes button:hover { opacity: 1; }
.ae-veh-galerie__vignettes img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.ae-veh-resume {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(22px, 3vw, 32px);
	background: var(--ae-blanc);
	border: 1px solid var(--ae-bordure);
	border-radius: 4px;
}
.ae-veh-resume__surtitre { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ae-rouge); }
.ae-veh .ae-veh-resume__titre {
	margin: 0;
	font-family: var(--ae-titres);
	font-stretch: 125%;
	font-weight: 800;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--ae-noir);
	overflow-wrap: break-word;
}
.ae-veh-resume__version { font-size: 18px; color: var(--ae-gris); }
.ae-veh-resume__prix {
	margin-top: 6px !important;
	font-family: var(--ae-titres);
	font-stretch: 125%;
	font-weight: 800;
	font-size: clamp(30px, 3.2vw, 42px);
	color: var(--ae-noir);
	font-variant-numeric: tabular-nums;
}
.ae-veh-resume__mentions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ae-veh-resume__mentions li { padding: 4px 10px; border-radius: 3px; background: var(--ae-sable); font-size: 14px; font-weight: 600; }
.ae-veh-resume__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ae-veh-bouton {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 20px;
	border: 1px solid var(--ae-noir);
	border-radius: 4px;
	background: var(--ae-noir);
	color: #FFFFFF !important;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
}
.ae-veh-bouton:hover { filter: brightness(1.15); }
.ae-veh-bouton--rouge { background: var(--ae-rouge); border-color: var(--ae-rouge); }
.ae-veh-bouton--rouge:hover { background: var(--ae-rouge-fonce); filter: none; }
.ae-veh-bouton--contour { background: transparent; color: var(--ae-noir) !important; }
.ae-veh-bouton--contour:hover { background: var(--ae-noir); color: #FFFFFF !important; filter: none; }
.ae-veh-resume__visite { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--ae-bordure); font-size: 15px; }
.ae-veh-resume__visite strong { color: var(--ae-noir); }
.ae-veh-resume__source { font-size: 14px; }
.ae-veh-resume__source a { color: var(--ae-gris); text-underline-offset: 3px; }

.ae-veh-fiche__bas {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-auto-flow: dense;
	gap: 24px;
	align-items: start;
	margin-top: 16px;
}
.ae-veh-fiche__bas > .ae-veh-bloc:first-child { grid-row: span 2; }
.ae-veh-bloc {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(22px, 3vw, 32px);
	background: var(--ae-blanc);
	border: 1px solid var(--ae-bordure);
	border-radius: 4px;
	min-width: 0;
}
.ae-veh .ae-veh-bloc h2 {
	margin: 0;
	font-family: var(--ae-titres);
	font-stretch: 125%;
	font-weight: 800;
	font-size: 22px;
	text-transform: uppercase;
	color: var(--ae-noir);
}
.ae-veh-specs { margin: 0; }
.ae-veh-specs div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--ae-bordure);
	font-size: 15px;
}
.ae-veh-specs div:last-child { border-bottom: 0; }
.ae-veh-specs dt { color: var(--ae-gris); }
.ae-veh-specs dd { margin: 0; font-weight: 700; color: var(--ae-noir); text-align: right; }
.ae-veh-equipements { columns: 2 180px; column-gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.ae-veh-equipements li { position: relative; padding: 5px 0 5px 22px; break-inside: avoid; }
.ae-veh-equipements li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 11px;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--ae-rouge);
	border-bottom: 2px solid var(--ae-rouge);
	transform: rotate(-45deg);
}
.ae-veh-description { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.65; }

@media (max-width: 860px) {
	.ae-veh-fiche__haut, .ae-veh-fiche__bas { grid-template-columns: minmax(0, 1fr); }
	.ae-veh-fiche__bas > .ae-veh-bloc:first-child { grid-row: auto; }
	.ae-veh-resume { position: static; }
}
@media (max-width: 700px) {
	.ae-veh-filtres-boite {
		background: var(--ae-blanc);
		border: 1px solid var(--ae-bordure);
		border-radius: 4px;
	}
	.ae-veh-filtres-boite > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 52px;
		padding: 0 16px;
		font-weight: 700;
		color: var(--ae-noir);
		cursor: pointer;
		list-style: none;
	}
	.ae-veh-filtres-boite > summary::-webkit-details-marker { display: none; }
	.ae-veh-filtres-boite > summary::after { content: "+"; font-size: 24px; font-weight: 400; }
	.ae-veh-filtres-boite[open] > summary::after { content: "–"; }
	.ae-veh-actifs { margin-right: auto; margin-left: 8px; color: var(--ae-rouge); font-size: 12px; }
	.ae-veh-filtres { grid-template-columns: 1fr; padding: 0 16px 16px; border: 0; background: none; }
}
@media (max-width: 600px) {
	.ae-veh-galerie__fleche { width: 40px; height: 40px; font-size: 26px; }
	.ae-veh-galerie__vignettes button { width: 76px; }
}
@media (prefers-reduced-motion: reduce) {
	.ae-veh-carte, .ae-veh-carte__photo img { transition: none; }
	.ae-veh-carte:hover .ae-veh-carte__photo img { transform: none; }
}
