@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700&display=swap');

:root {
    --blue: #2a76f1;
    --dark_blue: #041e62;
    --really_soft_dark_blue: #044AFF;
    --soft_dark_blue: #0C3EC0;
    --light_blue: #3CA1FF;
    --soft_blue: #d3ebff;
    --really_soft_blue: #ECF6FE;
}

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

html {
    scroll-behavior: smooth;
}

/*Resetting the CSS*/
p {
    margin: 0;
    padding: 0;
}
h1 {
    margin: 0;
    padding: 0;
}

/*Style all tiltes*/

section h1 {
    margin-top: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 25px;
    color: var(--dark_blue);
}

section p {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark_blue);
    font-size: 15px;
}

/*All the body*/
body {
    font-family: Montserrat, serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    background-color: var(--really_soft_blue);
}
/*Create the nav bar*/
/* Style the navigation menu */
.topnav {
    overflow: hidden;
    background-color: var(--soft_blue);
    position: relative;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
    display: none;
}

/* Style navigation menu links */
.topnav a {
    color: var(--dark_blue);
    padding: 18px 16px;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

/* Style the hamburger menu */
.topnav a.icon {
    background: var(--blue);
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
    background-color: var(--really_soft_blue);
    color: inherit;
}

/* Style the active link (or home/logo) */
.active {
    background-color: var(--soft_blue);
    color: white;
}

/*Style the first*/

header {
    background-color: var(--soft_blue);
    display: flex;
    align-items: center;
    padding-top: 20px;
    flex-wrap: wrap;
}

.first .text {
    margin-left: 40px;
    float: left;
    font-size: 20px;
    color: var(--dark_blue);
}
.blue {
    color: var(--blue);
    margin: 0;
}

.first h1 {
    padding: 10px 0 10px 0;
}

.first {
    display: flex;
    justify-content: center;
    background-color: var(--soft_blue);
}

.first button {
    margin-top: 30px;
}

button {
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
}

/*Style images*/
.first .picture img{
    margin-left: 10px;
    width: 350px;
}

/*scolarite*/

.scolarite {
    color: var(--dark_blue);
}

.wrapper{
    max-width: 1080px;
    margin: 30px auto 50px auto;
    padding: 0 20px;
    position: relative;
}
.wrapper .center-line{
    position: absolute;
    height: 100%;
    width: 4px;
    background: var(--blue);
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
}
.wrapper .row{
    display: flex;
}
.wrapper .row-1{
    justify-content: flex-start;
}
.wrapper .row-2{
    justify-content: flex-end;
}
.wrapper .row section{
    background: var(--soft_blue);
    border-radius: 5px;
    width: calc(50% - 40px);
    padding: 20px;
    position: relative;
}
.wrapper .row section::before{
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    background: var(--soft_blue);
    top: 28px;
    z-index: -1;
    transform: rotate(45deg);
}
.row-1 section::before{
    right: -7px;
}
.row-2 section::before{
    left: -7px;
}
.row section .icon,
.center-line .scroll-icon{
    position: absolute;
    padding: 8px;
    background: var(--really_soft_blue);
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--blue);
    font-size: 17px;
    box-shadow: 0 0 0 4px var(--soft_blue), inset 0 2px 0 rgba(0,0,0,0.08), 0 3px 0 4px rgba(0,0,0,0.05);
}
.center-line .scroll-icon{
    bottom: 0px;
    left: 50%;
    font-size: 25px;
    transform: translateX(-50%);
}
.row-1 section .icon{
    top: 15px;
    right: -60px;
}
.row-2 section .icon{
    top: 15px;
    left: -60px;
}
.row section .details{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.row section .details .title{
    font-size: 18px;
    font-weight: 600;
}
.row section p{
    margin: 10px 0 17px 0;
}
@media(max-width: 790px){
    .wrapper .center-line{
        left: 40px;
    }
    .wrapper .row{
        margin: 30px 0 3px 60px;
    }
    .wrapper .row section{
        width: 100%;
    }
    .row-1 section::before{
        left: -7px;
    }
    .row-1 section .icon{
        left: -60px;
    }
}
@media(max-width: 340px){
    .wrapper .center-line,
    .row section::before,
    .row section .icon{
        display: none;
    }
    .wrapper .row{
        margin: 10px 0;
    }
}


/*competences*/

.div-competences {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.competence {
    border-radius: 25px;
    padding: 15px;
    margin: 20px;
    width: 300px;
    text-align: center;
    background-color: var(--soft_blue);
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.15);
}

.competence p {
    margin: 0 5px 0 5px;
}

.competence img {
    width: 80px;
    margin-bottom: 8px;
}


/*qualite*/

.div-qualite {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.div-qualite div {
    margin: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 200px;
}


.div-qualite img {
    width: 55px;
}


/*interet*/

.div-interet {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.div-interet div {
    text-align: center;
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 20px;
}

.div-interet div img {
    width: 100px;
}


/*Progragation*/

.skillBar-container {
    width: 70%;
    margin: 0 auto;
}
.skillBar-container h1 {
    margin-bottom: 30px;
}

.bar{
    background-color: var(--soft_blue);
    border-radius: 20px;
    margin-bottom: 15px;
    color: white;
    font-size: 15px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.bar::before{
    content: attr(data-skill);
    display: inline-block;
    padding: 5px 0 5px 10px;
    border-radius: inherit;
    animation: load 2s 0s;
    -webkit-animation: load 2s 0s;
    -moz-animation: load 2s 0s;
    -o-animation: load 2s 0s;
}

.bar.light-blue::before{
    background-color: var(--light_blue);
    width: calc(20% - 10px);
}
.bar.blue::before{
    background-color: var(--blue);
    width: calc(30% - 10px);
}
.bar.really_soft_dark_blue::before{
    background-color: var(--really_soft_dark_blue);
    width: calc(40% - 10px);
}
.bar.soft_dark_blue::before{
    background-color: var(--soft_dark_blue);
    width: calc(50% - 10px);
}


.apps .apps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.apps .apps-container .apps-item {
    background-color: var(--soft_blue);
    border-radius: 20px;
    margin: 20px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.15);
}

.apps-item div {
    margin: 10px;
}

.apps .apps-container div p {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 20px 20px 0 0;
    background-color: var(--blue);
    color: white;
}

.apps .apps-container div img {
    width: 60px;
    margin: 8px;
}

.formations {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formation-div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.htb, .openClassRoom, .codecademy {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}


.formation-div .htb img, .formation-div .codecademy img {
    height: 40px;
    margin: 10px;
}

.openClassRoom {
    margin-top: 35px;
}

.openClassRoom img {
    height: 30px;
}

.OCR-certificat button{
    margin-top: 15px;
}

/*Certificats*/
.certificats-img{
    /*display: flex;*/
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.certificats p {
    text-align: center;
}

.certificats {
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}

.certificats-img img{
    width: 180px;
    height: auto;
    margin: 20px;
    border-radius: 20px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.15);
}

.contact div img {
    width: 70px;
}

.contact-container {
    margin-top: 10px;
}

.contact-container img {
    padding-top: 12px;
    text-align: center;
    margin-left: 60px;
    margin-right: 60px;
    margin-bottom: -2px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

footer {
    margin-top: 30px;
}
footer p {
    margin-top: 2px;
    margin-bottom: 2px;
    text-align: center;
    font-size: 12px;
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .topnav a.icon {
        display: none;
    }
    .topnav a {
        float: left;
    }
    .topnav #myLinks {
        display: block;
    }
}


@media only screen and (min-width: 1200px) {
    .scolarite img {
        width: 450px;
    }
    .skillBar-container {
        width: 1000px;
    }
}

/*On smartphone*/
@media only screen and (max-width: 900px) {
    .first img {
        margin-top: 40px;
    }
    .div-interet div img {
        width: 100px;
    }
    .competence {
        padding: 12px;
    }
    .certificats-img img {
        width: 130px;
    }
    .figma img {
        width: 20px;
    }
    section h1 {
        font-size: 20px;
    }
    .first .text {
        font-size: 15px;
        margin-left: 0;
    }
    .first .text {
        margin-bottom: 20px;
    }
    .first .picture img {
        width: 300px;
        margin-top: 0;
    }
    section p {
        font-size: 15px;
    }
    .row section .details .title {
        font-size: 17px;
    }
    .topnav a {
        font-size: 16px;
    }
    .apps .apps-container div img {
        width: 60px;
    }
    .bar {
        font-size: 15px;
    }
}
