/* ══════════════════════════════════════════════════════
   SK AUTOMOBILES — SHOWROOM DIGITAL PREMIUM 2026
   Inspiration : BMW, Mercedes, Audi digital showrooms
   ══════════════════════════════════════════════════════ */

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

:root {
    --sk-bg: #09090b;
    --sk-surface: #18181b;
    --sk-surface-hover: #27272a;
    --sk-border: transparent;
    --sk-primary: #1a1a2e;
    --sk-accent: #e94560;
    --sk-accent-glow: rgba(233,69,96,.15);
    --sk-gold: #c9a227;
    --sk-gold-glow: rgba(201,162,39,.12);
    --sk-white: #fafafa;
    --sk-text: #e4e4e7;
    --sk-text-muted: #a1a1aa;
    --sk-text-dim: #71717a;
    --sk-success: #22c55e;
    --sk-gradient: linear-gradient(135deg, var(--sk-accent), #ff6b6b);
    --sk-gold-gradient: linear-gradient(135deg, var(--sk-gold), #e6c84a);
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: 'Orbitron', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-card: 0 8px 32px rgba(0,0,0,.4);
    --shadow-hover: 0 20px 60px rgba(0,0,0,.6), 0 0 40px var(--sk-accent-glow);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; outline: 0; }
video, iframe, img { border: none; outline: none; }
*:focus { outline: none; }
h1, h2, h3, h4, h5, h6, p, span, div, section, article, header, footer, nav, main { border: none; outline: none; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--sk-bg); color: var(--sk-text);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--sk-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sk-accent); }
img { max-width: 100%; height: auto; }

.accent { color: var(--sk-accent); }
.gold { color: var(--sk-gold); }

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .875rem 2.25rem; border-radius: 60px; border: none;
    background: var(--sk-gradient); color: #fff;
    font-weight: 700; font-size: .95rem; letter-spacing: .02em;
    cursor: pointer; transition: all var(--transition);
    box-shadow: 0 4px 20px var(--sk-accent-glow);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(233,69,96,.3);
    color: #fff;
}
.btn-outline {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 2rem; border-radius: 60px;
    border: 1.5px solid var(--sk-gold) !important; background: transparent;
    color: var(--sk-gold); font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: all var(--transition);
}
.btn-outline:hover {
    background: var(--sk-gold); color: var(--sk-bg);
    box-shadow: 0 4px 25px var(--sk-gold-glow);
}

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(9,9,11,.85); backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--sk-border);
    padding: 0 2rem; height: 72px;
}
.navbar-content {
    max-width: 1400px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.brand-logo { height: 36px; filter: brightness(1.1); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--sk-text-muted); font-size: .875rem; font-weight: 500;
    letter-spacing: .02em; text-transform: uppercase;
    transition: color var(--transition); position: relative;
}
.nav-links a:hover { color: var(--sk-white); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 2px; background: var(--sk-accent); transform: scaleX(0);
    transition: transform var(--transition); transform-origin: center;
}
.nav-links a:hover::after { transform: scaleX(1); }
.btn-call {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem 1.25rem; border-radius: 60px;
    background: rgba(233,69,96,.1); border: 1px solid rgba(233,69,96,.3);
    color: var(--sk-accent); font-weight: 600; font-size: .85rem;
    transition: all var(--transition);
}
.btn-call:hover { background: var(--sk-accent); color: #fff; }

/* ── HERO ── */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: brightness(.35) contrast(1.1);
}
.hero-overlay {
    position: relative; z-index: 2; text-align: center;
    max-width: 900px; padding: 2rem;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem 1rem; border-radius: 60px;
    background: rgba(201,162,39,.1); border: none;
    color: var(--sk-gold); font-size: .75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.5rem;
}
.hero h1 {
    font-family: var(--font-display); color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 1.25rem;
}
.hero .subtitle {
    color: var(--sk-text-muted); font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 300; margin-bottom: 2.5rem; line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── SECTION COMMON ── */
.section-title {
    font-family: var(--font-display); text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700;
    margin-bottom: .75rem; color: var(--sk-white);
}
.section-subtitle {
    text-align: center; color: var(--sk-text-muted);
    font-size: 1.05rem; margin-bottom: 3.5rem; font-weight: 300;
}
section { padding: 5rem 2rem; }

/* ── FEATURED VEHICLES ── */
.featured-vehicles {
    max-width: 1400px; margin: 0 auto;
    background: transparent;
}
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* ── VEHICLE CARD (shared by home + catalog) ── */
.vehicle-card {
    display: block; border-radius: var(--radius); overflow: hidden;
    background: var(--sk-surface); border: 1px solid var(--sk-border);
    transition: all var(--transition); text-decoration: none;
    box-shadow: var(--shadow-card);
}
.vehicle-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-hover);
}
.vehicle-card-img {
    position: relative; height: 220px; overflow: hidden;
    background: #111;
}
.vehicle-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.vehicle-card:hover .vehicle-card-img img { transform: scale(1.08); }
.vehicle-card-noimg {
    height: 220px; display: flex; align-items: center; justify-content: center;
    background: var(--sk-surface); color: var(--sk-text-dim); font-size: .9rem;
}
.vehicle-card-img .photo-count {
    position: absolute; bottom: .75rem; right: .75rem;
    padding: .25rem .75rem; border-radius: 20px;
    background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
    color: #fff; font-size: .75rem; font-weight: 600;
}
.vehicle-card-info { padding: 1.25rem; }
.vehicle-card-info h3 {
    font-size: 1.05rem; font-weight: 700; color: var(--sk-white);
    margin-bottom: .15rem;
}
.vehicle-version {
    font-size: .8rem; color: var(--sk-text-dim); margin-bottom: .75rem;
    font-weight: 400; line-height: 1.3;
}
.vehicle-card-details {
    display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
}
.detail-item {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .65rem; border-radius: 6px;
    background: rgba(255,255,255,.06); border: none;
    font-size: .75rem; color: var(--sk-text-muted); font-weight: 500;
}
.vehicle-card-price {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
    color: var(--sk-accent);
}

