html, body, p {
    margin: 0;
    padding: 0;
}
body {
    background-color: #fff;
    font-family: Verdana, sans-serif;
    font-size: 15px;
    height: 100%;
}

/*
|
|   CUSTOM
|
*/


.subMenu
{
    display: flex;
    flex-direction: column;
    border: 1px grey;
    position: absolute;
    right: calc(100% /6);
    top: 61px;
    text-align: center;
    width: 118.59px;
    z-index: 1;
    color: white!important;
    background: lightgrey;
}

header nav .subMenu li a{
    color: #2c3e50;
    display: inline-block;
    text-decoration: none;
}
header nav .subMenu li a:hover{
    background: #2c3e50;
    z-index: 2;
    width: 85%;
    color: white !important;
    text-decoration: none;
}

input{
    height: 20px;
    font-weight: bold;
    font-family: "Lucida Sans Unicode",sans-serif;
}

/*
|
| END
|
*/
header{
    width: 100%;
    height: 60px;
    font-size: 17px;
}
    header p.title{
        float: left;
        padding: 20px 20px;
        text-transform: uppercase;
    }
    header div.hamburger{
        display: none;
        float: right;
        height: 30px;
        width: auto;
        padding: 10px;
        cursor: pointer;
    }
    div.hamburger:hover, div.hamburger:focus{
        background-color: #2c3e50;
    }
        header div.hamburger img {
            width: 30px;
        }
        header div.hamburger:hover img {
            filter: invert(100%);
        }
        header div.hamburger img:last-child{
            transform: rotate(45deg);
            -webkit-transform: rotate(45deg);
            -moz-transform: rotate(45deg);
            -o-transform: rotate(45deg);
            -ms-transform: rotate(45deg);
        }
        header div.hamburger img:last-child, header.nav-open div.hamburger img:first-child{
            display: none;
        }
        header.nav-open div.hamburger img:last-child{
            display: block;
        }
    header nav{
        float: right;
        margin: 0 5% 0 0;
    }
        header nav ul{
            float: right;
            padding: 0;
            margin: 0;
        }
        header nav li{
            margin: 0;
            list-style-type: none;
            display: inline-block;
        }
        header nav li a{
            padding: 20px 10px;
            color: #2c3e50;
            display: inline-block;
            text-decoration: none;
        }
        header nav li a:hover{
            background: #2c3e50;
            color: #fff;
            text-decoration: none;
        }
#slider {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}
    #slider div{
        width: 500%;
        height: auto;
    }
    #slider img{
        width: 20%;
        height: auto;
    }
    #slider ul{
        position: absolute;
        bottom: 5px;
        right: 10px;
        margin: 0;
        padding: 0;
        list-style-type: none;
    }
        #slider ul li{
            background: #cdcdcd;
            height: 20px;
            width: 20px;
            display: inline-block;
            margin: 0 2px;
            cursor: pointer;
            -webkit-box-shadow: 2px 2px 5px #000;
            -moz-box-shadow: 2px 2px 5px #000;
            box-shadow: 2px 2px 5px #000;
            -webkit-border-radius: 10px;
            -moz-border-radius: 10px;
            border-radius: 10px;
        }
        #slider ul li:hover, #slider ul li.active{
            background: #fff;
        }
main{
    display: block;
    margin: 10px auto 0 auto;
    max-width: 1024px;
}
div.item_box{
    float: left;
    width: 150px;
    font-family: MS Sans Serif, Areial, sans-serif;
}
    div.item_box:first-of-type{
        margin-left: calc((100% - 990px) / 2 );
    }
    div.item_box p.title {
        text-align: center;
        font-size: 22px;
        height: 80px;
        text-transform: uppercase;
    }
    div.item_box {
        text-align: center;
    }
    div.item_box div.box-header{
        width: 100%;
        background: #cdcdcd;
        height: 150px;
        padding: 7px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        border-radius: 50% 50% 0 0 ;
    }
    div.item_box div.box-header img {
        width: 100%;
        height: 100%;
        border-radius:50%;
    }
    div.item_box div.box-content{
        width: 100%;
        background: #cdcdcd;
        height: 150px;
        vertical-align: middle;
        display: table;
        padding-bottom: 30px;
    }
        div.item_box div.box-content p{
            display: table-cell;
            vertical-align: middle;
        }
    div.item_box div.box-footer{
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 60px 75px 0 75px;
        border-color: #cdcdcd transparent transparent transparent;
        -webkit-transform:rotate(360deg);
    }

