.banner-loop-container {
    width: 100vw;
    height: 47rem;
    position: relative;
    /* overflow: hidden; */
    /* margin: 0;
    padding: 0; */
}

.banner-loop-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* .scrolled .banner-loop-images {
    animation: tiltOnScroll 0.4s ease-out forwards;
} */


.banner-loop-content {
    text-align: center;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.banner-loop-content h2 {
    font-size: 120px;
    font-weight: 100;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1;
    letter-spacing: -2px;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 30px rgba(0,0,0,0.15);
    /* font-family: 'Monument Extended', sans-serif; */
    margin-bottom: 20px;
}

.banner-loop-content .subtitle {
    top: 4rem;
    position: relative;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    background: #a8a7a7;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bottom-content {
    position: absolute;
    bottom: -5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 100%;
    max-width: 500px;
    text-align: center;
}
.blinking-text-soft {
    /* background-color: var(--main-color) !important; */
    position: relative;
    top: 0.5rem;
}
@media screen and (max-width: 768px) {
    .blinking-text-soft {
        font-size: 1.2rem !important;
    }
    strong {
        font-size: 12px !important;
    }
    .highlight text {
        font-size: 12px !important;
    }
}
@media screen and (max-width: 572px) {
    .banner-loop-content .subtitle {
        font-size: 21px !important;
    }
    .banner-loop-content h2 {
        font-weight: 200 !important;
    }
    .blinking-text-soft {
        font-size: 1.2rem !important;
    }
    .banner-loop-container {
        height: 36rem !important;
    }
    /* .bottom-content {
        bottom: 12rem !important;
    } */
    strong {
        font-size: 12px !important;
    }
    .highlight text {
        font-size: 12px !important;
    }
}
.shape-text {
    display: inline-block;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    background: rgba(40, 39, 39, 0.619);
    border: 1px solid rgba(255, 255, 255, 0.607);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.bottom-text {
    font-size: 12px;
    line-height: 1.6;
    color: #fff;
    padding: 0 20px;
    font-family: 'Chakra Petch', sans-serif;
    word-wrap: break-word;
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.bottom-text strong, .bottom-text .highlight {
    display: inline-block;
}

.bottom-text strong {
    font-weight: 600;
    /* background: linear-gradient(90deg, var(--main-color) 0%, #fff 100%); */
    /* background: #ffffff; */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.banner-loop-content-lineup {
    display: flex;
    top: 4rem;
    position: relative;
    justify-content: center;
    flex-direction: row !important;
    align-items: center;
}
@media screen and (max-width: 2500px) and (min-width: 800px) {
    .blinking-text-soft {
        font-size: 6rem !important;
    }
}
.highlight strong  {
    background: #bab6b6 !important;
}
.highlight2 strong  {
    background: #ffffff !important;
}
.highlight {
    font-family: 'Chakra Petch', sans-serif;
    color: rgba(255, 255, 255, 0.7);
}

.banner-loop-images {
    position: relative;
    width: 100%;
    z-index: 2;
    height: 320px;
    top: 68%;
    left: 0;
    transform: rotateZ(-13deg) skew(12.2028deg, 0deg) translateY(-50%);
    transform-style: preserve-3d;
    will-change: transform;
    perspective: 2000px;
    transition: transform 0.4s ease-out;
    transform-origin: center center;
    /* animation: tiltOnScroll 1s ease-out forwards; */
}

@keyframes tiltOnScroll {
    from {
        transform: rotateZ(-13deg) skew(12.2028deg, 0deg) translateY(-50%);
    }
    to {
        transform: rotateZ(-18deg) skew(12.2028deg, 0deg) translateY(-50%);
    }
}

.banner-loop-images:hover {
    /* animation: tiltBack 0.4s ease-out forwards; */
}

@keyframes tiltBack {
    from {
        transform: rotateZ(-18deg) skew(12.2028deg, 0deg) translateY(-50%);
    }
    to {
        transform: rotateZ(-13deg) skew(12.2028deg, 0deg) translateY(-50%);
    }
}

.hero-img-row {
    position: absolute;
    width: fit-content;
    height: 320px;
    display: flex;
    gap: 13px;
    padding: 0 12px;
    will-change: transform;
    z-index: 999;
    animation: smoothScroll 360s linear infinite; /* Animation très lente pour un effet plus doux */
}

@keyframes smoothScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 12px)); /* 12px is half the gap */
    }
}

.loop-image-item {
    flex: 0 0 480px;
    height: 320px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transform-style: preserve-3d;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4),
                0 0 40px rgba(0,0,0,0.2);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    backface-visibility: hidden;
}

.loop-image-item:hover {
    transform: translateY(-10px);
}

.banner-small-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.9) contrast(1.1); */
    transform: scale(1.1);
    transition: transform 0.6s ease;
}

.loop-image-item:hover .banner-small-img {
    transform: scale(1.2);
}

.small-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.4) 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loop-image-item:hover .small-img-overlay {
    opacity: 0;
}

@media (max-width: 991px) {
    .banner-loop-content h2 {
        font-size: 80px;
    }
    
    .banner-loop-images {
        width: 160vw;
        left: -30vw;
    }
    .bottom-content {
        bottom: 3rem;
    }
    
    .loop-image-item {
        flex: 0 0 280px;
        height: 180px;
    }
}
@media (max-width: 580px) {
    .banner-loop-content-lineup {
        display: none;
    }
}

@media (max-width: 767px) {
    .banner-loop-content h2 {
        font-size: 60px;
    }
    .shape-text img {
        width: 13px !important;
    }
    .shape-text {
        font-size: 8px !important;
    }
    
    .loop-image-item {
        flex: 0 0 240px;
        height: 160px;
    }
    
    .banner-loop-images {
        top: 70% !important;
        width: 89vw;
        left: -40vw;
    }
}
