*{
    box-sizing: border-box;
    border: 0;
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    color: #000000;
    text-decoration: none;
}

/*
 * Header
 */

header {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    top: 0;
    left: 0;
    justify-content: space-between;
    z-index: 1;
    position: fixed;
}

header>a:first-of-type @media all and (max-width: 580px){
    display: none;
}

header>a:first-of-type img{
    width: 2rem;
    margin-top: 1rem;
    margin-left: 1rem;
}

header nav {
    margin-right: 1.5rem;
}

header nav a img {
    width: 2rem;
    margin-top: 1rem;
    margin-left: 0.2rem;
}

#menu {
    display: none;
    position: fixed;
    width: 2rem;
    top: 1rem;
    left: 1rem;
}

.small {
    margin-top: 0.2rem;
    width: 10rem;
    transition: .4s;
    margin: auto;
}

.large {
    width: 45rem;
    transition: .4s;
    padding: 2.5rem;
}

@media all and (max-width: 900px){
    header nav {
        position: fixed;
        width: 100%;
        text-align: center;
        bottom: 0;
        background-color: white;
        margin-right: 0;
        padding: 0.5rem 0 0.2rem 0;
    }
    header nav a img {
        margin-top: 0;
    }
    #menu {
        display: block;
    }
    header>a:first-of-type{
        display: none;
    }
}

/*
 * Footer
 */

 footer {
    background-color: #1D1D1B;
    padding: 0.8rem;
 }

footer>div {
    display: flex;
    flex-wrap: wrap;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: space-between;
 }

footer>div img {
    width: 1.5rem;
    margin-right: 0.5rem;
}

footer>div span, footer>div a {
    color: white;
    font-weight: 400;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 5px;
}

footer>div a {
    color: white;
    font-weight: 400;
    font-size: 0.8rem;
}

footer>div>div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

@media all and (max-width: 900px){
    footer {
        padding-bottom: 4rem;
    }
    footer div div {
        display: none;
    }   
}

.ml {
    font-size: .6rem;
    font-weight: 300;
}



/*
 * Main
 */

 main {
    display: flex;
    flex-wrap: wrap;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
 }

 /*
 * Mentions Légales
 */

 .pageML {
    width: calc(100% - 250px);
    padding: 0 2rem;
 }

 @media all and (max-width: 900px){
    .pageML {
        width: 100%;
        min-height: calc(100vh - 320px);
    }
 }


 .pageML p {
    padding: 5px 0;
 }

 .pageML h3{
    text-transform: uppercase;
    font-size: .8rem;
    padding: 1.2rem 0;
 }

 /*
  * Barre de navigation
  */

 #leftNav {
    width: 250px;
    padding: 1.2rem 0.5rem 0.5rem 1rem;
 }

 #leftNav div {
    height: 5.1rem;
    font-weight: 700;
 }

 #leftNav a p:first-of-type {
    font-size: .9rem;
    display: block;
 }

 #leftNav a p:last-of-type {
    font-size: .6rem;
    display: none;
 }

#leftNav a:hover p:last-of-type {
    display: block;
}

@media all and (max-width: 900px){
    #leftNav {
        position: fixed;
        top: 0;
        left: -250px;
        z-index: 2;
        height: 100vh;
        background-color: white;
        overflow-Y: scroll;
        transition: .5s;
        opacity: .7s;
    }
    #leftNav a p:last-of-type {
        display: block;
     } 
}

#menu {
    cursor: pointer;
}

#bg-black {
    background-color: black;
    opacity: .7;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: none;
}

/*
 * Galerie d'images
 */

#galery {
    width: calc(100% - 250px);
    padding: 1.2rem 0.5rem 0.5rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

#galery>a {
    display: flex;
    flex-wrap: wrap;
    width: 33.33%;
    position: relative;
    border: 1.2rem solid #ffffff00;
    height: fit-content;
}

#galery>a>img {
    width: 100%;  
}