div.item_box_spacer{
    float: left;
    width: 130px;
    background: url(./img/item_box_spacer.jpg) no-repeat center bottom;
    height: 250px;

}

h1,h2
{
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 27px;
    color: #8894a1;
    font-family: Corbel, Arial, sans-serif;
    width: 100%;
    margin-top: 50px;
    position: relative;
}
h1::after,h2::after{
    content: "";
    width: 250px;
    background: #8894a1;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: calc((100% - 250px) / 2);
}
article img.col-6{
    width: calc(50% - 5px);
    margin-right: 10px;
    max-height: 300px;
}
article img.col-5{
    width: calc(50% - 300px);
    margin-right: 10px;
    height: auto;
}
article img.col-6:nth-of-type(even){
    margin-right: 0;
}
article img.col-5:nth-of-type(even){
    margin-right: 0;
}
#presentation
{
    display: flex;
    flex-direction: column;
}
.group-presentation,.mono-presentation{
    margin: 1%;
}
.group-presentation>article,.mono-presentation>article{
    width: 50%;
    background-color: #f0f0f0;
    margin: 0 1%;
    padding: 5px;
    text-align: center;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
.mono-presentation>article{
    width: 100%;
}
.mono-presentation>article>p{
    font-size: 14px;
}
/*
|
|   PORTFOLIO PAGE
|
*/

#imagesPortfolio
{
    display: flex;
    flex-direction: column;
}
#imagesPortfolio>figure
{
	margin: 0 auto;
}
#imagesPortfolio>figure>img
{
    max-width:100%;
}
figure img:hover{
    cursor: pointer;
}
/*
|
|   MODAL
|
*/
#boxHeader
{
    display: flex;
    flex-direction: row;
}
#boxHeader>h2
{
    width: 98%;
    text-align: center;
    color: white;
}
#boxImage
{
    display: none;
    position: fixed;
    z-index: 1;
    left:0;
    top:0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9);
    transition: background-color 0.5s ease;
}
#boxImage>figure>img
{
    display: block;
    max-width: 50%;
    max-height: inherit;
    margin: auto;
}
#boxHeader>span {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
#boxHeader>span:hover,
#boxHeader>span:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#boxTitle{
    width: 100%;
    margin-top: 25px;
    position: inherit;
}
#boxTitle:after{
    content: "";
    width: 250px;
    background: #8894a1;
    position: inherit;
    left: calc((100% - 250px) / 2);
}

/*
|
|   CONTACT PAGE
|
*/
#contact{
    display: flex;
    flex-direction: row;
}
#contactTel,#contactEmail{
    width:  50%;
}
#contactEmail>h3,#contactTel>h3{
    text-align: center;
    color: #8894a1;
}

#contactEmail label{
    font-style: italic;
    font-weight: bold;
}

.form-group{
    display: flex;
    flex-direction: column;
    margin: 5px 0;
}
.form-group>textarea
{
    min-height: 70px;
}

#contactTel>address{
    border-left: 5px solid #8894a1;
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 0 auto;
}
#contactTel>address>p,
#contactTel>address>a{
    margin: 0 5px;
}
#contactTel>address>a{
    text-decoration: none;
    color: #8894a1;
}
#contactTel>address>a:hover{
    text-decoration: underline;
    color: #8894a1;
}
.verticalAlign{
    margin: 0 auto;
}
.btn-lg{
    width: 100%;
    border: none;
    background: #2c3f50;
    -webkit-transition: background 1s;
    -moz-transition: background 1s;
    -o-transition: background 1s;
    transition: background 1s;
    color: white;
    height: 40px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    font-weight: bold;
    font-size: 17px;
}
.btn-lg:hover{
    cursor: pointer;
    background: #ffffff;
    -webkit-transition: background 1s;
    -moz-transition: background 1s;
    -o-transition: background 1s;
    transition: background 1s;
    color: #2c3f50;
    border: 1px solid #2c3f50;
}
/*
|
|   SHOP PAGE
|
*/

#articles{
    display: flex;
    flex-direction: column;
}
.group-shop{
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 2% 0;
}
.article{
    text-align: center;
    margin: 0 2%;
    border: 1px solid #2c3f50;
    width: calc(100% / 3);
}
.article>header{
    border-bottom: 1px solid #2c3e50;
}
.articleFooter{
    margin: 4% 0;
    background: #2c3f50;
    color: white;
}

