/**
 * Financement Auto Crédit - Styles Frontend
 * 
 * @package Financement_Auto_Credit
 * @version 1.0.0
 * 
 * Table des matières:
 * 1. Variables CSS
 * 2. Reset & Base
 * 3. Utilitaires
 * 4. Animations
 * 5. Boutons
 * 6. Formulaires
 * 7. Bannière supérieure
 * 8. Header & Navigation
 * 9. Hero Section
 * 10. Section Statistiques
 * 11. Filtres
 * 12. Cartes Véhicules
 * 13. Section À Propos
 * 14. Section Avantages
 * 15. Section CTA
 * 16. Footer
 * 17. Page Inventaire
 * 18. Page Véhicule Single
 * 19. Galerie
 * 20. Modals
 * 21. Messages & Alerts
 * 22. Loader
 * 23. Responsive
 */

/* ============================================
   1. VARIABLES CSS
============================================ */
:root {
    /* Couleurs principales */
    --emerald: #047857;
    --emerald-light: #059669;
    --emerald-dark: #065f46;
    --emerald-bg: rgba(4, 120, 87, 0.1);
    
    /* Couleurs secondaires */
    --navy: #0f172a;
    --navy-light: #1e293b;
    
    /* Accents */
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    
    /* Gris (Slate) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --white: #ffffff;
    
    /* États */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Typographie */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Tailles de police */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    --text-hero: clamp(36px, 5vw, 52px);
    
    /* Poids */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Espacements */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 24px;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(4, 120, 87, 0.3);
    --shadow-button: 0 4px 14px rgba(4, 120, 87, 0.4);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index */
    --z-dropdown: 50;
    --z-sticky: 100;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
}

/* ============================================
   2. RESET & BASE
============================================ */
.fac-wrapper *,
.fac-wrapper *::before,
.fac-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fac-wrapper {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--slate-700);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Prevent ANY child from exceeding viewport */
.fac-wrapper .fac-single-content,
.fac-wrapper .fac-single-grid,
.fac-wrapper .fac-single-gallery,
.fac-wrapper .fac-single-info,
.fac-wrapper .fac-single-description,
.fac-wrapper .fac-single-description-text,
.fac-wrapper .fac-single-actions,
.fac-wrapper .fac-top-banner,
.fac-wrapper .fac-header,
.fac-wrapper .fac-footer,
.fac-wrapper .fac-similar {
    max-width: 100%;
    box-sizing: border-box;
}

/* Container keeps its 1280px max-width */
.fac-wrapper .fac-container {
    box-sizing: border-box;
}

.fac-wrapper a {
    color: inherit;
    text-decoration: none;
}

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

.fac-wrapper button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   3. UTILITAIRES
============================================ */
.fac-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.fac-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.fac-text-center { text-align: center; }
.fac-text-left { text-align: left; }
.fac-text-right { text-align: right; }

.fac-hidden { display: none !important; }
.fac-visible { display: block !important; }

.fac-flex { display: flex; }
.fac-flex-col { flex-direction: column; }
.fac-items-center { align-items: center; }
.fac-justify-center { justify-content: center; }
.fac-justify-between { justify-content: space-between; }
.fac-gap-2 { gap: var(--space-2); }
.fac-gap-4 { gap: var(--space-4); }
.fac-gap-6 { gap: var(--space-6); }

/* ============================================
   4. ANIMATIONS
============================================ */
@keyframes fac-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fac-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fac-slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fac-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fac-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fac-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fac-animate-fadeInUp {
    animation: fac-fadeInUp 0.6s ease forwards;
}

.fac-animate-delay-1 { animation-delay: 0.1s; }
.fac-animate-delay-2 { animation-delay: 0.2s; }
.fac-animate-delay-3 { animation-delay: 0.3s; }
.fac-animate-delay-4 { animation-delay: 0.4s; }

/* ============================================
   5. BOUTONS
============================================ */
.fac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.fac-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fac-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Bouton Principal - Vert */
.fac-btn-primary {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.4);
}

.fac-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 120, 87, 0.5);
}

/* Bouton Secondaire - Navy */
.fac-btn-secondary {
    background: var(--navy) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-md);
}

.fac-btn-secondary,
.fac-btn-secondary span,
.fac-btn-secondary svg,
.fac-btn-secondary svg use {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.fac-btn-secondary:hover:not(:disabled) {
    background: var(--navy-light) !important;
    transform: translateY(-2px);
}

/* Bouton Outline - Blanc (sur fond sombre) */
.fac-btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.fac-btn-outline:hover:not(:disabled) {
    background: var(--white);
    color: var(--navy);
}

/* Bouton Outline - Sombre (sur fond clair) */
.fac-btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--slate-200);
}

.fac-btn-outline-dark:hover:not(:disabled) {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Bouton Doré */
.fac-btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    font-weight: 700;
}

.fac-btn-gold:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

/* Bouton Danger */
.fac-btn-danger {
    background: var(--error);
    color: var(--white);
}

.fac-btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

/* Tailles */
.fac-btn-xs {
    padding: 6px 12px;
    font-size: 12px;
}

.fac-btn-xs svg {
    width: 14px;
    height: 14px;
}

.fac-btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.fac-btn-sm svg {
    width: 14px;
    height: 14px;
}

.fac-btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

/* Bouton Bannière */
.fac-btn-banner {
    background: var(--navy);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.fac-btn-banner:hover {
    background: var(--emerald);
    color: #ffffff !important;
    transform: scale(1.05);
}

.fac-btn-banner svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
}

/* Bouton pleine largeur */
.fac-btn-block {
    width: 100%;
}

/* ============================================
   6. FORMULAIRES
============================================ */
.fac-form-group {
    margin-bottom: 24px;
}

.fac-form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

.fac-form-label .fac-required {
    color: var(--error);
    margin-left: 2px;
}

.fac-form-input,
.fac-form-select,
.fac-form-textarea {
    width: 100% !important;
    padding: 18px 20px !important;
    min-height: 58px !important;
    height: auto !important;
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    color: var(--navy) !important;
    background: var(--white) !important;
    border: 2px solid var(--slate-200) !important;
    border-radius: 16px !important;
    transition: all var(--transition-fast);
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}

.fac-form-input:focus,
.fac-form-select:focus,
.fac-form-textarea:focus {
    outline: none !important;
    border-color: var(--emerald) !important;
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.08) !important;
}

.fac-form-input::placeholder,
.fac-form-textarea::placeholder {
    color: var(--slate-400) !important;
}

.fac-form-input.fac-error,
.fac-form-select.fac-error,
.fac-form-textarea.fac-error {
    border-color: var(--error) !important;
}

.fac-form-error {
    margin-top: 6px;
    font-size: 13px;
    color: var(--error);
}

.fac-form-textarea {
    min-height: 140px !important;
    resize: vertical;
}

.fac-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 48px;
}

.fac-form-hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--slate-500);
}

/* ============================================
   7. BANNIÈRE SUPÉRIEURE
============================================ */
.fac-top-banner {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    padding: 16px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin-top: 0;
}

.fac-top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 100%;
    animation: fac-shimmer 3s infinite;
}