/* ── CATALOG PAGE ── */
.page-header {
    padding-top: 100px; padding-bottom: 3rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(233,69,96,.06) 0%, transparent 100%);
}
.page-header h1 {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800; color: var(--sk-white);
}
.page-header-sub { color: var(--sk-text-muted); font-size: 1.1rem; margin-top: .5rem; }

.catalog { max-width: 1400px; margin: 0 auto; padding: 0 2rem 4rem; }
.catalog-count {
    margin-bottom: 2rem; padding: 1rem 1.5rem; border-radius: var(--radius-sm);
    background: var(--sk-surface); border: 1px solid var(--sk-border);
    display: flex; align-items: center; justify-content: space-between;
}
.catalog-count p { color: var(--sk-text-muted); font-size: .9rem; }
.catalog-count strong { color: var(--sk-accent); font-size: 1.1rem; }

/* ── FILTERS ── */
.filters-bar {
    display: flex; flex-wrap: wrap; gap: .75rem;
    padding: 1.25rem 1.5rem; margin-bottom: 2rem;
    background: var(--sk-surface); border: 1px solid var(--sk-border);
    border-radius: var(--radius);
}
.filter-group {
    display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 150px;
}
.filter-group label {
    font-size: .7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: var(--sk-text-dim);
}
.filter-group select, .filter-group input {
    padding: .55rem .75rem; border-radius: 8px;
    background: var(--sk-bg); border: 1px solid var(--sk-border);
    color: var(--sk-text); font-family: var(--font-body); font-size: .85rem;
    transition: border-color var(--transition);
}
.filter-group select:focus, .filter-group input:focus {
    outline: none; border-color: var(--sk-accent);
    box-shadow: 0 0 0 3px var(--sk-accent-glow);
}
.filter-group select option { background: var(--sk-surface); }
.search-input {
    flex: 2; min-width: 250px;
}
.search-input input {
    width: 100%; padding: .6rem 1rem .6rem 2.5rem;
    background: var(--sk-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2371717a' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat .75rem center;
    border: 1px solid var(--sk-border); border-radius: 8px;
    color: var(--sk-text); font-size: .85rem;
}

.catalog-loading, .catalog-empty {
    text-align: center; padding: 4rem 2rem; color: var(--sk-text-muted);
}
.loading-spinner {
    width: 40px; height: 40px; border: 3px solid var(--sk-border);
    border-top-color: var(--sk-accent); border-radius: 50%;
    animation: spin .8s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── VEHICLE DETAIL PAGE ── */
.detail-page { padding-top: 90px; max-width: 1200px; margin: 0 auto; }
.detail-gallery {
    border-radius: var(--radius); overflow: hidden;
    background: #111; margin-bottom: 2rem;
}
.detail-gallery .main-image {
    width: 100%; height: 500px; object-fit: contain;
    background: #0a0a0a;
}
.detail-thumbnails {
    display: flex; gap: .5rem; padding: 1rem; overflow-x: auto;
    background: var(--sk-surface);
}
.detail-thumbnails img {
    width: 80px; height: 60px; object-fit: cover; border-radius: 8px;
    cursor: pointer; opacity: .5; transition: opacity var(--transition);
    border: 2px solid transparent;
}
.detail-thumbnails img:hover, .detail-thumbnails img.active {
    opacity: 1; border-color: var(--sk-accent);
}

.detail-content {
    display: grid; grid-template-columns: 1fr 380px; gap: 2rem;
    margin-bottom: 4rem;
}
.detail-specs {
    background: var(--sk-surface); border-radius: var(--radius);
    border: 1px solid var(--sk-border); padding: 2rem;
}
.detail-specs h2 {
    font-family: var(--font-display); font-size: 1.5rem;
    color: var(--sk-white); margin-bottom: .5rem;
}
.spec-row {
    display: flex; justify-content: space-between; padding: .75rem 0;
    border-bottom: 1px solid var(--sk-border); font-size: .9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--sk-text-muted); }
.spec-value { color: var(--sk-white); font-weight: 600; }

.detail-sidebar {
    position: sticky; top: 90px; align-self: start;
}
.price-card {
    background: var(--sk-surface); border-radius: var(--radius);
    border: 1px solid var(--sk-border); padding: 2rem; text-align: center;
    margin-bottom: 1.5rem;
}
.price-card .price {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 900;
    color: var(--sk-accent); margin-bottom: .5rem;
}
.price-card .price-label {
    font-size: .8rem; color: var(--sk-text-dim); text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── SERVICES ── */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.service-card {
    padding: 2rem; border-radius: var(--radius);
    background: var(--sk-surface); border: 1px solid var(--sk-border);
    transition: all var(--transition); text-align: center;
}
.service-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 40px var(--sk-gold-glow);
    transform: translateY(-4px);
}
.service-card svg { color: var(--sk-gold); margin-bottom: 1rem; }
.service-card h3 { font-size: 1rem; color: var(--sk-white); margin-bottom: .5rem; }
.service-card p { font-size: .85rem; color: var(--sk-text-muted); line-height: 1.5; }

/* ── HORAIRES ── */
.horaires-section { max-width: 600px; margin: 0 auto; }
.horaires { display: flex; flex-direction: column; gap: .5rem; }
.horaire-row {
    display: flex; justify-content: space-between; padding: .75rem 1.25rem;
    border-radius: var(--radius-sm); background: var(--sk-surface);
    border: 1px solid var(--sk-border); font-size: .9rem;
}
.horaire-row .jour { font-weight: 600; color: var(--sk-white); }
.horaire-row .heures { color: var(--sk-text-muted); }

/* ── CONTACT ── */
.contact-section { background: linear-gradient(180deg, transparent, rgba(233,69,96,.03)); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    max-width: 1100px; margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: .75rem; }
.contact-item { font-size: .95rem; }
.contact-link {
    display: flex; align-items: center; gap: .6rem;
    color: var(--sk-text); padding: .5rem 0;
}
.contact-link svg { color: var(--sk-accent); flex-shrink: 0; }
.contact-link.social { color: var(--sk-gold); font-weight: 600; }

.contact-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
    font-size: .75rem; font-weight: 600; color: var(--sk-text-dim);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem;
}
.form-group input, .form-group textarea {
    padding: .75rem 1rem; border-radius: var(--radius-sm);
    background: var(--sk-surface); border: 1px solid var(--sk-border);
    color: var(--sk-text); font-family: var(--font-body); font-size: .9rem;
    transition: all var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--sk-accent);
    box-shadow: 0 0 0 3px var(--sk-accent-glow);
}
.btn-submit {
    grid-column: 1 / -1; padding: .875rem; border: none;
    border-radius: 60px; background: var(--sk-gradient);
    color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px var(--sk-accent-glow);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(233,69,96,.3); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.form-status {
    grid-column: 1 / -1; padding: .75rem; border-radius: var(--radius-sm);
    text-align: center; font-size: .9rem;
}
.form-status.success { background: rgba(34,197,94,.1); color: var(--sk-success); border: 1px solid rgba(34,197,94,.2); }
.form-status.error { background: rgba(233,69,96,.1); color: var(--sk-accent); border: 1px solid rgba(233,69,96,.2); }

/* ── SERVICES DETAIL ── */
.services-detail { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; }
.service-detail-card {
    display: flex; gap: 2rem; align-items: center; margin-bottom: 3rem;
    background: var(--sk-surface); border-radius: var(--radius);
    border: 1px solid var(--sk-border); overflow: hidden;
}
.service-detail-card.reverse { flex-direction: row-reverse; }
.service-detail-card img { width: 40%; height: 280px; object-fit: cover; }
.service-detail-card div { padding: 2rem; }
.service-detail-card h2 { color: var(--sk-white); margin-bottom: .75rem; }
.service-detail-card p { color: var(--sk-text-muted); line-height: 1.7; }

/* ── RECRUTEMENT ── */
.recrutement-content {
    max-width: 1000px; margin: 0 auto; padding: 3rem 2rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.recrutement-hero img { width: 100%; border-radius: var(--radius); }
.recrutement-text h2 { color: var(--sk-white); margin-bottom: 1rem; }
.recrutement-text h3 { color: var(--sk-gold); margin: 1.5rem 0 .75rem; }
.recrutement-text ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.recrutement-text li { margin-bottom: .5rem; color: var(--sk-text-muted); }

/* ── LEGAL ── */
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.legal-content h2 { color: var(--sk-white); margin: 2rem 0 .75rem; }
.legal-content p { color: var(--sk-text-muted); margin-bottom: 1rem; }

/* ── FOOTER ── */
.footer {
    background: var(--sk-surface); border-top: 1px solid var(--sk-border);
    padding: 4rem 2rem 2rem;
}
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    margin-bottom: 3rem;
}
.footer h3 {
    font-family: var(--font-display); font-size: .85rem;
    color: var(--sk-white); margin-bottom: 1rem; letter-spacing: .05em;
}
.footer p, .footer a { font-size: .85rem; color: var(--sk-text-dim); line-height: 1.8; }
.footer a { display: block; transition: color var(--transition); }
.footer a:hover { color: var(--sk-gold); }
.copyright {
    text-align: center; font-size: .8rem; color: var(--sk-text-dim);
    border-top: 1px solid var(--sk-border); padding-top: 2rem;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--sk-surface); border-top: 1px solid var(--sk-border);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem; display: flex; align-items: center;
    justify-content: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner p { font-size: .85rem; color: var(--sk-text-muted); margin: 0; }
.cookie-banner a { color: var(--sk-gold); }
.cookie-actions { display: flex; gap: .75rem; }
.btn-accept, .btn-refuse {
    padding: .45rem 1.25rem; border-radius: 60px;
    font-size: .8rem; cursor: pointer; font-family: var(--font-body);
    transition: all var(--transition);
}
.btn-accept {
    background: var(--sk-accent); border: 1px solid var(--sk-accent); color: #fff;
}
.btn-refuse {
    background: transparent; border: 1px solid var(--sk-border); color: var(--sk-text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .detail-content { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .navbar { height: 60px; }
    .hero { height: 85vh; }
    .hero h1 { font-size: 2rem; }
    .vehicles-grid { grid-template-columns: 1fr; }
    .contact-grid, .contact-form { grid-template-columns: 1fr; }
    .filters-bar { flex-direction: column; }
    .service-detail-card, .service-detail-card.reverse { flex-direction: column; }
    .service-detail-card img { width: 100%; height: 200px; }
    .recrutement-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    section { padding: 3rem 1.25rem; }
    .detail-gallery .main-image { height: 300px; }
}

#blazor-error-ui { background: var(--sk-surface); color: var(--sk-text); }
