body,
body > * {
    overflow-x: hidden !important;
}

html {
    scroll-behavior: smooth;
}

.hand-animated {
    display: inline-block;
    font-size: 5rem;
    transform-origin: bottom center;
    cursor: pointer;
}

.hand-animation {
    animation: wave 1.5s ease-in-out 1;
}

@keyframes wave {
    0% {
        transform: translateY(-1px) rotate(0deg);
    }

    20% {
        transform: translateY(-1px) rotate(20deg);
    }

    40% {
        transform: translateY(-1px) rotate(-15deg);
    }

    60% {
        transform: translateY(-1px) rotate(15deg);
    }

    80% {
        transform: translateY(-1px) rotate(-10deg);
    }

    100% {
        transform: translateY(-1px) rotate(0deg);
    }
}

.shape {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 8;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 113px;
}

.shape .shape-fill {
    fill: #101010;
}


.marquee-container {
    width: 100%;
    overflow: hidden;
    background: #101010;
    border-top: 1px solid rgba(124, 58, 237, 0.4);
    border-bottom: 1px solid rgba(124, 58, 237, 0.4);;
    color: #fff;
    font-size: 24px;
    white-space: nowrap;
    position: relative;
    transform: rotate(-2deg);
}

.marquee-wrapper {
    position: relative;
}

.marquee-bg {
    transform: rotate(1deg);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: defilement 40s linear infinite;
}

.marquee-item {
    padding: 10px 50px;
}

@media (max-width: 768px) {
    .marquee-item {
        padding: 10px 20px;
    }
}

@keyframes defilement {
    0% {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

.logo {
    position: relative;
    width: 80px;
    height: 80px;
    padding: 10px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation-name: float;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px #151515;
}

.logo img {
    max-width: 60px;
    max-height: 60px;
    user-select: none;
    pointer-events: none;
}

/* Animation flottement */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-12px) translateX(8px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Tu peux mettre ça dans un fichier CSS ou via @layer utilities si tu utilises Tailwind */
.project-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* Cacher la scrollbar */
    scrollbar-width: none; /* Firefox */
}
.project-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.project-slider > * {
    flex: 0 0 80%; /* ou 100% si tu veux un slide plein écran */
    scroll-snap-align: start;
}

@keyframes swipe {
    0%   { transform: translateX(0); }
    30%  { transform: translateX(-8px); }
    60%  { transform: translateX(0); }
    100% { transform: translateX(0); }
}

@keyframes fadeInOut {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
}

.animate-swipe {
    animation: swipe 1s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeInOut 4s ease-in-out forwards;
}

[data-animation-class]:not(.animate__animated) {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    animation-fill-mode: both;
}

[data-animation-class].animate__animated {
    opacity: 1;
}