@media all and (max-width: 1000px) {
    body .flex:nth-child(5){
        height:15%;
    }
}

@font-face {
    font-family: 'police';
    src: url('police.ttf') format('truetype');
}

body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: rgb(255, 255, 255);
    overflow-x: hidden;
}

#container {
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    transition: 0.5s;
}

.flex {
    width: 100%;
    text-align: center;
}

.flex:nth-child(1) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-image: url('img/fond.png');
    background-size: cover;
}

.flex:nth-child(1) p {
    color: white;
}

.fade {
    transition: 0.5s;
    transform: translateX(-400px);
}

.flex:nth-child(2) {
    margin-top: 30px;
    margin-bottom: 20px;
    overflow: hidden;
}

.flex:nth-child(3) {
    height: 100%;
    background-image: url('img/fond2.jpg');
    background-size: cover;
}

#referenceContent {
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    margin: auto;
}

.flex:nth-child(4){
    margin-top: 50px;
}

.flex:nth-child(5){
    margin-bottom: 50px;
}

.flex:nth-child(4), .flex:nth-child(5) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

#leftContact {
    transform: translateX(-400px);
    transition: 2s;
}

#rightContact {
    transform: translateX(400px);
    transition: 2s;
}

.flex:nth-child(6) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.flex:nth-child(7) {
    height: 50px;
}

.reference {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 28%;
    margin: 1%;
    height: 28%;
    border-radius: 25px;
    opacity: 0;
    transition: 0.5s;

}

.refpara {
    display: none;
}

.reference:nth-child(n) {
    background-color: #000000;
    color: white;
}


.picture {
    width: 17.2%;
    opacity: 0.85;
    padding: 0.7%;
    border: 1px dotted grey;
    margin: 0.5%;
    transition: 0.5s;
}

.picture:hover {
    opacity: 1;
    transform: scale(1.5);
    z-index: 9999999;
}

h2 {
    font-size: 35px;
    font-family: 'police';
}

h3 {
    margin: 0;
    padding: 0;
    font-family: 'police';
    font-size: 30px;
    padding: 20px;
}

p {
    font-size: 25px;
    padding: 30px;
    font-family: 'garamond';
}

hr {
    width: 94%;
    border: 0;
    height: 0;
    border-top: 1px dotted rgba(0, 0, 0, 0.1);
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

a{
    color: white;
    font-size: 28px;
}


#menu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
    text-align: center;
}

#lienMenu {
    position: absolute;
    top: 100px;
    left: 22%;
}


#sousMenu {
    position: absolute;
    bottom: 100px;
    left: 10%;
}

#menu a {
    display: none;
    padding: 8px 8px 8px 20px;
    text-decoration: none;
    font-size: 24px;
    color: #818181;
    display: block;
    transition: 0.3s;
    cursor: pointer;
    font-family: 'garamond';
}


#menu .link:hover {
    color: #f1f1f1;
}


#openbtn {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 15px;
    border: none;
    z-index: 15;
    transition: 0.5s;
}

#bar1,
#bar2,
#bar3 {
    width: 35px;
    height: 5px;
    background-color: rgb(218, 218, 218);
    margin: 6px 0;
    transition: 0.4s;
}

.change #bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change #bar2 {
    opacity: 0;
}

.change #bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);

}

.mouse {
    position: absolute;
    width: 22px;
    height: 42px;
    bottom: 40px;
    left: 50%;
    margin-left: -12px;
    border-radius: 15px;
    border: 2px solid rgb(218, 218, 218);
    animation: intro 1s;
}

.scroll {
    display: block;
    width: 3px;
    height: 3px;
    margin: 6px auto;
    border-radius: 4px;
    background: rgb(218, 218, 218);
    animation: finger 1s infinite;
}


@keyframes intro {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes finger {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}