/*
|
|   PRESENTATION PAGE
|
*/
#presentation{
    display: flex;
    flex-direction: column;
}
.imgPresentation{
    width: 50%;
}
.imgPresentation>img{
    width: 100%;
    height: auto;
}
/*
|
|   FOOTER
|
*/
footer{
    background: #2c3f50;
    font-family: Corbel, Arial, sans-serif;
    color: #fff;
    text-align: center;
    padding-top: 20px;
    margin-top: 50px;
}
    footer>p{
        float: left;
        width: calc(100% / 3);
    }
    footer>p:nth-of-type(2){
        margin-top: 40px;
    }
    footer>div:last-of-type{
        background: #2c3f50;
        color: #fff;
        margin-top: 5px;
    }
    footer>div:last-of-type>p{
        background: #233140;
        padding: 15px 0;
    }
    footer a{
        text-decoration: none;
        color: #fff;
    }
    footer a:hover{
        text-decoration: underline;
    }
    footer #footerLien>a{
        margin: 3px;
    }


@media screen and (max-width: 1024px) {
    #contact{
        display: flex;
        flex-direction: column;
    }
    #contactEmail,#contactTel{
        width: 100%;
        margin: 0 auto;
    }
    .subMenu
    {
        right: calc(100% / 3.5);
    }
    main{
        display: inline-block;
        margin: 10px 7px 0 7px;
        max-width: none;
        width: calc(100% - 18px);
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    main div.item_box_spacer{
        clear: both;
        width: 100%;
        height: 20px;
        background: none;
        float: none;
    }
    div.item_box{
        float: none;
        width: 100%;
        height: 100px;
    }
    div.item_box:first-of-type{
        margin-left: 0;
    }
    div.item_box p.title {
        height: 100%;
        width: 160px;
        float: left;
    }
    div.item_box {
        text-align: center;
    }
    div.item_box div.box-header{
        width: 100px;
        float: left;
        height: 100%;
        border-radius: 50% 0 0 50%;
    }
    div.item_box div.box-header img {
        width: 100%;
        height: 100%;
        border-radius:50%;
    }
    div.item_box div.box-content{
        float: left;
        width: calc(100% - 325px);
        height: 100px;
        padding: 0;
    }
    div.item_box div.box-content p{
        display: table-cell;
        vertical-align: middle;
    }
    div.item_box div.box-footer{
        float: left;
        border-width: 50px 0 50px 65px;
        border-color: transparent transparent transparent #cdcdcd;
    }
    footer>p{
        float: none;
        width: 100%;
    }
    footer>p:nth-of-type(2) {
        margin: 40px 0;
    }
}
@media screen and (max-width: 800px) {
    .subMenu
    {
        position: relative;
        display: flex;
        flex-direction: column;
        border: 1px grey;
        right: 0;
        top: 0;
        text-align: center;
        width: 100%;
        z-index: 1;
        color: white!important;
        background: lightgrey;
    }
    header p.title{
        float: none;
    }
    header div.hamburger{
        display: block;
    }
    header nav{
        float: none;
        margin: 0;
        display: none;
        clear: both;
    }
    header.nav-open nav{
        display: block;
    }
    header nav ul{
        width: 100%;
    }
    header nav li{
        display: block;
        width: 100%;
    }
    header nav li a{
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }
}
@media screen and (max-width: 720px) {
    div.item_box p.title {
        height: auto;
        width: 100%;
        float: none;
        padding: 10px 0;
    }
    div.item_box div.box-content{
        width: calc(100% - 165px);
    }
}
@media screen and (max-width: 600px) {
    div.item_box div.box-content{
        width: calc(100% - 100px);
    }
    div.item_box div.box-footer{
        border-width: 0;
    }
}
@media screen and (max-width: 450px) {
    main{
        margin: 0;
        width: 100%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    div.item_box div.box-header{
        width: 100%;
        height: 75px;
        float: none;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        padding: 5px 0;
    }
    div.item_box div.box-header img{
        width: auto;
        height: 100%;
    }
    div.item_box div.box-content{
        width: 100%;
        height: auto;
        padding: 20px 0;
    }
    div.item_box div.box-footer{
        border-width: 0;
    }
}
