/*
Theme Name: Voiture229
Theme URI: https://voiture229.com
Author: Voiture229
Description: Thème sur mesure pour voiture229.com — annonces automobiles au Bénin. Style inspiré du kit Autocar (noir/anthracite + rouge), code PHP/CSS/JS personnalisé, sans Elementor.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: voiture229
*/

/* ==================== VARIABLES & RESET ==================== */
:root {
	--v229-noir: #121212;
	--v229-anthracite: #1c1c1c;
	--v229-anthracite-clair: #2a2a2a;
	--v229-rouge: #d9202a;
	--v229-rouge-fonce: #b0181f;
	--v229-blanc: #ffffff;
	--v229-gris-clair: #f4f4f4;
	--v229-gris-texte: #6b6b6b;
	--v229-bordure: #e2e2e2;
	--v229-radius: 4px;
	--v229-font: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--v229-font);
	color: #222;
	background: var(--v229-blanc);
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 .5em;
}

.v229-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.v229-section { padding: 70px 0; }

.v229-section-title {
	text-align: center;
	text-transform: uppercase;
	font-size: 28px;
	margin-bottom: 40px;
}

.v229-center { text-align: center; margin-top: 30px; }

.v229-empty-state {
	text-align: center;
	color: var(--v229-gris-texte);
	padding: 40px 0;
}

/* ==================== BOUTONS ==================== */
.v229-btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: var(--v229-radius);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: .5px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.v229-btn-red {
	background: var(--v229-rouge);
	color: var(--v229-blanc);
}
.v229-btn-red:hover { background: var(--v229-rouge-fonce); }

.v229-btn-outline {
	background: transparent;
	border-color: var(--v229-noir);
	color: var(--v229-noir);
}
.v229-btn-outline:hover { background: var(--v229-noir); color: var(--v229-blanc); }

.v229-btn-whatsapp {
	background: #25d366;
	color: var(--v229-blanc);
	width: 100%;
	text-align: center;
	margin-bottom: 12px;
}
.v229-btn-whatsapp:hover { background: #1eb956; }

/* ==================== TOPBAR ==================== */
.v229-topbar {
	background: var(--v229-noir);
	color: #ccc;
	font-size: 13px;
}
.v229-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 24px;
	flex-wrap: wrap;
	gap: 8px;
}
.v229-topbar-infos { display: flex; gap: 20px; flex-wrap: wrap; }
.v229-topbar-infos a { color: #ccc; }
.v229-topbar-infos a:hover { color: var(--v229-rouge); }
.v229-topbar-infos .dashicons { font-size: 15px; width: 15px; height: 15px; vertical-align: middle; }
.v229-topbar-social { display: flex; gap: 12px; }
.v229-topbar-social a { color: #ccc; }
.v229-topbar-social a:hover { color: var(--v229-rouge); }

/* ==================== HEADER ==================== */
.v229-header {
	background: var(--v229-anthracite);
	position: sticky;
	top: 0;
	z-index: 100;
	transition: box-shadow .2s ease;
}
.v229-header.is-sticky { box-shadow: 0 4px 16px rgba(0,0,0,.3); }

.v229-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
}
.v229-logo a {
	color: var(--v229-blanc);
	font-size: 26px;
	font-weight: 900;
	text-transform: lowercase;
}
.v229-logo img { max-height: 48px; }

.v229-nav-menu {
	display: flex;
	gap: 32px;
}
.v229-nav-menu a {
	color: var(--v229-blanc);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
}
.v229-nav-menu a:hover { color: var(--v229-rouge); }

.v229-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}
.v229-nav-toggle span {
	width: 26px;
	height: 2px;
	background: var(--v229-blanc);
}

/* ==================== HERO ==================== */
.v229-hero {
	position: relative;
	min-height: 82vh;
	background: var(--v229-anthracite) center/cover no-repeat;
	display: flex;
	align-items: center;
	color: var(--v229-blanc);
}
.v229-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.15) 100%);
}
.v229-hero-content { position: relative; max-width: 700px; }
.v229-hero-accroche {
	color: var(--v229-rouge);
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 10px;
}
.v229-hero-titre {
	font-size: 56px;
	text-transform: uppercase;
	margin-bottom: 30px;
}

