body{
    background-color: #000;
}

.container{
    width: 1170px;
    margin: 0 auto;
}

/* --------------------- MAIN-HEADER ---------------------------*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

.menu li a {
	position: relative;
	padding: 5px 0 5px;
	margin: 0 10px;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
}

.menu li a::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: 50% 50%;
    width: 100%;
    height: 1px;
    background-color: rgba(255,255,255,0.8);
    transition: 250ms;
}
.menu li a:hover::after{
    transform: translateX(-50%) scaleX(1);
    }
}

.main-header{
    z-index: 1;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: #000;
}

.main-header .menu{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.main-header .container{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
}

.main-header .main-nav a{
    display: block;
}

.main-header .logo{
    width: 5%;
}

.main-header .logo img{
    width: 100%;
    display: block;
}

.main-header .main-nav .burger{ display: none; }

/* --------------------- HOME ---------------------------*/

.home{
    background: url("../img/what-the-hex-dark.png") repeat fixed;
    padding: 225px 0;
    margin-bottom: 75px;
}

.moitmoit{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
}

.moitmoit .box{
    width: 50%;
    color: #fff;
}

.moitmoit .mbd p{
    font-size: 30px;
    font-weight: lighter;
    margin-bottom: 5px;
    border-bottom: 1px solid #fff;
    width: 100%;
    height: 45px;
}

.moitmoit .box h1{
    text-transform: uppercase;
    font-size: 60px;
    letter-spacing: 8px;
}

.moitmoit .box img{
    width: 100%;
}

/* --------------------- A PROPOS ---------------------------*/

h2{
    display: flex;
    padding: 50px;
    color: #fff;
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
}

h2::before,h2::after{
    content: "";
    flex:1;
    align-self: center;
    border-bottom: 1px solid #fff;
}

h2::before {margin-right: 50px}
h2::after {margin-left: 50px}

.about{
    background: #000;
    margin-bottom: 70px;
}

.about .triple{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    color: #000;
    margin-bottom: 50px;
}

.about .triple .box{
    text-align: center;
    width: 30%;
    height: 420px;
    padding: 10px;
    transition: 1s;
    border: 1px solid #fff;
    border-radius: 20px;
    /*box-shadow: inset 5px 5px 10px #000;
    background-color: rgba(200, 200, 200, 0.5);*/
}

.about .triple .box:hover{
    box-shadow: 5px 5px 10px #fff;
    background-color: #fff;
}

.about .triple .box:hover i{
    color: #000;
}

.about .triple .box:hover h3{
    color: #000;
}

.about .triple .box:hover p{
    color: #000;
}

.about .triple .box i{
    color: #fff;
    text-align: center;
    font-size: 50px;
    width: 100%;
    padding-top: 25px;
    transition: 1s;
}

.about .triple .box p{
    color: #fff;
    padding: 0 10px;
    transition: 1s;
}

.about .triple .box h3{
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 5px 0;
    transition: 1s;
}

.about .triple .mt200{
    margin-top: 200px;
}

.about .cv{
    text-align: center;
    padding: 20px;
}

.about .cv a{
    padding: 10px 50px;
    text-decoration: none;
    color: #000;
    background-color: #fff;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 25px;
    transition: 1s;
}

.about .cv a:hover{
    box-shadow: inset 5px 5px 10px #000;
}

/* --------------------- SERVICES ---------------------------*/

.services{
    background-color: #000;
    margin-bottom: 150px;
}

.moitmoit2{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-shadow: 10px 10px 30px #fff;
}

.moitmoit2 .box{
    width: 50%;
    color: #000;
}

.moitmoit2 .cadre{
    background-color: #fff;
    padding-left: 70px;
}

.moitmoit2 .cadre i{
    text-align: center;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    padding-top: 15px;
    background-color: #000;
    color: #fff;
    transition: 1s;
}

.moitmoit2 .cadre i:hover{
    transform: rotate(360deg);
}

.moitmoit2 .box .align{
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
}

.moitmoit2 .box h3{
    padding: 10px 0px 0px 10px;
}

.moitmoit2 .cadre p{
    padding-left: 60px;
}

