/** ======== BASE PREMIUM ======== **/
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/** ======== NAVIGATION PREMIUM ======== **/
.topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid #e60023;
    position: relative;
    flex-wrap: wrap;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.nav-left,
.nav-right {
    display: flex;
    gap: 24px;
}

.logo-wrapper {
    margin: 0 auto;
}

.logo {
    width: 160px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-left button,
.nav-right button {
    background: none;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f0f0f0;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s, text-shadow 0.2s;
}

.nav-left button:hover,
.nav-right button:hover {
    color: #e60023;
    transform: scale(1.06);
    text-shadow: 0 2px 6px rgba(230, 0, 35, 0.5);
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 4px 0;
    background: #e60023;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #181818;
    z-index: 99;
    padding: 80px 0 20px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.35);
}

.mobile-menu button {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 0;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu button:hover {
    background: #222;
    color: #e60023;
}

@media (max-width: 768px) {

    .nav-left,
    .nav-right {
        display: none !important;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo-wrapper {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .mobile-menu.open {
        display: flex;
    }
}

/** ======== VEHICLE CONTAINER PREMIUM ======== **/
.vehicule-container {
    max-width: 1100px;
    margin: 40px auto;
    background: linear-gradient(145deg, #1a1a1a, #222);
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    padding: 40px 36px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicule-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(230, 0, 35, 0.3);
}

/** ======== CAROUSEL PREMIUM ======== **/
.carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
}

.carousel-main-img {
    width: 100%;
    max-width: 780px;
    height: 520px;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    border: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: linear-gradient(135deg, #181818 60%, #232323 100%);
    cursor: pointer;
}

.carousel-main-img:hover {
    transform: scale(1.02);
}

.carousel-thumbnails {
    display: flex;
    gap: 22px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.carousel-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: #1a1a1a;
}

.carousel-thumb:hover,
.carousel-thumb.active {
    border: 2px solid #e60023;
    transform: scale(1.1);
}

/** ======== VEHICLE INFO PREMIUM ======== **/
.vehicule-infos {
    text-align: left;
    margin-top: 12px;
}

.vehicule-infos h1 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.vehicule-details {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.vehicule-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.13rem;
    font-weight: 600;
    background: linear-gradient(145deg, #222, #1b1b1b);
    color: #f0f0f0;
    padding: 14px 24px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vehicule-detail:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(230, 0, 35, 0.35);
}

.vehicule-description {
    background: linear-gradient(135deg, #1b1b1b, #222);
    border-radius: 16px;
    padding: 24px 28px;
    margin-top: 24px;
    border: 1px solid #333;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.vehicule-description h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #e60023;
}

.vehicule-description p {
    color: #ececec;
    font-size: 1.08rem;
    line-height: 1.6;
}

/** ======== VEHICLE PRICE ======== **/
.vehicule-prix {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e60023;
    margin-top: 18px;
    text-align: left;
}

/** ======== CONTACT BUTTON PREMIUM ======== **/
.contact-btn-wrapper {
    text-align: center;
    margin: 32px 0 0 0;
    animation: fadeInUp 0.6s;
}

.btn-contact {
    display: inline-block;
    background: linear-gradient(90deg, #e60023 60%, #ff3b47 100%);
    color: #fff;
    padding: 16px 44px;
    border-radius: 14px;
    font-size: 1.18rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 22px rgba(230, 0, 35, 0.25);
    overflow: hidden;
}

.btn-contact:hover {
    background: linear-gradient(90deg, #c5001f 60%, #e60023 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 28px rgba(230, 0, 35, 0.3);
}

/** ======== MODAL PREMIUM ======== **/
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal.open {
    display: flex;
}

.modal-card {
    background: linear-gradient(145deg, #1e1e1e, #242424);
    border-radius: 16px;
    padding: 40px 28px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: zoomIn 0.35s ease;
    position: relative;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.modal-card h2 {
    color: #e60023;
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.modal-card p {
    color: #ddd;
    font-size: 1.08rem;
    margin-bottom: 12px;
}

.modal-card .contact-link {
    color: #e60023;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.modal-card .contact-link:hover {
    text-decoration: underline;
    color: #c5001f;
}

.modal-card .close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/** ======== FOOTER PREMIUM ======== **/
.footer {
    background: linear-gradient(135deg, #000 0%, #121212 100%);
    padding: 28px 20px;
    text-align: center;
    border-top: 1px solid #e60023;
    font-size: 14px;
    color: #f0f0f0;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
}

/** ======== RESPONSIVE PREMIUM ======== **/
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        padding: 12px 4vw;
        gap: 6px;
    }

    .logo {
        width: 120px;
    }

    .vehicule-container {
        padding: 6vw 3vw 8vw 3vw;
        border-radius: 14px;
        gap: 18px;
    }

    .carousel-main-img {
        height: 380px;
        border-radius: 12px;
    }

    .carousel-thumb {
        width: 22vw;
        height: 15vw;
        border-radius: 8px;
    }

    .vehicule-infos h1 {
        font-size: 1.5rem;
    }

    .vehicule-detail {
        font-size: 1rem;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .vehicule-description {
        font-size: 1rem;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .vehicule-prix {
        font-size: 1.4rem;
    }

    .btn-contact {
        width: 100%;
        max-width: 280px;
    }
}