
:root {
    --body-white-color: #ECECEC;
    --element-black-color: #161616;
    --color3: #F7F7F7;
}

    html {
        scroll-behavior: smooth;
    }

header {
        transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;

}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: inherit;
    background-color: var(--element-white-color);
    display: flex;
    
    width: 100vw;
    overflow-x: hidden;
}

    .fade-in {
        opacity: 0;
        transform: translateY(-100px);
        /* Only set initial state, no animation or transition here */
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 1.8s ease-out, transform 1.8s ease-out;
    }


 .fade-down {
        opacity: 0;
        transform: translateY(100px);
        /* Only set initial state, no animation or transition here */
    }


    .fade-down.visible {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 1.8s ease, transform 1.8s ease;
    }



.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s ease-out 3s, transform 1.2s ease-out 3s;
}



/* ===== HERO NEW DESIGN ===== */



.hero {
    width: 100%;
    height: 100vh;
    margin-top: 10vh;
}



.hero-background {
    width: 100%;
    height: 100vh;
    position: relative;
    padding: 2rem 2rem 0 2rem;
      overflow: hidden; /* cache le débordement de l'image */

}

.hero-background .video {
width: 100%;
    height: auto;

    
}







/* ================== RESPONSIVE (pour les écrans plus petits) ================== */
@media (max-width: 768px) {
    .competences-list {
        flex-wrap: wrap; /* Les éléments passent à la ligne sur mobile */
        justify-content: center;
        gap: 1.5rem;
    }

    .competence-item img {
        width: 50px;
        height: 50px;
    }
}




.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 8rem 2rem 2rem 2rem;

}
.footer-info {
    color: #777;
    font-size: 0.7em;
    font-weight: 400;
}

.rs {
    display: flex;
    flex-direction: row;
    gap: 64px;
    padding-bottom: 8px;
}

.footer-center {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
}








/* =============== HERO SVG ANIMATION (works3 style) =============== */


@keyframes svgFadeColor {
    from { fill: #161616; } /* noir profond */
    to { fill: #16161608; }   /* gris clair */
}
.fade-in.visible .hero-svg path {
    animation: svgFadeColor 1.8s ease forwards 1.8s;
}