/* =========================================================================
   Bestune Tunisia — Couche custom appliquée par-dessus la template Coche
   À charger APRÈS style.css et responsive.css (pour surclasser les défauts).
   Palette : noir / blanc / gris / rouge Bestune / doré accent.
   ========================================================================= */

:root {
    --bst-black:      #0c0c0c;
    --bst-dark:       #1a1a1a;
    --bst-gray-900:   #222226;
    --bst-gray-700:   #4a4a4f;
    --bst-gray-500:   #8a8a90;
    --bst-gray-300:   #d6d6d8;
    --bst-gray-100:   #f5f5f7;
    --bst-white:      #ffffff;
    --bst-red:        #178cce;          /* rouge Bestune principal */
    --bst-red-dark:   #0f6db0;
    --bst-gold:       #c9a45c;          /* doré accent */
    --bst-gold-dark:  #a6843e;

    --bst-radius:     6px;
    --bst-radius-lg:  14px;
    --bst-shadow-sm:  0 2px 8px rgba(12,12,12,.06);
    --bst-shadow-md:  0 8px 24px rgba(12,12,12,.10);
    --bst-shadow-lg:  0 16px 48px rgba(12,12,12,.16);

    --bst-font:       'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --bst-font-display:'Poppins', 'Roboto', system-ui, sans-serif;

    --bst-transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset / Base ---------- */
body.bestune-site {
    font-family: var(--bst-font);
    color: var(--bst-gray-900);
    background: var(--bst-white);
}

.bestune-site h1, .bestune-site h2, .bestune-site h3,
.bestune-site h4, .bestune-site h5, .bestune-site h6 {
    font-family: var(--bst-font-display);
    color: var(--bst-black);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bestune-site a { transition: color var(--bst-transition); }
.bestune-site a:hover { text-decoration: none; }
.bestune-site img { max-width: 100%; height: auto; }

/* ---------- Utilities ---------- */
.bst-text-red    { color: var(--bst-red) !important; }
.bst-text-gold   { color: var(--bst-gold) !important; }
.bst-bg-black    { background: var(--bst-black) !important; color: var(--bst-white); }
.bst-bg-dark     { background: var(--bst-dark)  !important; color: var(--bst-white); }
.bst-bg-light    { background: var(--bst-gray-100) !important; }
.bst-section     { padding: 90px 0; }
.bst-section-sm  { padding: 60px 0; }
.bst-container   { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.bst-section-title {
    text-align: center;
    margin-bottom: 56px;
}
.bst-section-title .eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bst-red);
    font-weight: 600;
    margin-bottom: 14px;
    position: relative;
    padding: 0 30px;
}
.bst-section-title .eyebrow::before,
.bst-section-title .eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 1px;
    background: var(--bst-red);
}
.bst-section-title .eyebrow::before { left: 0; }
.bst-section-title .eyebrow::after  { right: 0; }
.bst-section-title h2 {
    font-size: 36px;
    margin: 0 0 14px;
    line-height: 1.2;
}
.bst-section-title p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--bst-gray-700);
    font-size: 16px;
}

/* ---------- Boutons ---------- */
.bst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--bst-radius);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--bst-transition);
    text-decoration: none;
    line-height: 1.2;
}
.bst-btn i { font-size: 16px; }
.bst-btn-primary {
    background: var(--bst-red);
    color: var(--bst-white);
    border-color: var(--bst-red);
}
.bst-btn-primary:hover {
    background: var(--bst-red-dark);
    border-color: var(--bst-red-dark);
    color: var(--bst-white);
    transform: translateY(-2px);
    box-shadow: var(--bst-shadow-md);
}
.bst-btn-dark {
    background: var(--bst-black);
    color: var(--bst-white);
    border-color: var(--bst-black);
}
.bst-btn-dark:hover {
    background: var(--bst-gray-900);
    color: var(--bst-white);
    transform: translateY(-2px);
}
.bst-btn-outline {
    background: transparent;
    color: var(--bst-black);
    border-color: var(--bst-black);
}
.bst-btn-outline:hover {
    background: var(--bst-black);
    color: var(--bst-white);
}
.bst-btn-outline-light {
    background: transparent;
    color: var(--bst-white);
    border-color: var(--bst-white);
}
.bst-btn-outline-light:hover {
    background: var(--bst-white);
    color: var(--bst-black);
}
.bst-btn-gold {
    background: var(--bst-gold);
    color: var(--bst-black);
    border-color: var(--bst-gold);
}
.bst-btn-gold:hover {
    background: var(--bst-gold-dark);
    border-color: var(--bst-gold-dark);
    color: var(--bst-white);
}
.bst-btn-whatsapp {
    background: #25d366;
    color: var(--bst-white);
    border-color: #25d366;
}
.bst-btn-whatsapp:hover {
    background: #1ebe57;
    color: var(--bst-white);
}
.bst-btn-sm { padding: 9px 18px; font-size: 12px; }
.bst-btn-lg { padding: 16px 36px; font-size: 15px; }

/* ---------- Header sticky ---------- */
.bst-topbar {
    background: var(--bst-black);
    color: var(--bst-gray-300);
    font-size: 13px;
    padding: 8px 0;
}
.bst-topbar a { color: var(--bst-gray-300); }
.bst-topbar a:hover { color: var(--bst-gold); }
.bst-topbar .info { display: inline-block; margin-right: 22px; }
.bst-topbar .info i { color: var(--bst-red); margin-right: 6px; }
.bst-topbar .lang-switch a {
    display: inline-block;
    margin-left: 10px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}
.bst-topbar .lang-switch a.active { color: var(--bst-white); font-weight: 600; }

