.marche-container {
    display: flex;
    gap: 1rem;
    position: relative;
    flex-wrap: wrap;
}

.marche-container .marche-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    perspective: 1000px;
    transition: all 0.3s ease;
}

/* Images */
.marche-item img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    backface-visibility: hidden;
}


/* Overlay semi-transparent */
.marche-container .marche-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}


/* Border overlay au hover */
.marche-container .marche-item .overlay {
    position: absolute;
    top: .5rem;
    left: .5rem;
    right: .5rem;
    bottom: .5rem;
    border-top: 1px solid white;
    border-right: 1px solid white;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.marche-container .marche-item .overlay::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
   height: 70%;
    background-color: #FFF;
    z-index: 2;
    transition: height 0.3s ease;
}

.marche-container .marche-item .overlay::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    height: 1px;
    width: calc(50% - 20px);
    background-color: #FFF;
    z-index: 2;
    transition: width 0.3s ease;
}



/* Lien dans la galerie */
.marche-container .marche-item
{
    display: block;
    flex: 0 1 24%;
    color: var(--white);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;

}

/* Titre horizontaux */
.marche-container .marche-item .hover-title {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: .5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    width: 50%;
    box-sizing: border-box;
}

.marche-container .marche-item .hover-title h3 {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
        color: var(--white);

    padding: 0;
    margin: 0;
}


/* ============================================
   RESPONSIVE - TABLET (MAX 768PX)
   ============================================ */

@media (max-width: 768px) {
     .marche-container .marche-item img {
    width: 100%;
   }
   .marche-container .marche-item {
    flex: 0 1 49%;
   }
}

/* ============================================
   RESPONSIVE - MOBILE (MAX 480PX)
   ============================================ */

@media (max-width: 480px) {
   .marche-container .marche-item {
    flex: 100%;
   }

}