* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.apercu-flex {
    display: flex;
}

.img-size-max {
    margin-top: 15px;
    margin-bottom: 15px;
    margin: 15px 1px 15px 1px;
    max-width: 250px;
    max-height: 70%;
    object-fit: cover;
    object-position: 100% 3%;
}

.img-align-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#apercu4 {
    margin-top: 15px;
    margin-bottom: 15px;
    margin: 15px 1px 15px 1px;
    max-width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: 100% 3%;
}

#head {
    width: 100%;
    height: 600px;
}
#head img {
    width: 100%;
    height: 400px;
    margin-top: -65px;
    object-fit: cover; 
    object-position: 100% 80% ;
}
#head h1 {
    margin-top: 2%;
}
#nav-bar-verti {
    max-width: 30%;
    font-size: 20px;
}
#img-moi {
    width: 170px;
    height: auto;
    padding-top: 40px;
}
#about-me {
    width: 70%;
}
#about-me-inside {
    margin-top: 5%;
    /* background-color: blueviolet; */
}
#about-me-inside p {
    font-size: 20px;
    margin: 5px;
    padding: 20px;
    /* background-color: antiquewhite; */
}
.w3-row {
    /* margin: 15px; */
    border-radius: 10px;
    /* background-color: rgb(160, 160, 251); */
}
#titre-work-bloc {
    max-height: 200px;
    max-width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
}
.bloc-my-work {
    width: 100%;
}
#captions {
    position: relative;
    margin-top: 25px;
    display: flex;
    width: 100%;
    justify-content: space-around;
}
#captions p:nth-child(1) {
    margin-left: 30px;
}

#captions p:nth-child(3) {
    margin-right: 40px;
    margin-bottom: 10px;
}

#captions p:nth-child(4) {
    margin-right: 15px;
    margin-bottom: 10px;
}
#footer {
    /* width: 200px; */
    margin-top: 5px;
    height: 60px;
}
#footer p {
    font-size: 5px;
    margin-top: 5px;
}

@media screen and (max-width: 780px) {
    .apercu-flex {
        flex-direction: column;
    }
    .img-size-max {
    max-width: 350px;
    max-height: 150px;
    object-fit: cover;
    object-position: 100% 3%;
    }
    #img-moi {
        width: 170px;
        height: auto;
        padding-top: 20px;
    }
    #img-moi {
        width: 70px;
        height: auto;
        padding-top: 20px;
    }
    #nav-bar-verti a {
        font-size: 10px;
        margin: 15px 0px;
    }
    /* #about-me {
        background-color: blue;
    } */
    #about-me-inside {
        margin-top: 15%;
        /* background-color: aqua; */
    }
    #about-me-inside p {
        margin-top: -15%;
        padding-right: 5px;
        /* background-color: aqua; */
    }
    #captions {
        display: none;
    }
}

@media screen and (min-width: 600px) and (max-width: 780px) {
    .apercu-flex {
        display: flex;
        flex-direction: column;
        justify-self: center;
        margin-left: 35%;
    }
    .img-size-max {
        max-width: 350px;
        max-height: 150px;
        object-fit: cover;
        object-position: 100% 3%;
    }
    #img-moi {
        width: 190px;
        height: auto;
        padding-top: 20px;
    }
    #img-moi {
        width: 90px;
        height: auto;
        padding-top: 20px;
    }
    #nav-bar-verti a {
        font-size: 16px;
        margin: 15px 0px;
    }
    #about-me-inside {
        margin-top: 10%;
    }
    #about-me-inside h1 {
        margin-bottom: 10%;
    }
    .bloc-my-work {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        justify-items: center;
    }
    #captions {
        display: none;
    }
}

@media screen and (min-width: 390px) and (max-width: 599px) {
    .apercu-flex {
        display: flex;
        flex-direction: column;
        justify-self: center;
    }
    .img-size-max {
        max-width: 350px;
        max-height: 150px;
        object-fit: cover;
        object-position: 100% 3%;
    }
    #img-moi {
        width: 170px;
        height: auto;
        padding-top: 20px;
    }
    #img-moi {
        width: 70px;
        height: auto;
        padding-top: 20px;
    }
    #nav-bar-verti a {
        font-size: 15px;
        margin: 15px 0px;
    }
    #about-me-inside {
        margin-top: 5%;
        margin-bottom: 10%;
        /* background-color: brown; */
    }
    #about-me-inside h1 {
        margin-bottom: 10%;
    }
    #about-me-inside p {
        font-size: 15px;
    }
    .bloc-my-work {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        justify-items: center;
    }
    #captions {
        display: none;
    }
}

@media screen and (min-width: 50px) and (max-width: 389px) {
    .apercu-flex {
        flex-direction: column;
    }
    .img-size-max {
    max-width: 350px;
    max-height: 150px;
    object-fit: cover;
    object-position: 100% 3%;
    }
    #head h1 {
        margin-top: 5%;
        font-size: 24px;
        font-weight: 600;
    }
    #head h3 {
        font-size: 20px;
    }
    #img-moi {
        width: 65px;
        height: auto;
        padding-top: 20px;
    }
    
    #nav-bar-verti div a {
        font-size: 14px;
        margin: 15px 0px;
    }
    #nav-bar-verti {
        padding: 5px;
        font-size: 15px;
    }
    #about-me-inside {
        margin-top: 10%;
        margin-bottom: 10%;
        /* background-color: greenyellow; */
    }
    /* Le titre "About Me" */
    #about-me-inside h1{
        margin-top: -5%;
    }
    #about-me-inside p {
        margin: -10px;
        padding: 0;
        font-size: 12px;
    }
    #captions {
        display: none;
    }
}