/* ==========================================
   CONTENEUR
========================================== */

.vc-project-demo {
    position: relative;
    width: 100%;
}


/* ==========================================
   LISTE
========================================== */

.vc-project-list {
    width: 100%;
    position: relative;
    z-index: 2;
}

.vc-project-row {
    position: relative;

    display: grid;
    grid-template-columns: 3fr 1fr 1fr; /* 60% / 20% / 20% */
    align-items: center;

    min-height: 64px;

    padding: 14px 30px;

    border-top: 1px solid #e1ebe1;

    cursor: pointer;

    overflow: hidden;
}

.vc-project-row:last-child {
    border-bottom: 1px solid #e1ebe1;
}


/* ==========================================
   REMPLISSAGE ANIMÉ DE LA BORDURE SUPÉRIEURE
========================================== */

.vc-project-row::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    height: 2px;
    width: 0%;
    background: #7dff7d;
    transition: width 0.4s ease;
}

.vc-project-row:hover::before {
    width: 100%;
}


/* ==========================================
   TEXTES
========================================== */

.vc-project-name {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #0d1c0d;
}

.vc-project-category {
    font-size: 15px;
    letter-spacing: 0.04em;
    color: #2d392d;
}


/* ==========================================
   ÉTIQUETTES D'EXPERTISE
========================================== */

.vc-project-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vc-project-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #939f93;
    border-radius: 14px;
    font-size: 11px;
    letter-spacing: 0.03em;
    color: #2d392d;
    white-space: nowrap;
}


/* ==========================================
   FENÊTRE
========================================== */

.vc-preview-window {
    position: fixed;
    top: 50%;
    left: 40%;
    width: 300px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    transition: opacity 0.4s ease,
                transform 0.5s cubic-bezier(.22,1,.36,1);
    background: #e1ebe1;
}

.vc-preview-window.active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}


/* ==========================================
   GRANDE FRISE D'IMAGES
========================================== */

.vc-preview-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}


/* ==========================================
   IMAGE
========================================== */

.vc-preview-image {
    width: 300px;
    height: 300px;
}

.vc-preview-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .vc-preview-window {
        display: none;
    }

    .vc-project-row {
        grid-template-columns: 1fr;
        height: auto;
        padding: 18px 20px;
        gap: 6px;
    }

    .vc-project-category,
    .vc-project-expertise {
        display: none;
    }

}
