body {
    font-family: "Montserrat", "Roboto", sans-serif;
    background: linear-gradient(to right,
            #CDD9BA 0%,
            #CDD9BA 40%,
            #F2F2F0 40%,
            #F2F2F0 100%);
    color: #434b56;
    
}
@media screen and (max-width:1024px){
    body {
        font-family: "Montserrat", "Roboto", sans-serif;
        background: 
        #F2F2F0;
        width: 100%;
        margin: 0;
    }
}
    

/* Header */
header {
    position: fixed;
    top:0;
    width: 100%;
    background-color: #F2F2F0;
    z-index: 5;
    height: 100px;

}

header .content {
    display: flex;
    align-items: center;
    padding: 1.9rem;
}

header .logo {
    flex: 1;
}

.logo img {
    width: 165px;
    margin-top: -10px;
}


header nav ul {
    display: flex;
}

nav li {
    padding-left: 3.5rem;
    font-weight: 300;
}

nav li:hover {
    opacity: 0.5;
    transition: all 0.4s ease;
}

nav a {
    vertical-align: bottom;
    line-height: 1.6;
    font-size: 1rem;
    color: #4a4a4a;
}
header .mobile {
    display: none;
}
.content .menu-button{
    width: 30px;
    display: none;
}

@media screen and (max-width: 940px){ /* Iphone screen size */
  .desktop {
    position: fixed;        /* fixe sur tout l’écran */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;           /* couvre tout l’écran, même sur mobile */
    background-color: rgba(191, 183, 183, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -100%;
    transition: all 0.5s ease;
    z-index: 999;           /* au-dessus de tout */
}
    .desktop.mobile-menu{
        margin-left: 0;
    }
    header .content .desktop ul{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        width: 100%;
        list-style: none;
    }
    header .content .desktop ul li{
        width: 100%;
        text-align: center;
        margin: 15px 0; /* espace régulier entre les liens */
    }
    header .content .desktop ul li a{
        font-size: 1.5rem;
        display: block;
        width: 100%;
        text-align: center;
        color: #4a4a4a;
        text-decoration: none;
    }
    header .content{
        padding: 0;
    }
    header .content .logo h1{
        font-size: 1.2rem;
        padding-top: 1.9rem;
        padding-left: 1.9rem;
    }
    header .content .logo p{
        font-size: 0.7rem;
        padding-left: 1.9rem;
    }
    .content .menu-button{
        top: 0;
        right: 0;
        position: absolute;
        display: flex;
        padding: 1.9rem;
    }
}

@media screen and (min-width: 940px) and (max-width:1040px){ /* Ipad Pro responsive*/
    .desktop{
        position: absolute;
        background-color: rgba(191, 183, 183, 0.369);
        backdrop-filter: blur(15px);
        width: 100%;
        min-height: 100vh;
        display: flex;
        top:0;
        left: 0;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s ease;
    }
    .desktop.mobile-menu{
        margin-left: 0;
        
    }
    header .content .desktop ul{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    header .content .desktop ul li{
        margin: 25px 0;
    }
    header .content .desktop ul li a{
        font-size: 2rem;
    }
    header .content{
        padding: 0;
    }
    header .content .logo h1{
        font-size: 1.2rem;
        padding-top: 1.9rem;
        padding-left: 1.9rem;
    }
    header .content .logo p{
        font-size: 0.7rem;
        padding-left: 1.9rem;
    }
    .content .menu-button{
        top: 0;
        right: 0;
        position: absolute;
        display: flex;
        padding: 1.9rem;
    }

}

.openbox {
    padding: 0 3rem 2rem 3rem;
    border: solid 1px #F28080;
    background-color: #F28080;
    width: 250px;
    height: 400px;
    margin-left: 25%;
    margin-top: 150px;
    justify-content: center;
    box-shadow: -2px 10px 20px 20px rgba(1, 1, 1, 0.2);
    border-radius: 10px;
}

#first-section .linebox {
    margin-top: 15px;
    height: 1px;
    width: 100%;
    background-color: black;
}

#first-section .openbox .imgprofile {
    border: solid 1px #F28080;
    border-radius: 100%;
    margin-top: 15px;
    width: 100%;
}

#first-section .openbox h2 {
    justify-content: center;
    display: flex;
    font-size: 1.5rem;
    margin-top: 15px;
}

#first-section .openbox p {
    justify-content: center;
    display: flex;
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 30px;
    color: black;
}

#first-section .box-social {
    display:flex;
    justify-content: space-around;
    margin-top: 30px;
    padding: 0;
}

#first-section .box-social img {
    width: 50px;
    margin: 0 auto;
}


/* Resume Section */
.resume {
    width: 48%;
    float: right;
    display: block;
    flex-direction: column;
    margin-top: -400px;
    margin-bottom: 50px;
}
.resume-title{
    margin-bottom: 2rem;
}
.resume .resume-title h1{
    font-size: 3rem;
    display: flex;
    justify-content: start;

}
.resume .resume-title p{
    font-size: 1.5rem;
    display: flex;
    justify-content: start;

}
.resume .resume-p {
    font-size: 1rem;
    text-align: left;
    line-height: 1.3rem;
    width: 80%;
    display: flex;
    justify-content: start;
    margin-top: 15px;
    font-weight: normal;

}
.resume button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 300px;
    height: 30px;
    border: 1px solid black;
    border-radius: 10px;
    margin-left: 100px;
    margin-top: 2rem;
    background-color: #F28080 ;
    border-color: #F28080;
    color: #434b56;
}
.resume button:hover{
    background-color: #434b56 ;
    border-color: #434b56;
    color: #F28080;
    transition: all 0.4s ease;
}

@media only screen and (max-width: 940px){ /*Mobile phone responsive*/
    .openbox{
        margin-top: 15vh;
        margin-left: auto;
        margin-right: auto;
    }
    .resume {
        display: flex;
        flex-direction: column;
        margin-top: 50px;
        margin-right: auto;
        margin-left: auto;
        width: 100%;
    
    }
    .resume button{
        display: flex;
        text-decoration: none;
        color: black;
        margin: 10px;
    }
    .resume .resume-title h1{
        display: flex;
        justify-content: center;
        font-size: 2rem;
        align-items: center;
        width: 100%;
    }
    .resume .resume-title p{
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.2rem;
        width: 100%;
        margin-bottom: 10px;
    }

    .resume-p{
        display: flex;
        flex-direction: column;
        margin-top: 100px; /* moins haut pour rapprocher de openbox */
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        max-width: 500px;
        text-align: center;
        align-items: center;
    }
    .resume-p p{
        width: 100%;
        margin-top: 20px;
        margin-bottom: 100px;
        font-weight: bold;
        text-align: justify;
    }
}
@media screen and (min-width:940px) and (max-width:1040px){ /*Ipad Pro responsive*/
    .resume{
        width:35%;
    }
}


@media only screen and (max-width: 940px){
    #contact-section{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin: 0 auto;
    }
    #contact-section h1{
        margin-bottom: 40px;
    }
}
@media only screen and (min-width: 940px) and (max-width: 1040px){
    #contact-section{
        height:50vh;
    }
    footer p{
        position: relative;
        display: flex;
        bottom: 0;
    }
}
html {
    scroll-behavior: smooth;
}
:target::before {
    content: "";
    display: block;
    height: 100px; /* Hauteur de ton header */
    margin-top: -100px;
}
:target {
    scroll-margin-top: 100px; /* adapte à la hauteur de ton header */
}