.bst-header {
    background: var(--bst-white);
    box-shadow: var(--bst-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 950;
    transition: all var(--bst-transition);
}
.bst-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.bst-header .logo { display: inline-flex; align-items: center; }
.bst-header .logo img,
.bst-header .logo .brand-logo-img { max-height: 44px; width: auto; display: block; }
.bst-header .logo .brand-text {
    font-family: var(--bst-font-display);
    font-weight: 800;
    color: var(--bst-black);
    font-size: 22px;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: inline-block;
}
.bst-header .logo .brand-text span { color: var(--bst-red); }

.bst-nav { display: flex; align-items: center; gap: 6px; }
.bst-nav > li {
    list-style: none;
    position: relative;
}
.bst-nav > li > a {
    display: block;
    padding: 22px 14px;
    color: var(--bst-black);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-decoration: none;
    position: relative;
}
.bst-nav > li > a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 14px;
    height: 2px;
    background: var(--bst-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--bst-transition);
}
.bst-nav > li > a:hover::after,
.bst-nav > li.active > a::after { transform: scaleX(1); }
.bst-nav > li > a:hover { color: var(--bst-red); }
.bst-nav > li.has-children > a::before {
    content: "\f107";
    font-family: "FontAwesome";
    font-weight: 900;
    margin-left: 6px;
    font-size: 11px;
    opacity: .7;
}

/* Mega menu */
.bst-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bst-white);
    width: 880px;
    max-width: 95vw;
    box-shadow: var(--bst-shadow-lg);
    padding: 30px;
    border-top: 3px solid var(--bst-red);
    opacity: 0;
    visibility: hidden;
    transition: all var(--bst-transition);
    z-index: 1000;
}
.bst-nav > li:hover > .bst-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.bst-mega .mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.bst-mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--bst-radius);
    transition: background var(--bst-transition);
    text-decoration: none;
    color: var(--bst-black);
}
.bst-mega-item:hover { background: var(--bst-gray-100); }
.bst-mega-item img {
    width: 76px;
    height: 56px;
    object-fit: contain;
    background: var(--bst-gray-100);
    border-radius: 4px;
}
.bst-mega-item .info { line-height: 1.3; }
.bst-mega-item .name {
    font-weight: 700;
    font-size: 14px;
    color: var(--bst-black);
}
.bst-mega-item .price {
    font-size: 12px;
    color: var(--bst-red);
    font-weight: 600;
}
.bst-mega-cta {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bst-gray-300);
    text-align: right;
}

/* Simple dropdown (non-mega) */
.bst-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bst-white);
    box-shadow: var(--bst-shadow-md);
    min-width: 230px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--bst-transition);
    list-style: none;
    margin: 0;
    z-index: 1000;
    border-top: 3px solid var(--bst-red);
}
.bst-nav > li:hover > .bst-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.bst-dropdown li a {
    display: block;
    padding: 10px 22px;
    color: var(--bst-gray-900);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--bst-transition);
}
.bst-dropdown li a:hover {
    background: var(--bst-gray-100);
    color: var(--bst-red);
    padding-left: 28px;
}

.bst-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bst-header-actions .icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bst-gray-100);
    color: var(--bst-black);
    transition: all var(--bst-transition);
}
.bst-header-actions .icon-btn:hover {
    background: var(--bst-red);
    color: var(--bst-white);
}
.bst-mobile-toggle {
    display: none;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    background: var(--bst-black);
    color: var(--bst-white);
    border-radius: var(--bst-radius);
    border: none;
}

/* ---------- Hero slider ---------- */
.bst-hero {
    position: relative;
    background: var(--bst-black);
    color: var(--bst-white);
    overflow: hidden;
}
.bst-hero-slide {
    position: relative;
    min-height: 620px;
    display: flex !important;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.bst-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
}
.bst-hero-slide .content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 60px 0;
}
.bst-hero-slide .eyebrow {
    display: inline-block;
    background: var(--bst-red);
    color: var(--bst-white);
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 22px;
}
.bst-hero-slide h1 {
    color: var(--bst-white);
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 18px;
    text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.bst-hero-slide h1 .accent { color: var(--bst-gold); }
.bst-hero-slide p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: rgba(255,255,255,.92);
    max-width: 540px;
}
.bst-hero-slide .cta-row {
    display: flex; gap: 14px; flex-wrap: wrap;
}
.bst-hero .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 56px; height: 56px;
    background: rgba(255,255,255,.1);
    color: var(--bst-white);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    transition: all var(--bst-transition);
}
.bst-hero .slick-arrow:hover {
    background: var(--bst-red);
    border-color: var(--bst-red);
}
.bst-hero .slick-arrow::before {
    font-family: "FontAwesome";
    font-size: 20px;
}
.bst-hero .slick-prev { left: 30px; }
.bst-hero .slick-prev::before { content: "\f060"; }
.bst-hero .slick-next { right: 30px; }
.bst-hero .slick-next::before { content: "\f061"; }
.bst-hero .slick-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex !important;
    gap: 10px;
    list-style: none;
    padding: 0;
}
.bst-hero .slick-dots li button {
    width: 32px; height: 4px;
    background: rgba(255,255,255,.3);
    border: none;
    font-size: 0;
    cursor: pointer;
    transition: background var(--bst-transition);
}
.bst-hero .slick-dots li.slick-active button { background: var(--bst-red); }

