/* ==========================================================================
   VERESPACE — Page Nos Réalisations
   ========================================================================== */

/* ---- Forcer full width (masquer sidebar) ---- */
.page-id-11520 #sidebar {
    display: none !important;
}

.page-id-11520 .wf-container-main {
    display: block !important;
}

.page-id-11520 #content {
    width: 100% !important;
    max-width: 100% !important;
}

.page-id-11520 .page-title,
.page-id-11520 #fancy-header {
    display: none !important;
}

.page-id-11520 #main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ---- Reset global conflicts ---- */
.vs-realisations h3 {
    margin: 0;
    padding: 0;
}

.vs-realisations h3::before {
    content: none !important;
    display: none !important;
}


/* ---- Contenu principal ---- */
.vs-real-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px 80px;
}

/* ---- Grille de boutons réalisations ---- */
.vs-real-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.vs-real-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #525024;
    text-decoration: none;
    text-align: center;
    border: 2px solid #e5e5e5;
    border-radius: 5px;
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
    cursor: pointer;
}

.vs-real-service:hover {
    border-color: #73B321;
    color: #73B321;
    transform: translateY(-2px);
}

.vs-real-service--active {
    background: #73B321 !important;
    border-color: #73B321 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.vs-real-service--active .vs-real-count {
    color: rgba(255, 255, 255, 0.7);
}

.vs-real-count {
    font-weight: 400;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* ---- Galerie ---- */
.vs-real-gallery {
    margin-top: 40px;
}

.vs-real-gallery__title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    font-size: 24px;
    text-transform: uppercase;
    color: #73B321 !important;
    margin: 0 0 25px 0 !important;
    padding-left: 25px;
    position: relative;
}

.vs-real-gallery__title::before {
    content: '' !important;
    display: block !important;
    width: 16px;
    height: 16px;
    background: #73B321;
    position: absolute !important;
    left: 0 !important;
    top: 5px !important;
}

.vs-real-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* ---- Vignettes ---- */
.vs-real-thumb {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.vs-real-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.vs-real-thumb:hover img {
    transform: scale(1.05);
}

.vs-real-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(115, 179, 33, 0);
    transition: background 0.3s;
    pointer-events: none;
}

.vs-real-thumb:hover::after {
    background: rgba(115, 179, 33, 0.15);
}

/* ---- Lightbox ---- */
.vs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.vs-lightbox__img {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    z-index: 2;
    border-radius: 4px;
}

.vs-lightbox__close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 3;
    line-height: 1;
    padding: 5px 10px;
}

.vs-lightbox__close:hover {
    color: #73B321;
}

.vs-lightbox__prev,
.vs-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 3;
    padding: 15px;
    transition: color 0.2s;
}

.vs-lightbox__prev { left: 15px; }
.vs-lightbox__next { right: 15px; }

.vs-lightbox__prev:hover,
.vs-lightbox__next:hover {
    color: #73B321;
}

.vs-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    z-index: 3;
}

/* ---- Responsive tablette ---- */
@media screen and (max-width: 800px) {
    .vs-real-content {
        padding: 30px 20px 60px;
    }

    .vs-real-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .vs-real-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .vs-real-gallery__title {
        font-size: 20px;
    }
}

/* ---- Responsive mobile ---- */
@media screen and (max-width: 475px) {
    .vs-real-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .vs-real-list {
        grid-template-columns: 1fr;
    }

    .vs-real-service {
        padding: 8px 14px;
        flex-direction: row;
        justify-content: space-between;
        gap: 6px;
    }

    .vs-real-count {
        margin-top: 0;
    }

    .vs-real-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .vs-real-gallery__title {
        font-size: 18px;
    }

    .vs-lightbox__prev,
    .vs-lightbox__next {
        font-size: 28px;
    }

    .vs-lightbox__close {
        font-size: 32px;
    }
}