/* ==================== BANNIÈRE ROUGE EN BISEAU ==================== */
.v229-banner-red {
	background: linear-gradient(90deg, var(--v229-rouge) 0%, var(--v229-rouge-fonce) 100%);
	clip-path: polygon(0 0, 94% 0, 100% 50%, 94% 100%, 0 100%);
	display: inline-block;
	padding: 20px 60px 20px 30px;
	margin: 0 auto 50px;
}
.v229-banner-red h2 {
	color: var(--v229-blanc);
	text-transform: uppercase;
	font-size: 26px;
	margin: 0;
	white-space: nowrap;
}
.v229-select-type .v229-banner-red,
.v229-why-choose .v229-banner-red {
	display: table;
}

/* ==================== SELECT YOUR TYPE ==================== */
.v229-type-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 20px;
	text-align: center;
}
.v229-type-item { color: #222; }
.v229-car-icon {
	width: 90px;
	height: auto;
	color: #444;
	margin: 0 auto 14px;
	transition: color .2s ease, transform .2s ease;
}
.v229-type-item:hover .v229-car-icon { color: var(--v229-rouge); transform: translateY(-4px); }
.v229-type-item span {
	display: block;
	font-weight: 800;
	letter-spacing: .5px;
}

/* ==================== ACHETER / VENDRE ==================== */
.v229-buysell { background: var(--v229-noir); color: var(--v229-blanc); }
.v229-buysell-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: center;
}
.v229-buysell-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.v229-buysell-card {
	background: var(--v229-anthracite);
	padding: 36px 26px;
	border-radius: var(--v229-radius);
}
.v229-buysell-card h3 {
	text-transform: uppercase;
	font-size: 22px;
	margin-bottom: 14px;
}
.v229-buysell-card p { color: #bbb; margin-bottom: 24px; }
.v229-buysell-image img { border-radius: var(--v229-radius); }

/* ==================== GRILLE ANNONCES / CARTES ==================== */
.v229-annonces-grid-section { background: var(--v229-gris-clair); }
.v229-car-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.v229-car-card {
	background: var(--v229-blanc);
	border: 1px solid var(--v229-bordure);
	border-radius: var(--v229-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.v229-car-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.12); transform: translateY(-3px); }
.v229-car-card-link { display: block; padding: 16px; color: #222; }
.v229-car-card-meta-top {
	font-size: 12px;
	font-weight: 700;
	color: var(--v229-gris-texte);
	margin-bottom: 10px;
	text-transform: uppercase;
}
.v229-car-card-cat { color: var(--v229-rouge); }
.v229-car-card-sep { margin: 0 6px; color: #ccc; }
.v229-car-card-image {
	background: var(--v229-gris-clair);
	border-radius: var(--v229-radius);
	overflow: hidden;
	margin-bottom: 14px;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
}
.v229-car-card-image img { width: 100%; height: 100%; object-fit: cover; }
.v229-car-card-placeholder { color: #bbb; padding: 20px; }
.v229-car-card-placeholder .v229-car-icon { width: 70px; margin: 0 auto; }
.v229-car-card-title { font-size: 18px; margin-bottom: 4px; }
.v229-car-card-prix { color: var(--v229-rouge); font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.v229-car-card-specs { color: var(--v229-gris-texte); font-size: 13px; text-transform: uppercase; margin-bottom: 14px; }
.v229-car-card-cta { color: var(--v229-noir); font-weight: 700; font-size: 14px; }
.v229-car-card:hover .v229-car-card-cta { color: var(--v229-rouge); }

/* ==================== WHY CHOOSE US ==================== */
.v229-why-choose { text-align: center; }
.v229-why-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}
.v229-why-item {
	background: var(--v229-gris-clair);
	padding: 40px 24px;
	border-radius: var(--v229-radius);
}
.v229-why-icon {
	font-size: 40px;
	width: 40px;
	height: 40px;
	color: var(--v229-rouge);
	margin-bottom: 16px;
}
.v229-why-item h3 { font-size: 18px; margin-bottom: 10px; }
.v229-why-item p { color: var(--v229-gris-texte); font-size: 14px; margin: 0; }

/* ==================== CTA RESERVEZ MAINTENANT ==================== */
.v229-cta {
	background: linear-gradient(120deg, var(--v229-noir) 0%, var(--v229-rouge-fonce) 140%);
	color: var(--v229-blanc);
}
.v229-cta-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 40px;
	align-items: center;
}
.v229-cta-banner { margin: 0; }
.v229-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}
.v229-contact-form input,
.v229-contact-form textarea {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: var(--v229-radius);
	background: rgba(255,255,255,.1);
	color: var(--v229-blanc);
	font-family: inherit;
}
.v229-contact-form input::placeholder,
.v229-contact-form textarea::placeholder { color: #ddd; }
.v229-form-notice {
	padding: 10px 14px;
	border-radius: var(--v229-radius);
	margin-bottom: 16px;
	font-size: 14px;
}
.v229-form-success { background: rgba(37,211,102,.2); border: 1px solid #25d366; }
.v229-form-error { background: rgba(217,32,42,.2); border: 1px solid var(--v229-rouge); }

.v229-contact-page .v229-contact-form input,
.v229-contact-page .v229-contact-form textarea {
	background: var(--v229-gris-clair);
	color: #222;
	border: 1px solid var(--v229-bordure);
}
.v229-contact-page .v229-contact-form input::placeholder,
.v229-contact-page .v229-contact-form textarea::placeholder { color: #888; }

/* ==================== BLOG ==================== */
.v229-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.v229-blog-card {
	border: 1px solid var(--v229-bordure);
	border-radius: var(--v229-radius);
	overflow: hidden;
}
.v229-blog-card-image img { aspect-ratio: 16/10; object-fit: cover; }
.v229-blog-card h3 { padding: 20px 20px 6px; font-size: 18px; }
.v229-blog-date { padding: 0 20px 20px; color: var(--v229-gris-texte); font-size: 13px; margin: 0; }

/* ==================== CARROUSEL MARQUES ==================== */
.v229-brands { overflow: hidden; }
.v229-brands-title { position: relative; }
.v229-brands-title span {
	display: inline-block;
	padding: 0 20px;
	position: relative;
}
.v229-brands-title span::before,
.v229-brands-title span::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 60px;
	height: 1px;
	background: var(--v229-bordure);
}
.v229-brands-title span::before { right: 100%; }
.v229-brands-title span::after { left: 100%; }

.v229-brands-track {
	display: flex;
	gap: 60px;
	align-items: center;
	animation: v229-scroll 30s linear infinite;
	width: max-content;
}
.v229-brand-item {
	font-size: 22px;
	font-weight: 800;
	color: #999;
	white-space: nowrap;
	text-transform: uppercase;
}
@keyframes v229-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ==================== FOOTER ==================== */
.v229-footer {
	background: linear-gradient(120deg, var(--v229-rouge) 0%, var(--v229-rouge-fonce) 100%);
	color: var(--v229-blanc);
	padding: 60px 0 30px;
	text-align: center;
}
.v229-footer-question { text-transform: uppercase; font-size: 26px; margin-bottom: 24px; }
.v229-footer-contact {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}
.v229-footer-tel { font-size: 20px; font-weight: 800; }
.v229-footer-social { display: flex; gap: 16px; }
.v229-footer-social a {
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.15);
	border-radius: 50%;
}
.v229-footer-social a:hover { background: rgba(255,255,255,.3); }
.v229-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.25);
	padding-top: 20px;
	font-size: 13px;
	opacity: .9;
}

/* ==================== WHATSAPP FLOAT ==================== */
.v229-whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 58px;
	height: 58px;
	background: #25d366;
	color: var(--v229-blanc);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
	z-index: 200;
}
.v229-whatsapp-float:hover { background: #1eb956; }

/* ==================== PAGE HEADER (générique) ==================== */
.v229-page-header {
	background: var(--v229-noir);
	color: var(--v229-blanc);
	padding: 60px 0;
	text-align: center;
}
.v229-page-header h1 { text-transform: uppercase; font-size: 34px; margin: 0; }
.v229-breadcrumb { color: #aaa; margin-bottom: 10px; }
.v229-breadcrumb a { color: #aaa; }
.v229-breadcrumb a:hover { color: var(--v229-rouge); }
.v229-single-subtitle { color: #ccc; margin: 10px 0 0; }

/* ==================== LISTING (archive annonces) ==================== */
.v229-listing-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 40px;
	align-items: start;
}
.v229-filters {
	background: var(--v229-gris-clair);
	padding: 24px;
	border-radius: var(--v229-radius);
	position: sticky;
	top: 100px;
}
.v229-filter-group { margin-bottom: 20px; }
.v229-filter-group label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.v229-filter-group select,
.v229-filter-group input {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--v229-bordure);
	border-radius: var(--v229-radius);
	font-family: inherit;
}
.v229-filter-prix { display: flex; gap: 10px; }
.v229-filter-submit { width: 100%; margin-bottom: 10px; }
.v229-filter-reset {
	display: block;
	text-align: center;
	color: var(--v229-gris-texte);
	text-decoration: underline;
	font-size: 13px;
}
.v229-listing-count { color: var(--v229-gris-texte); margin-bottom: 20px; }
.v229-listing-results .v229-car-grid { grid-template-columns: repeat(3, 1fr); }

.v229-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.v229-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	border: 1px solid var(--v229-bordure);
	border-radius: var(--v229-radius);
	padding: 0 10px;
}
.v229-pagination .page-numbers.current { background: var(--v229-rouge); color: var(--v229-blanc); border-color: var(--v229-rouge); }

/* ==================== SINGLE ANNONCE ==================== */
.v229-single-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 50px;
	align-items: start;
}
.v229-gallery-main { border-radius: var(--v229-radius); overflow: hidden; background: var(--v229-gris-clair); }
.v229-gallery-main img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.v229-gallery-placeholder { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.v229-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.v229-gallery-thumb {
	border: 2px solid transparent;
	border-radius: var(--v229-radius);
	overflow: hidden;
	padding: 0;
	cursor: pointer;
	background: none;
	width: 90px;
	height: 65px;
}
.v229-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v229-gallery-thumb.is-active,
.v229-gallery-thumb:hover { border-color: var(--v229-rouge); }

.v229-single-description { margin-top: 40px; }
.v229-single-description h2 { text-transform: uppercase; font-size: 20px; margin-bottom: 14px; }

.v229-single-prix-box {
	background: var(--v229-gris-clair);
	border-radius: var(--v229-radius);
	padding: 26px;
	position: sticky;
	top: 100px;
}
.v229-single-prix { color: var(--v229-rouge); font-size: 30px; font-weight: 800; margin: 0 0 20px; }
.v229-single-specs { margin-bottom: 24px; }
.v229-single-specs li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--v229-bordure);
	font-size: 14px;
}
.v229-single-specs li span { color: var(--v229-gris-texte); }