.fac-top-banner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--navy);
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.fac-top-banner-icon {
    color: var(--navy);
    display: flex;
    align-items: center;
}

.fac-top-banner-icon svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   8. HEADER & NAVIGATION
============================================ */
.fac-header {
    background: var(--white);
    padding: 16px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    overflow: visible;
}

.fac-header > .fac-container {
    overflow: clip;
}

.fac-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fac-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
}

.fac-logo-main {
    font-size: 20px;
    font-weight: 800;
    color: var(--emerald);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.fac-logo-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 1px;
}

.fac-logo img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 280px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Prevent Divi or theme from overriding logo size */
.fac-wrapper .fac-header .fac-logo img,
#fac-app .fac-header .fac-logo img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
}

/* Navigation */
.fac-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}

.fac-nav-link {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-600);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.fac-nav-link:hover {
    color: var(--emerald);
    background: rgba(4, 120, 87, 0.05);
}

.fac-nav-link.active {
    color: var(--emerald);
    background: rgba(4, 120, 87, 0.1);
}

/* Actions Header */
.fac-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.fac-header-actions .fac-btn-primary {
    white-space: nowrap;
}

/* Sélecteur de langue */
/* Language Dropdown */
.fac-lang-dropdown {
    position: relative;
}

.fac-lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--slate-100);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: all 0.2s ease;
}

.fac-lang-dropdown-toggle:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

.fac-lang-dropdown-toggle svg {
    color: var(--slate-500);
}

.fac-lang-dropdown-toggle svg:first-child {
    width: 18px;
    height: 18px;
}

.fac-lang-current {
    font-weight: 700;
    color: var(--emerald);
}

.fac-lang-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.fac-lang-dropdown.open .fac-lang-chevron {
    transform: rotate(180deg);
}

.fac-lang-dropdown-menu {
    position: fixed;
    min-width: 160px;
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.fac-lang-dropdown.open .fac-lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fac-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--slate-600);
    transition: all 0.15s ease;
}

.fac-lang-option:hover {
    background: var(--slate-50);
    color: var(--navy);
}

.fac-lang-option.active {
    background: var(--emerald-light);
    color: var(--emerald-dark);
}

.fac-lang-option.active .fac-lang-code {
    background: var(--emerald);
    color: white;
}

.fac-lang-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    font-size: 12px;
    font-weight: 700;
    background: var(--slate-200);
    border-radius: 4px;
    color: var(--slate-600);
}

.fac-lang-name {
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Menu Toggle */
.fac-mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--slate-100);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--navy);
}

.fac-mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   9. HERO SECTION
============================================ */
.fac-hero {
    background-color: var(--navy);
    background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0f2744 100%);
    background-size: cover !important;
    background-position: center 25% !important;
    background-repeat: no-repeat !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.fac-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 35, 57, 0.55);
    pointer-events: none;
}

.fac-hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.fac-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--emerald);
    border: 1px solid var(--emerald);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 32px;
}

.fac-hero-badge svg {
    width: 18px;
    height: 18px;
}

.fac-hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 32px;
}

.fac-hero-title .fac-text-emerald {
    color: var(--emerald-light);
    display: block;
}

.fac-hero-subtitle {
    font-size: var(--text-xl);
    color: var(--slate-300);
    margin-bottom: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.fac-hero-subtitle strong {
    color: var(--white);
    font-weight: 600;
}

.fac-hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.fac-hero-buttons .fac-btn {
    min-width: 220px;
    padding: 16px 32px;
    font-size: 16px;
}

/* ============================================
   10. SECTION STATISTIQUES
============================================ */
.fac-stats {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid var(--slate-200);
}

.fac-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.fac-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fac-stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-bg);
    border-radius: var(--radius-lg);
    color: var(--emerald);
    flex-shrink: 0;
}

.fac-stat-icon svg {
    width: 24px;
    height: 24px;
}

.fac-stat-content {
    display: flex;
    flex-direction: column;
}

.fac-stat-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--emerald);
    line-height: 1.1;
}

.fac-stat-label {
    font-size: var(--text-sm);
    color: var(--slate-500);
    font-weight: 500;
}

/* ============================================
   11. FILTRES
============================================ */
.fac-section-vehicles {
    padding: 80px 0;
}

.fac-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.fac-section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.fac-section-subtitle {
    font-size: var(--text-lg);
    color: var(--slate-500);
}

/* Filtres Pills */
.fac-filters-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.fac-filter-pill {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-600);
    background: var(--white);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fac-filter-pill:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.fac-filter-pill.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* Wrapper Filtres Avancés avec Toggle */
.fac-filters-advanced-wrapper {
    margin-bottom: 32px;
}

.fac-filters-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    width: 100%;
    background: var(--white);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0;
}

.fac-filters-toggle:hover {
    border-color: var(--emerald);
    background: var(--slate-50);
}

.fac-filters-toggle[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    margin-bottom: 0;
}

.fac-filters-toggle-icon {
    color: var(--emerald);
    flex-shrink: 0;
}

.fac-filters-toggle-text {
    flex: 1;
    text-align: left;
}

.fac-filters-toggle-chevron {
    color: var(--slate-400);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.fac-filters-toggle[aria-expanded="true"] .fac-filters-toggle-chevron {
    transform: rotate(180deg);
}

/* Filtres Avancés */
.fac-filters-advanced {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.fac-filters-toggle[aria-expanded="true"] + .fac-filters-advanced {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.fac-filters-advanced.collapsed {
    display: none;
}

.fac-filters-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.fac-filter-group {
    display: flex;
    flex-direction: column;
}

.fac-filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.fac-filter-select {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-700);
    background: var(--slate-50);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    transition: all var(--transition-fast);
    height: 48px;
    box-sizing: border-box;
}

.fac-filter-select:focus {
    outline: none;
    border-color: var(--emerald);
    background-color: var(--white);
}

/* Champ de recherche texte */
.fac-filter-group-search {
    min-width: 200px;
}

.fac-search-input-wrapper {
    position: relative;
    display: block;
}

.fac-filter-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--slate-700);
    background: var(--slate-50);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    box-sizing: border-box;
    line-height: 44px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.fac-filter-input:focus {
    outline: none;
    border-color: var(--emerald);
    background-color: var(--white);
}

.fac-filter-input::placeholder {
    color: var(--slate-400);
    font-weight: 400;
}

.fac-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    pointer-events: none;
}

.fac-filters-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}

.fac-filters-reset {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-600);
    background: transparent;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fac-filters-reset:hover {
    background: var(--slate-100);
    border-color: var(--slate-300);
}

.fac-filters-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fac-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fac-sort-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-500);
    white-space: nowrap;
}

.fac-sort-label svg {
    color: var(--slate-400);
}

.fac-sort-select {
    padding: 6px 28px 6px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--transition-fast);
}

.fac-sort-select:hover {
    border-color: var(--slate-300);
}

.fac-sort-select:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.fac-filters-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--emerald);
    white-space: nowrap;
}

.fac-filters-count span {
    font-weight: 800;
}

/* ============================================
   12. CARTES VÉHICULES
============================================ */
.fac-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fac-vehicle-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.fac-vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.fac-vehicle-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.fac-vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.fac-vehicle-card:hover .fac-vehicle-image {
    transform: scale(1.05);
}