/* ---------- Page banner (autres pages) ---------- */
.bst-page-banner {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    color: var(--bst-white);
    text-align: center;
}
.bst-page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.55));
}
.bst-page-banner > .bst-container { position: relative; z-index: 2; }
.bst-page-banner h1 {
    color: var(--bst-white);
    font-size: 44px;
    margin-bottom: 12px;
}
.bst-page-banner .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
    font-size: 14px;
    color: rgba(255,255,255,.85);
}
.bst-page-banner .breadcrumb a { color: var(--bst-white); }
.bst-page-banner .breadcrumb a:hover { color: var(--bst-gold); }
.bst-page-banner .breadcrumb .sep { opacity: .6; }
.bst-page-banner .breadcrumb .current { color: var(--bst-gold); font-weight: 600; }

/* ---------- Card véhicule ---------- */
.bst-car-card {
    background: var(--bst-white);
    border-radius: var(--bst-radius-lg);
    overflow: hidden;
    box-shadow: var(--bst-shadow-sm);
    transition: all var(--bst-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.bst-car-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bst-shadow-lg);
}
.bst-car-card .img-wrap {
    position: relative;
    background: var(--bst-gray-100);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.bst-car-card .img-wrap img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 14px;
    transition: transform .5s ease;
}
.bst-car-card:hover .img-wrap img { transform: scale(1.05); }
.bst-car-card .badges {
    position: absolute;
    top: 14px; left: 14px;
    display: flex; flex-direction: column; gap: 6px;
    z-index: 2;
}
.bst-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}
.bst-badge.new        { background: var(--bst-red);   color: var(--bst-white); }
.bst-badge.electric   { background: #2ecc71;          color: var(--bst-white); }
.bst-badge.featured   { background: var(--bst-gold);  color: var(--bst-black); }
.bst-badge.status-available    { background: #2ecc71;       color: var(--bst-white); }
.bst-badge.status-soon         { background: var(--bst-gold); color: var(--bst-black); }
.bst-badge.status-onorder      { background: #3498db;       color: var(--bst-white); }
.bst-badge.status-unavailable  { background: var(--bst-gray-500); color: var(--bst-white); }

.bst-car-card .body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bst-car-card .category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bst-red);
    font-weight: 600;
    margin-bottom: 6px;
}
.bst-car-card .name {
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--bst-black);
}
.bst-car-card .name a { color: inherit; }
.bst-car-card .tagline {
    color: var(--bst-gray-700);
    font-size: 13.5px;
    margin-bottom: 14px;
    line-height: 1.5;
    flex: 1;
}
.bst-car-card .specs {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--bst-gray-300);
    border-bottom: 1px solid var(--bst-gray-300);
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--bst-gray-700);
}
.bst-car-card .specs > div {
    flex: 1;
    text-align: center;
}
.bst-car-card .specs i { color: var(--bst-red); font-size: 16px; display: block; margin-bottom: 4px; }
.bst-car-card .price {
    font-size: 20px;
    font-weight: 800;
    color: var(--bst-black);
    margin-bottom: 14px;
}
.bst-car-card .price small { font-size: 12px; color: var(--bst-gray-500); font-weight: 400; display: block; }
.bst-car-card .actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.bst-car-card .actions .bst-btn { flex: 1; padding: 11px 14px; font-size: 12px; }

/* ---------- Filtres modèles ---------- */
.bst-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.bst-filter-btn {
    padding: 10px 22px;
    background: var(--bst-white);
    border: 2px solid var(--bst-gray-300);
    border-radius: 30px;
    color: var(--bst-gray-700);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all var(--bst-transition);
}
.bst-filter-btn:hover { border-color: var(--bst-black); color: var(--bst-black); }
.bst-filter-btn.active {
    background: var(--bst-red);
    border-color: var(--bst-red);
    color: var(--bst-white);
}