/* ==================== CONTACT ==================== */
.v229-contact-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
}
.v229-contact-details { margin: 24px 0; }
.v229-contact-details li { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.v229-contact-form-wrap h2 { text-transform: uppercase; font-size: 20px; margin-bottom: 20px; }

/* ==================== PAGE / ARTICLE GÉNÉRIQUE ==================== */
.v229-single-post { max-width: 820px; margin: 0 auto; }
.v229-single-post-image { margin-bottom: 30px; border-radius: var(--v229-radius); overflow: hidden; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
	.v229-hero-titre { font-size: 38px; }
	.v229-type-grid { grid-template-columns: repeat(2, 1fr); }
	.v229-buysell-grid { grid-template-columns: 1fr; }
	.v229-buysell-cards { grid-template-columns: 1fr; }
	.v229-car-grid { grid-template-columns: repeat(2, 1fr); }
	.v229-why-grid { grid-template-columns: repeat(2, 1fr); }
	.v229-cta-grid { grid-template-columns: 1fr; }
	.v229-blog-grid { grid-template-columns: repeat(2, 1fr); }
	.v229-listing-layout { grid-template-columns: 1fr; }
	.v229-filters { position: static; }
	.v229-listing-results .v229-car-grid { grid-template-columns: repeat(2, 1fr); }
	.v229-single-layout { grid-template-columns: 1fr; }
	.v229-single-prix-box { position: static; }
	.v229-contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	.v229-nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--v229-anthracite);
		flex-direction: column;
		gap: 0;
		padding: 10px 0;
	}
	.v229-nav-menu.is-open { display: flex; }
	.v229-nav-menu a { display: block; padding: 14px 24px; }
	.v229-nav-toggle { display: flex; }
	.v229-header-inner { position: relative; }
	.v229-hero-titre { font-size: 30px; }
	.v229-type-grid { grid-template-columns: repeat(2, 1fr); }
	.v229-car-grid { grid-template-columns: 1fr; }
	.v229-why-grid { grid-template-columns: 1fr; }
	.v229-blog-grid { grid-template-columns: 1fr; }
	.v229-listing-results .v229-car-grid { grid-template-columns: 1fr; }
	.v229-form-row { grid-template-columns: 1fr; }
	.v229-topbar-inner { justify-content: center; text-align: center; }
	.v229-banner-red { padding: 16px 40px 16px 20px; }
	.v229-banner-red h2 { font-size: 20px; white-space: normal; }
}