.fac-vehicle-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.fac-vehicle-badge-new {
    background: var(--emerald);
    color: var(--white);
}

.fac-vehicle-badge-featured {
    background: var(--gold);
    color: var(--navy);
}

.fac-vehicle-content {
    padding: 24px;
}

.fac-vehicle-stock {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.fac-vehicle-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.3;
}

.fac-vehicle-title a {
    color: inherit;
    text-decoration: none;
}

.fac-vehicle-title a:hover {
    color: var(--emerald);
}

.fac-vehicle-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.fac-vehicle-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--emerald);
}

.fac-vehicle-km {
    font-size: 14px;
    color: var(--slate-500);
}

.fac-vehicle-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fac-vehicle-actions .fac-btn {
    flex: 1 1 auto;
    min-width: 120px;
    white-space: nowrap;
    font-size: 13px;
    padding: 10px 12px;
    text-overflow: ellipsis;
    overflow: hidden;
    justify-content: center;
}

/* Sur petits écrans, boutons en colonne */
@media (max-width: 380px) {
    .fac-vehicle-actions {
        flex-direction: column;
    }
    
    .fac-vehicle-actions .fac-btn {
        width: 100%;
        min-width: unset;
    }
}

/* Pagination */
.fac-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.fac-pagination-btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-600);
    background: var(--white);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fac-pagination-btn:hover:not(.disabled):not(.active):not(.fac-pagination-ellipsis) {
    border-color: var(--navy);
    color: var(--navy);
}

.fac-pagination-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    cursor: default;
}

.fac-pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.fac-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.fac-pagination-ellipsis {
    cursor: default;
    pointer-events: none;
}

.fac-pagination-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   13. SECTION À PROPOS
============================================ */
.fac-about {
    padding: 100px 0;
    background: var(--white);
}

.fac-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.fac-about-content {
    max-width: 560px;
}

.fac-about-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.2;
}

.fac-about-title .fac-text-emerald {
    color: var(--emerald);
}

.fac-about-text {
    font-size: var(--text-base);
    color: var(--slate-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.fac-about-text strong {
    color: var(--navy);
    font-weight: 600;
}

.fac-about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.fac-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--emerald-bg);
    border: 1px solid rgba(4, 120, 87, 0.2);
    border-radius: var(--radius-full);
    color: var(--emerald-dark);
    font-size: 14px;
    font-weight: 600;
}

.fac-tag svg {
    width: 16px;
    height: 16px;
    color: var(--emerald);
}

.fac-about-image-wrapper {
    position: relative;
}

.fac-about-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.fac-about-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    max-width: 280px;
    padding: 24px;
    background: var(--navy);
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.fac-about-overlay-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.fac-about-overlay-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* ============================================
   13B. SECTION SEO
============================================ */
.fac-seo {
    padding: 80px 0;
    background: var(--white);
}

.fac-seo-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 48px;
}

.fac-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.fac-seo-item {
    text-align: center;
}

.fac-seo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-bg);
    border-radius: var(--radius-lg);
    color: var(--emerald);
}

.fac-seo-item-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.fac-seo-item-text {
    font-size: var(--text-base);
    color: var(--slate-600);
    line-height: 1.7;
}

/* ============================================
   14. SECTION AVANTAGES
============================================ */
.fac-advantages {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0f2744 100%);
    border-top: none;
    border-bottom: none;
}

.fac-advantages-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 48px;
}

.fac-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.fac-advantage-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fac-advantage-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

.fac-advantage-icon svg {
    width: 24px;
    height: 24px;
}

.fac-advantage-text {
    font-size: var(--text-base);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   15. SECTION CTA
============================================ */
.fac-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fac-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200% 100%;
    animation: fac-shimmer 4s infinite;
}

.fac-cta-content {
    position: relative;
}

.fac-cta-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.fac-cta-subtitle {
    font-size: var(--text-lg);
    color: var(--navy);
    opacity: 0.8;
    margin-bottom: 32px;
}

.fac-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   16. FOOTER
============================================ */
.fac-footer {
    background: var(--navy);
    padding: 60px 0 40px;
    text-align: center;
}

.fac-footer-logo {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.fac-footer-logo img {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
}

.fac-footer-logo-main {
    font-size: 24px;
    font-weight: 800;
    color: var(--emerald-light);
    letter-spacing: -0.5px;
}

.fac-footer-logo-sub {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.fac-footer-tagline {
    font-size: var(--text-base);
    color: var(--slate-400);
    margin-bottom: 24px;
}

.fac-footer-copyright {
    font-size: var(--text-sm);
    color: var(--slate-500);
    margin-bottom: 16px;
}

.fac-footer-link {
    font-size: var(--text-sm);
    color: var(--emerald-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.fac-footer-link:hover {
    color: var(--emerald);
    text-decoration: underline;
}

/* ============================================
   17. PAGE INVENTAIRE
============================================ */
.fac-inventory-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 60px 0;
    text-align: center;
}

.fac-inventory-hero-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.fac-inventory-hero-subtitle {
    font-size: var(--text-xl);
    color: var(--slate-300);
    margin-bottom: 24px;
}

.fac-inventory-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    opacity: 0.85;
}

.fac-inventory-hero-link:hover {
    color: #ffffff !important;
    opacity: 1;
}

.fac-inventory-hero-link svg {
    width: 16px;
    height: 16px;
    color: #ffffff !important;
    fill: #ffffff !important;
}

.fac-inventory-content {
    padding: 48px 0 80px;
}

/* ============================================
   18. PAGE VÉHICULE SINGLE
============================================ */
.fac-single-header {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--slate-200);
}

.fac-single-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fac-single-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--emerald);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.fac-single-back:hover {
    color: var(--emerald-dark);
}

.fac-single-back svg {
    width: 16px;
    height: 16px;
}

.fac-single-content {
    padding: 48px 0 80px;
}

.fac-single-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

/* Colonne Galerie */
.fac-single-gallery {
    position: relative;
    grid-column: 1;
    grid-row: 1;
}

/* Colonne Info */
.fac-single-info {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
    grid-column: 2;
    grid-row: 1 / 3;
}

/* Description - sous la galerie sur desktop */
.fac-single-description {
    grid-column: 1;
    grid-row: 2;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.fac-single-stock {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.fac-single-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.fac-single-subtitle {
    font-size: var(--text-base);
    color: var(--slate-500);
    margin-bottom: 20px;
}

.fac-single-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--emerald);
    margin-bottom: 24px;
}

.fac-single-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 24px;
}

.fac-single-spec {
    display: flex;
    flex-direction: column;
}

.fac-single-spec-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fac-single-spec-value {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--navy);
}

.fac-single-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Description - old styles merged into grid layout above */

.fac-single-description-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.fac-single-description-text {
    font-size: var(--text-base);
    color: var(--slate-600);
    line-height: 1.8;
}

.fac-single-description-text p {
    margin-bottom: 16px;
}

.fac-single-description-text p:last-child {
    margin-bottom: 0;
}

.fac-single-description-text strong {
    color: var(--navy);
    font-weight: 600;
}