/* ---------- Section "Pourquoi Bestune" ---------- */
.bst-feature-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--bst-white);
    border-radius: var(--bst-radius-lg);
    transition: all var(--bst-transition);
    height: 100%;
    border: 1px solid var(--bst-gray-300);
}
.bst-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--bst-red);
    box-shadow: var(--bst-shadow-md);
}
.bst-feature-card .icon {
    width: 76px; height: 76px;
    margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bst-gray-100);
    color: var(--bst-red);
    border-radius: 50%;
    font-size: 32px;
    transition: all var(--bst-transition);
}
.bst-feature-card:hover .icon {
    background: var(--bst-red);
    color: var(--bst-white);
    transform: scale(1.08);
}
.bst-feature-card h4 { font-size: 18px; margin-bottom: 10px; }
.bst-feature-card p { color: var(--bst-gray-700); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Service card ---------- */
.bst-service-card {
    position: relative;
    border-radius: var(--bst-radius-lg);
    overflow: hidden;
    height: 280px;
    background: var(--bst-gray-900);
    color: var(--bst-white);
}
.bst-service-card .bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .6s ease;
}
.bst-service-card:hover .bg { transform: scale(1.07); }
.bst-service-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85));
}
.bst-service-card .content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 22px 24px;
    z-index: 2;
}
.bst-service-card .content h4 { color: var(--bst-white); font-size: 20px; margin-bottom: 6px; }
.bst-service-card .content p { font-size: 14px; opacity: .9; margin: 0 0 10px; }
.bst-service-card .content a { color: var(--bst-gold); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.bst-service-card .content a:hover { color: var(--bst-white); }

/* ---------- Sections promo "Réservez essai" ---------- */
.bst-cta-band {
    background: linear-gradient(135deg, var(--bst-black) 0%, var(--bst-gray-900) 100%);
    color: var(--bst-white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.bst-cta-band::before {
    content: "";
    position: absolute;
    top: -40%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(23,140,206,.18), transparent 70%);
}
.bst-cta-band .inner {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 24px;
}
.bst-cta-band h3 { color: var(--bst-white); font-size: 32px; margin-bottom: 10px; }
.bst-cta-band p  { color: rgba(255,255,255,.8); font-size: 16px; margin: 0; }

/* ---------- WhatsApp floating button ---------- */
.bst-wa-float {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: var(--bst-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37,211,102,.45);
    z-index: 998;
    text-decoration: none;
    animation: bst-pulse 2s infinite;
}
.bst-wa-float:hover { background: #1ebe57; color: var(--bst-white); transform: scale(1.08); }
@keyframes bst-pulse {
    0%   { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
    70%  { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Footer ---------- */
.bst-footer {
    background: var(--bst-black);
    color: var(--bst-gray-300);
    padding: 70px 0 0;
}
.bst-footer h5 {
    color: var(--bst-white);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
.bst-footer h5::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 36px; height: 2px;
    background: var(--bst-red);
}
.bst-footer p { color: var(--bst-gray-300); font-size: 14px; line-height: 1.7; }
.bst-footer a { color: var(--bst-gray-300); }
.bst-footer a:hover { color: var(--bst-gold); padding-left: 4px; }
.bst-footer ul { list-style: none; padding: 0; margin: 0; }
.bst-footer ul li { padding: 5px 0; font-size: 14px; transition: all var(--bst-transition); }
.bst-footer ul li i { color: var(--bst-red); margin-right: 8px; }
/* Footer logo : version blanche transparente sur fond sombre, pas de pastille. */
.bst-footer .brand .logo.logo-img {
    display: inline-block;
    line-height: 0;
    margin-bottom: 14px;
}
.bst-footer .brand .logo.logo-img img { height: 36px; width: auto; display: block; }
.bst-footer .brand .logo:not(.logo-img) {
    font-family: var(--bst-font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--bst-white);
    margin-bottom: 14px;
    display: inline-block;
}
.bst-footer .brand .logo span { color: var(--bst-red); }
.bst-footer .social { display: flex; gap: 10px; margin-top: 18px; }
.bst-footer .social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bst-gray-900);
    color: var(--bst-white);
    transition: all var(--bst-transition);
}
.bst-footer .social a:hover {
    background: var(--bst-red);
    color: var(--bst-white);
    padding: 0;
}
.bst-footer .copy {
    border-top: 1px solid var(--bst-gray-900);
    margin-top: 50px;
    padding: 22px 0;
    font-size: 13px;
    color: var(--bst-gray-500);
    text-align: center;
}
.bst-footer .copy a { color: var(--bst-gold); }

/* ---------- Forms ---------- */
.bst-form-group { margin-bottom: 20px; }
.bst-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bst-gray-900);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.bst-form-group label .req { color: var(--bst-red); }
.bst-form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--bst-gray-300);
    background: var(--bst-white);
    border-radius: var(--bst-radius);
    font-family: var(--bst-font);
    font-size: 14px;
    color: var(--bst-black);
    transition: all var(--bst-transition);
}
.bst-form-control:focus {
    outline: none;
    border-color: var(--bst-red);
    box-shadow: 0 0 0 3px rgba(23,140,206,.15);
}
.bst-form-control.invalid {
    border-color: var(--bst-red);
    background: #fff5f5;
}
.bst-form-help { font-size: 12px; color: var(--bst-gray-500); margin-top: 6px; }
.bst-form-error { font-size: 12px; color: var(--bst-red); margin-top: 6px; display: none; }
.bst-form-control.invalid + .bst-form-error { display: block; }
textarea.bst-form-control { min-height: 130px; resize: vertical; }
select.bst-form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.bst-form-card {
    background: var(--bst-white);
    border-radius: var(--bst-radius-lg);
    padding: 36px;
    box-shadow: var(--bst-shadow-md);
}
.bst-form-card h3 { font-size: 24px; margin-bottom: 8px; }
.bst-form-card .lead { color: var(--bst-gray-700); margin-bottom: 28px; font-size: 14px; }

/* ---------- Toast ---------- */
.bst-toast-container {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}
.bst-toast {
    background: var(--bst-white);
    border-left: 4px solid var(--bst-red);
    box-shadow: var(--bst-shadow-lg);
    padding: 14px 18px;
    border-radius: var(--bst-radius);
    display: flex; align-items: flex-start; gap: 12px;
    animation: bst-toast-in .3s ease;
}
.bst-toast.success { border-color: #2ecc71; }
.bst-toast.error   { border-color: var(--bst-red); }
.bst-toast.info    { border-color: #3498db; }
.bst-toast .icon { font-size: 20px; color: var(--bst-red); }
.bst-toast.success .icon { color: #2ecc71; }
.bst-toast.info .icon    { color: #3498db; }
.bst-toast .content { flex: 1; font-size: 14px; }
.bst-toast .content strong { display: block; margin-bottom: 2px; color: var(--bst-black); }
.bst-toast .close-btn { background: none; border: none; cursor: pointer; color: var(--bst-gray-500); font-size: 18px; }
@keyframes bst-toast-in { from { transform: translateX(120%); } to { transform: translateX(0); } }

/* ---------- Mobile sidebar ---------- */
.bst-mobile-nav {
    position: fixed;
    top: 0; right: -340px;
    width: 320px; height: 100vh;
    background: var(--bst-white);
    box-shadow: var(--bst-shadow-lg);
    z-index: 1001;
    overflow-y: auto;
    transition: right var(--bst-transition);
    padding: 24px;
}
.bst-mobile-nav.open { right: 0; }
.bst-mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: all var(--bst-transition);
}
.bst-mobile-overlay.show { opacity: 1; visibility: visible; }
.bst-mobile-nav .close-btn {
    background: none; border: none;
    font-size: 28px; color: var(--bst-black);
    cursor: pointer;
    margin-bottom: 20px;
}
.bst-mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.bst-mobile-nav > ul > li > a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--bst-gray-300);
    color: var(--bst-black);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.bst-mobile-nav .sub { padding-left: 18px; }
.bst-mobile-nav .sub a {
    display: block;
    padding: 8px 0;
    color: var(--bst-gray-700);
    font-size: 13px;
    text-decoration: none;
}

/* ---------- Détail modèle ---------- */
.bst-model-hero {
    background: linear-gradient(135deg, var(--bst-gray-100) 0%, var(--bst-white) 100%);
    padding: 60px 0;
    position: relative;
}
.bst-model-hero .model-meta {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bst-red);
    font-weight: 600;
}
.bst-model-hero h1 { font-size: 52px; line-height: 1.05; margin-bottom: 12px; }
.bst-model-hero .tagline { font-size: 18px; color: var(--bst-gray-700); margin-bottom: 26px; }
.bst-model-hero .price-from {
    display: inline-block;
    padding: 12px 22px;
    background: var(--bst-black);
    color: var(--bst-white);
    border-radius: var(--bst-radius);
    margin-bottom: 26px;
}
.bst-model-hero .price-from small { display: block; font-size: 11px; opacity: .7; text-transform: uppercase; letter-spacing: 2px; }
.bst-model-hero .price-from .val { font-size: 26px; font-weight: 800; }
.bst-model-hero .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.bst-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.bst-spec-item {
    background: var(--bst-gray-100);
    padding: 18px;
    border-radius: var(--bst-radius);
    text-align: center;
}
.bst-spec-item i { font-size: 28px; color: var(--bst-red); display: block; margin-bottom: 8px; }
.bst-spec-item .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--bst-gray-500); }
.bst-spec-item .val   { font-size: 16px; font-weight: 700; color: var(--bst-black); }

