/* =============================================
   GROUPE AUTOSPHERE — Design System
   Colors & typography sourced from autosphere.be
   Font: Hind (Google Fonts)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&display=swap');

:root {
    --primary: #424242;        /* Main text color */
    --dark: #1a1a2e;           /* Dark backgrounds (hero, search bar) */
    --accent: #309df4;         /* Primary accent (blue) */
    --blue: #309df4;           /* Links, prices, active states */
    --blue-hover: #108df2;     /* Blue hover */
    --orange: #ef6f54;         /* CTA buttons, discounts */
    --orange-hover: #ec6244;   /* Orange hover */
    --light-bg: #f8f9fb;       /* Page backgrounds */
    --border: #d4d4d4;         /* Borders, dividers */
    --white: #ffffff;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.10);
    --navbar-bg: #ffffff;      /* White navbar like autosphere.be */
}

body {
    font-family: 'Hind', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: var(--primary);
}

/* =============================================
   NAVBAR — White, like autosphere.be
   ============================================= */
.navbar-autosphere {
    background: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.navbar-brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary) !important;
    text-transform: uppercase;
}
.navbar-brand-text span { color: var(--orange); }

.navbar-autosphere .nav-link {
    color: var(--primary) !important;
    font-weight: 500;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.8rem !important;
    transition: color 0.2s;
}
.navbar-autosphere .nav-link:hover { color: var(--blue) !important; }
.navbar-autosphere .dropdown-toggle::after {
    border: none;
    content: '▾';
    margin-left: 3px;
    vertical-align: middle;
    font-size: 0.75rem;
}

/* CTA button in navbar */
.btn-concession {
    background: var(--orange);
    color: #fff !important;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.45rem 1.1rem !important;
    transition: background 0.2s;
    cursor: pointer;
}
.btn-concession:hover { background: var(--orange-hover) !important; }

.dealer-badge {
    background: #f0f0f0;
    border-radius: 3px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    color: var(--primary);
    white-space: nowrap;
    border: 1px solid var(--border);
}

/* =============================================
   DROPDOWN MENUS
   ============================================= */
.dropdown-menu-autosphere {
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    border-radius: 4px;
    min-width: 260px;
    padding: 0.5rem 0;
    top: 100%;
}
.dropdown-menu-autosphere .dropdown-item {
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 500;
}
.dropdown-menu-autosphere .dropdown-item:hover {
    background: var(--light-bg);
    color: var(--blue);
}
.dropdown-menu-autosphere .dropdown-header {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem 0.2rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    background: url('/static/img/hero-home.webp') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.15) 100%);
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}
.hero-title .accent { color: var(--orange); }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,.8); }

.btn-primary-auto {
    background: var(--orange);
    color: #fff !important;
    border-radius: 3px;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    transition: background 0.2s;
    border: none;
}
.btn-primary-auto:hover { background: var(--orange-hover); }

.btn-outline-auto {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.6) !important;
    border-radius: 3px;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    transition: all 0.2s;
}
.btn-outline-auto:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff !important;
}

/* Dealer selector card in hero */
.dealer-selector-card {
    background: #fff;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: var(--blue);
    padding: 1rem 0;
    color: #fff;
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-top: 2px;
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}
.section-title span { color: var(--blue); }
.section-divider {
    display: block;
    width: 50px;
    height: 3px;
    background: var(--orange);
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.2s;
    height: 100%;
    cursor: pointer;
}
.service-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(48,157,244,.15);
    transform: translateY(-2px);
}
.service-icon {
    font-size: 1.8rem;
    color: var(--blue);
    margin-bottom: 0.8rem;
}
.service-card-large:hover { transform: translateY(-3px); }

/* =============================================
   VEHICLE CARDS
   ============================================= */
.vehicle-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    cursor: pointer;
}
.vehicle-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); }

.vehicle-brand {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 1px;
}
.vehicle-model {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}
.vehicle-specs {
    font-size: 0.8rem;
    color: #888;
}
.vehicle-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
}
.vehicle-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    color: #fff;
    letter-spacing: 0.5px;
}
.badge-neuf { background: var(--blue); }
.badge-occa, .badge-d\00e9mo { background: var(--orange); }

