body {
    font-family: 'Open Sans', Helvetica Neue,Helvetica, sans-serif;
    color: #313B3D;
    text-rendering: optimizeLegibility;
    background: #f8f8f8;
}


.content-white {
    background: #F5F5F5;
}

.hidden {
    display: none;
}

.w45 {
    width: 45%;
}

img {
    margin: 0;
    padding: 0;
    border: none;
}

h1, h2, h3, h4, h5 {
    text-transform: uppercase;
}

h2 {
    margin-bottom: 1em;
    padding-left: 20px;
    font-size: 1.4em;
}

h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.4em;
}

a {
    text-decoration: none;
    color: #313B3D;
    cursor: pointer;
    webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a:hover {
    text-decoration: none;
    color: #959595;
}

ul {
    margin: 0;
    padding: 0;
}

ul li {
    list-style: none;
    padding-bottom: 0.6em;
}

ul li .fa {
    padding-right: 0.6em;
}

.sup {
    vertical-align: top;
    font-size: 70%;
}

.space {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

/**
* aside
*/

#aside {
    width: 280px;
}

#aside-presentation {
    padding: 12px 20px 10px 20px;
}

#aside-presentation .name {
    font-size: 2.1em;
    border-bottom: 4px solid #E95F5C;
    font-weight: bold;
}

#aside-presentation .titre {
    margin: 0;
    text-transform: uppercase;
    font-size: 1em;
    text-align: center;
}

#aside-presentation a:hover {
    color: inherit;
}

#aside-presentation p {
    text-align: justify;
    font-weight: bold;
}

.aside-contact {
    margin-top: 10px;
    font-size: 0.9em;
}

.aside-contact i {
    margin-right: 4px;
    width: 13px;
}

#aside-info {
    margin: 10px 20px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

#aside-info h3 {
    margin-bottom: 1.1em;
}

#aside-info p {
    margin-bottom: 20px;
}

#aside-info i.fa {
    width: 20px;
    text-align: center;
}

#aside ul li {
    font-size: 0.9em;
}

#aside .menu li a {
    padding: 5px;
    display: block;
    width: 100%;
}

#aside .menu li:hover a, #aside .menu li a.menu-selected {
    background: #E95F5C;
    color: white;
}

#aside .menu li a {
    font-size: 1.1em;
}

#aside .open-menu {
    font-weight: bold;
}

#content {
    padding-top: 20px;
    padding-left: 20px;
}


/**
* ITEMS
*/

#items {
    list-style: none;
    margin: 0 0 0 30px;
    padding: 0;
    position: relative;
    min-width: 700px;
    max-width: 850px;
}

#items .item-box {
    display: inline-block;
    min-width: 200px;
    max-width: 250px;
    min-height: 200px;
    margin-right: 30px;
    margin-bottom: 25px;
}


.box {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.18);
    background: white;
}

.item-box {
    cursor: pointer;
    overflow: hidden;
}

.item-box img {
    display: block;
    width: 100%;
}

.item-box-img {
    overflow: hidden;
    margin-bottom: 10px;
}

.item-box-text {
    padding: 12px;
    padding-top: 3px;
    height: 50px;
}

.item-box-text h3 {
    font-size: 0.9em;
    text-align: center;
}

.item-box-text h4 {
    font-size: 1em;
    padding-bottom: 20px;
}

.item-box-text-info {
   font-size: 0.8em;
}


.resize {
    margin-bottom: 40px;
}

/**
* CONTENT TEXT
*/
.text {
    min-width: 700px;
    max-width: 850px;
    padding: 40px 100px;
}

.text p:first-child {
    margin-top: 0;
}

.text p {
    margin-top: 2em;
}

#content h1, .content-right h1 {
    font-size: 1.4em;
    border-bottom: 4px solid #FFD93E;
}

.content-right {
    background: white;
    overflow: hidden;
}

.content-right h1 {
    margin-bottom: 5px;
    padding: 20px 30px 14px 30px;
}

.content-right h2 {
    color: #9B9B9B;
    font-size: 1em;
}

.text h3, .item-content h3 {
    border-bottom: 3px solid #EBEBEB;
    margin-bottom: 5px;
}

.text h4 {
    border-bottom: 1px solid #EBEBEB;
    margin-bottom: 4px;
    margin-top: 15px;
    font-size: 1em;
}

.text h4:first-child {
    margin-top: 0;
}

.author {
    color: #E95F5C;
    font-weight: bold;
}

.date {
    font-weight: bold;
}

/**
* NAV
*/
.nav {
    display: inline-block;
    font-size: 1em;
    padding: 8px;
}