.fac-single-description-text em {
    font-size: 0.9em;
    color: var(--slate-500);
}

/* Véhicules Similaires */
.fac-similar {
    padding: 80px 0;
    background: var(--slate-50);
}

.fac-similar-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 32px;
}

.fac-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Boutons plus compacts dans les véhicules similaires */
.fac-similar-grid .fac-vehicle-actions {
    flex-direction: column;
    gap: 8px;
}

.fac-similar-grid .fac-vehicle-actions .fac-btn {
    width: 100%;
    min-width: unset;
    font-size: 12px;
    padding: 10px 8px;
}

/* Véhicule Non Trouvé */
.fac-not-found {
    padding: 120px 0;
    text-align: center;
}

.fac-not-found-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    border-radius: 50%;
    color: var(--slate-400);
}

.fac-not-found-icon svg {
    width: 40px;
    height: 40px;
}

.fac-not-found-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.fac-not-found-text {
    font-size: var(--text-base);
    color: var(--slate-500);
    margin-bottom: 32px;
}

/* ============================================
   19. GALERIE
============================================ */
.fac-gallery {
    position: relative;
}

.fac-gallery-main {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.fac-gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fac-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.fac-gallery-nav:hover {
    background: var(--emerald);
    color: var(--white);
}

.fac-gallery-nav svg {
    width: 20px;
    height: 20px;
}

.fac-gallery-nav-prev {
    left: 16px;
}

.fac-gallery-nav-next {
    right: 16px;
}

.fac-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.fac-gallery-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-fast);
}

.fac-gallery-thumb:hover {
    border-color: var(--slate-300);
}

.fac-gallery-thumb.active {
    border-color: var(--emerald);
}

.fac-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   20. MODALS
============================================ */
.fac-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.fac-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.fac-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    overflow: hidden;
}

.fac-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.fac-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 28px 0;
}

.fac-modal-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
}

.fac-modal-subtitle {
    font-size: var(--text-sm);
    color: var(--slate-500);
    margin-top: 4px;
}

.fac-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--slate-500);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.fac-modal-close:hover {
    background: var(--slate-200);
    color: var(--navy);
}

.fac-modal-close svg {
    width: 18px;
    height: 18px;
}

.fac-modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

/* Modal Vehicle Info */
.fac-modal-vehicle {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.fac-modal-vehicle-image {
    width: 100px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.fac-modal-vehicle-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fac-modal-vehicle-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.fac-modal-vehicle-price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--emerald);
}

/* Modal Success */
.fac-modal-success {
    text-align: center;
    padding: 40px 20px;
}

.fac-modal-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-bg);
    border-radius: 50%;
    color: var(--emerald);
}

.fac-modal-success-icon svg {
    width: 32px;
    height: 32px;
}

.fac-modal-success-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.fac-modal-success-text {
    font-size: var(--text-base);
    color: var(--slate-500);
}

/* ============================================
   21. MESSAGES & ALERTS
============================================ */
.fac-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.fac-alert-icon {
    flex-shrink: 0;
}

.fac-alert-icon svg {
    width: 20px;
    height: 20px;
}

.fac-alert-content {
    flex: 1;
}

.fac-alert-title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 4px;
}

.fac-alert-text {
    font-size: var(--text-sm);
}

.fac-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.fac-alert-success .fac-alert-icon {
    color: var(--success);
}

.fac-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

.fac-alert-error .fac-alert-icon {
    color: var(--error);
}

.fac-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.fac-alert-warning .fac-alert-icon {
    color: var(--warning);
}

.fac-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #1e40af;
}

.fac-alert-info .fac-alert-icon {
    color: #3b82f6;
}

/* ============================================
   22. LOADER
============================================ */
.fac-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.fac-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--emerald);
    border-radius: 50%;
    animation: fac-spin 0.8s linear infinite;
}

.fac-loader-text {
    margin-left: 16px;
    font-size: var(--text-base);
    color: var(--slate-500);
}

/* Skeleton Loading */
.fac-skeleton {
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
    background-size: 200% 100%;
    animation: fac-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.fac-skeleton-card {
    height: 380px;
    border-radius: var(--radius-lg);
}

.fac-skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.fac-skeleton-text-sm {
    height: 12px;
    width: 60%;
}

/* ============================================
   23. RESPONSIVE
============================================ */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .fac-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .fac-filters-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fac-vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fac-about-grid {
        gap: 40px;
    }
    
    .fac-single-grid {
        grid-template-columns: 1fr 350px;
        gap: 32px;
    }
    
    .fac-similar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Small - 768px */
@media (max-width: 768px) {
    .fac-container {
        padding: 0 16px;
    }
    
    /* Header */
    .fac-nav {
        display: none;
    }
    
    .fac-header-actions .fac-btn {
        display: none;
    }
    
    .fac-mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .fac-hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .fac-hero-content {
        max-width: 100%;
    }
    
    .fac-hero-subtitle {
        max-width: 100%;
    }
    
    .fac-hero-buttons {
        justify-content: center;
    }
    
    /* Stats */
    .fac-stats {
        padding: 40px 0;
    }
    
    .fac-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .fac-stat-value {
        font-size: var(--text-2xl);
    }
    
    /* Section SEO */
    .fac-seo {
        padding: 60px 0;
    }
    
    .fac-seo-title {
        font-size: var(--text-2xl);
    }
    
    .fac-seo-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Filtres */
    .fac-filters-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fac-filters-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .fac-filters-reset {
        width: 100%;
    }
    
    .fac-filters-right {
        justify-content: space-between;
    }
    
    .fac-filters-count {
        text-align: right;
    }
    
    /* Véhicules */
    .fac-vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* About */
    .fac-about {
        padding: 60px 0;
    }
    
    .fac-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .fac-about-image-wrapper {
        order: -1;
    }
    
    .fac-about-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin-top: -40px;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    /* Avantages */
    .fac-advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* CTA */
    .fac-cta {
        padding: 60px 0;
    }
    
    .fac-cta-title {
        font-size: var(--text-3xl);
    }
    
    .fac-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .fac-cta-buttons .fac-btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Single - Tablet */
    .fac-single-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .fac-single-gallery,
    .fac-single-info,
    .fac-single-description {
        grid-column: 1;
        grid-row: auto;
    }
    
    .fac-single-info {
        position: static;
        max-width: 100%;
    }
    
    .fac-single-content {
        padding: 32px 0 60px;
    }
    
    .fac-gallery-main {
        aspect-ratio: 16 / 9;
    }
    
    .fac-similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Modal - handled by new mobile overhaul block */
}

/* Mobile - 480px */
@media (max-width: 480px) {
    /* Bannière */
    .fac-top-banner-content {
        flex-direction: column;
        gap: 12px;
        font-size: 14px;
    }
    
    /* Hero */
    .fac-hero {
        padding: 40px 0;
    }
    
    .fac-hero-title {
        font-size: var(--text-3xl);
    }
    
    .fac-hero-buttons {
        flex-direction: column;
    }
    
    .fac-hero-buttons .fac-btn {
        width: 100%;
    }
    
    /* Stats */
    .fac-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Section */
    .fac-section-vehicles {
        padding: 48px 0;
    }
    
    .fac-section-title {
        font-size: var(--text-2xl);
    }
    
    /* Filtres */
    .fac-filters-pills {
        gap: 8px;
    }
    
    .fac-filter-pill {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .fac-filters-row {
        grid-template-columns: 1fr;
    }
    
    /* Véhicules */
    .fac-vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .fac-vehicle-content {
        padding: 20px;
    }
    
    .fac-vehicle-price {
        font-size: 22px;
    }
    
    .fac-vehicle-actions {
        flex-direction: column;
    }
    
    /* About */
    .fac-about-title {
        font-size: var(--text-2xl);
    }
    
    .fac-about-tags {
        gap: 8px;
    }
    
    .fac-tag {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Footer */
    .fac-footer {
        padding: 40px 0 30px;
    }
    
    /* Single */
    .fac-single-price {
        font-size: 28px;
    }
    
    .fac-single-specs {
        grid-template-columns: 1fr;
    }
    
    .fac-similar-grid {
        grid-template-columns: 1fr;
    }
    
    /* Inventory */
    .fac-inventory-hero-title {
        font-size: var(--text-3xl);
    }
    
    /* Single Vehicle Page - Mobile */
    .fac-single-content {
        padding: 0 0 60px;
    }
    
    .fac-single-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .fac-single-gallery {
        grid-column: 1;
        grid-row: auto;
        margin: 0;
    }
    
    .fac-gallery-main {
        border-radius: 0;
        aspect-ratio: 16 / 10;
    }
    
    .fac-gallery-thumbs {
        padding: 8px 16px;
        gap: 8px;
    }
    
    .fac-gallery-thumb {
        width: 70px;
        height: 50px;
    }
    
    .fac-single-info {
        grid-column: 1;
        grid-row: auto;
        padding: 20px 16px;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        overflow: hidden;
    }
    
    .fac-single-title {
        font-size: var(--text-xl);
        line-height: 1.3;
    }
    
    .fac-single-price {
        font-size: 28px;
    }
    
    .fac-single-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .fac-single-spec-label {
        font-size: 10px;
    }
    
    .fac-single-spec-value {
        font-size: 14px;
    }
    
    .fac-single-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .fac-single-actions .fac-btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        white-space: normal;
    }
    
    .fac-single-description {
        grid-column: 1;
        grid-row: auto;
        padding: 20px 16px;
        margin: 0 16px;
        overflow: hidden;
    }
    
    .fac-gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .fac-gallery-nav svg {
        width: 16px;
        height: 16px;
    }
    
    /* Modal - handled by 768px block */
    
    .fac-modal-vehicle {
        flex-direction: column;
    }
    
    .fac-modal-vehicle-image {
        width: 100%;
        height: 120px;
    }
}

/* Mobile Menu (Drawer) */
.fac-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.fac-mobile-menu.active {
    transform: translateX(0);
}

.fac-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--slate-200);
}