.bst-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid var(--bst-gray-300);
    margin-bottom: 30px;
}
.bst-tab-nav button {
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    color: var(--bst-gray-700);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--bst-transition);
}
.bst-tab-nav button:hover { color: var(--bst-black); }
.bst-tab-nav button.active {
    color: var(--bst-red);
    border-color: var(--bst-red);
}
.bst-tab-content { display: none; }
.bst-tab-content.active { display: block; animation: bst-fade-in .3s ease; }
@keyframes bst-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.bst-color-swatch {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    margin-bottom: 16px;
    cursor: pointer;
}
.bst-color-swatch .dot {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 3px solid var(--bst-white);
    box-shadow: 0 0 0 1px var(--bst-gray-300);
    transition: all var(--bst-transition);
}
.bst-color-swatch:hover .dot { box-shadow: 0 0 0 2px var(--bst-red); transform: scale(1.08); }
.bst-color-swatch .name { font-size: 12px; color: var(--bst-gray-700); }

.bst-feature-list { list-style: none; padding: 0; columns: 2; column-gap: 30px; }
.bst-feature-list li {
    padding: 8px 0 8px 26px;
    position: relative;
    font-size: 14px;
    color: var(--bst-gray-900);
    break-inside: avoid;
}
.bst-feature-list li::before {
    content: "\f00c";
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    color: var(--bst-red);
}
@media (max-width: 600px) { .bst-feature-list { columns: 1; } }

.bst-version-card {
    border: 2px solid var(--bst-gray-300);
    border-radius: var(--bst-radius-lg);
    padding: 26px;
    text-align: center;
    transition: all var(--bst-transition);
    height: 100%;
}
.bst-version-card:hover, .bst-version-card.recommended {
    border-color: var(--bst-red);
    box-shadow: var(--bst-shadow-md);
}
.bst-version-card.recommended { position: relative; }
.bst-version-card.recommended::before {
    content: "Recommandé";
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--bst-red); color: var(--bst-white);
    font-size: 11px; padding: 4px 12px; border-radius: 12px;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.bst-version-card h4 { font-size: 22px; margin-bottom: 8px; color: var(--bst-black); }
.bst-version-card .price { font-size: 28px; color: var(--bst-red); font-weight: 800; margin-bottom: 6px; }
.bst-version-card .price small { font-size: 12px; color: var(--bst-gray-500); font-weight: 400; display: block; }
.bst-version-card .highlights { color: var(--bst-gray-700); font-size: 14px; margin: 18px 0; line-height: 1.5; }

