/*##################### SLT DEV #######################
###                                                 ###
###            AUTHOR : SomethingLikeThis           ###
###             CC: https://slt-dev.ovh             ###
###        DISCLAIMER : PRIVATE SERVER SCRIPT       ###
###                                                 ###
####################### SLT DEV #####################*/
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #ffffff;
    scrollbar-width: thin; /* Pour les navigateurs compatibles avec CSS natif */
    scrollbar-color: #ffcc00 rgba(15, 15, 15, 0.65); /* Couleurs pour Firefox */
}

body::-webkit-scrollbar {
    width: 10px; /* Largeur de la scrollbar */
}

body::-webkit-scrollbar-track {
    background: rgba(15, 15, 15, 0.65); /* Couleur de l'arrière-plan de la scrollbar */
    border-radius: 5px; /* Arrondi des bords */
}

body::-webkit-scrollbar-thumb {
    background: #ffcc00; /* Couleur de la barre de défilement */
    border-radius: 5px; /* Arrondi des bords */
    border: 2px solid rgba(15, 15, 15, 0.65); /* Ajoute un espace autour de la barre */
}

body::-webkit-scrollbar-thumb:hover {
    background: #e6b800; /* Couleur de la barre au survol */
}

.hero {
    position: relative;
    height: 100vh;
    background-color: rgba(15, 15, 15, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    overflow: hidden; /* Assure que la vidéo ne dépasse pas les limites */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place la vidéo derrière le contenu */
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que la vidéo couvre tout l'espace */
    pointer-events: none; /* Désactive les interactions avec la vidéo */
    filter: blur(5px); /* Applique un flou à la vidéo */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Ajoute une superposition sombre */
    z-index: -1; /* Place la superposition derrière le contenu */
}

.hero h2 {
    font-size: 1.5em;
    font-weight: 300;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Ajoute une ombre subtile */
}

.hero h1 {
    font-size: 5em;
    font-weight: 700;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7); /* Ajoute une ombre plus marquée */
}

.hero p {
    font-size: 1.2em;
    font-weight: 300;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7); /* Ajoute une ombre légère */
}

.models {
    padding: 50px 20px;
    text-align: center;
}

.models h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.model {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.model:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.model img {
    width: 100%;
    border-radius: 10px;
}

.model h3 {
    margin: 15px 0 10px;
    color: #ffcc00;
}

footer {
    text-align: center;
    background-color: rgba(15, 15, 15, 0.65);
    color: #cccccc;
}

.category-vehicles {
    padding: 40px 20px;
    text-align: center;
    background: #111112;
}

.vehicle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
    margin-top: 32px;
}

.vehicle-card {
    background: rgba(18, 18, 18, 0.98);
    border-radius: 18px;
    box-shadow: 0 2px 24px 0 #000a, 0 1px 0 #222;
    padding: 0;
    min-width: 260px;
    max-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    border: 1.5px solid #23242a;
    overflow: hidden;
    cursor: pointer;
}

.vehicle-card:hover {
    box-shadow: 0 8px 32px 0 #000c, 0 0 0 2px #dddddd;
    border: 1.5px solid #dddddd;
    transform: translateY(-4px) scale(1.02);
}

.vehicle-card .vehicle-img {
    width: 100%;
    height: 140px;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: visible;
    margin-bottom: 0;
    margin-top: 18px;
}

.vehicle-card .vehicle-img img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    filter: drop-shadow(0px 7px 10px rgba(150, 150, 150, 0.15)) drop-shadow(0 2px 8px #0008);
    transition: filter 0.2s;
    z-index: 2;
    position: relative;
}
.vehicle-card .vehicle-brand {
    display: none;
}

.vehicle-card h3 {
    font-size: 15px;
    color: #d1d1d1;
    font-weight: 400;
    margin: 0 0 18px 0;
    text-align: center;
    letter-spacing: 0.5px;
    padding-top: 40px;
}

#vehicle-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,12,18,0.82);
    z-index: 1;
    backdrop-filter: blur(2px);
}

.popup-content {
    position: relative;
    background-color: rgba(15, 15, 15, 0.65);
    border-radius: 20px;
    box-shadow: 0 8px 32px #000c, 0 1px 0 #222;
    padding: 38px 38px 30px 38px;
    min-width: 340px;
    max-width: 95vw;
    z-index: 2;
    color: #f5f6fa;
    animation: popupIn 0.18s;
    border: 1px solid rgba(150, 150, 150, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.95);}
    to { opacity: 1; transform: scale(1);}
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 22px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 2em;
    cursor: pointer;
    z-index: 3;
    transition: color 0.2s;
    font-weight: 400;
    text-shadow: 0 2px 8px #000a;
}
.popup-close:hover {
    color: #fff;
}

.popup-content h2 {
    font-size: 23px;
    text-transform: uppercase;
    color: #f5f6fa;
    font-weight: 500;
    margin: 0 0 18px 0;
    text-align: center;
    letter-spacing: 0.5px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    width: 100%;
}

.popup-details {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
    text-align: left;
    width: 100%;
    max-width: 340px;
}

.popup-details li {
    margin-bottom: 14px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 1px 4px #0002;
}

.popup-details strong {
    color: #e6e6e6;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-width: 120px;
    display: inline-block;
}

.popup-details span {
    color: #f5f6fa;
    font-weight: 200;
    text-align: right;
    margin-left: 12px;
}

@media (max-width: 600px) {
    .popup-content {
        min-width: 0;
        padding: 18px 8vw 18px 8vw;
    }
    .popup-details {
        max-width: 100vw;
    }
}