.fac-mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    border: none;
    border-radius: var(--radius-md);
    color: var(--navy);
    cursor: pointer;
}

.fac-mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

.fac-mobile-menu-nav {
    padding: 12px 20px;
    overflow-y: auto;
}

.fac-mobile-nav-link {
    display: block;
    padding: 14px 16px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--slate-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.fac-mobile-nav-link:hover,
.fac-mobile-nav-link.active {
    background: var(--emerald-bg);
    color: var(--emerald);
}

.fac-mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fac-mobile-menu-cta {
    width: 100%;
}

/* Print Styles */
@media print {
    .fac-top-banner,
    .fac-header,
    .fac-footer,
    .fac-modal-backdrop,
    .fac-modal,
    .fac-mobile-menu,
    .fac-btn {
        display: none !important;
    }
    
    .fac-wrapper {
        background: white;
    }
    
    .fac-vehicle-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ============================================================================
   V2 - NOUVELLES SECTIONS
   ============================================================================ */

/* --- BOUTON JAUNE / GOLD (cohérent marque) --- */
.fac-btn-gold {
    background: #fbbf24 !important;
    color: #0f172a !important;
    border: 2px solid #fbbf24 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fac-btn-gold:hover {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* --- HEADER PHONE --- */
.fac-header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0f172a;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    white-space: nowrap;
}
.fac-header-phone:hover {
    color: #047857;
}
.fac-header-phone svg {
    color: #047857;
}
.fac-hide-mobile {
    display: inline-flex !important;
}
@media (max-width: 1024px) {
    .fac-hide-mobile { display: none !important; }
}
@media (max-width: 1600px) {
    .fac-header-phone { display: none !important; }
}
@media (max-width: 1280px) and (min-width: 1025px) {
    .fac-nav-link { padding: 8px 8px; font-size: 12px; }
    .fac-header-inner { gap: 8px; }
    .fac-header-actions { gap: 8px; }
    .fac-header-actions .fac-btn-primary { padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 1440px) and (min-width: 1281px) {
    .fac-nav-link { padding: 8px 10px; font-size: 13px; }
    .fac-header-inner { gap: 10px; }
    .fac-header-actions .fac-btn-primary { padding: 12px 20px; font-size: 14px; }
}

/* --- HERO WITH FORM (style Beaucage) --- */
.fac-hero.fac-hero-with-form {
    padding: 60px 0 80px;
}
.fac-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 968px) {
    .fac-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .fac-hero-form-wrapper {
        order: -1;
    }
}

/* Form Card */
.fac-hero-form-card {
    background: rgba(30, 41, 59, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 28px 28px 24px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.fac-hero-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.fac-hero-form-header svg {
    color: #fbbf24;
    flex-shrink: 0;
}
.fac-hero-form-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}
.fac-hero-form-subtitle {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0 0 20px;
    line-height: 1.5;
}
.fac-hero-form-subtitle strong {
    color: #fbbf24;
}

/* Form rows */
.fac-hero-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.fac-hero-form-row-full {
    grid-template-columns: 1fr;
}
.fac-hero-form .fac-form-input {
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.95);
    color: #1e293b;
    border-radius: 6px;
}
.fac-hero-form .fac-form-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}
.fac-hero-form .fac-form-input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251,191,36,0.2);
    outline: none;
}
.fac-hero-form select.fac-form-input {
    cursor: pointer;
    appearance: auto;
    color: #1e293b;
}
.fac-hero-form select.fac-form-input option[value=""] {
    color: #94a3b8;
}

/* Form secure badge */
.fac-hero-form-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    font-size: 13px;
    color: #fbbf24;
    font-weight: 600;
}

/* Form success */
.fac-hero-form-success {
    text-align: center;
    padding: 20px 0;
}
.fac-hero-form-success h3 {
    color: #fbbf24;
    margin: 12px 0 8px;
}
.fac-hero-form-success p {
    color: #cbd5e1;
    font-size: 14px;
}

/* Hero buttons */
.fac-hero-with-form .fac-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- SECTION CONFIANCE (Trust) --- */
.fac-trust {
    padding: 80px 0;
    background: #fff;
}
.fac-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 768px) {
    .fac-trust-grid { grid-template-columns: 1fr; gap: 32px; }
}
.fac-trust-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    text-transform: uppercase;
}
.fac-trust-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fac-trust-text {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
}
.fac-trust-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.fac-trust-image {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    object-fit: cover;
}
.fac-trust-logo-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}
.fac-trust-logo-card img {
    max-width: 300px;
    max-height: 200px;
    object-fit: contain;
}