.btn-voir {
    background: var(--blue);
    color: #fff !important;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    transition: background 0.2s;
    border: none;
    text-decoration: none;
}
.btn-voir:hover { background: var(--blue-hover); }

/* =============================================
   HOW IT WORKS STEPS
   ============================================= */
.step-item {
    text-align: center;
    padding: 1rem;
}
.step-number {
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* =============================================
   DEALER MODAL
   ============================================= */
.modal-dealer { max-width: 520px; }
.modal-dealer .modal-header {
    background: var(--primary);
    color: #fff;
    border-radius: 4px 4px 0 0;
}
.dealer-option {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}
.dealer-option:hover {
    border-color: var(--blue);
    background: var(--light-bg);
}
.dealer-option-brands {
    font-size: 0.78rem;
    color: var(--blue);
    font-weight: 500;
    margin-top: 2px;
}

/* =============================================
   VEHICLE LIST — Filters
   ============================================= */
.filter-sidebar {
    background: var(--light-bg);
    border-radius: 6px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}
.filter-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
}

/* =============================================
   VEHICLE DETAIL
   ============================================= */
.spec-table td { padding: 0.4rem 0.6rem; font-size: 0.88rem; }
.spec-table tr:nth-child(even) { background: var(--light-bg); }
.monthly-estimate {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}
.monthly-amount { font-size: 1.8rem; font-weight: 700; color: var(--blue); }

/* =============================================
   FOOTER
   ============================================= */
.footer-main {
    background: var(--primary);
    color: rgba(255,255,255,.85);
    padding: 3rem 0 1.5rem;
}
.footer-brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}
.footer-brand span { color: var(--orange); }
.footer-main a { color: rgba(255,255,255,.7); text-decoration: none; font-weight: 400; }
.footer-main a:hover { color: #fff; }
.footer-main h6 { color: rgba(255,255,255,.5); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 1px; }
.footer-bottom {
    background: #333;
    color: rgba(255,255,255,.5);
    padding: 0.75rem 0;
    font-size: 0.8rem;
}

/* =============================================
   BRAND PILLS
   ============================================= */
.brand-pill {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: .5px;
}
.brand-pill.vag { background: #fff3f0; color: var(--orange); border: 1px solid #fdd; }
.brand-pill.renault { background: #f0f5ff; color: var(--blue); border: 1px solid #d0e0ff; }

/* =============================================
   SERVICES PAGE
   ============================================= */
.service-full-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.service-full-card:hover { box-shadow: var(--card-shadow); }
.service-full-card .service-header {
    background: var(--blue);
    color: #fff;
    padding: 1.2rem 1.5rem;
}
.service-full-card .service-header.orange { background: var(--orange); }

/* =============================================
   LEASE PAGE
   ============================================= */
.lease-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #555 100%);
    color: #fff;
    padding: 4rem 0;
}
.lease-feature-box {
    background: var(--light-bg);
    border-radius: 6px;
    padding: 1.5rem;
    border-left: 4px solid var(--blue);
    height: 100%;
}

/* =============================================
   CONCESSIONS PAGE
   ============================================= */
.dealer-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}
.dealer-card:hover { box-shadow: var(--card-shadow); }
.dealer-card .dealer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.dealer-card .dealer-brands {
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 500;
}

/* =============================================
   MISC / UTILITIES
   ============================================= */
.bg-light-auto { background: var(--light-bg); }
.text-blue { color: var(--blue) !important; }
.text-orange { color: var(--orange) !important; }

/* Pagination */
.page-link { color: var(--blue); }
.page-item.active .page-link {
    background-color: var(--blue);
    border-color: var(--blue);
}

/* Forms */
.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(48,157,244,.15);
}
.btn-submit-auto {
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    transition: background 0.2s;
}
.btn-submit-auto:hover { background: var(--blue-hover); }

/* Footer links & social */
.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,.6); font-style: italic; }
.footer-heading { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: 0.6rem; }
.footer-link { display: block; color: rgba(255,255,255,.7); text-decoration: none; font-size: 0.88rem; padding: 0.15rem 0; transition: color 0.15s; font-weight: 400; }
.footer-link:hover { color: #fff; }
.social-icon { color: rgba(255,255,255,.6); font-size: 1.1rem; margin-right: 0.8rem; transition: color 0.15s; }
.social-icon:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1rem; color: rgba(255,255,255,.4); font-size: 0.78rem; }