/* ---------- Showroom card ---------- */
.bst-showroom-card {
    background: var(--bst-white);
    border-radius: var(--bst-radius-lg);
    overflow: hidden;
    box-shadow: var(--bst-shadow-sm);
    transition: all var(--bst-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.bst-showroom-card:hover { box-shadow: var(--bst-shadow-md); transform: translateY(-4px); }
.bst-showroom-card .img-wrap {
    aspect-ratio: 16/9; overflow: hidden; background: var(--bst-gray-100);
}
.bst-showroom-card .img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.bst-showroom-card:hover .img-wrap img { transform: scale(1.05); }
.bst-showroom-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.bst-showroom-card .city {
    font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--bst-red); font-weight: 600; margin-bottom: 6px;
}
.bst-showroom-card h4 { font-size: 20px; margin-bottom: 10px; }
.bst-showroom-card .info { font-size: 13.5px; color: var(--bst-gray-700); line-height: 1.7; flex: 1; }
.bst-showroom-card .info i { color: var(--bst-red); width: 20px; }
.bst-showroom-card .actions { display: flex; gap: 8px; margin-top: 16px; }

/* ---------- News card ---------- */
.bst-news-card {
    background: var(--bst-white);
    border-radius: var(--bst-radius-lg);
    overflow: hidden;
    box-shadow: var(--bst-shadow-sm);
    transition: all var(--bst-transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.bst-news-card:hover { box-shadow: var(--bst-shadow-md); transform: translateY(-4px); }
.bst-news-card .img-wrap { aspect-ratio: 16/10; overflow: hidden; }
.bst-news-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bst-news-card:hover .img-wrap img { transform: scale(1.06); }
.bst-news-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.bst-news-card .meta { font-size: 12px; color: var(--bst-gray-500); margin-bottom: 8px; }
.bst-news-card .meta .cat { color: var(--bst-red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-right: 8px; }
.bst-news-card h4 { font-size: 19px; margin-bottom: 10px; line-height: 1.35; }
.bst-news-card h4 a { color: var(--bst-black); }
.bst-news-card h4 a:hover { color: var(--bst-red); }
.bst-news-card p { color: var(--bst-gray-700); font-size: 14px; line-height: 1.6; flex: 1; margin-bottom: 14px; }
.bst-news-card .read-more { color: var(--bst-red); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Financement simulator ---------- */
.bst-simulator {
    background: var(--bst-white);
    border-radius: var(--bst-radius-lg);
    padding: 36px;
    box-shadow: var(--bst-shadow-md);
}
.bst-simulator .range-row { margin-bottom: 22px; }
.bst-simulator .range-row .head {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;
}
.bst-simulator .range-row .label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--bst-gray-700); font-weight: 600; }
.bst-simulator .range-row .value { font-size: 18px; font-weight: 700; color: var(--bst-red); }
.bst-simulator input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--bst-gray-300);
    border-radius: 3px;
    outline: none;
}
.bst-simulator input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px;
    background: var(--bst-red);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--bst-white);
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.bst-simulator input[type=range]::-moz-range-thumb {
    width: 22px; height: 22px;
    background: var(--bst-red);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--bst-white);
}
.bst-simulator .result {
    margin-top: 28px;
    padding: 24px;
    background: linear-gradient(135deg, var(--bst-black), var(--bst-gray-900));
    color: var(--bst-white);
    border-radius: var(--bst-radius);
    text-align: center;
}
.bst-simulator .result .label { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; opacity: .8; }
.bst-simulator .result .amount { font-size: 42px; font-weight: 800; color: var(--bst-gold); margin: 6px 0; }
.bst-simulator .result .sub { font-size: 12px; opacity: .7; }
.bst-simulator .duration-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bst-simulator .duration-chips button {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--bst-gray-300);
    background: var(--bst-white);
    border-radius: var(--bst-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--bst-transition);
}
.bst-simulator .duration-chips button.active {
    background: var(--bst-red); color: var(--bst-white); border-color: var(--bst-red);
}

/* ---------- Comparateur ---------- */
.bst-compare-grid {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    gap: 0;
    background: var(--bst-white);
    border: 1px solid var(--bst-gray-300);
    border-radius: var(--bst-radius-lg);
    overflow: hidden;
}
.bst-compare-grid > div {
    padding: 16px;
    border-bottom: 1px solid var(--bst-gray-300);
    border-right: 1px solid var(--bst-gray-300);
    font-size: 14px;
}
.bst-compare-grid > div:last-child { border-right: 0; }
.bst-compare-grid .head {
    background: var(--bst-black);
    color: var(--bst-white);
    text-align: center;
    padding: 20px 16px;
}
.bst-compare-grid .head img { max-height: 90px; object-fit: contain; margin-bottom: 10px; }
.bst-compare-grid .head .name { font-weight: 700; font-size: 16px; }
.bst-compare-grid .head .price { color: var(--bst-gold); font-size: 14px; margin-top: 4px; }
.bst-compare-grid .row-label {
    background: var(--bst-gray-100);
    font-weight: 700;
    color: var(--bst-gray-900);
}
.bst-compare-grid .cell { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .bst-nav { display: none; }
    .bst-mobile-toggle { display: inline-flex; }
    .bst-hero-slide h1 { font-size: 38px; }
    .bst-hero-slide { min-height: 480px; }
    .bst-section { padding: 60px 0; }
    .bst-section-title h2 { font-size: 28px; }
    .bst-model-hero h1 { font-size: 36px; }
    .bst-compare-grid { grid-template-columns: 130px repeat(3, 1fr); }
    .bst-compare-grid > div { padding: 12px 8px; font-size: 12.5px; }
    .bst-cta-band .inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .bst-page-banner h1 { font-size: 30px; }
    .bst-hero-slide h1 { font-size: 30px; }
    .bst-hero-slide p { font-size: 15px; }
    .bst-form-card { padding: 22px; }
    .bst-section-title { margin-bottom: 36px; }
    .bst-simulator .result .amount { font-size: 32px; }
    .bst-compare-grid { grid-template-columns: 100px repeat(3, 1fr); font-size: 11px; }
}

/* ---------- RTL (langue arabe) ---------- */
html[dir="rtl"] .bst-section-title .eyebrow::before { left: auto; right: 0; }
html[dir="rtl"] .bst-section-title .eyebrow::after  { right: auto; left: 0; }
html[dir="rtl"] .bst-footer h5::after               { left: auto; right: 0; }
html[dir="rtl"] .bst-wa-float                        { right: auto; left: 22px; }
html[dir="rtl"] .bst-toast-container                 { right: auto; left: 20px; }
html[dir="rtl"] .bst-mobile-nav                      { right: auto; left: -340px; }
html[dir="rtl"] .bst-mobile-nav.open                 { left: 0; }
html[dir="rtl"] .bst-nav > li > a::after            { transform-origin: right; }
html[dir="rtl"] .bst-dropdown                        { left: auto; right: 0; }
html[dir="rtl"] body { font-family: 'Cairo', 'Tajawal', var(--bst-font); }

