header {
    height: 120vh;
    background-image: url('../assets/img/big-kebab.png');
    background-size: cover;
    background-position: calc(100vw*1.04);
}


.presentation {
    height: 80vh;
    font-family: 'montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0 4%;
    font-weight: 200;
}
.presentation > div{
    animation: goRight .5s linear forwards
}

.presentation h1 {
    font-size: clamp(40px, 7vw, 95px);
    text-align: center;
}

.presentation p {
    text-align: center;
    font-family: "montserrat", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: clamp(24px, 3vw, 30px);
    letter-spacing: 2px;
}

.presentation img {
    position: relative;
    width: 40%;
    animation: apparition .5s linear forwards, floating ease 4s infinite;

}


.how-it-work {
    position: relative;
    background-color: #E10512;
    margin-top: -100px;
    padding: 10% 0;
    display: flex;
}

.fonctionnement {
    z-index: 3;
    position: relative;
}

.trait {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    z-index: -1;
    width: 100%;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.7);
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
}

.fonctionnement:nth-child(2) {
    background-color: white;
    width: 100px;
}

.image-container {
    display: flex;
    justify-content: space-around;

}

.img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    padding: 15px;
    background-color: white;
    border-radius: 100px;
}

.img1::before {
    content: "Localise toi";
    position: absolute;
    color: white;
    font-family: "montserrat", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2.1vw, 24px);
    margin-top: 130px;
}

.img2::before {
    content: "Commande";
    position: absolute;
    color: white;
    font-family: "montserrat", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2.1vw, 24px);
    margin-top: 130px;
}

.img3::before {
    content: "Régale toi";
    position: absolute;
    color: white;
    font-family: "montserrat", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2.1vw, 24px);
    margin-top: 130px;
}

.img4::before {
    content: "Recommence";
    position: absolute;
    color: white;
    font-family: "montserrat", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 2.1vw, 24px);
    margin-top: 130px;
}

.img img {
    height: 60px;
}

.precision {
    width: 60%;
    display: flex;
    flex-direction: column;
    color: white;
    justify-content: space-evenly;
}

.precision p {
    margin: 50px;
    font-size: clamp(20px, 1.5vw, 26px);
    font-weight: 600;
    text-align: justify;
    font-family: "montserrat", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.how-it-work>img {
    position: absolute;
    z-index: 10;
    width: 30%;
    right: -0%;
}

.commander {
    overflow: hidden;
    position: relative;
    height: 100vh;
    background-position: center;
    background-size: contain;
}

.commander div.command-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: blur(10px);
    z-index: -1;
}

.commander div.command-background img {
    height: 100%;
    width: 100%;
}

.command {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 10%;
}

.command a {
    z-index: 1;
    border-radius: 100px;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: #E10512;
    width: 35%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "montserrat", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: clamp(20px, 2.8vw, 40px);
    font-weight: 600;
    padding: 3% 0%;
    border-bottom: 10px rgb(211, 3, 3) solid;
    transition: all .2s;
}

.command a:hover {
    border-bottom: 5px rgb(211, 3, 3) solid;
}

.command a:active {
    border-bottom: 0px rgb(211, 3, 3), solid;
}

.command a img {
    width: clamp(60px, 8vw, 100px);
}

footer {
    margin-top: -100px;
}

@keyframes goRight {
    from{
        opacity: 0;
        transform: translate(-100px, -20px);
    }
    to{
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes apparition {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes floating {
    0% {
        transform: translate(0, 0) rotate(360deg);
    }

    25% {
        transform: translate(1%, 3%) rotate(360deg);
    }

    50% {
        transform: translate(2%, 1%) rotate(360deg);
    }

    75% {
        transform: translate(0, 3%) rotate(360deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@media screen and (max-width: 900px) {
    .presentation {
        flex-direction: column;
        margin-top: 40px;
    }

    .presentation img {
        width: 80%;
    }

    .image-container {
        flex-direction: column;
        height: 100%;
    }

    .how-it-work {
        clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
        flex-direction: column;
        align-items: center;
    }

    .fonctionnement {
        height: 600px;
    }

    .precision {
        width: 100%;
        align-items: center;

    }

    .trait {
        height: 100%;
        width: 25px;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 100px;
    }

    .img1::before,
    .img2::before,
    .img3::before,
    .img4::before {
        margin-top: 0;
        margin-left: 220px;
        text-align: center;
    }

    .how-it-work>img {
        display: none;
    }

    .command a {
        padding: 20px 35%;
    }
}