/* BASE & FOND */
        body { 
            background-color: #1a0202; 
            background-image: radial-gradient(#3d0505 1px, transparent 1px);
            background-size: 15px 15px;
            color: #fff; 
            font-family: 'Roboto', sans-serif;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        
        .main-container {
            max-width: 1100px;
            margin: 0 auto;
            background-color: #050505;
            box-shadow: 0 0 30px rgba(0,0,0,1);
            flex: 1;
            width: 100%;
        }

        /* BARRE DE NAVIGATION */
        .navbar-custom { background-color: #111; border-bottom: 2px solid #333; }
        .navbar-custom .nav-link { color: #fff; font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; cursor: pointer; }
        .navbar-custom .nav-link:hover { color: #cc0000; }
        .cart-btn { background-color: #cc0000; color: white; padding: 5px 15px; border-radius: 3px; font-weight: bold; display: inline-block; transition: all 0.3s; }
        .cart-btn:hover { background-color: #ff1a1a; color: white; }

        /* HERO HEADER */
        .hero {
            position: relative;
            background: url('../images/showroom-hero.jpg') center/cover no-repeat;
            height: 350px;
            border-bottom: 4px solid #111;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            padding-left: 50px;
        }
        .hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%); }
        .hero-content { position: relative; z-index: 1; cursor: pointer; }
        
        /* Hiérarchie Titres */
        h1.brand-script { font-family: 'Great Vibes', cursive; font-size: 5rem; color: #fff; text-shadow: 3px 3px 6px #000; margin-bottom: -15px; }
        h2.brand-sub { font-family: 'Oswald', sans-serif; color: #cc0000; font-size: 2rem; font-weight: 700; letter-spacing: 2px; text-shadow: 1px 1px 3px #000; }
        p.hero-slogan { font-family: 'Oswald', sans-serif; color: #aaa; text-transform: uppercase; letter-spacing: 1.5px; font-size: 1rem; margin-top: 10px; }

        /* CATALOGUE HEADER */
        .catalog-header {
            background-color: #2b0000;
            border-top: 1px solid #cc0000;
            border-bottom: 1px solid #cc0000;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }
        .catalog-header h2 { font-family: 'Oswald', sans-serif; margin: 0; font-size: 1.5rem; text-transform: uppercase; }

        /* DESIGN DES CARTES VOITURES */
        .vehicle-card { background: #fff; border: none; border-radius: 0; margin-bottom: 20px; box-shadow: 0 4px 8px rgba(0,0,0,0.5); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
        .vehicle-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(204,0,0,0.4); }
        .card-top-info { padding: 5px 10px; font-size: 0.65rem; font-weight: bold; color: #333; text-transform: uppercase; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
        .vehicle-img { height: 180px; width: 100%; object-fit: cover; }
        .card-bottom-bar { display: flex; height: 50px; }
        .card-name-box { background: #111; color: #fff; width: 60%; padding: 4px 10px; display: flex; flex-direction: column; justify-content: center; }
        .car-title { font-family: 'Oswald', sans-serif; font-size: 1rem; margin: 0; line-height: 1.2; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .card-price-box { background: #cc0000; color: #fff; width: 40%; display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-weight: bold; font-size: 1.1rem; }

        /* PAGE DÉTAIL PRODUIT */
        .detail-img-container { position: relative; border: 2px solid #333; margin-bottom: 20px; }
        .detail-img { width: 100%; height: 400px; object-fit: cover; }
        .detail-specs-list li { border-bottom: 1px solid #333; padding: 10px 0; font-family: 'Roboto', sans-serif; }
        .detail-specs-list li span { color: #cc0000; font-family: 'Oswald', sans-serif; font-size: 1.1rem; margin-right: 10px; }
        .buy-panel { background-color: #111; border: 1px solid #333; padding: 20px; text-align: center; }
        .buy-price { font-family: 'Oswald', sans-serif; font-size: 2.2rem; color: #cc0000; font-weight: bold; margin-bottom: 15px; }
        .btn-order { background: #cc0000; color: #fff; border: none; width: 100%; padding: 15px; font-size: 1.2rem; font-family: 'Oswald', sans-serif; text-transform: uppercase; transition: 0.3s; cursor: pointer; }
        .btn-order:hover { background: #ff1a1a; transform: scale(1.02); }
        .btn-order.success { background: #28a745 !important; color: white !important; }

        /* VUES CACHÉES (Navigation) */
        .view-section { display: none; padding: 20px; }
        .view-section.active { display: block; }
        
        /* FORMULAIRES */
        .form-control, .form-select { background-color: #222; color: #fff; border: 1px solid #444; }
        .form-control:focus, .form-select:focus { background-color: #333; color: #fff; border-color: #cc0000; box-shadow: none; }
        .list-group-item { background-color: #222; color: #fff; border-color: #444; }
        .text-muted { color: #fff !important; }

        /* ANIMATION PANIER */
        @keyframes bumpCart {
            0% { transform: scale(1); }
            50% { transform: scale(1.4); background-color: #28a745; }
            100% { transform: scale(1); }
        }
        .cart-animate { animation: bumpCart 0.5s ease-out; }

        /* RESPONSIVE DESIGN */
        @media (max-width: 768px) {
            h1.brand-script { font-size: 3.5rem; margin-bottom: 0; }
            h2.brand-sub { font-size: 1.5rem; }
            .hero { padding-left: 20px; align-items: center; text-align: center; height: 250px; }
            .card-bottom-bar { flex-direction: column; height: auto; }
            .card-name-box, .card-price-box { width: 100%; padding: 10px; text-align: center; }
            .detail-img { height: 250px; }
            .catalog-header h2 { font-size: 1.2rem; }
            .buy-price { font-size: 2rem; }
        }

        /* FOOTER SUISSE */
        footer {
            background-color: #050505;
            border-top: 2px solid #cc0000;
            font-family: 'Roboto', sans-serif;
            font-size: 0.85rem;
            color: #999;
        }
        footer h3 { font-family: 'Oswald', sans-serif; color: #fff; font-size: 1.1rem; text-transform: uppercase; margin-bottom: 15px;}
        footer a { color: #cc0000; text-decoration: none; cursor: pointer; }
        footer a:hover { text-decoration: underline; color: #ff1a1a; }
        .footer-bottom-link { color: #999; text-decoration: none; font-weight: bold; cursor: pointer; transition: color 0.3s; }
        .footer-bottom-link:hover { color: #fff; }

        /* BANNIÈRE COOKIES */
        #cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #111;
            border-top: 3px solid #cc0000;
            z-index: 1050;
            padding: 15px;
            box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
        }
        #cookie-banner.is-hidden { display: none !important; }
        .btn-cookie-accept {
            background-color: #cc0000;
            border-color: #cc0000;
            color: #fff;
        }
        .btn-cookie-accept:hover {
            background-color: #ff1a1a;
            border-color: #ff1a1a;
            color: #fff;
        }
    

/* Liens SEO sans changement visuel */
.vehicle-card-link { display: block; color: inherit; text-decoration: none; }
.vehicle-card-link:hover { color: inherit; text-decoration: none; }
.navbar-custom .navbar-brand { color: #fff; text-decoration: none; }

/* Panier séparé, même rendu que l'ancienne vue */
.cart-total-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
}

.cart-form-panel {
    min-height: 100%;
}

.checkout-total-box {
    background: #111;
    border: 1px solid #444;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    text-align: center;
    text-transform: uppercase;
    padding: 12px;
}

.checkout-total-box span {
    color: #cc0000;
    font-weight: 700;
}

.checkout-status {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    text-align: center;
}

.checkout-status.success {
    border: 1px solid #28a745;
    background: rgba(40, 167, 69, 0.12);
    padding: 12px;
}

.checkout-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: -4px;
    animation: checkoutSpin 0.8s linear infinite;
}

@keyframes checkoutSpin {
    to { transform: rotate(360deg); }
}

.payment-modal[hidden] {
    display: none;
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.78);
}

.payment-modal-dialog {
    position: relative;
    width: min(480px, 100%);
    background: #111;
    border: 1px solid #555;
    border-top: 3px solid #cc0000;
    box-shadow: 0 10px 35px rgba(0,0,0,0.8);
    padding: 24px;
    color: #fff;
}

.payment-modal-dialog h3 {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.payment-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 1px solid #666;
    background: #222;
    color: #aaa;
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
    line-height: 1;
}

.payment-modal-close:hover {
    color: #fff;
    border-color: #cc0000;
}

.contact-branch {
    height: 100%;
}

.contact-branch h3 {
    font-family: 'Oswald', sans-serif;
    color: #cc0000;
    text-transform: uppercase;
    font-size: 1.15rem;
}
