/*
Theme Name: Ventigo Paris
Theme URI: https://ventigo-paris.fr
Author: VENTIGO PARIS
Author URI: https://ventigo-paris.fr
Description: Thème WordPress sur mesure pour VENTIGO PARIS — dépôt-vente, rachat et orientation automobile. Conçu comme un système d'acquisition et de conversion, pas une simple vitrine.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
Tested up to: 6.6
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ventigo-paris
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--ventigo-navy: #0B1F3A;
	--ventigo-navy-light: #14315C;
	--ventigo-navy-dark: #071527;
	--ventigo-white: #FFFFFF;
	--ventigo-grey: #F4F5F7;
	--ventigo-grey-mid: #E2E5EA;
	--ventigo-anthracite: #23262F;
	--ventigo-text: #1A1D29;
	--ventigo-text-muted: #5B6070;
	--ventigo-success: #1E7A3D;
	--ventigo-success-bg: #EAF7EE;
	--ventigo-radius: 10px;
	--ventigo-radius-sm: 6px;
	--ventigo-shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
	--ventigo-container: 1180px;
	--ventigo-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Sécurité finale contre tout débordement horizontal résiduel — ne remplace
   pas la correction de la cause réelle sur chaque composant (audit du 25/09). */
html, body { max-width: 100%; overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--ventigo-font);
	color: var(--ventigo-text);
	background: var(--ventigo-white);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ventigo-navy); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 16px; color: var(--ventigo-navy); }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 20px; }
:focus-visible { outline: 3px solid var(--ventigo-navy-light); outline-offset: 2px; }
.skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--ventigo-navy); color: #fff;
	padding: 12px 20px; z-index: 10000; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--ventigo-container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--grey { background: var(--ventigo-grey); }