#galery>a> div {
    display: none;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left:5%;
    background-color: white;
}

#galery>a:hover> div {
    display: flex;
}

#galery>a> div img{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

#galery>a> div h3{
    width: 100%;
    text-align: center;
    font-weight: 400;
    font-size: .9rem;
}

#galery>a> div h2{
    width: 100%;
    text-align: center;
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

#galery>a> div p{
    width: 100%;
    text-align: center;
    margin-top: .9rem;
    font-weight: 300;
    font-size: .8rem;
}

@media all and (max-width: 900px){
    #galery {
        width: 100%;
    }
    #galery>a div{
        display: flex;
        background-color: #ffffff;
        opacity: 90%;
    }
}

@media all and (max-width: 1115px){
    #galery>a {
        width: 50%;
    }
}

@media all and (max-width: 520px){
    #galery>a {
        width: 100%;
    }
}

/*
 * Tailles logo
 */

.width40{
    width: 40%;
}

.width45{
    width: 45%;
}

.width65{
    width: 65%;
}

/*
 * Projet
 */

#project {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 250px);
}

#project h3 {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: .8rem;
    margin-bottom: 2rem;
}

#project h2 {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

#project >p {
    width: 100%;
    text-align: center;
    font-weight: 300;
    margin-bottom: 2rem;
}

#project>img {
    width: 100%;
}

 @media all and (max-width: 900px){
    #project {
        width: 100%;
    }   
}

.button {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.7rem;
}

.button a {
    display: flex;
    flex-wrap: wrap;
}

.button a img {
    width: 1.5rem
}

.button .btnPrev, .button .btnNext {
    align-items: center;
    margin-top: 2rem;
}

.button .btnPrev img {
    margin-right: .5rem;
    margin-left: 1rem;
}

.button .btnNext img {
    margin-left: .5rem;
    margin-right: 1rem;
}

.company {
    display: flex;
    /* flex-wrap: wrap; */
    width: 100%;
    align-items: center;
    margin: 2rem 0;
}

.company p:first-of-type {
    text-align: left;
    font-weight: 300;
    font-size: .9rem;
    padding-right: 3rem;
    margin: 0;
}

.company img {
    padding-left: 3rem;
    width: 15%;
}

.company p {
    width: 85%;
    padding-left: 3rem;
}

@media all and (max-width: 900px){

    .company img {
        margin: auto;
        width: 15rem;
    }
    .company p {
        width: 100%;
        padding: 3rem;
    }
}

.picto {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.picto img {
    width: 2.7rem;
    margin: .5rem .5rem 1.3rem .5rem;
}

#btnUp{
    /* position: fixed; */
    /* right: 1.5rem; */
    /* bottom: 1rem; */
}

@media all and (max-width: 900px){
    #btnUp{
        /* bottom: 3rem; */
    }
}

#btnUp img {
    width: 2rem;
}

.stickyUp{
    position: sticky;
    bottom: 1rem;
    text-align: end;
    padding: 0 1.5rem;
    margin: 1rem 0;
}

@media all and (max-width: 900px){
    .stickyUp{
        bottom: 3.5rem;
    }
}

/*
 * Taches
 */

 #blue, #yellow, #pink {
    position: fixed;
    z-index: -1;
}
#blue {
    width: 50rem;    
    bottom: 90%;
    left: 45%;
}
#yellow {
    width: 20rem;
    top: 15%;
    left: 10%;
}
@media all and (max-width: 1115px){
    #yellow {
        left: 0%;
    }
}
@media all and (max-width: 900px){
    #yellow {
        left: -20%;
    }
}
@media all and (max-width: 520px){
    #yellow {
        left: -40%;
    }
}

#pink {
    width: 30rem;
    top: 20%;
    left: 70%;
}




/*
 * Background
 */

.bgWhite {
    background-color: white;
}

.greyScreen {
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-color: #777777d1;
    z-index: 1;
}