* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

/* En tête */

header {
    width: 100%;
    height: 75px;
    background-color: #181818;
    font-family: 'Helvetica';
    position: sticky;
    top: 0px;
    z-index: 100;
}

.navbar {
    padding : 15px 10%;
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.navbar .logo {
    height: 40px;
}

.navbar a {
    color : #acacac;
}

.navbar a:hover {
    color: #f1f1f1;
}

.navbar .nav-links ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2em;
    font-weight: bold;
}

.navbar .nav-links ul li {
    margin: 5px 35px;
    position: relative;
    box-sizing: border-box;
}

.flag-icon {
    width: 30px;
    height: 30px;
}

.menu-burger {
    display: none;
}

@media screen and (max-width: 900px){

    .navbar{
        padding : 15px 10%;
        align-items: center;
    }

    .navbar .logo {
        height: 40px;
    }

    .nav-links {
        top: 0;
        left: 0;
        position: absolute;
        background-color: rgb(78, 70, 70);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: -220%;
        transition: margin-top 1s ease;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navbar .nav-links ul li {
        margin: 25px 0;
        font-size: 1em;
    }

    .navbar .nav-links ul li a{
        color : #f1f1f1;
    }

    .navbar .nav-links ul li::after {
        display: none;
    }

    .flag-icon {
        width: 40px;
        height: 40px;
    }

    /*animation menu */
    .menu-burger {
        display: block;
        position: absolute;
        right: 10%;
        width: 40px;
        height: 30px;
        background: transparent;
        cursor: pointer;
    }
    .menu-burger input {
        display: none;
    }

    .menu-burger span {
        display: block;
        position: absolute;
        height: 5px;
        width: 100%;
        background: #f1f1f1;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .menu-burger span:nth-of-type(1) {
        top: 0px;
        transform-origin: left center;
    }

    .menu-burger span:nth-of-type(2) {
        top: 50%;
        transform: translateY(-50%);
        transform-origin: left center;
    }

    .menu-burger span:nth-of-type(3) {
        top: 100%;
        transform-origin: left center;
        transform: translateY(-100%);   
    }

    .menu-burger input:checked ~ span:nth-of-type(1) {
        transform: rotate(45deg);
        top: 0px;
        left: 5px;
    }

    .menu-burger input:checked ~ span:nth-of-type(2) {
        width: 0%;
        opacity: 0;
    }

    .menu-burger input:checked ~ span:nth-of-type(3) {
        transform: rotate(-45deg);
        top: 28px;
        left: 5px;
    }

    .nav-links.mobile-menu {
        margin-top: 0;       
    }

    .nav-links.nav-links.mobile-menu ul li {
        opacity: 0;
        animation: animatetext 1s forwards;
    }

    /*animation texte*/

    @keyframes animatetext {
        0% {
            opacity: 0;
            letter-spacing: -20px;
        }
        100%{
            opacity: 1;
            letter-spacing: 0px;
        }
    }

    .nav-links.mobile-menu ul li:nth-child(1) {
        animation-delay: 0.6s; 
    }
    .nav-links.mobile-menu ul li:nth-child(2) {
        animation-delay: 0.8s; 
    }
    .nav-links.mobile-menu ul li:nth-child(3) {
        animation-delay: 1s; 
    }
    .nav-links.mobile-menu ul li:nth-child(4) {
        animation-delay: 1.2s; 
    }
}

body {
    width: 100vw;
    height: 200vh;
    background-color: #181818;
    font-family: 'Helvetica';
    display: flex;
    justify-content: center;
}

.container-presentation {
    max-width: 1600px;
    display: grid;
    position: absolute;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    height: 100vh;
    animation: scroll 5s linear;
    animation-timeline: view();
    animation-range: entry 5%;
}

.section img {
    width: 400px;
    border-radius: 50%;
    border: 15px solid #f1f1f1;
}

.section {
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 0 10px;
}

.textpres {
    padding: 0 60px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: justify;
    color: #f1f1f1;
}

.my-education {
    max-width: 1600px;
    display: grid;
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 110vh;
    animation: scroll 5s linear;
    animation-timeline: view();
    animation-range: entry 0%;
}

.wrapper {
    max-width: 1600px;
    padding: 0 250px;
    position: relative;
}

.wrapper .center-line {
    position: absolute;
    height: 60%;
    width: 4px;
    background: #f1f1f1;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
}

.wrapper .row {
    display: flex;
    justify-content: flex-start;
}

.wrapper .row-1, .row-3, .row-6 {
    justify-content: flex-start;
}

.wrapper .row-2 {
    justify-content: flex-end;
}

.wrapper .row-4 {
    justify-content: flex-start;
    padding-top: 25%;
}

.wrapper .row-5 {
    justify-content: flex-end;
}

.wrapper .row section {
    background: #f1f1f1;
    border-radius: 5px;
    width: calc(50% - 40px);
    padding: 20px;
    position: relative;
}

.wrapper .row section::before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    background: #f1f1f1;
    top: 33px;
    z-index: -1;
    transform: rotate(45deg);
}

.row-1 section::before {
    right: -7px;
}

.row-2 section::before {
    left: -7px;
}

.row-3 section::before {
    right: -7px;
}