.section--navy { background: var(--ventigo-navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-header { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-header p { color: var(--ventigo-text-muted); }
.eyebrow {
	display: inline-block; text-transform: uppercase; letter-spacing: .08em;
	font-size: 12px; font-weight: 700; color: var(--ventigo-navy-light); margin-bottom: 10px;
}

/* ==========================================================================
   3. Boutons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 28px; border-radius: var(--ventigo-radius-sm);
	font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
	border: 2px solid transparent; transition: all .15s ease;
}
.btn--primary { background: var(--ventigo-navy); color: #fff; }
.btn--primary:hover { background: var(--ventigo-navy-light); color: #fff; }
.btn--outline { background: transparent; border-color: var(--ventigo-navy); color: var(--ventigo-navy); }
.btn--outline:hover { background: var(--ventigo-navy); color: #fff; }
.btn--white { background: #fff; color: var(--ventigo-navy); }
.btn--ghost-white { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* ==========================================================================
   4. En-tête
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 500;
	background: rgba(255,255,255,.97);
	border-bottom: 1px solid var(--ventigo-grey-mid);
	backdrop-filter: saturate(180%) blur(6px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 48px; width: auto; }
.site-logo a { display: inline-block; }

.main-nav { display: flex; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.main-nav a { color: var(--ventigo-text); text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--ventigo-navy); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ventigo-navy); text-decoration: none; font-size: 15px; }
.nav-toggle {
	display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
	content: ""; display: block; width: 24px; height: 2px; background: var(--ventigo-navy); margin: 5px 0; transition: .2s;
}

@media (max-width: 900px) {
	.main-nav { position: fixed; inset: 64px 0 0 0; background: #fff; padding: 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
	.main-nav.is-open { transform: translateX(0); }
	.main-nav ul { flex-direction: column; gap: 4px; }
	.main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--ventigo-grey-mid); }
	.nav-toggle { display: block; }
	.header-phone span.text { display: none; }
}

/* ==========================================================================
   5. Fil d'Ariane
   ========================================================================== */
.breadcrumbs { font-size: 13px; color: var(--ventigo-text-muted); padding: 14px 0; }
.breadcrumbs a { color: var(--ventigo-text-muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, var(--ventigo-grey) 0%, #fff 100%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.hero__title { margin-bottom: 18px; }
.hero__lead { font-size: 18px; color: var(--ventigo-text-muted); margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.hero__trust li { list-style: none; font-size: 13px; color: var(--ventigo-text-muted); display: flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: "✓"; color: var(--ventigo-success); font-weight: 700; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. Cartes "3 choix"
   ========================================================================== */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.choice-card {
	background: #fff; border: 1px solid var(--ventigo-grey-mid); border-radius: var(--ventigo-radius);
	padding: 28px; text-align: left; transition: transform .15s ease, box-shadow .15s ease;
}
.choice-card:hover { transform: translateY(-3px); box-shadow: var(--ventigo-shadow); }
.choice-card__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--ventigo-grey); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.choice-card h3 { margin-bottom: 8px; }
.choice-card p { color: var(--ventigo-text-muted); font-size: 14px; }
@media (max-width: 900px) { .choice-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   8. Étapes numérotées
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card { text-align: left; }
.step-card__num {
	width: 40px; height: 40px; border-radius: 50%; background: var(--ventigo-navy); color: #fff;
	display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   9. Listes d'avantages
   ========================================================================== */
.advantages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.advantages-list { list-style: none; margin: 0; padding: 0; }
.advantages-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ventigo-grey-mid); }
.advantages-list li:last-child { border-bottom: none; }
.advantages-list li::before { content: "✓"; color: var(--ventigo-success); font-weight: 700; flex-shrink: 0; }
@media (max-width: 860px) { .advantages-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   10. Réassurance
   ========================================================================== */
.reassurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.reassurance-item strong { display: block; color: var(--ventigo-navy); margin-bottom: 6px; }
.reassurance-item p { font-size: 13px; color: var(--ventigo-text-muted); margin: 0; }
@media (max-width: 900px) { .reassurance-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   11. Avis clients
   ========================================================================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; border: 1px solid var(--ventigo-grey-mid); border-radius: var(--ventigo-radius); padding: 24px; }
.testimonial-card__stars { color: #E8A33D; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card__quote { font-style: italic; margin-bottom: 14px; font-size: 14px; }
.testimonial-card__author { font-weight: 600; font-size: 13px; color: var(--ventigo-navy); }
.testimonial-card__meta { font-size: 12px; color: var(--ventigo-text-muted); }
.placeholder-notice {
	border: 1px dashed var(--ventigo-grey-mid); border-radius: var(--ventigo-radius);
	padding: 24px; text-align: center; color: var(--ventigo-text-muted); font-size: 14px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   12. Véhicules
   ========================================================================== */
.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vehicle-card { background: #fff; border: 1px solid var(--ventigo-grey-mid); border-radius: var(--ventigo-radius); overflow: hidden; text-decoration: none; color: inherit; display: block; }
.vehicle-card__media { position: relative; aspect-ratio: 4/3; background: var(--ventigo-grey); overflow: hidden; }
.vehicle-card__media img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card__status { position: absolute; top: 10px; left: 10px; background: var(--ventigo-navy); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.vehicle-card__body { padding: 18px; }
.vehicle-card__title { font-size: 16px; margin: 0 0 6px; color: var(--ventigo-navy); }
.vehicle-card__meta { font-size: 13px; color: var(--ventigo-text-muted); margin-bottom: 10px; }
.vehicle-card__price { font-weight: 700; font-size: 17px; color: var(--ventigo-navy); }
.vehicle-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.vehicle-filters select { padding: 10px 14px; border-radius: 6px; border: 1px solid var(--ventigo-grey-mid); font-size: 14px; }
@media (max-width: 960px) { .vehicle-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vehicle-grid { grid-template-columns: 1fr; } }

.single-vehicle__gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--ventigo-radius); overflow: hidden; margin-bottom: 24px; }
.single-vehicle__gallery img { aspect-ratio: 4/3; object-fit: cover; }
.single-vehicle__specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 24px 0; }
.single-vehicle__specs div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ventigo-grey-mid); padding: 8px 0; font-size: 14px; }
.single-vehicle__specs span:first-child { color: var(--ventigo-text-muted); }
.single-vehicle__price { font-size: 28px; font-weight: 800; color: var(--ventigo-navy); margin: 16px 0; }

/* ==========================================================================
   13. FAQ (accordéon natif <details>)
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--ventigo-grey-mid); }
.faq-item summary {
	cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none;
	display: flex; justify-content: space-between; align-items: center; color: var(--ventigo-navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 18px; color: var(--ventigo-text-muted); }

/* ==========================================================================
   14. CTA final / bannières
   ========================================================================== */
.cta-banner { text-align: center; }
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; }
.section--navy .cta-banner p { color: rgba(255,255,255,.8); }

/* ==========================================================================
   15. Formulaires de contenu (mentions légales, etc.)
   ========================================================================== */
.content-page { max-width: 820px; margin: 0 auto; }
.content-page h2 { margin-top: 40px; }
.content-page table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.content-page table th, .content-page table td { border: 1px solid var(--ventigo-grey-mid); padding: 10px; text-align: left; font-size: 14px; }

/* ==========================================================================
   16. Pied de page
   ========================================================================== */
.site-footer { background: var(--ventigo-anthracite); color: #C7CAD1; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-col h3, .footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a { color: #C7CAD1; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-logo img { height: 44px; margin-bottom: 16px; }
.footer-legal-line { font-size: 12px; line-height: 1.7; color: #8A8F9C; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #8A8F9C; }
.footer-bottom a { color: #C7CAD1; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: #C7CAD1; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   17. Bannière cookies
   ========================================================================== */
.cookie-banner {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
	background: var(--ventigo-navy); color: #fff;
	padding: 18px 24px; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: var(--ventigo-container); margin: 0 auto; }
.cookie-banner p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 680px; }
.cookie-banner__title { margin-bottom: 4px !important; font-weight: 600; }
.cookie-banner__state { margin-top: 6px !important; font-weight: 600; }
.cookie-banner__btn { min-width: 132px; min-height: 44px; }
.footer-link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; min-height: 24px; }
@media (max-width: 640px) { body:has(#ventigo-cookie-banner.is-visible) .site-footer { padding-bottom: 216px; } }
.footer-link-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Version compacte sur mobile — même contenu (texte, lien, deux actions de
   même niveau), moins d'espace occupé sur le premier écran (audit du 25/09). */
@media (max-width: 640px) {
	.cookie-banner { padding: 12px 16px; }
	.cookie-banner__inner { gap: 10px; }
	.cookie-banner p { font-size: 14.5px; line-height: 1.4; max-width: none; }
	.cookie-banner__actions { width: 100%; gap: 8px; }
	.cookie-banner__actions .btn { flex: 1; padding: 10px 14px; font-size: 15px; }
}

/* ==========================================================================
   18. Utilitaires
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   19. Accessibilité — mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
