#projects-section {
    position: relative;
    padding: 180px 60px 260px;
    min-height: 160vh;
}

#projects-section h2 {
    font-size: clamp(2.5rem, 9vw, 5.5rem);
    margin-bottom: 1.75rem;
}

.projects-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 7rem;
}

.projects-intro p {
    max-width: 52ch;
    color: var(--gray-light);
    font-weight: var(--fw-body);
    font-size: 1.05rem;
    line-height: 1.6;
}

.projects-intro p strong {
    color: var(--white);
    font-weight: 500;
}

@media (max-width: 767px) {
    #projects-section {
        padding: var(--space-2xl) var(--mobile-padding) calc(var(--space-2xl) * 2);
        min-height: auto;
    }

    .projects-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 3.5rem;
    }
}

#projects-section ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width:1024px) {
    #projects-section ul {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1.5vw;
    }

    #projects-section li {
        flex: 0 0 auto;
        width: clamp(240px, 22vw, 400px);
        aspect-ratio: 3 / 4;
    }
}

#projects-section li {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    --stagger: 0px;
    --parallax: 0px;
    translate: 0 calc(var(--stagger) + var(--parallax));
    scale: 1;
    transition: scale 0.3s ease, box-shadow 0.8s ease;
}
#projects-section li:hover {
    scale: 1.03;
    box-shadow: rgba(103, 67, 255, 0.35) 2px 2px 50px 1px; /* --violet-light */
}

/* Décalage vertical de chaque projet pour suivre le tracé de la ligne */
@media (min-width: 1024px) {
    #projects-section li:nth-child(1) { --stagger: 4.5rem; }
    #projects-section li:nth-child(2) { --stagger: -2rem; }
    #projects-section li:nth-child(3) { --stagger: 6.5rem; }
    #projects-section li:nth-child(4) { --stagger: 0.5rem; }
}

#projects-section li a {
    text-decoration: none;
    color: var(--white);

}

#projects-section li .content {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    /* mix-blend-mode: difference; */
}

#projects-section li .go {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 2;
    transition: opacity 0.6s ease;
    opacity: 0;
}
#projects-section li:hover .go {
    opacity: 1;
}


#projects-section li img {
    border-radius: var(--radius);
    width: 100%;
    height: 100%;
    transition: all 0.6s ease;
    object-fit: cover;
}
#projects-section li:hover img {
    filter: blur(5px) brightness(0.6);
    scale: 1.2;
    
}

#projects-section li video {
    border-radius: var(--radius);
    width: 100%;
    height: 100%;
    transition: all 0.6s ease;
    object-fit: cover;
}
#projects-section li:hover video {
    filter: blur(5px) brightness(0.6);
    scale: 1.2;
    
}

#projects-section .bg-line {
    z-index: -1;
    position: absolute;
    right: -5rem;
    top: 0px;
}

#projects-section .bg-line stop.grad-1 { stop-color: var(--gradient-1); }
#projects-section .bg-line stop.grad-2 { stop-color: var(--gradient-2); }
#projects-section .bg-line stop.grad-3 { stop-color: var(--gradient-3); }
#projects-section .bg-line stop.grad-4 { stop-color: var(--gradient-4); }

#projects-section .bg-line path {
    stroke-dasharray: var(--line-length, 0);
    stroke-dashoffset: var(--line-offset, 0);
}