/* Navbar toggler fix for white navbar */
.navbar-autosphere .navbar-toggler { border-color: var(--border); }
.navbar-autosphere .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2866, 66, 66, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Logo */
.logo-nav { height: 36px; width: auto; }
@media (max-width: 768px) { .logo-nav { height: 28px; } }

/* Find a car page tabs */
.find-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.find-tab:hover { color: var(--blue); border-bottom-color: var(--border); }
.find-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Language switcher */
.lang-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 2px 3px;
    border-radius: 3px;
    transition: opacity 0.15s;
    line-height: 1;
}
.lang-btn:hover, .lang-btn.active { opacity: 1; }
.lang-btn.active { outline: 2px solid var(--orange); outline-offset: 1px; }

/* Promotional Banner */
.promo-banner-wrapper {
    padding: 2.5rem 0;
    background: var(--light-bg);
}
.promo-banner {
    background-color: var(--dark);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    min-height: 180px;
}
.promo-banner-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.10) 100%);
    padding: 3rem 2.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
}
.promo-banner-text {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    max-width: 580px;
    line-height: 1.4;
}
.promo-banner-btn {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: .75rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
    transition: background .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.promo-banner-btn:hover {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* Search Widget */
.search-widget {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.search-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}
.search-tab {
    flex: 1;
    background: #f8f9fb;
    border: none;
    color: var(--primary);
    padding: .75rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
    letter-spacing: .3px;
}
.search-tab:hover {
    background: #eef2f7;
    color: var(--accent);
}
.search-tab.active {
    background: #fff;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}
.search-panel {
    padding: 1rem 1rem .75rem;
}
.search-select {
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-size: .92rem !important;
    padding: .6rem .9rem !important;
    color: #1a1a1a !important;
}
.search-select:focus {
    box-shadow: 0 0 0 2px var(--accent) !important;
    outline: none !important;
}
.search-btn {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    font-size: .95rem;
    padding: .65rem 1rem;
    transition: background .2s;
}
.search-btn:hover {
    background: var(--orange);
    color: #fff;
}

/* Search module bar (below hero) */
.search-module-bar {
    background: var(--light-bg);
    padding: 2rem 0;
}

/* Brands block */
.brands-block {
    background: #f0f2f5;
    padding: 2.5rem 0;
}
.brands-block__title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.brands-block__title--blue {
    color: var(--accent);
}
.brand-card {
    background: #fff;
    border-top: 3px solid var(--accent);
    border-radius: 0 0 6px 6px;
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.brand-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: .75rem;
    color: var(--primary);
}
.brand-card__img {
    height: 64px;
    width: auto;
    object-fit: contain;
}
.brand-card__name {
    font-size: .8rem;
    letter-spacing: .5px;
    color: var(--primary);
}
.brand-card__models {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .82rem;
}
.brand-card__models a {
    color: var(--primary);
    text-decoration: none;
    transition: color .15s;
}
.brand-card__models a:hover {
    color: var(--accent);
}
.brand-card__all {
    margin-top: .4rem;
    color: var(--accent) !important;
    font-weight: 600;
}
.brands-block__secondary {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.brands-block__also {
    font-size: .85rem;
    color: var(--primary);
    white-space: nowrap;
}
.brands-block__secondary-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.brand-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 600;
    transition: opacity .2s;
}
.brand-logo-link:hover { opacity: .7; }
.brand-logo-link img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* Brand hero logo row */
.brands-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    flex-wrap: wrap;
}
.brand-hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 80px;
    transition: opacity .2s, transform .2s;
}
.brand-hero-logo:hover {
    opacity: .7;
    transform: scale(1.05);
}
.brand-hero-logo img {
    height: 156px;
    width: auto;
    object-fit: contain;
}
.brands-block__subtitle {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Stat item as link */
.stat-item--link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: .5rem;
    transition: background .2s, transform .2s;
}
.stat-item--link:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    color: inherit;
}
.stat-item--link .stat-number { color: #fff; }
