/*Couleur à choisir:
#7600BC : titre important et liens hover
#1fbd09 : Sous titre important 
#1400E6 : Liens, etat initial
*/

/*Set the html root properies*/

:root{
    --purplel: #7600BC;
    --greenl: #1fbd09;
    --green: #047921;
    --bluel: #1400E6;
    --white: #ffffff;
    --pinkl: #f8f1f1;
    --grayl:rgba(16, 12, 12, 0.31);
    box-sizing: border-box;
}

/*Allow all html element to inherit the box-sizing property by default*/

*{box-sizing: inherit;}

/*Page styling begin from here*/

body{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.2rem;
    margin: 0;
}

/*Navigation menu*/

#home{
    background-color: var(--purplel);
    color: var(--white);
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    padding: 20px 3%;
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
}
#home span{
    display: none;
}
.topmenu{
    list-style: none;
    display: inline-flex;
    margin: 0;
}
.topmenu a{
    color: var(--white);
    padding: 0 10px;
    text-decoration: none;
}
.topmenu a:hover{
    color: var(--greenl);
    text-decoration: overline;
}
#toggleMenu{
    display: none;
}

/*Start the main content styling*/

#pageContent{
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0px 0.5px 5px;
    padding: 25px;
    margin-top: 76px;
    margin-bottom: 10px;
}

/*About me section*/

.aboutSection{
    /*text-align: justify;/*cause pb d’accessibilité. j’ignore pourquoi d’abord*/
    overflow:auto;
}
.profile_image{
    float: left;
    max-width: 300px;
    margin-right: 20px;
    margin-left: -25px;
}
/* styling Titles*/

h1, h2{
    text-align: center;
    color: var(--purplel);
    font-size: 1.9em;
}
h3{
    color: var(--bluel);
    font-size: 1.3em;
    text-align: center;
}
h2{
    margin-top: 8rem;
    margin-bottom: 4rem;
}

/*Styling Skills section*/

.all_skills{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.skill{
    display: grid;
    box-shadow: 0 3px 10px var(--grayl);
    border-radius: 6px;
    padding: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    margin-right: 15px;
    height: 250px;
    border: 1px solid var(--bluel);
}
.skill:hover{
    background-color: var(--purplel);
    color: var(--white);
    position: relative;
    top: 15px;
    font-weight: bold;
}
.skill:hover h3{
    color: var(--white);
}
.skill img{
    max-width: 45px;
    margin-left:60px ;
}
.skill h3{
   margin-top: 15px;
}

/*Styling projects section*/

.project-card{
    padding: 10px;
    margin: 20px;
    border: 2px solid var(--bluel);
    border-radius: 10px;
    box-shadow: 0px 3px 1px;
}
.project-card label{
    font-size: 0.7em;
    border: 1px solid;
    border-radius: 8px;
    padding: 0 2px;
    background-color: var(--green);
    color: var(--white);
}

/* Certification */

.all_certification{
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--pinkl);
}
.certification{
    padding: 15px;
    border-radius: 10px;
    border: 1px solid;
    box-shadow: 0px 3px;
}
.certification a{
    color: var(--green);
}

/*Styling recommnendation section*/

.all_recommendations{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.recommendation{
    border-left: 5px solid var(--bluel);
    padding: 15px;
    margin-right: 15px;
    border-radius: 20px;
    background-color: var(--grayl);
}

/*Scroll top top button*/

.iconbutton{
    position: fixed;
    bottom: 3%;
    right: 3%;
    width: 40px;
    height: 40px;
    background-color: var(--bluel);
    border-radius: 100%;
}
.iconbutton span{
    display: none;
}

/*Footer styling */

#footer{
    background-color: var(--purplel);
}
.contact{
    display: flex;
    color: var(--white);
    justify-content: center;
    padding: 15px;
}
.contact img{
    width: 20px;
    height: auto;
}
.contact a{
    padding: 0 5px;
}
.contact a{
    color: var(--white);
}
#footer h3{
    margin: 0;
    padding: 10px;
    font-size: 0.9em;
    color: var(--white);
}

/*************************************** Media query for responsive design ***************************************/

@media screen and (max-width:768px){
    body{
        font-size: 1rem;
    }
    #home{
        justify-content: space-between;
        padding: 0 5%;
        align-items: center;
        height: 60px;

    }
    .topmenu a{
        display: block;
        padding: 5px;
    }
    #toggleMenu, .mobile-menu-icon{
        display: flex;
    }
    /*Codepen menu toggle svg code*/
    .inline-svg {
        display:block;
        padding-left: 15px;
        padding-bottom: 15px;
        width: 80px;
        height: auto;
        cursor:pointer;
        }
        
    .mobile-menu-icon .svg-menu-toggle {
        fill: var(--white);
        pointer-events:all; /*needs to be there so the hover works*/
        cursor:pointer;
    }
    .bar {
        -webkit-transform:rotate(0) translateY(0) translateX(0);
        transform:rotate(0) translateY(0) translateX(0);
        opacity:1;
        -webkit-transform-origin: 20px 10px;
        transform-origin: 20px 10px;
        -webkit-transition: -webkit-transform 0.4s ease-in-out, opacity 0.2s ease-in-out;
        transition: transform 0.4s ease-in-out, opacity 0.2s ease-in-out;
    }
          
          .bar:nth-of-type(1) {
            -webkit-transform-origin: 20px 10px;
            transform-origin: 20px 10px;
          }
          
          .bar:nth-of-type(3) {
            -webkit-transform-origin: 20px 20px;
            transform-origin: 20px 20px;
          }
      
    .mobile-menu-icon.active .svg-menu-toggle {
          
          .bar:nth-of-type(1) {
          -webkit-transform:rotate(-45deg) translateY(0) translateX(0);
          transform:rotate(-45deg) translateY(0) translateX(0);
          }
      
          .bar:nth-of-type(2) {
            opacity:0;
          }
      
        .bar:nth-of-type(3) {
          -webkit-transform:rotate(45deg) translateY(0em) translateX(0em);
          transform:rotate(45deg) translateY(0em) translateX(0em);
        }
      }
    #toggleMenu{
        background-color: transparent;
        border: 0;
    }
    .all_skills{
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .topmenu{
        display: none;
        transition: opacity 0.3s ease-in-out; 
    }
    .topmenu.show-menu {
        display: block;
        background-color: var(--purplel);
        position: fixed;
        top: 59px;
        right: 0;
        height: 100%;
        max-width: 80%;
        width: 218px;
        opacity: 1;
    }
    .aboutSection{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .aboutSection div:nth-child(2){
        clear: left;
    }
    .profile_image{
        margin-left: 0;
        margin-right: 0;
    }
    .all_recommendations{
        grid-template-columns: repeat(2, 1fr);
    }
    .recommendation{
        margin-top: 10px;
    }

}/*end media query max-width=768px*/

/************************************** Media query for medium screen **************************************/

@media screen and (max-width: 950px){
    body{
        font-size: 1.01rem;
    }
.all_skills{
    grid-template-columns: repeat(3, 1fr);
}

}/*end query max-width=1024px*/