* {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.4;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    background-image: linear-gradient(rgba(46, 43, 57, 0.5), rgba(46, 43, 57, 0.5)), url(../images/background4.png);
    background-repeat: no-repeat;
    background-size: cover;
    color: whitesmoke;
    width: 100%;
    margin: auto;
    font-family: Special Elite, verdana, sans-serif;

    #hero {
        height: 100vh;
        background-image: linear-gradient(rgba(46, 43, 57, 0.6), rgba(46, 43, 57, 0.6)), url(../images/fondHero.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;

        #navbar {
            display: flex;
            justify-content: center;
            height: 6rem;
            z-index: 50;

            nav {
                width: 100%;
                display: flex;
                justify-content: space-between;
                position: fixed;
                border-bottom: 1px solid #ccc;
                height: inherit;
                -webkit-backdrop-filter: blur(4px);
                backdrop-filter: blur(4px);
                z-index: 10;

                .nav-toggle {
                    display: none;
                }

                img {
                    width: 4rem;
                    margin: 10px;
                    filter: drop-shadow(5px 5px 2px rgba(0, 0, 0, 1));

                    &:hover {
                        transform: scale(0.9);
                        transition: transform 0.2s ease-in-out;
                        transform-origin: center;
                    }
                }

                .menu {
                    width: 70%;
                    display: flex;
                    justify-content: flex-end;
                    align-items: center;

                    li {
                        width: 20%;
                        margin: 1rem;
                        text-align: center;

                        &:hover {
                            transform: scale(0.9);
                            transition: transform 0.2s ease-in-out;
                            transform-origin: center;
                        }

                        a {
                            text-decoration: none;
                            text-shadow: 1px 1px 0 black;
                            font-size: 1.2rem;
                            font-weight: bold;
                            color: whitesmoke;
                            border-right: 1px solid whitesmoke;
                            border-left: 1px solid whitesmoke;
                            padding: 0.2rem 1rem;
                        }
                    }
                }
            }
        }
    }

    div {

        h1 {

            font-size: 3.2rem;
            font-weight: bold;
            text-align: left;
            margin: 10rem 2.5%;

            span {
                display: block;
                text-shadow: 1px 1px 3px black;
            }
        }

        p {
            font-size: 1.5rem;
            font-weight: 300;
            text-align: center;
            margin-top: 5rem;
            text-shadow: 1px 1px 0 black;
        }
    }

    main {

        section {
            margin-bottom: 50px;
            display: flex;
            flex-direction: column;
            align-items: center;

            .section-title {
                width: 95%;
                border-top: 1px solid whitesmoke;
                border-bottom: 1px solid whitesmoke;
                text-shadow: 1px 1px 0 black;
                padding: 1.5rem 0;
                margin: 0 auto 3rem;
                filter: drop-shadow(10px 10px 10px rgb(0, 0, 0));

                h2 {
                    text-align: center;
                    width: 15%;
                    margin: auto;
                    border-right: 1px solid whitesmoke;
                    border-left: 1px solid whitesmoke;
                }
            }

            .content {
                display: flex;
                justify-content: space-around;
                width: 95%;
            }

            &#about {
                .content {

                    #map {
                        width: 50%;
                        text-align: center;

                        img {
                            width: 80%;
                            filter: drop-shadow(30px 30px 15px rgb(0, 0, 0));
                        }
                    }

                    #presentation {
                        width: 50%;
                        border-left: 1px solid whitesmoke;

                        p {
                            font-size: 1rem;
                            text-align: left;
                            padding: 0 4rem 0;
                            margin-top: 1rem;
                        }
                    }
                }
            }

            &#time-line {
                position: relative;

                .time-line-year {
                    font-family: Special Elite, verdana, sans-serif;
                    font-size: 1.5rem;
                }

                .vertical-line {
                    position: absolute;
                    left: 50%;
                    top: 8rem;
                    bottom: 0;
                    width: 2px;
                    height: 85%;
                    margin: auto;
                    background-color: rgb(252, 252, 252);
                    transform: translateX(-50%);
                    z-index: 0;

                    .point {
                        position: absolute;
                        width: 14px;
                        height: 14px;
                        background-color: rgb(255, 255, 255);
                        border-radius: 50%;
                        transform: translate(-50%, -50%);
                        box-shadow: 0 0 0 3px rgb(46, 43, 57);

                        &:nth-child(1) {
                            top: 0%;
                        }

                        &:nth-child(2) {
                            top: 25%;
                        }

                        &:nth-child(3) {
                            top: 50%;
                        }

                        &:nth-child(4) {
                            top: 75%;
                        }

                        &:nth-child(5) {
                            top: 100%;
                        }
                    }
                }

                ul {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    gap: 5rem;

                    li {
                        display: flex;
                        justify-content: space-evenly;
                        width: 50%;

                        div {
                            width: 60%;
                            border-bottom: 1px solid whitesmoke;

                            h3 {
                                font-size: 1.5rem;
                                text-align: center;
                                padding: 5px;
                                filter: drop-shadow(10px 10px 10px rgb(0, 0, 0));
                            }

                            p {
                                font-size: 1rem;
                                padding: 1rem;
                                margin: 0;
                            }
                        }

                        &:nth-child(odd) {
                            margin-left: 50%;

                            div {
                                border-left: 1px solid whitesmoke;
                            }
                        }

                        &:nth-child(even) {
                            margin-right: 50%;
                            flex-direction: row-reverse;

                            div {
                                border-right: 1px solid whitesmoke;
                            }
                        }
                    }
                }
            }

            .big-number {
                font-family: Impact, verdana, sans-serif;
                font-size: 14rem;
                line-height: 0.8;
                align-self: center;
                background-image: linear-gradient(rgba(46, 43, 57, 0.6), rgba(46, 43, 57, 0.6)), url(../images/fondHero.png);
                background-size: cover;
                background-position: center;
                background-attachment: fixed;
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                -webkit-text-stroke: 1px rgb(255, 255, 255);
            }

            @-moz-document url-prefix() {
                .big-number {
                    /* fallback visible pour Firefox car background-attachment: fixed; est non supporté */
                    background: none;
                    color: white;
                    -webkit-text-fill-color: transparent;
                    -webkit-text-stroke: 2px rgb(255, 255, 255);
                }
            }

            &#skills {
                display: flex;

                .content {
                    border-top: 1px solid whitesmoke;
                    border-bottom: 1px solid whitesmoke;
                    height: 60vh;

                    h3 {
                        text-align: center;
                        font-size: 1.5rem;
                        margin: 1rem;
                        filter: drop-shadow(10px 10px 10px rgb(0, 0, 0));
                    }

                    #hard-skills {
                        width: 50%;
                        border-right: 1px solid whitesmoke;

                        ul {
                            width: 100%;
                            display: flex;
                            flex-wrap: wrap;
                            justify-content: space-evenly;

                            li {
                                width: 20%;
                                text-align: center;
                                align-self: baseline;
                                margin: 1rem auto;

                                img {
                                    width: 35%;
                                    filter: drop-shadow(10px 10px 10px rgb(0, 0, 0));
                                }

                                p {
                                    font-size: 1rem;
                                    margin: 0;
                                }
                            }
                        }
                    }

                    #soft-and-values {
                        width: 50%;

                        div {
                            &#soft-skills {
                                border-bottom: 1px solid whitesmoke;
                                height: 50%;

                                ul {
                                    li {
                                        width: 33%;
                                    }
                                }
                            }

                            ul {
                                width: 100%;
                                display: flex;
                                flex-wrap: wrap;
                                justify-content: space-evenly;

                                li {
                                    width: 50%;

                                    p {
                                        font-size: 1rem;
                                        margin: 0.7rem 0;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            &#projects {

                .content {

                    ul {
                        display: flex;
                        justify-content: space-around;
                        flex-wrap: wrap;

                        .project-card {
                            width: 40%;
                            min-height: 60vh;
                            background-color: rgba(86, 86, 86, 0.3);
                            display: flex;
                            flex-direction: row;
                            flex-wrap: wrap;
                            border-left: 1px solid whitesmoke;
                            border-bottom: 1px solid whitesmoke;
                            border-radius: 5px;
                            box-shadow: 5px -5px 25px rgb(86, 86, 86);
                            padding: 1rem;
                            margin-bottom: 2rem;

                            div {
                                display: flex;
                                flex-direction: column-reverse;
                                justify-content: space-between;
                                width: 50%;

                                a {
                                    text-decoration: none;
                                    color: whitesmoke;

                                    h3 {
                                        font-size: 1.5rem;
                                        filter: drop-shadow(10px 10px 10px rgb(0, 0, 0));
                                    }

                                    &:hover {
                                        transform: scale(0.9);
                                        transition: transform 0.2s ease-in-out;
                                        transform-origin: center;
                                        color: rgb(139, 139, 139);
                                    }
                                }

                                img {
                                    width: 100%;
                                    height: auto;
                                    border-radius: 5px;
                                    box-shadow: 5px -5px 25px rgb(17, 17, 17);
                                    margin: 0;
                                }

                                &.project-description {

                                    display: flex;
                                    flex-direction: column;
                                    justify-content: space-between;

                                    div {
                                        flex-direction: column;
                                        width: unset;

                                        p {
                                            font-size: 1rem;
                                            text-align: right;
                                            margin: 0.5rem;
                                            padding-left: 1rem;

                                            &.big-number {
                                                font-size: 10rem;
                                                text-shadow: none;
                                                align-self: flex-end;
                                            }

                                            a {
                                                text-decoration: none;
                                                font-style: italic;
                                                color: rgb(139, 139, 139);

                                                &:hover {
                                                    color: rgb(205, 205, 205);
                                                    filter: drop-shadow(10px 10px 10px rgb(0, 0, 0));
                                                }
                                            }
                                        }

                                    }

                                    .project-technos {
                                        width: 100%;
                                        display: flex;
                                        flex-direction: row;
                                        justify-content: flex-end;

                                        img {
                                            width: 10%;
                                            border: initial;
                                            filter: drop-shadow(5px 5px 10px rgb(0, 0, 0));
                                            margin: 0.5rem;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }

            &#contact {

                .content {
                    flex-direction: column;
                    margin-bottom: 4rem;

                    #contact-form {
                        height: 45vh;

                        div {
                            display: flex;
                            justify-content: space-between;

                            label {
                                font-size: 1.2rem;
                                margin-bottom: 1rem;
                            }

                            &.input-group {
                                flex-direction: column;
                                width: 30%;


                                .input-form {
                                    background-color: transparent;
                                    border: unset;
                                    border-bottom: 1px solid whitesmoke;
                                    border-left: 1px solid whitesmoke;
                                    padding-left: 5px;
                                    color: rgb(200, 200, 200);
                                    font-size: 1rem;
                                    height: 1.5rem;
                                }
                            }

                            &.message-input-group {

                                flex-direction: column;
                                width: 100%;
                                height: 40%;
                                margin-top: 2rem;

                                #message {
                                    min-height: 100%;
                                    color: rgb(200, 200, 200);
                                    font-size: 1rem;
                                    background-color: transparent;
                                    border: unset;
                                    border-bottom: 1px solid whitesmoke;
                                    border-left: 1px solid whitesmoke;
                                    padding: 5px;
                                    resize: both;
                                }

                                #submit-button {
                                    background-color: transparent;
                                    font-family: Special Elite, verdana, sans-serif;
                                    align-self: center;
                                    width: 10rem;
                                    margin-top: 2rem;
                                    font-size: 1.5rem;
                                    color: whitesmoke;
                                    border: unset;
                                    border-left: 1px solid whitesmoke;
                                    border-right: 1px solid whitesmoke;

                                    &:hover {
                                        transform: scale(0.9);
                                        transition: transform 0.2s ease-in-out;
                                        transform-origin: center;
                                        cursor: pointer;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }


    footer {
        color: #ccc;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2rem 3rem;
        flex-wrap: wrap;
        border-top: 1px solid #ccc;

        .footer-left {
            display: flex;
            align-items: center;
            gap: 20px;

            .footer-logo {
                height: 50px;
            }

            p {
                margin: 0;
                font-size: 0.9rem;
                text-align: left;
            }
        }

        .footer-right {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;

            .socials {
                display: flex;
                gap: 20px;


                .social-icon {
                    width: 30px;

                    &:hover {
                        transform: scale(0.9);
                        transition: transform 0.2s ease-in-out;
                        transform-origin: center;
                    }

                    a {
                        color: #ccc;
                        font-size: 18px;
                        text-decoration: none;
                    }
                }
            }

            .footer-links {
                display: flex;
                gap: 15px;
                border-left: 1px solid whitesmoke;
                padding-left: 15px;

                a {
                    color: #ccc;
                    text-decoration: none;
                    font-size: 1.5rem;

                    &:hover {
                        color: white;
                    }
                }
            }
        }
    }
}




/*------------------ MEDIA QUERIES ----------------------------- */


/* Ecrans ≥1800px (xxl) */
@media screen and (min-width: 1800px) {
  html {
    font-size: 20px;
  }
}

/* Tablette */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;

        body {
            main {
                section {
                    .section-title {
                        h2 {
                            width: 30%;
                        }
                    }

                    .content {
                        flex-direction: column;
                    }

                    .big-number {
                        font-size: 10rem;
                    }

                    &#about {
                        .content {
                            #map {
                                width: 100%;
                            }

                            #presentation {
                                width: 100%;
                                border: unset;
                            }
                        }
                    }

                    &#time-line {
                        .time-line-year {
                            align-self: flex-start;
                            margin-left: 1rem;
                        }

                        .vertical-line {
                            left: 3rem;
                        }

                        ul {
                            align-items: start;
                            width: 80%;
                            margin-left: 5rem;

                            li {
                                width: 100%;
                                margin: 0 !important;
                            }
                        }
                    }

                    &#skills {
                        .content {
                            height: unset;
                            border: unset;

                            #hard-skills {
                                width: 100%;
                                border: unset;
                                border-bottom: 1px solid whitesmoke;
                            }

                            #soft-and-values {
                                width: 100%;
                            }
                        }
                    }

                    &#projects {
                        .content {
                            ul {

                                flex-direction: column;
                                align-items: flex-start;

                                .project-card {
                                    width: 100%;
                                    min-height: unset;
                                    margin-bottom: 2rem;
                                    padding: unset;
                                    justify-self: flex-start;

                                    div {
                                        width: 100%;
                                        align-items: center;

                                        a {
                                            h3 {
                                                margin: 1rem;
                                            }
                                        }

                                        &.project-description {
                                            div {
                                                flex-direction: row;

                                                p {
                                                    margin: 2rem 1rem;
                                                }
                                            }

                                            .project-technos {
                                                margin: 1rem;

                                                img {
                                                    width: 7%;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }

                    &#contact {
                        .content {
                            #contact-form {
                                height: unset !important;

                                div {
                                    #message {
                                        height: 10rem !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            footer {
                flex-direction: column;

                .footer-right {
                    margin-top: 2rem;
                }
            }
        }
    }
}


/* Smartphone */
@media screen and (max-width: 480px) {
    html {
        font-size: 12px;

        body {
            #hero {
                #navbar {
                    nav {
                        justify-content: space-between;
                        align-items: center;

                        /* bouton burger */
                        .burger {
                            display: flex;
                            flex-direction: column;
                            justify-content: space-around;
                            width: 2.5rem;
                            height: 2rem;
                            margin-right: 1.5rem;
                            z-index: 50;

                            span {
                                width: 100%;
                                height: 3px;
                                background: whitesmoke;
                                border-radius: 2px;
                                transition: transform 0.3s ease, opacity 0.3s ease;
                            }
                        }

                        /* menu mobile caché par défaut */
                        .menu {
                            display: none;
                            flex-direction: column;
                            position: fixed;
                            top: 6rem;
                            /* sous la navbar */
                            right: 0;
                            width: 30%;
                            padding-top: 1rem;
                            z-index: 50;

                            li {
                                width: 100%;
                                margin: 0.2rem;

                                a {
                                    display: block;
                                    border: unset;
                                    background: linear-gradient(90deg, rgba(235, 237, 247, 0.1) 0%, rgba(46, 43, 57, 0.8) 100%);
                                    text-shadow: 1px 1px 3px black;
                                    padding: 0.5rem 1rem;
                                    text-align: right;
                                }
                            }
                        }

                        /* animations du burger + affichage du menu au check */
                        .nav-toggle:checked+.burger span:nth-child(1) {
                            transform: translateY(8px) rotate(45deg);
                        }

                        .nav-toggle:checked+.burger span:nth-child(2) {
                            opacity: 0;
                        }

                        .nav-toggle:checked+.burger span:nth-child(3) {
                            transform: translateY(-8px) rotate(-45deg);
                        }

                        .nav-toggle:checked~.menu {
                            display: flex;
                        }
                    }
                }
            }

            #contact {
                .content {
                    #contact-form {
                        div {
                            flex-direction: column;
                            width: 100%;

                            &.input-group {
                                width: 100% !important;
                                margin-top: 2rem;
                            }
                        }
                    }
                }
            }
        }
    }
}