.row-4 section::before {
    right: -7px;
}

.row-5 section::before {
    left: -7px;
}

.row-6 section::before {
    right: -7px;
}

.row section .icon {
    position: absolute;
    display: flex;
    background: #e4e4e4;
    height: 40px;
    width: 40px;
    justify-content: center;
    align-items: center;
    line-height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #f1f1f1, inset 0 2px 0 rgba(0, 0, 0, 0.18), 0 3px 0 4px rgba(0, 0, 0, 0.15);
}

.row-1 section .icon {
    right: -60px;
}

.row-2 section .icon {
    left: -60px;
}

.row-3 section .icon {
    right: -60px;
}

.row-4 section .icon {
    right: -60px;
    z-index: 1;
}

.row-5 section .icon {
    left: -60px;
    z-index: 1;
}

.row-6 section .icon {
    right: -60px;
    z-index: 1;
}


.row section .details {
    display: flex;
    justify-content: space-between;
}

.row section .details .title {
    font-size: 22px;
    font-weight: 600;
}

.row section p {
    margin: 10px 0 17px 0;
}

@keyframes scroll {
    0% {
        opacity: 0;
        scale: 0.5;
    }
    70% {
        opacity: 1;
        scale: 1;
    }
}

.wrapper .mid-line {
    position: absolute;
    height: 1px; 
    background: repeating-linear-gradient(90deg, #f1f1f1 0, #f1f1f1 10px, transparent 5px, transparent 20px);
    width: 60%;
    left: 50%;
    top: 52%;
    transform: translateX(-50%);
}

.wrapper .second-line {
    position: absolute;
    height: 60%; 
    background: repeating-linear-gradient(0deg, #f1f1f1 0, #f1f1f1 10px, transparent 5px, transparent 20px);
    width: 4px;
    left: 50%;
    top: 62%;
    transform: translateX(-50%);
}

.futur-wrapper {
    max-width: 1600px;
    padding: 0 250px;
    position: relative;
}

.objectif{
    max-width: 1600px;
    display: grid;
    position: absolute;
    width: 100%;
    height: auto;
    top: 210vh;
}

h1{
    position: relative;
    left: 5%;
    font-size: 2em;
    color: #f1f1f1;
}

h2 {
    position: relative;
    left: 10%;
    top: 50%;
    color: #f1f1f1;
    
}

h3 {
    position: relative;
    left: 12%;
    top: 60%;
    color: #f1f1f1;
    text-align: justify;
}

/*tablet*/
@media (min-width: 768px) and (max-width: 1024px) {

    .wrapper {
        max-width: 1600px;
        padding: 0 140px;
        position: relative;
    }

    .container-presentation {
        max-width: 1600px;
        display: grid;
        position: absolute;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(2, 1fr);
        width: 100%;
        height: 100vh;
        animation: scroll 5s linear;
        animation-timeline: view();
        animation-range: entry 5%;
    }

    .textpres {
        padding: 0 100px;
        font-size: 1.5em;
        font-weight: bold;
        text-align: justify;
        color: #f1f1f1;
    }

    .section {
        display: flex;
        justify-content: center; 
        align-items: center; 
        padding: 0 10px;
    }

    .section img {
        width: 300px;
        border-radius: 50%;
        border: 10px solid #f1f1f1;
    }

    .my-education {
        max-width: 1600px;
        display: grid;
        position: absolute;
        width: 100%;
        height: 100vh;
        top: 100vh;
        animation: scroll 5s linear;
        animation-timeline: view();
        animation-range: entry 0%;
    }

    .wrapper .mid-line {
        position: absolute;
        height: 1px; 
        background: repeating-linear-gradient(90deg, #f1f1f1 0, #f1f1f1 10px, transparent 5px, transparent 20px);
        width: 80%;
        left: 50%;
        top: 42%;
        transform: translateX(-50%);
    }
}

/*mobile*/
@media (min-width: 400px) and (max-width: 767px) {

    .wrapper {
        max-width: 767px;
        padding: 0 25px;
        position: relative;
    }

    .container-presentation {
        display: grid;
        position: absolute;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(2, 1fr);
        width: 100%;
        height: 100vh;
        animation: scroll 5s linear;
        animation-timeline: view();
        animation-range: entry 5%;
    }

    .textpres {
        padding: 0 35px;
        font-size: 1.5em;
        font-weight: bold;
        text-align: justify;
        color: #f1f1f1;
    }

    .section {
        display: flex;
        justify-content: center; 
        align-items: center; 
        padding: 0 10px;
    }

    .section img {
        width: 250px;
        border-radius: 50%;
        border: 10px solid #f1f1f1;
    }

    .my-education {
        display: grid;
        position: absolute;
        width: 100%;
        height: 100vh;
        top: 100vh;
        animation: scroll 5s linear;
        animation-timeline: view();
        animation-range: entry 0%;
    }

    .wrapper .mid-line {
        max-width: 767px;
        position: absolute;
        height: 1px; 
        background: repeating-linear-gradient(90deg, #f1f1f1 0, #f1f1f1 10px, transparent 5px, transparent 20px);
        width: 80%;
        left: 50%;
        top: 42%;
        transform: translateX(-50%);
    }
}