/* Section divider */
.fac-section-divider {
    width: 60px;
    height: 4px;
    background: #047857;
    border-radius: 2px;
    margin-bottom: 24px;
}
.fac-section-divider-gold {
    background: #fbbf24;
}

/* --- SECTION RÉTABLISSEMENT CRÉDIT --- */
.fac-rebuild {
    padding: 80px 0;
    background: #1e293b;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.fac-rebuild::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(30,41,59,0.9) 100%);
    z-index: 0;
}
.fac-rebuild > .fac-container {
    position: relative;
    z-index: 1;
}
.fac-rebuild-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px;
}
.fac-rebuild-text {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 900px;
    margin-bottom: 16px;
}
.fac-rebuild-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* --- SECTION FAQ --- */
.fac-faq {
    padding: 80px 0;
    background: #fff;
}
.fac-faq-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.fac-faq-list {
    max-width: 900px;
    margin-top: 32px;
}
.fac-faq-item {
    border-bottom: 1px solid #e2e8f0;
}
.fac-faq-item:first-child {
    border-top: 1px solid #e2e8f0;
}
.fac-faq-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.5;
    font-family: inherit;
    transition: color 0.2s;
}
.fac-faq-question:hover {
    color: #047857;
}
.fac-faq-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    transition: transform 0.3s ease;
    color: #64748b;
}
.fac-faq-question[aria-expanded="true"] .fac-faq-arrow {
    transform: rotate(90deg);
    color: #047857;
}
.fac-faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 0 0 36px;
}
.fac-faq-answer[hidden] {
    display: block !important; /* Override hidden for animation */
    max-height: 0;
    padding-bottom: 0;
}
.fac-faq-answer.fac-faq-open {
    max-height: 300px;
    padding-bottom: 20px;
}
.fac-faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* --- FOOTER PHONE --- */
.fac-footer-phone {
    margin: 12px 0;
}
.fac-footer-phone a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s;
}
.fac-footer-phone a:hover {
    color: #fbbf24;
}

/* --- OUTLINE LIGHT BUTTON --- */
.fac-btn-outline-light {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
}
.fac-btn-outline-light:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.7) !important;
}

/* --- BOUTON VERT --- */
.fac-btn.fac-btn-green,
button.fac-btn-green {
    background: #047857 !important;
    background-color: #047857 !important;
    color: #fff !important;
    border: 2px solid #047857 !important;
    font-weight: 700;
}
.fac-btn.fac-btn-green:hover,
button.fac-btn-green:hover {
    background: #065f46 !important;
    background-color: #065f46 !important;
    border-color: #065f46 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4);
}

/* --- BOUTON BLANC (pour CTA sur fond doré) --- */
.fac-btn.fac-btn-white,
button.fac-btn-white {
    background: #fff !important;
    background-color: #fff !important;
    color: #0f172a !important;
    border: 2px solid #fff !important;
    font-weight: 700;
}
.fac-btn.fac-btn-white:hover,
button.fac-btn-white:hover {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    border-color: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- BLANK TEMPLATE RESET --- */
body.fac-blank-template {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow-x: hidden !important;
}
html:has(body.fac-blank-template) {
    overflow-x: hidden !important;
}
body.fac-blank-template #fac-app {
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}
/* Masquer les éléments Divi résiduels */
body.fac-blank-template #page-container,
body.fac-blank-template #main-header,
body.fac-blank-template #main-footer,
body.fac-blank-template #top-header,
body.fac-blank-template .et-fixed-header,
body.fac-blank-template #et-main-area {
    display: none !important;
}

/* ============================================================================
   MOBILE RESPONSIVE OVERHAUL - v1.1
   Comprehensive fixes for all mobile/tablet viewports
   ============================================================================ */

/* --- GLOBAL OVERFLOW FIX --- */

/* Force word-wrap on text-heavy containers to prevent horizontal overflow */
.fac-single-description-text,
.fac-single-description-text p,
.fac-single-description-text h3,
.fac-single-description-text ul,
.fac-single-description-text li,
.fac-about-text,
.fac-trust-text,
.fac-rebuild-text,
.fac-faq-answer p,
.fac-hero-subtitle,
.fac-modal-body,
.fac-modal-body p {
    overflow-wrap: break-word;
}

