* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
    list-style: none;
}

:root {
    --bg-color: #0c0c0c;
    --text-color: #fff;
    --main-color: #ffd000;

    --big-font: 6.6rem;
    --p-font: 1rem;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.fondPagePrincipal {
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .50s ease;
}

.invisible {
    display: none;
    width: 42px;
}

.logo img {
    width: 100px;
    height: auto;
}

.navlist {
    display: flex;
}

.navlist a {
    flex-direction: row;
    margin: 0 35px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all .6s ease;
}

.navlist a:hover {
    color: var(--main-color);
}

.right-content {
    display: flex;
    align-items: center;
}

#menu-icon {
    color: var(--text-color);
    font-size: 42px;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

section {
    padding-left: 14%;
}

.hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
}

.hero-img img {
    width: 100%;
    height: 100%;
}

.hero-text h1 {
    font-size: var(--big-font);
    font-weight: 900;
    margin: 15px 0;
    color: var(--text-color);
}

.hero-text h5 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-color);
}

.hero-text p {
    width: 100%;
    max-width: 620px;
    font-size: var(--p-font);
    font-weight: 400;
    line-height: 32px;
    color: var(--text-color);
    margin-bottom: 40px;
}

.scroll {
    position: absolute;
    top: 92%;
    right: 7%;
    transform: translateY(-50px);
}

.scroll a {
    font-size: 16px;
    color: var(--text-color);
}

.scroll i {
    font-size: 20px;
    color: var(--text-color);
    margin-right: 6px;
}

@media(max-width: 1770px) {
    .scroll {
        right: 4%;
    }
}

@media(max-width: 1670px) {
    :root {
        --big-font: 5.5rem;
        --p-font: 15px;
    }
}

@media(max-width: 1370px) {
    section {
        padding: 4%;
    }
}

@media(max-width: 1150px) {
    :root {
        --big-font: 4.6rem;
    }
}

@media(max-width: 950px) {
    #menu-icon {
        display: block;
    }

    .invisible{
        display: block;
    }

    .navlist {
        position: absolute;
        width: 100%;
        height: 100vh;
        padding: 100px 100px;
        top: 0;
        right: 0;
        bottom: 0;
        left: 100%;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(32px);
        transition: all .6s ease-in-out;
    }

    .navlist a {
        display: block;
        padding: 0;
        margin: 0px 0px 25px 0px;
        font-size: 1.7rem;
    }

    .navlist.open {
        left: 0;
    }

    .scroll {
        display: none;
    }
}

@media(max-width: 920px) {

    .hero {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-text {
        padding-top: 130px;
    }

    .hero-img {
        width: 100%;
    }

    .hero-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

@media(max-width: 570px) {
    section{
        margin-right: 0;
    }

    :root {
        --big-font: 4rem;
    }
}

@media(max-width: 440px) {
    :root {
        --big-font: 3.4rem;
    }

    .hero-text h5 {
        font-size: 15px;
    }

    .hero-img {
        width: 100%;
    }
}