/* ========================================================= */
/* Styles pour la galerie des Véhicules (Plugin SIS)         */
/* ========================================================= */

/* Conteneur global d'un véhicule */
.sis-vehicule-wrap {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.sis-vehicule-wrap:last-child {
    border-bottom: none;
}

/* En-tête (Titre et description) */
.sis-vehicule-header {
    margin-bottom: 20px;
}

.sis-vehicule-header h2 {
    color: #a52a2a;
    margin-bottom: 10px;
}

/* Grille Masonry (style Pinterest) */
.sis-masonry-gallery {
    column-count: 3;
    column-gap: 15px;
}

.sis-masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
}

.sis-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Effet de zoom léger au survol */
.sis-masonry-item img:hover {
    transform: scale(1.02);
}

/* Responsivité pour tablettes et mobiles */
@media (max-width: 980px) {
    .sis-masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .sis-masonry-gallery {
        column-count: 1;
    }
}


/* ========================================================= */
/* Visionneuse (Lightbox) pour les Véhicules                 */
/* ========================================================= */

.sis-lightbox-overlay {
    display: none;
    /* Sera transformé en "flex" par le Javascript */
    position: fixed;
    z-index: 999999 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    /* Centre horizontalement */
    align-items: center;
    /* Centre verticalement */
}

.sis-lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.sis-lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.sis-lightbox-close:hover {
    color: #a52a2a;
}

.sis-lightbox-prev,
.sis-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.2);
}

.sis-lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.sis-lightbox-prev {
    left: 0;
}

.sis-lightbox-prev:hover,
.sis-lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {

    .sis-lightbox-prev,
    .sis-lightbox-next {
        font-size: 20px;
        padding: 10px;
    }

    .sis-lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* ========================================================= */
/* Boutons de filtres pour SIS Galeries                      */
/* ========================================================= */

.sis-filtres-container {
    text-align: center;
    margin-bottom: 40px;
}

.sis-filtre-btn {
    background-color: #f1f1f1;
    color: #333;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.sis-filtre-btn:hover {
    background-color: #ddd;
}

.sis-filtre-btn.active {
    background-color: #a52a2a;
    /* Le rouge pompier */
    color: white;
}

/* ========================================================= */
/* Badge de catégorie pour les Galeries                      */
/* ========================================================= */

.sis-galerie-badge {
    display: inline-block;
    background-color: #a52a2a;
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.6em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    margin-bottom: 8px;
}