@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@font-face {
    font-family: "pixel";
    src: url("fonts/pixelate.ttf");
}


:root {
    --c-main: #0000FE;
    --c-red: #F34B40;
    --s-red: #7e261f;
    --c-black: #151515;
    --c-grey: #DBDBDB;
    --c-white: #FEFEFE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Clash Grotesk', sans-serif;
}

hmtl {
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-white);
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
}

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 95%;
    text-transform: uppercase;
}

a {
    all: unset;
    cursor: pointer;
    position: relative;
    display: block;
    padding: 4px 10px;
    transition: all .35s ease-out;
    line-height: 90%;
}

ul {
    display: flex;
}

li {
    list-style: none;
}

header {
    width: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 40px 120px;
    background: none;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    font-weight: 500;
    font-size: 1.35rem;
}

a.logo {
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: uppercase;
}

ul > li > a::after {
    position: absolute;
    content: "";
    top: 100%;
    left: 5px;
    width: calc(100% - 10px);
    height: 3px;
    background: var(--c-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s;
}

ul > li > a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.animContainer {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 0 120px;
    background: var(--c-red);
    background-image: url("./imgs/grid.svg");
    position: relative;
}

.animContainer header span,
.animContainer header ul > li {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    color: white;
}

.animContainer .text {
    display: flex;
    flex-direction: column;
    align-items: end;
    position: relative;
    padding: 4rem 0 9vw 0;
    z-index: 99;
    min-height: 50vh;
}

.animContainer .text .line {
    height: auto;
    overflow: hidden;
}

.animContainer .text .line h1 span {
    display: inline-block;
    color: white;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 500;
    font-size: 9vw;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.animContainer .text .line:last-child {
    position: absolute;
    left: 0;
    bottom: 0;
}

.flip-link {
    line-height: 2.1rem;
    height: 2.1rem;
    overflow: hidden;
    color: #7e261f;
}

.flip-link:hover .letter,
.flip-link.play .letter {
    transform: translateY(-100%);
}

.flip-link .letter {
    display: inline-block;
    transition: transform .5s cubic-bezier(.76, 0, .024, 1);
}

.flip-link .block:last-child span {
    color: var(--s-red);
}

.flip-link .letter:nth-child(1) {
    transition-delay: 0s;
}

.flip-link .letter:nth-child(2) {
    transition-delay: 0.03s;
}

.flip-link .letter:nth-child(3) {
    transition-delay: 0.06s;
}

.flip-link .letter:nth-child(4) {
    transition-delay: 0.09s;
}

.flip-link .letter:nth-child(5) {
    transition-delay: 0.12s;
}

.flip-link .letter:nth-child(6) {
    transition-delay: 0.15s;
}

.flip-link .letter:nth-child(7) {
    transition-delay: 0.18s;
}

.flip-link .letter:nth-child(8) {
    transition-delay: 0.21s;
}

/* Pour les images de curseur générées */
.cursorAnim {
    width: 250px;
    aspect-ratio: 1/1;
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    pointer-events: visible;
}

.cursorImage {
    width: 80%;
    height: 80%;
    object-fit: cover;
    display: block;
    opacity: 0;
    scale: .2;
    animation: appear 1s ease-in-out forwards;
    transition: rotate 0.4s ease;
}

@keyframes appear {
    from, to {
        opacity: 0;
        scale: .2;
    }
    20%, 50% {
        opacity: 1;
        scale: 1;
    }
}


.animContainer {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 0 120px;
    background: #F34B40;
    position: fixed;
    background-image: url("./imgs/grid.svg");
    background-size: 95%;

    header {
        width: 100%;
        height: initial;
        border: none;
        margin: 0;
        top: 0;
        padding: 40px 120px;
        background: none;
        transform: translateX(-50%);
        z-index: 99;

        span, ul > li {
            font-family: "Bebas Neue", sans-serif;
            font-size: 2rem;
            color: white;
        }

    }

    .text {
        display: flex;
        flex-direction: column;
        align-items: end;
        position: relative;
        padding: 4rem 0 9vw 0;
        z-index: 99;

        .line {
            overflow: hidden;

            h1 {
                text-transform: uppercase;
                font-size: 9vw;
                transition: all .35s ease-out;

                span {
                    display: inline-block;
                    color: white;
                    font-family: "Bebas Neue", sans-serif;
                    font-weight: 500;
                }

                span.black > span {
                    color: white;
                }
            }

        }

        .line:last-child {
            position: absolute;
            left: 0;
            bottom: 0;
        }

    }

}

section.space {
    width: 100%;
    height: 100vh;
}

section.aPropos {
    width: 100%;
    position: relative;
    z-index: 20;
    background: white;
    overflow: hidden;
    padding: 0 120px;
}

section.aPropos h2.marquee {
    font-size: 15vw;
    text-wrap: nowrap;
    font-family: "Bebas Neue", sans-serif;
    color: #d6d6d6;
    transition: transform .1s linear;
    position: relative;
    left: 0;
    top: 0;
}


section.aPropos .apr {
    margin-top: 20px;
    display: flex;

    .text {
        width: 55%;

        .sTitleRow {
            overflow: hidden;

            h2.presentation {
                font-family: "Bebas Neue", sans-serif;
                color: var(--c-black);
                font-size: 4.5vw;
                line-height: 100%;

                span {
                    font-family: "Bebas Neue", sans-serif;
                    color: var(--c-red);
                    font-size: 4.5vw;
                }
            }

            .reveal-on-scroll {
                transform: translateY(100%);
                transition: transform 0.35s ease-out;
                will-change: transform;
            }

        }

        hr {
            margin: 50px 0 70px 0;
            border: solid 1.5px #d6d6d6;
        }

        p {
            font-family: 'Inter', sans-serif;
            font-size: 1.15rem;
            width: 90%;

            span {
                color: var(--c-red);
            }
        }
    }

    .right {
        width: 45%;
        display: flex;
        justify-content: left;
        align-items: end;

        img {
            width: 90%;
        }
    }
}

@keyframes txtToUp {
    to {
        transform: translateY(0);
    }
}


section.projects {
    position: relative;
    width: 100%;
    height: calc(100vh + 10vw);
    overflow: hidden;
    z-index: 9999;
    background: url("./imgs/window.svg");
    background-size: cover  ;

    .window {
        position: absolute;
        top: 100px;
        left: 100px;
        min-width: 30px;
        overflow: hidden;
        background: var(--c-white);
        border-top: solid 3px var(--c-black);
        border-left: solid 3px var(--c-black);
        border-bottom: solid 10px var(--c-black);
        border-right: solid 10px var(--c-black);
        border-radius: 10px;
    }

    .window.red {
        background: var(--c-red);

        .window-header {
            background: var(--c-red);
        }
    }

    .window-header {
        background: var(--c-white);
        color: var(--c-black);
        padding: 10px;
        cursor: pointer;
        user-select: none;
        width: 100%;
        display: flex;
        justify-content: center;
        font-family: "pixel", sans-serif;
        border-bottom: solid 3px var(--c-black);
        transition: all .2s ease-out;
    }

    .window.collapsed .window-header {
        border-bottom: solid 3px transparent;
    }

    .window-content {
        color: var(--c-black);
        line-height: 110%;
        padding: 10px;
        margin: 2px;

        max-height: 700px;
        max-width: 30vw;
        overflow: hidden;
        transition: all 0.25s ease-in-out;
        font-family: "pixel", sans-serif;

        strong {
            font-family: "pixel", sans-serif;
        }
    }

    .window-content.collapsed {
        max-height: 0;
        color: var(--c-black);
        padding: 0 10px;
    }

    .window.stats {
        width: 250px;
    }

    .stat {
        margin: 12px 0;
    }

    .stat .label {
        font-size: 0.8rem;
        margin-bottom: 5px;
        font-family: "pixel", sans-serif;
    }

    .bar {
        height: 12px;
        background: #333;
        border: 2px solid var(--c-black);
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }

    .fill {
        height: 100%;
        background-color: var(--c-red);
        transition: width 0.5s ease-in-out;
        width: 0;
    }



    .marquee {
        position: absolute;
        width: 100vw;
        max-width: 100%;
        min-height: 5vw;
        overflow-x: hidden;
        background: var(--c-white);

        display: flex;
        align-items: center;
        border-top: solid 4px var(--c-black);
        border-bottom: solid 4px var(--c-black);
    }

    .track {
        position: absolute;
        white-space: nowrap;
        will-change: transform;
        animation: marquee 15s linear infinite;

        .content {
            font-size: 3vw;
            font-family: "Bebas Neue", sans-serif;
            color: var(--c-black);
            height: initial;
        }

        .content:after {
            content: "DIVE INTO THE DEV • DIVE INTO THE DEV • DIVE INTO THE DEV • DIVE INTO THE DEV • DIVE INTO THE DEV • DIVE INTO THE DEV • DIVE INTO THE DEV • DIVE INTO THE DEV • DIVE INTO THE DEV • DIVE INTO THE DEV • DIVE INTO THE DEV • ";
        }
    }

    .marquee.bottom {
        bottom: 0;

        .track {
            animation: marquee 10s linear reverse infinite;
        }
    }



    .shake {
        animation: shake 0.5s;
    }

}


@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes shake {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-5px, 0); }
    40% { transform: translate(5px, 0); }
    60% { transform: translate(-5px, 0); }
    80% { transform: translate(5px, 0); }
    100% { transform: translate(0, 0); }
}

section.footer {
    height: 80vh;
}

section.contact {
    width: 100%;
    height: 80vh;
    position: fixed;
    bottom: 0;
    background: var(--c-white);
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    p {
        font-size:  1.25rem;
        font-family: 'Inter', sans-serif;
        margin-bottom: 20px;
    }

    a > h2 {
        font-size: 6vw;
        line-height: 95%;
        font-family: 'Bebas Neue', sans-serif;
    }

    a {
        width: 100%;
        height: 7vw;
        transition: all .35s ease-out;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 10px;
    }

    a:hover {
        background: var(--c-red);
    }

    .ligne {
        display: flex;
    }
}