*{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
:root{
    --mainColor: #0F2B46;
    --backgroundColor: #FAFBFF;
    --radiusBackground: 15px;
    --light: white;
    --dark: black;
    --faBrands: #363636;
    --separator-color: #0F2B46;
    --backgroundBody: white;
    --fontColor: black;
    --textContentBiographie: white;
    --liUnderline: #0F2B46;
    --modalContent: #0F2B46;
}

body.night{
        --mainColor: #0F2B46;
        --backgroundColor: #4f4f4f;
        --radiusBackground: 15px;
        --light: #363636;
        --dark: black;
        --faBrands: white;
        --separator-color: #0F2B46;
        --backgroundBody: #363636;
        --fontColor: white;
        --textContentBiographie: white;
        --liUnderline: white;
        --modalContent: white;
        transition: all .4s ease;
}

body{
    position: relative;
    background-color: var(--backgroundBody);
    transition: all .4s ease;
}

h1, h2, h3, p, span, a{
    color: var(--fontColor);
}
a:visited {
    color: inherit;
}
section:target{
    padding-top: 74px;
    margin-top: -74px;
}
a {text-decoration: none;}

/* header */
/* navbar */
nav li::after{
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--liUnderline);
    transition: width .3s;
    margin-top: 2px;
}
nav li:last-child::after{
    content: none;
}
nav li:hover::after {
    width: 100%;
    transition: width .3s;
}
ul.menu a {
    color: var(--dark);
}
#logo {
    width: 65px;
    margin-left: 20px;
}
div.logo{
    align-self: center;
}
header.menu-container{
    background-color: var(--light);
    /* box-shadow: 0 0 7px rgb(0 0 0 / 44%); */
    display: flex;
    justify-content: space-between;
    width: 100%;
    top: 0;
    position: fixed;
    z-index: 2;
    transition: all .4s ease;
}
header.menu-container.sticky{
    box-shadow: 0 0 7px rgb(0 0 0 / 44%);
    transition: 0.4s;
}
.menu-content {
    display: flex;
    max-width: 1170px;
    width: 100%;
    justify-content: space-between;
    margin: 0 auto;
    height: 75px;
}
nav {
    align-self: center;
}
nav ul {
    display: flex;
    padding: 0 25px;
    margin: 0;
}   

nav li:not(:last-child) {
    margin-right: 50px;
}
li {
    display: inline;
}
ul.menu li a i{
    display: none;
}
/* darkmode */
button{
    background: none;
    border: none;
    font-size: 10px;
}
.fa-solid.fa-moon{
    font-size: 20px;
    cursor: pointer;
}
body.night i.fa-solid.fa-moon::before{
    content: "\f185";
}


/* container */
.container.main{
    margin-top: 90px;
    transition: all .4s ease;
}
.container{
    padding: 0 20px;
    max-width: 1170px;
    width: 100%;
    margin: 0 auto;
    margin-top: 40px;
}
/* biographie / intro */
h1.title{font-weight: normal;}
.title{
    font-size: 45px;
}
.bold{font-weight: bold;}
.container-content.biographie{
    background-image: url(hi.png);
    background-repeat: no-repeat;
    background-size: 480px;
    background-position: right bottom;
    background-color: var(--backgroundColor);
    border-radius: var(--radiusBackground);
    padding: 40px;
    display: flex;
    transition: 0.4s;
}
.container-content.biographie .description{
    margin-top: 20px;
    font-size: 20px;
}

.container-content.biographie a{
    background-color: var(--mainColor);
    border-radius: 50px;
    padding: 10px 20px;
    color: var(--textContentBiographie);
    margin-top: 20px;
    font-weight: bold;
    display: inline-block;
}
.left-container, .right-container{
    width: 50%;
}
img.emoji{
    width: 50px;
    transform: translatey(5px);
    z-index: 1;
    position: relative;
}


