:root {
    --primary: #003399; --accent: #FFCC00; --bg: #f4f7f9;
    --text: #1d2129; --white: #ffffff; --gray-light: #e2e8f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.6; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
a { text-decoration: none; }

.initial-loading-overlay { position: fixed; top: 92px; right: 14px; z-index: 1200; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s ease; pointer-events: none; }
.initial-loading-overlay.hidden { opacity: 0; }
.initial-loading-box { max-width: min(88vw, 340px); background: rgba(255,255,255,0.96); border: 1px solid #dbeafe; border-radius: 999px; box-shadow: 0 8px 22px rgba(2, 6, 23, 0.12); padding: 8px 12px; display: flex; align-items: center; gap: 8px; color: #334155; font-weight: 600; font-size: 0.84rem; }
.initial-loading-spinner { width: 18px; height: 18px; border-radius: 999px; border: 2px solid #bfdbfe; border-top-color: var(--primary); animation: spinLoader 0.85s linear infinite; }
@keyframes spinLoader { to { transform: rotate(360deg); } }

/* --- HEADER & NAV --- */
header { background: var(--white); min-height: 80px; display: flex; align-items: center; border-bottom: 1px solid var(--gray-light); position: sticky; top:0; z-index:1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.nav-content { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 900; color: var(--primary); cursor: pointer; letter-spacing: -0.5px; transition: color 0.25s ease; }
.logo-image { height: 52px; width: auto; display: block; }
.logo-text { line-height: 1.05; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.15em; }
.logo-part-europe,
.logo-part-center { color: var(--primary); }
.logo-part-auto { color: var(--accent); }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--text); font-weight: 600; margin-left: 30px; font-size: 0.95rem; transition: 0.2s; position: relative; }
.nav-links a:hover { color: var(--accent); }
.menu-toggle { display: none; font-size: 1.2rem; cursor: pointer; border: 1px solid var(--gray-light); background: #fff; color: var(--primary); width: 44px; height: 44px; border-radius: 10px; transition: 0.2s; }

/* Accueil : le header flotte sur la photo (remplace la barre noire séparée) */
body.home-active #site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    z-index: 1002;
}
body.home-active #site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        transparent 100%
    );
    pointer-events: none;
}
body.home-active .logo-part-europe,
body.home-active .logo-part-center { color: #fff; }
body.home-active .logo-part-auto { color: #ffcc00; }
body.home-active .nav-links a { color: #fff; font-weight: 600; }
body.home-active .nav-links a:hover { color: #ffcc00; }
body.home-active .menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
body.home-active .initial-loading-overlay { top: 16px; }

/* --- HERO IMMERSIF (homepage.png une seule fois) --- */
.home-masthead {
    position: relative;
    overflow: visible;
    min-height: min(96vh, 920px);
    background: #0a1f4d url("homepage.png") center 32% / cover no-repeat;
}
.home-masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 51, 153, 0.58);
    pointer-events: none;
}
.home-masthead::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 68%,
        rgba(248, 250, 252, 0.2) 82%,
        rgba(248, 250, 252, 0.88) 94%,
        #f8fafc 100%
    );
    pointer-events: none;
}
.hero-v4 {
    position: relative;
    z-index: 1;
    overflow: visible;
    min-height: min(96vh, 920px);
    margin-top: 0;
    padding-top: 0;
    background: transparent;
}
.hero-overlay {
    position: relative;
    z-index: 2;
    min-height: min(92vh, 880px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 100px 0 72px;
}
.hero-overlay .container {
    position: relative;
    z-index: 3;
}
.hero-overlay h1 {
    font-size: clamp(1.7rem, 3.1vw, 2.95rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.18;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    -webkit-font-smoothing: antialiased;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.82rem;
    font-weight: 600;
}
.hero-lead {
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    color: rgba(255, 255, 255, 0.96);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.55;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.hero-cta-row { margin-top: 24px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-hero-secondary, .btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.2s;
}
.btn-hero-secondary { background: #ffcc00; color: #1a1a1a; border: 1px solid transparent; }
.btn-hero-secondary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-hero-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.85); }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.1); }
body.home-active .search-main-container {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
    max-width: 920px;
    padding: 8px;
    border-radius: 10px;
    margin-top: 26px;
    position: relative;
    z-index: 40;
    overflow: visible;
}
body.home-active .search-box {
    flex-wrap: nowrap;
    align-items: stretch;
}
body.home-active .search-input-wrap {
    flex: 1 1 auto;
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
body.home-active .search-input-wrap i,
body.home-active .search-input-wrap input {
    color: #f1f5f9;
    font-weight: 500;
}
body.home-active .search-input-wrap input::placeholder { color: #94a3b8; }
body.home-active .filters-toggle-btn {
    flex-shrink: 0;
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
}
body.home-active .filters-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
body.home-active .btn-search-hero {
    flex-shrink: 0;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
body.home-active .hero-trust-row { margin-top: 24px; gap: 12px; }
body.home-active .trust-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px 14px;
}
body.home-active .trust-item i { color: #fff; font-size: 0.85rem; }
.search-main-container { background: var(--white); padding: 14px; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.2); margin: 24px auto 0; width: 100%; max-width: 520px; position: relative; z-index: 12; overflow: visible; }
.search-box { display: flex; gap: 10px; align-items: center; justify-content: center; }
.search-input-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid var(--gray-light); border-radius: 10px; padding: 0 12px; height: 50px; }
.search-input-wrap i { color: #64748b; font-size: 0.95rem; }
.search-input-wrap input { border: none; background: transparent; width: 100%; outline: none; font-size: 0.95rem; color: var(--text); }
.filters-dropdown { position: relative; z-index: 50; }
.filters-toggle-btn { height: 50px; border: 1px solid var(--gray-light); border-radius: 10px; background: var(--white); color: var(--primary); font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; white-space: nowrap; }
.filters-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.filters-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(340px, 92vw);
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    padding: 14px;
    z-index: 2500;
}
.filters-dropdown-menu.filters-dropdown-menu--floating {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 5000;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    margin-top: 0;
    width: min(340px, calc(100vw - 20px)) !important;
}
.filters-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4999;
    background: rgba(15, 23, 42, 0.35);
}
.search-main-container.filters-menu-open { z-index: 200; }
body.home-active .hero-trust-row { position: relative; z-index: 1; }
.filters-dropdown-menu .input-group { margin-bottom: 10px; }
.filters-dropdown-menu .input-group:last-child { margin-bottom: 0; }
.price-manual-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.price-manual-group .input-group { margin-bottom: 0; }
.price-filter-hint { margin: 0; font-size: 0.78rem; color: #64748b; line-height: 1.35; }
.hero-trust-row { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trust-item { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; padding: 7px 12px; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; }
.input-group { flex: 1; text-align: left; }
.input-group label { font-size: 0.75rem; font-weight: 700; color: #64748b; display: block; margin-bottom: 8px; text-transform: uppercase; }
.input-group select, .input-group input { width: 100%; padding: 14px; border: 1px solid var(--gray-light); border-radius: 8px; font-size: 1rem; outline: none; transition: 0.2s; }
.input-group select:focus, .input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,204,0,0.18); }
.btn-search-hero { background: var(--accent); color: #1d2129; border: none; padding: 14px 20px; border-radius: 8px; font-weight: 800; cursor: pointer; transition: 0.2s; font-size: 0.95rem; height: 50px; white-space: nowrap; }
.btn-search-hero:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* --- COMMUN & SECTIONS --- */
.page-section { padding: 40px 0; animation: fadeIn 0.4s ease-out; }
#page-home {
    padding: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    animation: fadeInHome 0.4s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInHome { from { opacity: 0; } to { opacity: 1; } }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.section-header h2 { font-size: 1.8rem; color: var(--primary); }
.btn-back { background: none; border: none; color: #64748b; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 1rem; transition: 0.2s; }
.btn-back:hover { color: var(--primary); }
.sync-status { margin-top: 8px; font-size: 0.85rem; color: #64748b; }

/* --- PAGE D'ACCUEIL MODERNE --- */
.section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.home-section-header h2 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    color: #0f172a;
    line-height: 1.2;
}
.home-section-header-center { justify-content: center; text-align: center; }
.btn-home-primary,
.btn-home-outline,
.btn-home-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: 0.2s;
    white-space: nowrap;
}
.btn-home-primary { background: #ffcc00; color: #1a1a1a; border: 1px solid transparent; }
.btn-home-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-home-outline { background: #fff; color: var(--primary); border: 1px solid #bfdbfe; }
.btn-home-outline:hover { background: #eff6ff; border-color: var(--primary); }
.btn-home-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.75); }
.btn-home-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.home-latest-section { padding: 8px 0 28px; }
.home-latest-section > .container {
    max-width: min(1440px, 96vw);
}
#page-stock.container {
    max-width: min(1440px, 96vw);
}

.home-car-grid,
.stock-car-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.home-car-grid .car-card { border-radius: 16px; }
.home-car-grid .car-img { height: 240px; }
.home-car-grid .car-info { padding: 20px; }
.home-car-grid .car-info .price { font-size: 1.55rem; }
.home-car-grid .car-info .title { font-size: 1.12rem; }
.home-car-grid .car-specs { gap: 12px; font-size: 0.9rem; flex-wrap: wrap; }
.home-car-grid .card-options-row,
.home-car-grid .card-trust-row { display: none; }
.home-car-grid .card-contact-shortcut { display: none; }

@media (min-width: 640px) {
    .home-car-grid,
    .stock-car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .stock-car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-car-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
    .home-car-grid .car-img { height: 260px; }
}
@media (min-width: 1180px) {
    .stock-car-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
    .home-car-grid { gap: 26px; }
    .home-car-grid .car-img { height: 280px; }
}

.home-stats-section { padding: 28px 0 52px; }
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.home-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 51, 153, 0.1);
}
.home-stat-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.home-stat-card strong {
    display: block;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.home-stat-card span { color: #64748b; font-size: 0.88rem; }

.home-services-section {
    padding: 0 0 56px;
}
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.home-service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-service-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 34px rgba(0, 51, 153, 0.1);
}
.home-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.home-service-card h3 { color: #0f172a; font-size: 1.05rem; }
.home-service-card p { color: #475569; font-size: 0.92rem; line-height: 1.6; flex: 1; }
.home-service-card a {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.home-service-card a:hover { color: #002266; }

.home-cta-band {
    padding: 48px 0 56px;
    background: linear-gradient(135deg, #003399 0%, #002266 100%);
}
.home-cta-band-inner {
    text-align: center;
    color: #fff;
}
.home-cta-band-inner h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    margin-bottom: 10px;
}
.home-cta-band-inner p {
    max-width: 620px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}
.home-cta-band-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- GRILLE VÉHICULES --- */
.car-grid:not(.home-car-grid):not(.stock-car-grid) { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.car-grid.home-car-grid,
.car-grid.stock-car-grid { display: grid; }
.car-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-light); cursor: pointer; transition: all 0.3s ease; position: relative; }
.car-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: rgba(0,51,153,0.22); }
.car-img { width: 100%; height: 220px; object-fit: cover; }
.vehicle-photo-unavailable,
.car-img.vehicle-photo-unavailable,
.gallery-main.vehicle-photo-unavailable,
.thumb-img.vehicle-photo-unavailable,
.lightbox-media.vehicle-photo-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    overflow: hidden;
}
.car-img.vehicle-photo-unavailable,
.gallery-main.vehicle-photo-unavailable {
    height: 220px;
}
.home-car-grid .car-img.vehicle-photo-unavailable { height: 240px; gap: 12px; }
@media (min-width: 960px) {
    .home-car-grid .car-img.vehicle-photo-unavailable { height: 260px; }
}
@media (min-width: 1180px) {
    .home-car-grid .car-img.vehicle-photo-unavailable { height: 280px; }
}
.gallery-main-container .gallery-main.vehicle-photo-unavailable { min-height: 100%; height: 100%; gap: 14px; padding: 24px; }
.thumb-img.vehicle-photo-unavailable {
    width: 82px;
    height: 60px;
    gap: 4px;
    padding: 4px;
    flex-shrink: 0;
}
.thumb-img.vehicle-photo-unavailable .vehicle-photo-unavailable__logo { max-height: 28px; max-width: 90%; }
.thumb-img.vehicle-photo-unavailable .vehicle-photo-unavailable__label { font-size: 0.45rem; letter-spacing: 0; line-height: 1.1; }
.lightbox-media.vehicle-photo-unavailable {
    min-height: min(62vh, 520px);
    min-width: min(88vw, 920px);
    gap: 16px;
    padding: 32px;
    border-radius: 12px;
}
.vehicle-photo-unavailable__logo {
    max-height: 58%;
    max-width: 72%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.vehicle-photo-unavailable__label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.04em;
    text-transform: none;
    text-align: center;
    line-height: 1.35;
    padding: 0 12px;
}
.home-car-grid .vehicle-photo-unavailable__label { font-size: 0.86rem; }
.car-img.vehicle-photo-unavailable .vehicle-photo-unavailable__logo { max-height: 52%; }
.home-car-grid .car-img.vehicle-photo-unavailable .vehicle-photo-unavailable__logo { max-height: 56%; }
.lightbox-media .vehicle-photo-unavailable__label { font-size: 1rem; }
.status-badge { position: absolute; top: 15px; right: 15px; padding: 6px 12px; border-radius: 30px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.status-available { background: #dcfce7; color: #166534; } .status-reserved { background: #fff7ed; color: #9a3412; }
.car-info { padding: 20px; }
.car-info .price { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.car-info .title { font-weight: 700; font-size: 1.1rem; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.car-specs { display: flex; gap: 15px; font-size: 0.9rem; color: #64748b; margin-top: 10px; flex-wrap: wrap; }
.car-specs span { display: flex; align-items: center; gap: 5px; }
.card-trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.card-trust-badge { font-size: 0.72rem; background: #eff6ff; color: var(--primary); border: 1px solid #dbeafe; border-radius: 999px; padding: 4px 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.card-options-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-option-chip { font-size: 0.72rem; background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; border-radius: 999px; padding: 4px 8px; line-height: 1.25; }
.card-option-more { background: #eff6ff; color: var(--primary); border-color: #bfdbfe; font-weight: 700; }
.card-contact-shortcut { display: none; margin-top: 10px; min-height: 38px; border-radius: 10px; background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; padding: 8px 10px; font-size: 0.84rem; font-weight: 700; align-items: center; justify-content: center; gap: 7px; }

/* --- NOUVELLE FICHE DÉTAIL PRO --- */
#page-detail { max-width: 1380px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 34px; align-items: start; width: 100%; }
.detail-main-col, .detail-sidebar { min-width: 0; }

/* Colonne Gauche : Galerie & Description */
.gallery-box { background: white; padding: 20px; border-radius: 16px; border: 1px solid var(--gray-light); }
.gallery-main-container { position: relative; height: 500px; background: #1a1d23; border-radius: 12px; overflow: hidden; }
.gallery-main { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.nav-arrow:hover { background: var(--accent); }
.prev-arrow { left: 15px; } .next-arrow { right: 15px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; padding-bottom: 5px; }
.thumb-img { width: 100px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.6; transition: 0.2s; border: 2px solid transparent; }
.thumb-img:hover, .thumb-img.active { opacity: 1; border-color: var(--accent); }
.description-box { margin-top: 30px; background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--gray-light); }
.description-box h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 15px; border-bottom: 2px solid var(--gray-light); padding-bottom: 10px; }
.description-box p { color: #4b5563; line-height: 1.8; }
.vehicle-characteristics-box { margin-top: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.vehicle-characteristics-box h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.vehicle-characteristics-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.vehicle-characteristics-grid li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; color: #475569; }
.vehicle-characteristics-grid li i { color: var(--primary); font-size: 0.95rem; }
.vehicle-characteristics-label { grid-column: 2; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.vehicle-characteristics-grid li strong { grid-column: 2; color: var(--text); font-size: 0.98rem; font-weight: 700; }
.vehicle-options-box { margin-top: 18px; background: #fff; border: 1px solid #dbeafe; border-radius: 14px; padding: 20px; }
.vehicle-options-box h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.vehicle-options-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vehicle-option-chip { background: #f8fafc; border: 1px solid #e2e8f0; color: #334155; border-radius: 10px; padding: 8px 10px; font-size: 0.83rem; font-weight: 600; line-height: 1.35; }

/* Colonne Droite : Sidebar Fixe */
.detail-sidebar { position: sticky; top: 100px; background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--gray-light); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.sidebar-title h1 { font-size: 1.8rem; color: var(--primary); line-height: 1.2; }
.sidebar-title .version { color: #64748b; font-size: 1rem; margin-top: 5px; }
.sidebar-price { font-size: 2.8rem; font-weight: 900; color: var(--accent); margin: 20px 0; }
.tech-list { list-style: none; margin: 25px 0; border-top: 1px solid var(--gray-light); }
.tech-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--gray-light); font-size: 0.95rem; }
.tech-list strong { color: #64748b; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.tech-list span { font-weight: 600; color: var(--text); text-align: right; }
.action-buttons { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.btn-action { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px; border-radius: 10px; font-weight: 800; font-size: 1rem; border: none; cursor: pointer; transition: 0.2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: #eff6ff; color: var(--primary); border: 2px solid #dbeafe; }
.btn-secondary:hover { background: #dbeafe; }
.grid-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.count-badge { display: inline-flex; align-items: center; background: #eff6ff; color: var(--primary); border: 1px solid #dbeafe; border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; font-weight: 700; }
.stock-type-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.stock-type-btn { border: 1px solid #dbeafe; background: #fff; color: var(--primary); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.stock-type-btn:hover { border-color: var(--primary); }
.stock-type-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.stock-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.stock-toolbar-field { display: inline-flex; align-items: center; gap: 8px; color: #475569; font-size: 0.88rem; font-weight: 700; }
.stock-toolbar-field select { border: 1px solid #dbeafe; border-radius: 8px; padding: 8px 10px; color: var(--text); background: #fff; font-size: 0.9rem; }
.stock-toolbar-check { display: inline-flex; align-items: center; gap: 7px; color: #475569; font-size: 0.88rem; font-weight: 700; }
.stock-toolbar-check input { accent-color: var(--primary); }
.stock-search-panel { margin-bottom: 16px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.stock-search-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.stock-search-input-group { grid-column: span 2; }
.stock-search-btn { width: 100%; height: 50px; }
/* --- PAGES SERVICES --- */
.service-content { background: white; padding: 50px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.service-content h1 { color: var(--primary); font-size: 2rem; margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }
.intro { font-size: 1.1rem; color: #64748b; margin-bottom: 40px; }
.finance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.finance-card { background: #f8fafc; padding: 30px; border-radius: 15px; border: 1px solid var(--gray-light); }
.finance-card h3 { color: var(--primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.finance-card p { color: #475569; margin-bottom: 14px; }
.finance-card ul { list-style: none; }
.finance-card li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.finance-card li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); }
.finance-docs-section { margin-top: 28px; border-top: 1px solid var(--gray-light); padding-top: 22px; }
.finance-docs-section h2 { color: var(--primary); font-size: 1.5rem; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.finance-docs-intro { color: #64748b; margin-bottom: 16px; }
.finance-docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.finance-docs-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.finance-docs-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.05rem; }
.finance-docs-card p { color: #475569; margin-bottom: 10px; }
.finance-docs-card ul { list-style: none; }
.finance-docs-card li { position: relative; padding-left: 22px; margin-bottom: 9px; color: #334155; line-height: 1.6; }
.finance-docs-card li::before { content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--accent); position: absolute; left: 0; top: 2px; font-size: 0.9rem; }
.finance-docs-note { margin-top: 14px; background: #eff6ff; border: 1px solid #dbeafe; color: #1e3a8a; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; }
th { background: var(--primary); color: white; padding: 18px; text-align: left; font-weight: 600; }
td { padding: 15px 18px; border-bottom: 1px solid var(--gray-light); }
tr:nth-child(even) { background: #f9fafb; }
.charte-content { max-width: 980px; margin: 0 auto; }
.charte-hero { background: linear-gradient(135deg, rgba(0, 51, 153, 0.06), rgba(255, 204, 0, 0.08)); border: 1px solid #dbeafe; border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.charte-kicker { display: inline-flex; background: #eff6ff; color: var(--primary); border: 1px solid #dbeafe; border-radius: 999px; padding: 5px 10px; font-size: 0.78rem; font-weight: 800; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.charte-hero p { color: #475569; margin-top: 6px; line-height: 1.7; }
.charte-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.charte-pillar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--gray-light); border-radius: 10px; padding: 11px 12px; font-weight: 600; color: #334155; font-size: 0.92rem; }
.charte-pillar i { color: var(--primary); }
.charte-text { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.charte-text p { color: #334155; font-size: 1.02rem; line-height: 1.8; margin-bottom: 14px; }
.charte-text p:last-child { margin-bottom: 0; }
.charte-guarantee { margin-top: 20px; border-top: 1px solid var(--gray-light); padding-top: 22px; }
.charte-guarantee h2 { color: var(--primary); font-size: 1.45rem; margin-bottom: 8px; }
.charte-subtitle { color: #64748b; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.4px; font-size: 0.84rem; }
.charte-guarantee-block { background: #f8fafc; border: 1px solid #e5edf8; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.charte-guarantee-block h3 { color: var(--primary); font-size: 1rem; margin-bottom: 6px; }
.charte-guarantee-block p { color: #334155; line-height: 1.7; font-size: 0.95rem; }

/* --- REWORK CONTACT PAGE --- */
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-header h1 { font-size: 2.2rem; color: var(--primary); }
.contact-header h1 span { color: var(--accent); }
.contact-header p { color: #64748b; font-size: 1.1rem; }

.contact-layout { 
    display: grid; 
    grid-template-columns: 1fr 1.8fr; 
    gap: 30px; 
    align-items: start;
}

/* Infos à gauche */
.contact-info-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--gray-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.info-card-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.info-card-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.info-card-item i {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.info-content strong { display: block; font-size: 0.85rem; color: #64748b; text-transform: uppercase; margin-bottom: 2px; }
.info-content a, .info-content p { font-size: 1.05rem; font-weight: 600; color: var(--text); transition: 0.2s; }
.info-content a:hover { color: var(--accent); }

/* Contact rapide à droite */
.contact-quick-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--gray-light);
}
.contact-quick-box h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: 10px; }
.contact-quick-box p { color: #64748b; margin-bottom: 22px; }
.callback-mini-box { margin-top: 20px; border-top: 1px solid var(--gray-light); padding-top: 16px; }
.callback-mini-box h4 { color: var(--primary); margin-bottom: 4px; }
.callback-mini-box p { margin-bottom: 10px; }
.callback-grid { display: grid; gap: 8px; margin-bottom: 10px; }
.callback-grid input { border: 1px solid #dbeafe; border-radius: 8px; padding: 10px 12px; outline: none; }
.callback-grid input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12); }

/* --- FOOTER --- */
.site-footer { margin-top: 30px; background: #0f172a; color: #cbd5e1; border-top: 1px solid #1e293b; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 34px 20px; }
.site-footer h3, .site-footer h4 { color: #f8fafc; margin-bottom: 10px; }
.footer-brand p { color: #94a3b8; margin-bottom: 12px; line-height: 1.7; max-width: 500px; }
.footer-brand a, .footer-links a, .footer-hours a { color: #cbd5e1; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; transition: 0.2s; }
.footer-links { display: flex; flex-direction: column; }
.footer-hours p { margin-bottom: 10px; color: #94a3b8; }
.footer-brand a:hover, .footer-links a:hover, .footer-hours a:hover { color: #ffcc00; }
.footer-bottom { border-top: 1px solid #1e293b; background: #0b1220; }
.footer-bottom-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #94a3b8; font-size: 0.86rem; }

/* Adaptabilité Mobile */
@media (max-width: 850px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* --- LIGHTBOX --- */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.97); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.lightbox-media { display: flex; align-items: center; justify-content: center; max-width: 90%; max-height: 85%; }
.lightbox-media img,
.lightbox img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: white; font-size: 3rem; cursor: pointer; padding: 20px; opacity: 0.7; transition: 0.2s; }
.lb-arrow:hover { opacity: 1; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: white; font-size: 40px; cursor: pointer; opacity: 0.7; transition: 0.2s; }
.close-lightbox:hover { opacity: 1; color: var(--accent); }
.lightbox-counter { position: absolute; bottom: 30px; color: white; font-size: 1rem; letter-spacing: 1px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    header { padding: 10px 0; }
    .nav-content { flex-wrap: wrap; align-items: center; gap: 10px; }
    .logo { font-size: 1.1rem; }
    .logo-image { height: 42px; }
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-4px); transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease, padding 0.2s ease; }
    .nav-links.open { display: flex; max-height: 460px; opacity: 1; transform: translateY(0); padding: 10px; margin-top: 8px; border: 1px solid #dbeafe; border-radius: 12px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); box-shadow: 0 10px 24px rgba(2, 6, 23, 0.1); }
    .nav-links a { margin-left: 0; font-size: 0.95rem; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0f172a; }
    .nav-links a:hover { border-color: #bfdbfe; color: var(--primary); background: #eff6ff; }
    .search-box { flex-direction: column; } .btn-search-hero { width: 100%; }
    .search-input-wrap { width: 100%; }
    .filters-dropdown { width: 100%; }
    .filters-toggle-btn { width: 100%; }
    .filters-dropdown-menu:not(.filters-dropdown-menu--floating) { position: static; margin-top: 10px; width: 100%; }
    .price-manual-group { grid-template-columns: 1fr; gap: 8px; }
    .vehicle-options-list,
    .vehicle-characteristics-grid { grid-template-columns: 1fr; }
    .detail-layout, .contact-layout, .finance-grid { grid-template-columns: 1fr; }
    .home-section-header { align-items: flex-start; }
    body.home-active .home-masthead,
    body.home-active .hero-v4 { min-height: auto; }
    body.home-active .hero-overlay { padding-top: 88px; padding-bottom: 48px; min-height: auto; }
    .home-stats-grid { grid-template-columns: 1fr 1fr; }
    .home-services-grid { grid-template-columns: 1fr 1fr; }
    .home-cta-band { padding: 44px 0; }
    .finance-docs-grid { grid-template-columns: 1fr; gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
    .footer-bottom-row { flex-direction: column; align-items: flex-start; padding: 10px 0; }
    .stock-toolbar { flex-direction: column; align-items: stretch; }
    .stock-toolbar-field { justify-content: space-between; }
    .stock-search-grid { grid-template-columns: 1fr; }
    .stock-search-input-group { grid-column: span 1; }
    .detail-sidebar { position: static; margin-top: 30px; }
    .gallery-main-container { height: 350px; }
    .hero-overlay { padding: 88px 0 48px; }
    .home-masthead { background-position: center 28%; }
    body.home-active .search-box { flex-wrap: wrap; }
    .hero-overlay h1 { font-size: 1.75rem; line-height: 1.2; }
    body.home-active .nav-links.open {
        background: rgba(15, 23, 42, 0.96);
        border-color: rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(12px);
    }
    body.home-active .nav-links.open a {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
    }
    .hero-overlay p { font-size: 1rem; }
    .search-main-container { padding: 16px; margin-top: 20px; }
    .hero-cta-row { flex-direction: column; }
    .btn-hero-secondary, .btn-hero-ghost { width: 100%; min-width: 0; }
    .hero-trust-row { gap: 8px; }
    .service-content { padding: 24px 16px; border-radius: 14px; }
    .service-content h1 { font-size: 1.45rem; }
    .charte-hero { padding: 16px; border-radius: 12px; }
    .charte-pillars { grid-template-columns: 1fr; gap: 8px; }
    .charte-pillar { font-size: 0.9rem; }
    .charte-text { padding: 14px; }
    .charte-text p { font-size: 0.97rem; line-height: 1.72; }
    .charte-guarantee h2 { font-size: 1.2rem; }
    .charte-guarantee-block p { font-size: 0.92rem; }
    .contact-quick-box, .contact-info-box { padding: 20px 16px; }
    .info-card-item { gap: 12px; }
    .info-card-item i { width: 42px; height: 42px; font-size: 1rem; }
    .car-grid:not(.home-car-grid):not(.stock-car-grid) { grid-template-columns: 1fr; gap: 18px; }
    .home-car-grid,
    .stock-car-grid { grid-template-columns: 1fr; gap: 18px; }
    .car-img { height: 210px; }
    .car-info { padding: 16px; }
    .car-info .price { font-size: 1.4rem; }
    .car-specs { flex-wrap: wrap; gap: 10px; }
    .card-contact-shortcut { display: inline-flex; width: 100%; }
    .gallery-box, .description-box, .detail-sidebar { padding: 16px; }
    .gallery-main-container { height: 270px; }
    .thumb-img { width: 82px; height: 60px; }
    .sidebar-title h1 { font-size: 1.35rem; }
    .sidebar-price { font-size: 2rem; }
    .tech-list li { font-size: 0.88rem; gap: 10px; }
    .btn-action { padding: 14px; font-size: 0.92rem; }
    .table-container { font-size: 0.85rem; }
    th, td { padding: 10px 8px; }
    .lightbox img { max-width: 96%; max-height: 74%; }
    .lb-arrow { font-size: 2rem; padding: 8px; }
    .close-lightbox { top: 16px; right: 18px; font-size: 30px; }
}

@media (max-width: 1180px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; margin-top: 24px; }
    .finance-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero-overlay { padding: 40px 0 30px; }
    .hero-v4 { min-height: 520px; }
    .hero-trust-row { justify-content: flex-start; }
    .trust-item { font-size: 0.76rem; }
    .home-stats-grid, .home-services-grid { grid-template-columns: 1fr; }
    .filters-toggle-btn, .btn-search-hero { min-height: 50px; }
}