.nav:hover {
    color: #313B3D;
}

.entries-nav {
    margin: 0 auto;
    margin-bottom: 5px;
    text-align: center;
}

.entries-nav img {
    width: 60px;
    cursor: pointer;
    margin-right: 4px;
    margin-top: 8px;
    border: 4px solid #ffffff;
}

.entries-nav img.selected {
    border: 4px solid #FFD93E;
}

.entries-nav .direction {
    font-size: 1.2em;
    width: 100px;
}

.direction {
    padding: 6px;
    display: inline-block;
}

.direction:hover {
    background: white;
}

.direction-title {
    text-transform: uppercase;
}

.direction.left {
    padding-left: 10px;
    margin-top: 10px;
    margin-left: 10px;
    font-size: 1.1em;
}

.direction.right {
    margin-left: 10px;
    padding-right: 10px;
    margin-right: 20px;
}

.content-right, .entries-nav {
    min-width: 700px;
    max-width: 850px;
}

.gallery .gallery-item {
    margin-bottom: 10px;
    margin-left: 5px;
    margin-right: 5px;
}

.gallery .gallery-item figure {
    margin-top: 0;
}

.gallery .gallery-item figcaption {
    background-color: #303030;
    font-size: 0.7em;
    padding: 4px;
    color: white;
}

.item-content {
    padding: 30px;
    padding-top: 0;
}

.item-content p {
    margin-top: 3em;
    margin-bottom: 3em;
}

.item-content p, .text p {
    font-size: 1em;
    text-align: justify;
}

/**
* INFO
*/
.contact-map {
    border: 1px solid #CFCFCF;
}

.contact-top {
    margin-bottom: 30px;
}

.contact-info {
    padding-left: 20px;
}

.content-right .contact-form  h2 {
    padding-left: 0;
}

.contact-form label {
    display: block;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    border: 1px solid #D2D2D2;
    padding: 5px;
}

.contact-form input {
    min-height: 30px;
}

.contact-form textarea {
    min-height: 100px;
    margin-top: 0;
    font-family: 'Open Sans', 'Helvetica Neue';
}

.contact-form input[type=submit] {
    margin-top: 5px;
    border: none;
    background: #FFD93E;
    color: #5F5F5F;
    font-weight: bold;
    padding: 7px 0;
    cursor: pointer;
}

.contact-form input[type=submit]:hover {
    background: #ffce2d;
}

.contact-form-success, .contact-form-error {
    min-height: 250px;
}

.contact-image {
    height: 358px;
}

.contact-image img {
    height: 100% !important;
}

.external-link {
    margin-bottom: 20px;
}

.external-link p {
    font-size: 1.1em;
}

.external-link a {
    color: #3C7BCF;
}

#items.domain-items {
    margin-top: 20px;
}

#items.domain-items .item-box {
    margin-right: 20px;
    width: 33%;
}

#items.domain-items .item-box-img {
    height: 220px;
    width: 100%;
    background-size: cover;
    display: table;
}

#items.domain-items .item-box-text {
    height: 140px;
    text-align: center;
}

.switch-lang {
    float: right;
    margin: 35px 15px 0 0;
}

.switch-lang img {
    height: 20px !important;
    widht: 30px !important;
    margin-left: 4px;
}

/**
* RESPONSIVE
*/
@media screen and (max-width:768px) {

    .direction {
        display: none;
    }

    #aside {
        width: 100%;
        display: block;
        margin-bottom: 20px;
    }

    #content {
        padding: 0 2%;
    }

    #items {
        margin: 0;
        min-width: 100%;
    }

    #items .item-box {
        padding: 0;
    }

    #items .item-box {
        margin-right: 20px;
        margin-bottom: 20px;
        width: 90% !important;
        max-width: 90%;
        margin-left: 5%;
    }

    #aside ul li {
        padding-bottom: 0.2em;
    }

    #aside-info h3 {
        margin-bottom: 5px;
    }

    #aside-info p {
        margin-bottom: 0;
    }

    .text, .content-right, .entries-nav {
        min-width: 100%;
    }

    .text {
        padding: 5%;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1.1em;
    }

    .direction i.fa {
        font-size: 3em;
    }

    .item-content {
        padding: 5%;
        margin-top: 10px;
    }

    .contact-top .contact-map, .contact-top .contact-info {
        width: 100%
    }

    .contact-top .contact-info {
        margin-top: 20px;
        padding-left: 0;
    }

    .contact-bottom {
        display: none;
    }

    .switch-lang {
        float: none;
        margin: 20px 15px 10px 20px;
    }
}