/* --- DESCRIPTION OVERFLOW FIX (critical - seen in screenshots) --- */
.fac-single-description {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.fac-single-description-text {
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.fac-single-description-text p,
.fac-single-description-text h3,
.fac-single-description-text ul,
.fac-single-description-text li,
.fac-single-description-text strong,
.fac-single-description-text em {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.fac-single-description-text h3 {
    font-size: 1.2em;
    line-height: 1.3;
    margin-bottom: 12px;
}

.fac-single-description-text ul {
    padding-left: 20px;
    margin: 12px 0;
}

.fac-single-description-text li {
    margin-bottom: 6px;
}

/* ============================================
   MOBILE OVERRIDE: 768px and below
============================================ */
@media (max-width: 768px) {

    /* --- CONTAINER --- */
    .fac-container {
        padding: 0 16px;
        max-width: 100%;
        overflow: hidden;
    }

    /* --- GLOBAL: Buttons wrap text on mobile --- */
    .fac-btn {
        white-space: normal;
        min-width: 0;
    }

    /* --- GLOBAL: Forms inside modals need bottom padding for submit --- */
    .fac-modal .fac-form {
        padding-bottom: 20px;
    }

    /* --- BANNER --- */
    .fac-top-banner {
        padding: 12px 16px;
        min-height: auto;
    }

    .fac-top-banner-content {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
        line-height: 1.4;
    }

    .fac-top-banner-content .fac-btn-banner {
        font-size: 13px;
        padding: 8px 18px;
    }

    /* --- HEADER --- */
    .fac-header {
        padding: 12px 0;
    }

    .fac-header-inner {
        gap: 8px;
    }

    .fac-nav {
        display: none;
    }

    .fac-header-actions .fac-btn:not(.fac-mobile-menu-toggle) {
        display: none;
    }

    .fac-header-actions .fac-lang-dropdown {
        display: flex;
    }

    .fac-mobile-menu-toggle {
        display: flex;
    }

    .fac-logo img {
        height: 40px !important;
        max-height: 40px !important;
    }

    /* --- HERO SECTION --- */
    .fac-hero {
        padding: 40px 0;
    }

    .fac-hero-content {
        max-width: 100%;
        padding: 0;
    }

    .fac-hero-badge {
        font-size: 13px;
        padding: 10px 18px;
        margin-bottom: 20px;
    }

    .fac-hero-title {
        font-size: clamp(26px, 7vw, 36px);
        margin-bottom: 20px;
    }

    .fac-hero-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .fac-hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .fac-hero-buttons .fac-btn {
        min-width: unset;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* --- HERO WITH FORM (homepage) --- */
    .fac-hero.fac-hero-with-form {
        padding: 30px 0 50px;
    }

    .fac-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fac-hero-form-wrapper {
        order: -1;
    }

    .fac-hero-form-card {
        padding: 20px 16px 18px;
        border-radius: 10px;
    }

    .fac-hero-form-title {
        font-size: 18px;
    }

    .fac-hero-form-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .fac-hero-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }

    .fac-hero-form .fac-form-input {
        padding: 12px 14px !important;
        font-size: 16px !important;
        min-height: 48px !important;
        border-radius: 8px !important;
    }

    .fac-hero-form .fac-btn-gold {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .fac-hero-form-secure {
        font-size: 12px;
    }

    .fac-hero-with-form .fac-hero-title {
        font-size: clamp(24px, 6vw, 32px);
        text-align: center;
    }

    .fac-hero-with-form .fac-hero-subtitle {
        font-size: 15px;
        text-align: center;
    }

    .fac-hero-with-form .fac-hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .fac-hero-with-form .fac-hero-buttons .fac-btn {
        width: 100%;
        min-width: unset;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* --- STATS --- */
    .fac-stats {
        padding: 32px 0;
    }

    .fac-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .fac-stat-item {
        gap: 12px;
    }

    .fac-stat-icon {
        width: 44px;
        height: 44px;
    }

    .fac-stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .fac-stat-value {
        font-size: 22px;
    }

    .fac-stat-label {
        font-size: 12px;
    }

    /* --- SECTIONS --- */
    .fac-section-vehicles {
        padding: 40px 0;
    }

    .fac-section-header {
        margin-bottom: 28px;
    }

    .fac-section-title {
        font-size: clamp(22px, 5vw, 28px);
    }

    .fac-section-subtitle {
        font-size: 15px;
    }

    /* --- FILTERS --- */
    .fac-filters-pills {
        gap: 8px;
        margin-bottom: 20px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .fac-filters-pills::-webkit-scrollbar {
        display: none;
    }

    .fac-filter-pill {
        padding: 10px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .fac-filters-toggle {
        font-size: 14px;
        padding: 12px 16px;
    }

    .fac-filters-advanced {
        padding: 16px;
    }

    .fac-filters-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .fac-filter-select {
        height: 44px;
        font-size: 14px;
        padding: 10px 36px 10px 14px;
    }

    .fac-filter-input {
        height: 44px;
        font-size: 14px;
    }

    .fac-filters-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding-top: 12px;
    }

    .fac-filters-reset {
        width: 100%;
        text-align: center;
    }

    .fac-filters-right {
        flex-direction: column;
        gap: 12px;
    }

    .fac-sort-wrapper {
        width: 100%;
    }

    .fac-sort-select {
        flex: 1;
    }

    .fac-filters-count {
        text-align: center;
    }

    /* --- VEHICLE CARDS --- */
    .fac-vehicles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fac-vehicle-content {
        padding: 16px;
    }

    .fac-vehicle-title {
        font-size: 16px;
    }

    .fac-vehicle-price {
        font-size: 22px;
    }

    .fac-vehicle-km {
        font-size: 13px;
    }

    .fac-vehicle-actions {
        flex-direction: column;
        gap: 8px;
    }

    .fac-vehicle-actions .fac-btn {
        width: 100%;
        min-width: unset;
        font-size: 13px;
        padding: 10px 14px;
    }

    /* --- PAGINATION --- */
    .fac-pagination {
        margin-top: 32px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .fac-pagination-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    /* --- ABOUT --- */
    .fac-about {
        padding: 48px 0;
    }

    .fac-about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fac-about-image-wrapper {
        order: -1;
    }

    .fac-about-title {
        font-size: clamp(22px, 5vw, 28px);
    }

    .fac-about-overlay {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin-top: -30px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .fac-about-tags {
        gap: 8px;
    }

    .fac-tag {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* --- TRUST --- */
    .fac-trust {
        padding: 48px 0;
    }

    .fac-trust-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fac-trust-title {
        font-size: 24px;
    }

    .fac-trust-text {
        font-size: 15px;
    }

    /* --- REBUILD --- */
    .fac-rebuild {
        padding: 48px 0;
    }

    .fac-rebuild-title {
        font-size: 26px;
    }

    .fac-rebuild-text {
        font-size: 15px;
    }

    .fac-rebuild-cta {
        flex-direction: column;
        gap: 10px;
    }

    .fac-rebuild-cta .fac-btn {
        width: 100%;
        text-align: center;
    }

    /* --- FAQ --- */
    .fac-faq {
        padding: 48px 0;
    }

    .fac-faq-title {
        font-size: 26px;
    }

    .fac-faq-question {
        font-size: 15px;
        padding: 16px 0;
    }

    .fac-faq-answer p {
        font-size: 14px;
    }

    /* --- SEO --- */
    .fac-seo {
        padding: 48px 0;
    }

    .fac-seo-title {
        font-size: 22px;
    }

    .fac-seo-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* --- ADVANTAGES --- */
    .fac-advantages {
        padding: 48px 0;
    }

    .fac-advantages-title {
        font-size: 24px;
    }

    .fac-advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fac-advantage-text {
        font-size: 15px;
    }

    /* --- CTA --- */
    .fac-cta {
        padding: 48px 0;
    }

    .fac-cta-title {
        font-size: clamp(22px, 5vw, 30px);
    }

    .fac-cta-subtitle {
        font-size: 15px;
    }

    .fac-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .fac-cta-buttons .fac-btn {
        width: 100%;
        max-width: 100%;
    }

    /* --- FOOTER --- */
    .fac-footer {
        padding: 36px 0 28px;
    }

    .fac-footer-logo img {
        height: 40px;
    }

    .fac-footer-tagline {
        font-size: 14px;
    }

    /* --- INVENTORY HERO --- */
    .fac-inventory-hero {
        padding: 40px 0;
    }

    .fac-inventory-hero-title {
        font-size: clamp(26px, 7vw, 36px);
    }

    .fac-inventory-hero-subtitle {
        font-size: 16px;
        margin-bottom: 16px;
    }

    /* --- SINGLE VEHICLE PAGE --- */
    .fac-single-content {
        padding: 0 0 48px;
        overflow: hidden;
    }

    .fac-single-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fac-single-gallery {
        grid-column: 1;
        grid-row: auto;
        margin: 0;
    }

    .fac-gallery-main {
        border-radius: 0;
        aspect-ratio: 16 / 10;
    }

    .fac-gallery-thumbs {
        padding: 12px 16px 8px;
        gap: 8px;
    }

    .fac-gallery-thumb {
        width: 68px;
        height: 50px;
    }

    .fac-gallery-nav {
        width: 36px;
        height: 36px;
    }

    .fac-gallery-nav svg {
        width: 16px;
        height: 16px;
    }

    .fac-single-info {
        grid-column: 1;
        grid-row: auto;
        padding: 24px 16px;
        border-radius: 0;
        box-shadow: none;
        position: static;
        margin: 0;
        overflow: hidden;
    }

    .fac-single-stock {
        font-size: 11px;
    }

    .fac-single-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .fac-single-subtitle {
        font-size: 14px;
    }

    .fac-single-price {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .fac-single-specs {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .fac-single-spec-label {
        font-size: 10px;
    }

    .fac-single-spec-value {
        font-size: 14px;
    }

    .fac-single-actions {
        gap: 10px;
        overflow: hidden;
    }

    .fac-single-actions .fac-btn {
        width: 100%;
        min-width: 0;
        padding: 14px 16px;
        font-size: 14px;
        white-space: normal;
        text-align: center;
        box-sizing: border-box;
    }

    .fac-single-description {
        grid-column: 1;
        grid-row: auto;
        margin: 0 16px;
        padding: 24px 16px;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .fac-single-description-title {
        font-size: 18px;
    }

    .fac-single-description-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .fac-single-description-text h3 {
        font-size: 16px;
    }

    .fac-single-description-text ul {
        padding-left: 16px;
    }

    .fac-single-description-text p {
        margin-bottom: 12px;
    }

    /* --- SIMILAR VEHICLES --- */
    .fac-similar {
        padding: 48px 0;
    }

    .fac-similar-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .fac-similar-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* --- MODALS - FULL SCREEN ON MOBILE WITH SCROLL --- */
    .fac-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        transform: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-base), visibility var(--transition-base);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .fac-modal.active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .fac-modal-header {
        padding: 16px 16px 12px;
        flex-shrink: 0;
        background: var(--white);
        border-bottom: 1px solid var(--slate-200);
        z-index: 2;
        position: relative;
    }

    .fac-modal-title {
        font-size: 20px;
    }

    .fac-modal-subtitle {
        font-size: 13px;
    }

    .fac-modal-body {
        padding: 20px 16px 40px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: none;
        overscroll-behavior: contain;
    }

    .fac-modal-vehicle {
        flex-direction: column;
        gap: 12px;
    }

    .fac-modal-vehicle-image {
        width: 100%;
        height: 140px;
    }

    .fac-form-group {
        margin-bottom: 18px;
    }

    .fac-form-input,
    .fac-form-select,
    .fac-form-textarea {
        padding: 14px 16px !important;
        min-height: 50px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }

    .fac-form-textarea {
        min-height: 100px !important;
    }

    .fac-form-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    /* --- MOBILE MENU --- */
    .fac-mobile-menu {
        max-width: 100%;
        width: 100%;
    }

    .fac-mobile-menu-nav {
        padding: 16px;
    }

    .fac-mobile-nav-link {
        padding: 14px;
        font-size: 16px;
    }

    .fac-mobile-menu-footer {
        padding: 16px;
    }
}

/* ============================================
   EXTRA SMALL MOBILE: 380px and below
============================================ */
@media (max-width: 380px) {

    .fac-container {
        padding: 0 12px;
    }

    .fac-top-banner-content {
        font-size: 12px;
    }

    .fac-hero-title {
        font-size: 24px;
    }

    .fac-hero-subtitle {
        font-size: 14px;
    }

    .fac-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fac-hero-form-title {
        font-size: 16px;
    }

    .fac-single-price {
        font-size: 24px;
    }

    .fac-single-title {
        font-size: 18px;
    }

    .fac-modal-header {
        padding: 16px 12px 0;
    }

    .fac-modal-body {
        padding: 16px 12px;
    }

    .fac-modal-title {
        font-size: 18px;
    }

    .fac-vehicle-price {
        font-size: 20px;
    }
}

/* ============================================
   CRITICAL iOS/MOBILE FIXES
   ============================================ */

/* iOS Safari viewport overflow fix */
html:has(.fac-wrapper) {
    overflow-x: hidden !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
}

body:has(.fac-wrapper) {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Fix 100vw including scrollbar on some browsers */
.fac-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* Prevent horizontal overflow on full-width sections only */
.fac-wrapper .fac-top-banner,
.fac-wrapper .fac-hero,
.fac-wrapper .fac-stats,
.fac-wrapper .fac-trust,
.fac-wrapper .fac-rebuild,
.fac-wrapper .fac-about,
.fac-wrapper .fac-seo,
.fac-wrapper .fac-advantages,
.fac-wrapper .fac-faq,
.fac-wrapper .fac-section-vehicles,
.fac-wrapper .fac-cta,
.fac-wrapper .fac-footer,
.fac-wrapper .fac-inventory-hero,
.fac-wrapper .fac-inventory-content {
    overflow-x: hidden !important;
}

/* Ensure hamburger toggle is always clickable with proper touch target */
.fac-mobile-menu-toggle {
    position: relative;
    z-index: 101;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    /* Ensure hamburger is always visible and clickable on iOS */
    .fac-mobile-menu-toggle {
        display: flex !important;
        position: relative !important;
        z-index: 102 !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        pointer-events: auto !important;
        background: var(--slate-100) !important;
        border: none !important;
        border-radius: var(--radius-md) !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Ensure header actions row stays on one line */
    .fac-header-actions {
        flex-shrink: 0 !important;
        flex-wrap: nowrap !important;
    }
    
    /* Prevent header from being overlapped by filter/content elements */
    .fac-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 200 !important;
        isolation: isolate;
    }

    /* Fix filters overflowing on mobile */
    .fac-filters-section,
    .fac-filters-row,
    .fac-filter-pills {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* iOS input zoom prevention - keep font at 16px */
    .fac-wrapper input[type="text"],
    .fac-wrapper input[type="email"],
    .fac-wrapper input[type="tel"],
    .fac-wrapper input[type="number"],
    .fac-wrapper input[type="date"],
    .fac-wrapper select,
    .fac-wrapper textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }

    /* Fix modal scrolling on iOS */
    .fac-modal {
        -webkit-overflow-scrolling: touch;
    }
    
    .fac-modal-content {
        -webkit-overflow-scrolling: touch;
        max-height: 90vh;
        max-height: 90dvh;
    }
    
    .fac-modal-body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Fix modal form submit buttons on mobile */
    .fac-modal .fac-btn[type="submit"],
    .fac-modal .fac-btn-block {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 50px;
        cursor: pointer;
    }

    /* Fix vehicle card buttons on mobile */
    .fac-vehicle-card .fac-btn,
    .fac-single-actions .fac-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 48px;
    }

    /* Prevent double-tap zoom on buttons */
    .fac-wrapper button,
    .fac-wrapper a.fac-btn,
    .fac-wrapper .fac-open-modal {
        touch-action: manipulation;
    }
    
    /* Ensure mobile menu backdrop covers entire viewport */
    .fac-modal-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
    }
}

/* Fix for notched iPhones (safe area) */
@supports (padding: env(safe-area-inset-bottom)) {
    .fac-footer {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
    
    .fac-mobile-menu-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .fac-modal-body {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   TABLET PORTRAIT: 768px - 1024px
============================================ */
@media (min-width: 769px) and (max-width: 1024px) {

    .fac-vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .fac-similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fac-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .fac-hero-form-row {
        grid-template-columns: 1fr 1fr;
    }

    .fac-single-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fac-single-gallery,
    .fac-single-info,
    .fac-single-description {
        grid-column: 1;
        grid-row: auto;
    }

    .fac-single-info {
        position: static;
    }

    .fac-filters-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .fac-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