.moitmoit2 .hover figure{
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.moitmoit2 .hover figure img{
    display: block;
    width: 100%;
}

.moitmoit2 .hover figure figcaption {
    color: #fff;
    font-size: 20px;
    padding: 300px 0 0 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: 1s;
    text-align: center;
}
.moitmoit2 .hover figure:hover figcaption {
    opacity: 1;
}

.moitmoit2 .box .icon{
    display: flex;
    flex-flow: row wrap;
    align-items: baseline;
    justify-content: flex-start;
}

/* --------------------- PORTFOLIO ---------------------------*/

.portfolio{
    background: url("../img/what-the-hex-dark.png") repeat fixed;
}

.portfolio ul{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    list-style-type: none;
}

.portfolio ul li a{
    text-decoration: none;
    color: #fff;
    padding: 20px;
    transition: 1s;
    border: solid 1px #fff;
}

.portfolio ul li a:hover{
    background: #fff;
    color: #000;
    border: solid 1px #fff;
    border-top-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.portfolio .gallery{
    display: flex;
    flex-flow: row wrap;
    align-items:center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 75px;
}

.portfolio .flex{
    display: flex;
    flex-flow: row wrap;
    align-items:center;
    justify-content: space-between;
}

.portfolio .gallery .item{ width: 20%; }

.portfolio .gallery .item a{
    display: block;
    width: 100%;
    height: 193px;
    overflow: hidden;
}

.portfolio .gallery .item a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid{ display: flex; }
.grid-item{ width: 25%; }
.grid-item.w50{ width: 50%; }
.grid-item.w100{ width: 100%; }
.grid img{ display: block; width: 100%; }

.portfolio .container .book{
    text-align: center;
    padding: 20px;
    margin: 35px auto;
}

.portfolio .container .book a{
    padding: 10px 50px;
    text-decoration: none;
    color: #000;
    background-color: #fff;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 25px;
    transition: 1s;
}

.portfolio .container .book a:hover{
    box-shadow: inset 5px 5px 10px #000;
}

.portfolio .container .pub{
    width: 54%;
    margin: 0 auto;
    padding-bottom: 50px;
}

.portfolio .container .pub p{
    font-size: 25px;
    color: #fff;
    text-align: center;
    margin: 20px auto;
}

/* --------------------- CONTACT ---------------------------*/

.contact{
    margin-bottom: 75px;
}

.contact .boites{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact .boites .boite2{
    width: 48%;
    text-align: center;
}

.contact .boites .boite2 p{
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
}

.contact .boites .boite2 i{
    font-size: 50px;
    color: #fff;
    margin-right: 20px;
    transition: 1s;
}

.contact .boites .boite2 a.fb:hover i{
    color: #2049b3;
}

.contact .boites .boite2 a.twitter:hover i{
    color: #4483ff;
}

.contact .boites .boite2 a.insta:hover i{
    color: #6b00bf;
}

.contact .boites .boite2 a.ink:hover i{
    color: #2128d0;
}

.contact .boites .boite2 a.pint:hover i{
    color: #ad0000;
}

.contact .boites .boite2 form{
    width: 100%;
    margin: 0 auto;
}

.contact .boites .boite2 .flex{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.contact .boites .boite2 .flex .form-group{ width: 49%; }

.contact .boites .boite2 input, textarea{
    font-size: 16px;
    padding: 10px 10px;
    border: none;
    display: block;
    border-bottom: 2px solid #333;
    width: 100%;
    transition: border 1s;
}

.contact .boites .boite2 textarea{
    min-height: 100px;
    min-width: 100%;
    max-width: 100%;
}

.contact .boites .boite2 input:focus, textarea:focus{ border-color: #d6275b;}
.contact .boites .boite2 .form-group{
    margin-bottom: 15px;
}

.contact .boites .boite2 form label{
    margin-bottom: 10px;
    font-style: italic;
    font-size: 18px;
    font-weight: bold;
}

.contact .boites .boite2 .btn{
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid;
    border-radius: 5px;
    font-size: 15px;
    transition: 1s;
}

.contact .boites .boite2 .btn-success{
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.contact .boites .boite2 .btn-success:hover{
    background: transparent;
    border-color: #2f9e44;
    color: #2f9e44;
}

.contact .boites .boite2 .btn-danger{
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.contact .boites .boite2 .btn-danger:hover{
    background: transparent;
    border-color: #e03030;
    color: #e03030;
}

.contact .boites .boite2 .btn-group{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
}

/* --------------------- FOOTER ---------------------------*/

footer{
    background: #000;
    border-top: solid 1px #fff;
    padding: 20px;
    text-align: center;
}

footer .container p{
    color: #fff;
}

footer .container a{
    text-decoration: none;
    font-weight: bold;
    color: #fff;
}

footer .container .close-animatedModal{
    background: #000;
}

footer .container .close-animatedModal i{
    text-align: center;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    padding-top: 15px;
    background-color: #000;
    color: #fff;
    transition: 1s;
}

footer .container .close-animatedModal i:hover{
    transform: rotate(360deg);
}

footer .container2{
    background-color: #000;
    width: 1170px;
    margin: 0 auto;
}

footer .container2 .modal-content{
    background-color: #000;
    color: #fff;
    text-align: left;
}
/* --------------------- RESPONSIVE ---------------------------*/


@media only screen and (max-width:1070px){


    .container{
        width: 100%;
        margin: 0 auto;
    }

    .container2{
        width: 100%;
        margin: 0 auto;
    }

    .portfolio .container .pub{
        display: none;
    }

    .home{ width: 100%;}
    .home .moitmoit .box{ width: 100%;}
    .about{ width: 100%;}
    .about .triple{ width: 100%;}
    .about .triple .box{ width: 100%; height: 360px;}
    .about .triple .mt200{ margin-top: 100px;}
    .about .triple .mt100{ margin-top: 100px;}
    .services{ width: 100%; }
    .services .cadre{ width: 100%; padding: 50px;}
    .services .hover{ width: 100%;}
    .moitmoit2 .hover figure figcaption{ padding: 400px 0 0 20px;}
    .portfolio{ width: 100%; }
    .portfolio .flex{ width: 100%; }
    .portfolio .choose{ width: 100%; display: flex; flex-flow: row wrap; justify-content: space-between; align-items: center;}
    .portfolio .gallery{ width: 100%;}
    .portfolio .gallery .item{ width: 50%; }
    .contact{ width: 100%;}
    .contact .boites{ width: 100%;}
    .contact .boites .boite2{ width: 100%; }
    .contact .boites .formulaire{ margin-bottom: 75px; }
    .prefooter{ width: 100%; }
}

@media only screen and (max-width:777px){

    .container{
        width: 100%;
        margin: 0 auto;
    }

    .container2{
        width: 100%;
        margin: 0 auto;
    }

    .home{ width: 100%;}
    .home .moitmoit .box p{ font-size: 20px; height: 30px; width: 100%;}
    .home .moitmoit .box h1{ font-size: 35px;}
    .about{ width: 100%;}
    .about .triple{ width: 100%;}
    .about .triple .box{ width: 100%; height: 360px;}
    .about .triple .mt200{ margin-top: 100px;}
    .about .triple .mt100{ margin-top: 100px;}
    .services{ width: 100%; }
    .services .cadre{ width: 100%; padding: 50px;}
    .services .hover{ width: 100%;}
    .moitmoit2 .hover figure figcaption{ padding: 140px 0 0 20px;}
    .portfolio{ width: 100%; }
    .portfolio .flex{ width: 100%; }
    .portfolio .choose{ width: 100%; display: flex; flex-flow: row wrap;; justify-content: space-between; align-items: center;}
    .portfolio .choose li{ margin-bottom: 50px;}
    .portfolio .gallery{ width: 100%; }
    .portfolio .gallery .item{ width: 50%; }
    .contact{ width: 100%; }
    .contact .boites{ width: 100%;}
    .contact .boites .boite2{ width: 100%; }
    .contact .boites .formulaire{ margin-bottom: 75px; }
    .prefooter{ width: 100%; }

/*    .services{ width: 100%; }
    .services ul{ width: 100%; }
    .portfolio{ width: 100%; }
    .portfolio .choose{ width: 100%; flex-flow: column;}
    .portfolio li{ margin-bottom: 50px; }
    .about{ width: 100%; }
    .gallery-item{ width: 49%; }
    .contact{ width: 100%; }
    .prefooter{ width: 100%; }
    .main-header .main-nav{ position: relative; }
*/
    .main-header .main-nav .burger{
        display: block;
        font-size: 20px;
        color: #fff;
    }

    .main-header .main-nav>ul{
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        right: 0;
        top: 30px;
        display: none;
    }

    .main-header .main-nav:hover>ul{ display: block; }

    .main-header .main-nav li ul{
        top: 0;
        left: -60%;
    }
}