/* compétences */
section#competences h2{
    margin-top: 40px;
}
h2{
    text-align: center;
}
.separator {
    content: '';
    background: var(--separator-color);
    width: 50px;
    height: 8px;
    border-radius: 10px;
    margin: 10px auto;
    box-sizing: border-box;
    display: flex;
}
section#competences div.container-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 50px;
    gap: 20px;
}
i.fa-brands, i.fa-solid {
    font-size: 70px;
    color: var(--faBrands);
}
.fa-html5:hover {
    color: #e96228;
}
.fa-css3-alt:hover{
    color: #2762e9;
}
.fa-square-js:hover{
    color: #efd81b;
}
.fa-php:hover{
    color: #7377ae;
}
.fa-wordpress:hover{
    color: #076b93;
}
.fa-yoast:hover{
    color: #9e2567;
}
.fa-linux:hover{
    color: #f0ba21;
}
.fa-java:hover{
    color: #e22d2c;
}
.fa-bootstrap:hover{
    color: #7710f1;
}
.fa-cpanel:hover{
    color: #f0661d;
}
.fa-github:hover{
    color: #e84e32;
}
.fa-docker:hover{
    color: #2491e6;
}
.fa-figma:hover{
    background: linear-gradient(180deg, rgba(10,201,127,1) 0%, rgba(157,86,246,1) 50%, rgba(248,109,96,1) 100%);
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* experiences */
div.container-content.experiences{
    background: var(--backgroundColor);
    border-radius: var(--radiusBackground);
    padding: 40px;
    transition: all .4s ease;
}

div.container-content.experiences article{
    display: flex;
    margin-top: 40px;
    margin-bottom: 20px;
}
div.container-content.experiences article img{
    height: 90px;
    margin-right: 20px;
}


/* send mails popin */
div.popinMail:hover{
    transform: scale(1.1);
    transition: .4s;
}
div.popinMail {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--mainColor);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: .4s;
}
div.popinMail:not(.popinMail.open) i.fa-paper-plane{
    font-size: 40px;
    color: white;
    position: absolute;
    left: 16px;
    transform: rotate(0deg);
    animation: animateHeart 2s infinite;
}
div.modalContact{   
    position: fixed;
    min-height: 43vh;
    max-width: 495px;
    width: calc(100vw - 40px);
    bottom: 130px;
    right: -100vw;
    z-index: 1000;
    border-radius: var(--radiusBackground);
    background-color: var(--backgroundColor);
    overflow: hidden;
    box-shadow: 0 0 7px rgb(0 0 0 / 44%);
    opacity: 0;
    transition: all .4s ease-out;
}
div.modalContact.open{
    right: 20px;
    transition: all .4s ease-out;
    opacity: 1;
}
div.modalOpenClose{
    background-color: var(--mainColor);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
div.modalContent{
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.modalOpenClose i {
    font-size: 25px;
    color: white;
    padding: 0 20px;
    cursor: pointer;
}
.modalContent > div i {
    font-size: 65px;
    padding: 0 30px;
    color: var(--modalContent);
    transition: all .3s;
}
.modalContent > div i:hover{
    transform: scale(1.08);
}
i.fa-solid.fa-phone {
    font-size: 60px;
}
i.fa-solid.fa-envelope {
    font-size: 68px;
}
.popinMail.open i.fa-solid.fa-paper-plane{
    font-size: 30px;
    color: white;
    position: absolute;
    transform: rotate(180deg);
    transition: all .4s ease;
}
.popinMail.open .fa-solid.fa-paper-plane::before{
    content: "\f077";
}
.modalContent > div {
    margin-top: 50px;
}
/* animation bounce de l'avion en papier (popin) */
@keyframes animateHeart {
    0% {
        transform: scale(0.8);
    }
    20% {
        transform: scale(0.9);
    }
    25% {
        transform: scale(0.8);
    }
    40% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
  }

/* media queries */


/* menu mobile */
@media screen and (max-width: 860px){
    section:target{
        padding-top: 2px;
        margin-top: -2px;
    }
    .container.main{
        margin-top: 40px;
    }
    .menu-content{
        height: 80px;
        padding-right: 80px;
        padding-left:80px;
        justify-content: center;
    }
    header.menu-container{
        top: auto;
        bottom: 30px;
        right: 30px;
        border-radius: 100px;
        width: calc(100vw - 60px);
        z-index: 0;
        box-shadow: 0 0 7px rgb(0 0 0 / 44%);
    }
    nav-menu{
        position: absolute;
        left: 100px;
    }
    nav ul{padding: 0;}
    nav li:not(:last-child) {
        margin-right: 25px;
    }
    #logo {
        width: 65px;
        margin-left: 0px;
        position: absolute;
        bottom: 10px;
        left: 20px;
    }
    
    ul.menu li a i{
        display: flex;
        font-size: 40px;
    }
    ul.menu a {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
    ul.menu li a span {
        display: none;
    }
    nav li::after{
        content: none;
    }
    /* icones mobile popup */
    i.fa-solid.fa-envelope {
        font-size: 50px;
    }
    .modalContent > div i{
        font-size: 48px;
    }
    i.fa-solid.fa-phone {
        font-size: 46px;
    }
    .nav-menu ul.menu button{
        display: none;
    }
}

@media screen and (max-width:800px) {
    .container-content.biographie{
        background-image: none;
    }
    .left-container, .right-container{
        width: 100%;
    }
    div.container-content.experiences article{
        flex-direction: column;
        align-items: center;
    }
    div.container-content.experiences article img{
        margin-right: 0px;
        margin-bottom: 20px;
    }
}