/* ---------- Préloader minimal ---------- */
#bst-preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bst-white);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .4s ease;
}
#bst-preloader.hide { opacity: 0; pointer-events: none; }
#bst-preloader .spinner {
    width: 56px; height: 56px;
    border: 4px solid var(--bst-gray-300);
    border-top-color: var(--bst-red);
    border-radius: 50%;
    animation: bst-spin 1s linear infinite;
}
@keyframes bst-spin { to { transform: rotate(360deg); } }

/* =========================================================================
   PHASE 3 — Dark mode, cookie banner, RTL avancé, Google Font arabe
   ========================================================================= */

/* Police arabe (chargée seulement quand <html dir="rtl">) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

/* ---------- Dark mode (data-theme="dark") ---------- */
html[data-theme="dark"] {
    --bst-white:      #15151a;
    --bst-gray-100:   #1e1e26;
    --bst-gray-300:   #34343c;
    --bst-gray-500:   #8a8a90;
    --bst-gray-700:   #c0c0c5;
    --bst-gray-900:   #e8e8ec;
    --bst-black:      #f5f5f7;
    --bst-dark:       #f5f5f7;
    --bst-shadow-sm:  0 2px 8px rgba(0,0,0,.5);
    --bst-shadow-md:  0 8px 24px rgba(0,0,0,.55);
    --bst-shadow-lg:  0 16px 48px rgba(0,0,0,.7);
}
html[data-theme="dark"] body.bestune-site { background: #0e0e12; color: var(--bst-gray-700); }
html[data-theme="dark"] .bst-header { background: #1a1a20; border-bottom: 1px solid #2a2a32; }
html[data-theme="dark"] .bst-bg-light { background: #1a1a20 !important; }
html[data-theme="dark"] .bst-car-card,
html[data-theme="dark"] .bst-news-card,
html[data-theme="dark"] .bst-showroom-card,
html[data-theme="dark"] .bst-feature-card,
html[data-theme="dark"] .bst-form-card,
html[data-theme="dark"] .bst-simulator { background: #1a1a20; border-color: #2a2a32; }
html[data-theme="dark"] .bst-form-control { background: #15151a; border-color: #2a2a32; color: var(--bst-gray-700); }
html[data-theme="dark"] .bst-car-card .img-wrap,
html[data-theme="dark"] .bst-spec-item     { background: #15151a; }
html[data-theme="dark"] .bst-toast         { background: #1a1a20; color: var(--bst-gray-700); }
html[data-theme="dark"] .bst-toast .content strong { color: var(--bst-white); }
html[data-theme="dark"] .bst-page-banner h1   { color: #fff; }
html[data-theme="dark"] .bst-model-hero       { background: linear-gradient(135deg, #1a1a20 0%, #15151a 100%); }
html[data-theme="dark"] #bst-preloader       { background: #0e0e12; }
html[data-theme="dark"] .bst-table th        { background: #15151a; color: var(--bst-gray-700); }
html[data-theme="dark"] .bst-table tr:hover td { background: #1f1f28; }
html[data-theme="dark"] .bst-mobile-nav      { background: #1a1a20; }
html[data-theme="dark"] .bst-header .logo .brand-text { color: #fff; }
html[data-theme="dark"] .bst-nav > li > a    { color: #e8e8ec; }
html[data-theme="dark"] .bst-nav > li > a:hover { color: var(--bst-red); }
html[data-theme="dark"] .bst-mega,
html[data-theme="dark"] .bst-dropdown        { background: #1a1a20; border-top-color: var(--bst-red); }
html[data-theme="dark"] .bst-mega-item:hover { background: #15151a; }
html[data-theme="dark"] .bst-mega-item .name { color: #fff; }

/* ---------- Cookie banner RGPD ---------- */
.bst-cookie-banner {
    position: fixed;
    left: 20px; right: 20px; bottom: 20px;
    max-width: 580px;
    background: var(--bst-white);
    border-radius: var(--bst-radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    padding: 22px 26px;
    z-index: 997;
    border-left: 4px solid var(--bst-red);
    animation: bst-toast-in .4s ease;
}
.bst-cookie-banner.collapsed { display: none; }
.bst-cookie-banner h4 { margin: 0 0 8px; font-size: 17px; }
.bst-cookie-banner p  { margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; color: var(--bst-gray-700); }
.bst-cookie-banner .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bst-cookie-banner .btn-row > * { flex: 1; min-width: 120px; }
.bst-cookie-banner .pref-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--bst-gray-300);
}
.bst-cookie-banner .pref-row:last-child { border-bottom: 0; }
.bst-cookie-banner .pref-row label { font-weight: 600; font-size: 13px; color: var(--bst-gray-900); }
.bst-cookie-banner .pref-row small { display: block; color: var(--bst-gray-500); font-weight: 400; font-size: 12px; margin-top: 2px; }
.bst-cookie-banner .panel { display: none; margin-bottom: 16px; }
.bst-cookie-banner.expanded .panel { display: block; }
.bst-cookie-banner input[type=checkbox]:disabled { opacity: .5; }
@media (max-width: 600px) {
    .bst-cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
}

/* ---------- RTL : alignements supplémentaires ---------- */
html[dir="rtl"] body                                { font-family: 'Cairo', 'Tajawal', var(--bst-font); }
html[dir="rtl"] .bst-hero-slide::before             { background: linear-gradient(-90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 60%, transparent 100%); }
html[dir="rtl"] .bst-hero-slide .content            { margin-right: 0; }
html[dir="rtl"] .bst-section-title { text-align: center; }
html[dir="rtl"] .bst-page-banner .breadcrumb        { direction: rtl; }
html[dir="rtl"] .bst-cookie-banner                  { border-left: 0; border-right: 4px solid var(--bst-red); }
html[dir="rtl"] .bst-car-card .specs i              { display: inline-block; }
html[dir="rtl"] .bst-form-group label .req          { margin-right: 4px; margin-left: 0; }
html[dir="rtl"] .bst-tab-nav button                  { letter-spacing: 0; }
html[dir="rtl"] .bst-btn i                          { margin-right: 0; margin-left: 4px; }
html[dir="rtl"] .bst-stat-card,
html[dir="rtl"] .bst-feature-card                    { text-align: right; }
html[dir="rtl"] .bst-feature-list li                { padding: 8px 26px 8px 0; }
html[dir="rtl"] .bst-feature-list li::before        { left: auto; right: 0; }

/* RTL + Dark mode (combinaisons) */
html[dir="rtl"] .bst-section-title .eyebrow::before { left: 0; right: auto; }
html[dir="rtl"] .bst-section-title .eyebrow::after  { right: 0; left: auto; }
html[dir="rtl"] .bst-header-actions                  { flex-direction: row-reverse; }
html[dir="rtl"] .bst-mega                            { left: 50%; right: auto; }
html[dir="rtl"] .bst-mega-item                       { text-align: right; }

/* ---------- Switch theme icon button ---------- */
#bst-theme-toggle { font-size: 16px; }

/* =========================================================================
   PHASE 5 — Accessibilité (a11y)
   ========================================================================= */

/* Skip link "Aller au contenu" — visible uniquement au focus clavier */
.bst-skip-link {
    position: absolute;
    top: -40px; left: 0;
    background: var(--bst-red);
    color: #fff;
    padding: 10px 18px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 6px 0;
    transition: top .2s;
}
.bst-skip-link:focus {
    top: 0;
    outline: 3px solid var(--bst-gold);
    outline-offset: 2px;
    color: #fff;
}

/* Focus visible cohérent partout */
*:focus-visible {
    outline: 3px solid var(--bst-red);
    outline-offset: 2px;
    border-radius: 2px;
}
.bst-btn:focus-visible,
.bst-form-control:focus-visible,
.icon-btn:focus-visible {
    outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 0;  /* on garde le boxshadow rouge déjà défini */
}

/* Améliore la lisibilité du texte sur fond dégradé/image */
.bst-hero-slide h1,
.bst-page-banner h1 {
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* Cible tactile minimale 44x44 (recommandation WCAG 2.5.5) */
@media (pointer: coarse) {
    .bst-btn-sm { min-height: 44px; }
    .bst-nav > li > a { min-height: 44px; display: flex; align-items: center; }
    .icon-btn { width: 44px; height: 44px; }
}

/* Réduit les animations si l'utilisateur a activé prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .bst-wa-float { animation: none; }
}

/* Pour les utilisateurs de lecteurs d'écran : .sr-only (visuellement masqué) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================================
   Sélecteur de couleur dans les cards véhicules (front-office)
   Classes : .car-image-box, .car-card-image, .car-color-selector, .car-color-dot
   Coexistent avec l'ancienne nomenclature .bst-car-card .img-wrap
   ============================================================================ */

/* L'image box hérite déjà des règles de .bst-car-card .img-wrap.
   On affine seulement la hauteur cible + responsive. */
.bst-car-card .car-image-box {
    min-height: 240px;
}
.bst-car-card .car-image-box img.car-card-image {
    transition: opacity .25s ease, transform .25s ease;
}
.bst-car-card .car-image-box img.car-card-image.changing {
    opacity: .45;
    transform: scale(.98);
}

/* Sélecteur de couleur — placé entre l'image et le body de la card */
.bst-car-card .car-color-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 22px 0;
    background: var(--bst-white);
}

.car-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    padding: 0;
    background-clip: padding-box;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    outline: none;
}
.car-color-dot:hover {
    transform: scale(1.15);
}
.car-color-dot:focus-visible {
    box-shadow: 0 0 0 3px rgba(23,140,206,.32);
}
.car-color-dot.active {
    border-color: var(--bst-red);
    box-shadow: 0 0 0 3px rgba(23,140,206,.20);
    transform: scale(1.08);
}
.car-color-dot.is-light {
    border-color: #bbb;
}
.car-color-dot.is-light.active {
    border-color: var(--bst-red);
}

/* Galerie page détail — quand un id="selectedColorName" existe */
.car-color-selected-label {
    font-size: 13px;
    color: var(--bst-gray-700);
    margin-left: 6px;
}
.car-color-selected-label span { font-weight: 600; color: var(--bst-black); }

/* Responsive : sur mobile, on resserre la hauteur de la box */
@media (max-width: 575px) {
    .bst-car-card .car-image-box { min-height: 200px; }
    .car-color-dot { width: 20px; height: 20px; }
    .bst-car-card .car-color-selector { padding: 10px 16px 0; }
}

/* Dark mode */
html[data-theme="dark"] .bst-car-card .car-color-selector { background: #1a1a20; }
html[data-theme="dark"] .car-color-dot { border-color: #3a3a42; }
html[data-theme="dark"] .car-color-dot.is-light { border-color: #4a4a52; }
