@font-face {
    font-family: 'butler';
    src: url('fonts/butler_light-webfont.woff') format('woff'),
         url('fonts/butler_light-webfont.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'butler';
    src: url('fonts/butler_regular-webfont.woff') format('woff'),
         url('fonts/butler_regular-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'butler';
    src: url('fonts/butler_medium-webfont.woff') format('woff'),
         url('fonts/butler_medium-webfont.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'butler';
    src: url('fonts/butler_bold-webfont.woff') format('woff'),
         url('fonts/butler_bold-webfont.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

.butler-medium {
    font-family: 'butler', sans-serif;
    font-weight: 600;
    font-style: normal;
}

/* Home */
body {
    background: #fff;
    transition: background-color .7s cubic-bezier(0, 0, 0.2, 1);
    font-family: 'europa', sans-serif;
    font-weight: 400;
}

body.page-template-tm-newhome #wrapper {
    /*background: linear-gradient(to top, rgba(211, 181, 170, 1), rgba(211, 181, 170, 0));*/
}

body.page-template-tm-newhome.bottom #wrapper {
    transition: background-color .7s cubic-bezier(0, 0, 0.2, 1);
    background-color: rgba(211, 181, 170, 1);
}

    /* Header */
    body #header {
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: center;
        z-index: 9999;
        pointer-events: none;
        padding: 60px 0;
        height: 204px;
    }

    body #logo {
        position: fixed;
        width: 100%;
    }

    body #logo h1 {
        border: none;
        pointer-events: auto;
    }

    body #logo h1 a {
        width: 200px;
        height: 64px;
        background-size: contain;
        background-image: url(../images/logo.png);
        background-position: 50% 50%;
        background-repeat: no-repeat;
        display: block;
        text-indent: -9999px;
    }

    body #menu-item-5134 {
        display: none;
    }

    /* Vertical Wrapper */
    body .vertical-wrapper {
        z-index: 9999;
        position: fixed;
        transition: bottom .7s ease;
    }

    body .vertical-wrapper.left {
        left: 65px;
        bottom: 40px;
        transform: rotate(-90deg);
        transform-origin: 0 0;
        -ms-transform: rotate(-90deg);
        -ms-transform-origin: 0 0;
        -webkit-transform: rotate(-90deg);
        -webkit-transform-origin: 0 0;
    }

    body.bottom .vertical-wrapper.left {
        bottom: 36%;
    }

    body .vertical-wrapper.left li {
        display: block;
        line-height: 20px;
        margin-right: 50px;
    }

    body .vertical-wrapper.right {
        right: 65px;
        bottom: 50%;
        transform: rotate(-90deg);
        transform-origin: 100% 0;
        -ms-transform: rotate(-90deg);
        -ms-transform-origin: 100% 0;
        -webkit-transform: rotate(-90deg);
        -webkit-transform-origin: 100% 0;
    }

    body.bottom .vertical-wrapper.right {
        bottom: 65%;
    }

    body .vertical-wrapper ul {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }

    body .vertical-wrapper a {
        font-family: "butler", serif;
        font-weight: normal;
        letter-spacing: 0.1em;
        transition: color .4s ease;
        font-size: 15px;
        line-height: 16px;
    }

    body .vertical-wrapper a:hover {
        opacity: .6;
    }

    body.body-hover .vertical-wrapper a,
    body.single-portfolio .vertical-wrapper a {
        color: #fff;
    }

    body .vertical-wrapper.right a {
        font-family: 'europa', sans-serif;
        font-weight: 600;
        letter-spacing: 2px;
        font-size: 13px;
        text-transform: uppercase;
    }

    /* Wrapper */
    body #wrapper {
        max-width: inherit;
        position: relative;
        padding: 0;
        margin: 0;
    }

    /* Grid */
    .newhome #col-principale {
        padding-bottom: 10vh;
    }

    .newhome #col-principale .col {
        width: 50%;
        float: left;
    }

    .newhome #col-principale .col-left  { padding: 0 5vw 0 10vw; }
    .newhome #col-principale .col-left .type-portfolio { margin-bottom: 20vh; }

    .newhome #col-principale .col-right { padding: 10vh 7vw 0 5vw; }
    .newhome #col-principale .col-right .type-portfolio { margin-bottom: 40vh; }

    .newhome #col-principale .col .type-portfolio:last-of-type { margin-bottom: 0; }

    .newhome .projects-list .type-portfolio {
        margin-bottom: 20vh;
        position: relative !important;
        width: 100% !important;
        max-height: inherit !important;
        border: none !important;
        pointer-events: auto !important;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

    .newhome .projects-list .type-portfolio a {
        display: block;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-image {
        position: relative;
        z-index: 10;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-image img {
        margin: 0 auto;
        display: block;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-content {
        display: block;
        z-index: 5;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-wrapper {
        height: 100%;
        display: table;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-text {
        display: table-cell;
        vertical-align: middle;
        text-align: center;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-text h2 a {
        text-transform: inherit;
        font-weight: normal;
        font-family: inherit;
        letter-spacing: 2px;
        font-style: normal;
        font-size: 32px;
        line-height: 32px;
        max-width: inherit;
        color: #fff;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-categories {
        display: none;
        position: inherit;
        bottom: inherit;
        width: inherit;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-categories li {
        margin-top: 20px;
        margin-right: -20%;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-categories li a {
        background-size: contain;
        width: 235px;
        height: 80px;
    }

    .newhome .projects-list .type-portfolio .portfolio-t-categories li.edition a {
        background-image: url(elements/cat-edition-w.png);
    }

    .newhome .projects-list .type-portfolio .portfolio-t-categories li.experimentation a {
        background-image: url(elements/cat-experimentation-w.png);
    }

    .newhome .projects-list .type-portfolio .portfolio-t-categories li.graphisme a {
        background-image: url(elements/cat-graphisme-w.png);
    }

    .newhome .projects-list .type-portfolio .portfolio-t-categories li.photographie a {
        background-image: url(elements/cat-photographie-w.png);
    }

    .newhome .projects-list .type-portfolio .portfolio-t-categories li.identity a {
        background-image: url(elements/cat-identity-w.png);
    }

    /* Hover on project */
    .page-template-tm-newhome.body-hover #logo h1 a {
        background-image: url(../images/logo-white.png);
    }

    .page-template-tm-newhome.body-hover #spinning-logo {
        background-image: url(../images/logo-round-white.png);
    }

    #spinning-logo {
        display: block;
        width: 100px;
        height: 100px;
        background-size: contain;
        background-image: url(../images/logo-round.png);
        background-position: 50% 50%;
        background-repeat: no-repeat;
        position: fixed;
        bottom: 120px;
        right: calc(48% - 100px);
        z-index: 9997;
        transition: transform .4s ease, opacity .4s ease;
    }

    body.bottom #spinning-logo {
        opacity: 0;
    }

    /* Footer */
    body #wrapper #footer {
        position: relative;
        z-index: 9998;
        display: flex;
        margin: 0;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
        padding: 0;
        transition: all .4s ease;
        opacity: 0;
    }

    body.bottom #wrapper #footer {
        opacity: 1;
    }

    body #wrapper #footer-text {
        width: 80%;
        padding: 100px 0 30px;
        display: flex;
        align-items: center;
    }

    body #wrapper #footer-text p {
        font-family: "butler", serif;
        font-weight: 300;
        color: #fff;
        font-size: 54px;
        line-height: 68px;
        width: 60%;
        max-width: 787px;
    }

    body #wrapper #footer-text a {
        color: #fff;
        font-weight: 600;
    }

    body #wrapper #footer-text a:hover {
        opacity: .6;
    }

    body #wrapper #footer-copyright {
        text-align: right;
        width: 80%;
        padding: 0 0 30px;
    }

    body #wrapper #footer-copyright p {
        font-size: 14px;
        line-height: 22px;
        width: 100%;
        color: #444;
    }

    body #wrapper #footer-copyright a {
        color: #444;
        font-size: inherit;
        font-family: inherit;
        padding: inherit;
        font-weight: inherit;
        font-style: inherit;
    }

    body #wrapper #footer-instagram {
        font-size: 0;
        width: 100%;
    }

    body .instagram-pics {
        display: flex;
        flex-wrap: wrap;
    }

    body .instagram-pics li {
        flex: 1;
    }

    body .instagram-pics li:last-child {
        display: none;
    }

    body #wrapper #footer-instagram img {
        display: block;
    }

/* Project */
body.single-portfolio.content-light #spinning-logo {
    background-image: url(../images/logo-round-white.png);
}

body.single-portfolio .portfolio {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 90%;
}

body.single-portfolio #portfolio-description {
    width: 50%;
    margin: 0;
    transform: translateY(-204px);
    padding-left: 120px;
    font-family: inherit;
}

body.single-portfolio #portfolio-images {
    width: 50%;
    margin: 0;
    padding-left: 40px;
}

body.single-portfolio #portfolio-description:before {
    display: none;
}

body.single-portfolio #portfolio-description img,
body.single-portfolio #portfolio-images img {
    width: 100%;
    height: auto;
    margin: 0;
}

body.single-portfolio #portfolio-content .col h2 {
    display: inline-block;
    margin: 0 0 40px 0;
    text-transform: inherit;
    font-size: 32px;
    line-height: 32px;
    max-width: inherit;
    color: #fff;
    font-weight: normal;
    letter-spacing: 0.07em;
    font-style: normal;
    font-family: 'butler', sans-serif;
}

body.single-portfolio #portfolio-content .col h3 {
    opacity: .7;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    padding-top: 10px;
    font-family: 'europa', sans-serif;
}

body.single-portfolio #portfolio-content .col p {
    margin: 50px 0;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.05em;
    font-family: 'europa', sans-serif;
    color: #444;
}

body.single-portfolio #portfolio-content .col a {
    text-decoration: un;
}

body.single-portfolio.content-light #logo h1 a {
    background-image: url(../images/logo-white.png);
}

body.single-portfolio.content-light #portfolio-content .col h2,
body.single-portfolio.content-light #portfolio-content .col p,
body.single-portfolio.content-light #portfolio-content .col a,
body.single-portfolio.content-light #portfolio-content .col table,
body.single-portfolio.content-light #portfolio-content .col tr,
body.single-portfolio.content-light #portfolio-content .col td {
    color: #fff;
}

body.single-portfolio.content-dark .vertical-wrapper a {
    color: #444;
}

body.single-portfolio.content-dark #portfolio-content .col h2,
body.single-portfolio.content-dark #portfolio-content .col p,
body.single-portfolio.content-dark #portfolio-content .col a,
body.single-portfolio.content-dark #portfolio-content .col table,
body.single-portfolio.content-dark #portfolio-content .col tr,
body.single-portfolio.content-dark #portfolio-content .col td {
    color: #444;
}

body.single-portfolio #portfolio-content .col p:first-of-type {
    margin-top: 0;
}

body.single-portfolio #portfolio-content .col table {
    margin: -30px 0 50px;
    font-size: 14px;
    line-height: 20px;
    max-width: inherit;
    font-weight: normal;
    color: #fff;
    font-family: 'butler', sans-serif;
    letter-spacing: 0.1em;
    width: 100%;
    max-width: 460px;
}

body.single-portfolio #portfolio-content .col table strong {
    font-weight: normal;
}

body.single-portfolio #portfolio-content .col table td {
    width: 33.33%;
}

body.single-portfolio #portfolio-content .col em {
    font-style: italic;
    font-weight: normal;
    font-family: 'europa', sans-serif;
}

body.single-portfolio #portfolio-footer {
    position: relative;
    z-index: 9999;
    max-width: inherit;
    background-color: #fff;
    margin: 80px 0 0 0;
}

body.single-portfolio #project-navigation {
    padding: 90px 0;
    max-width: 70%;
    margin: 0 auto;
}

body.single-portfolio #project-navigation .project-next,
body.single-portfolio #project-navigation .project-prev {
    border: 0;
    display: inline-block;
    vertical-align: inherit;
    width: 40%;
}

body.single-portfolio #project-navigation .project-prev {
    text-align: right;
    float: left;
}

body.single-portfolio #project-navigation .project-next {
    text-align: left;
    float: right;
}

body.single-portfolio #project-navigation strong {
    font-size: 40px;
    display: block;
    margin-bottom: 6px;
}

body.single-portfolio #project-navigation .post-link {
    left: inherit;
    right: inherit;
    top: inherit;
    position: inherit;
    margin: inherit;
    display: block;
}

body.single-portfolio #project-navigation .post-link a {
    border: 0;
    padding: 0;
    text-transform: inherit;
    letter-spacing: inherit;
}

body.single-portfolio #project-navigation .post-thumbnail {
    display: none;
}

body.single-portfolio #wrapper #footer {
    position: inherit;
    bottom: 0;
    opacity: 1;
    height: 100%;
    background-color: #304654;
}

body.single-portfolio #wrapper #footer-text {
    padding: 60px 0 100px;
}

body.single-portfolio #wrapper #footer #footer-text p,
body.single-portfolio #wrapper #footer #footer-text a,
body.single-portfolio #wrapper #footer #footer-copyright p,
body.single-portfolio #wrapper #footer #footer-copyright a {
    color: #d3b5aa;
}

/* About */
body.page-template-tm-about {
    min-height: inherit;
    background-color: #d3b5aa !important;
}

body.page-template-tm-about .vertical-wrapper.left {
    position: absolute;
    bottom: 30% !important;
}

body.page-template-tm-about .vertical-wrapper.right {
    display: none;
}

body.page-template-tm-about #content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 80%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

body.page-template-tm-about .about #a-propos {
    padding-left: 5%;
    padding-right: 8%;
    max-width: inherit;
    flex: 0 1 49%;
}

body.page-template-tm-about .about #a-propos p {
    font-size: 15px;
    width: 100%;
    font-weight: 300;
}

body.page-template-tm-about .about #a-propos p:nth-child(3) {
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    font-family: "butler", serif;
}

body.page-template-tm-about .about #a-propos p:nth-child(3) br {
    display: none;
}

body.page-template-tm-about .about #a-propos .entry-page {
    padding-bottom: 60px;
}

body.page-template-tm-about .about #a-propos-image {
    height: 80vh;
    margin-left: auto;
    width: 100%;
    flex: 0 1 50%;
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: cover;
}

body.page-template-tm-about #wrapper #footer {
    position: inherit;
    bottom: 0;
    opacity: 1;
    height: 100%;
    background-color: #304654;
}

body.page-template-tm-about #wrapper #footer-text {
    padding: 60px 0 100px;
}

body.page-template-tm-about #wrapper #footer #footer-text p,
body.page-template-tm-about #wrapper #footer #footer-text a,
body.page-template-tm-about #wrapper #footer #footer-copyright p,
body.page-template-tm-about #wrapper #footer #footer-copyright a {
    color: #d3b5aa;
}



/* RESPONSIVE */
/*
  ##Device = Most of Smartphones (Portrait)
  ##Screen = 320px to 767px (original: 479px)
*/
@media only screen and (min-width: 320px) and (max-width: 767px) {
    /* Header */
    body #header {
        /*height: auto;*/
        height: 190px;
    }

    body #logo {
        position: relative;
    }

    body .vertical-wrapper.left,
    body .vertical-wrapper.right {
        position: absolute;
        bottom: inherit;
        top: 140px;
        width: 100%;
        transition: none;
        left: inherit;
        right: inherit;
        transform: none;
        text-align: center;
    }

    body .vertical-wrapper.right {
        top: 210px;
    }

    body .vertical-wrapper.right ul {
        column-count: inherit;
    }

    body .vertical-wrapper.left li {
        margin: 0;
    }

    #spinning-logo {
        bottom: 20px;
        right: 10px;
    }

    /* Home */
    .newhome #col-principale {
        padding: 0 20px;
    }

    .newhome #col-principale .col-left,
    .newhome #col-principale .col-right {
        padding: 0;
        width: 100%;
        float: none;
        margin: 0 0 20px 0 !important;
    }

    .newhome #col-principale .col-left .type-portfolio,
    .newhome #col-principale .col-right .type-portfolio {
        margin-bottom: 20px;
    }

    /* Project */
    body.single-portfolio .portfolio {
        max-width: inherit;
        padding: 0 20px;
    }

    body .more-mobile {
        display: none;
    }

    body #portfolio-description, #portfolio-header .separator,
    body #portfolio-header .portfolio-tagline {
        display: block;
    }

    body.single-portfolio #portfolio-description,
    body.single-portfolio #portfolio-images {
        transform: none;
        width: 100%;
        padding-left: 0;
        margin: 0 !important;
    }

    .single-portfolio #portfolio-description img,
    .single-portfolio #portfolio-images img {
        width: 100%;
        height: auto;
    }

    body.single-portfolio #portfolio-content .col p {
        margin: 40px 0;
        line-height: 20px;
    }

    body.single-portfolio #portfolio-content .col h2 {
        font-size: 28px;
        line-height: 26px;
        margin: 30px 0;
    }

    body.single-portfolio #portfolio-content .col table {
        margin: -20px 0 60px;
        font-size: 12px;
        line-height: 18px;
    }

    body.single-portfolio #portfolio-footer {
        margin: 40px 0 0 0;
    }

    body.single-portfolio #project-navigation {
        max-width: inherit;
        padding: 70px 20px;
        display: block;
    }

    body.single-portfolio #project-navigation .project-prev,
    body.single-portfolio #project-navigation .project-next {
        width: 100%;
        display: block;
        float: none;
        text-align: center;
    }

    body.single-portfolio #project-navigation .project-prev {
        margin-bottom: 40px;
    }

    body.single-portfolio #project-navigation .post-link {
        float: none;
    }

    body.single-portfolio #project-navigation strong {
        font-size: 32px;
        margin-bottom: 8px;
    }

    body.single-portfolio #wrapper #footer-text {
        padding: 20px 0 40px;
    }

    /* About */
    body.page-template-tm-about #header {
        height: 140px;
    }

    body.page-template-tm-about #content {
        max-width: inherit;
        flex-direction: column-reverse;
    }

    body.page-template-tm-about .about #a-propos {
        padding: 0;
        flex: inherit;
    }

    body.page-template-tm-about .about #a-propos p:nth-child(3) {
        font-size: 16px;
        line-height: 24px;
    }

    body.page-template-tm-about .about #a-propos-image {
        margin-left: inherit;
        height: 80vh;
        margin-bottom: 30px;
    }

    /* Footer */
    body #wrapper #footer {
        opacity: 1 !important;
        transition: none;
        background: #d3b5aa;
        padding: 20px 0 0;
    }

    body #wrapper #footer-text {
        padding: 20px 20px 40px !important;
        width: 100%;
    }

    body #wrapper #footer-text p {
        width: 100%;
        font-size: 28px;
        line-height: 34px;
    }

    body #wrapper #footer-copyright {
        text-align: left;
        width: 100%;
        padding: 0 20px;
        margin: 20px 0px;
    }

    body #wrapper #footer-copyright p {
        font-size: 12px;
        line-height: 20px;
    }

    body #wrapper #footer-instagram {
        margin: 0 -20px;
    }

    body .instagram-pics li {
        flex: 0 1 50%;
    }

    body .instagram-pics li:last-child {
        display: block;
    }
}

/* Landscape */
@media only screen and (min-width : 321px) and (max-width : 767px) and (orientation : landscape) {
    body.page-template-tm-about #content {
        flex-direction: column;
    }

    body.page-template-tm-about .about #a-propos {
        flex: 0 1 50%;
        padding-right: 8%;
    }
}

/*
  ##Device = Tablets
  ##Screen = 768px to 1024px
*/
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    /* Header */
    #header {
        margin: 0 !important;
    }

    body #logo {
        position: relative;
    }

    /* Vertical Menus */
    body .vertical-wrapper.left {
        left: 35px;
        bottom: 30% !important;
    }

    body .vertical-wrapper.right {
        right: 60px;
    }

    /* Projects */
    body .projects-list {
        width: 80%;
        margin: 0 auto;
    }

    body .projects-list .type-portfolio {
        width: 50% !important;
    }

    /* Project */
    body .more-mobile {
        display: none;
    }

    body.single-portfolio .portfolio {
        max-width: 80%;
        padding: 0;
    }

    body #portfolio-description, #portfolio-header .separator,
    body #portfolio-header .portfolio-tagline {
        display: block;
    }

    body.single-portfolio #portfolio-description {
        transform: none;
        width: 50%;
        float: right;
        padding-left: 30px;
        margin: 0 !important;
    }

    body.single-portfolio #portfolio-images {
        transform: none;
        width: 50%;
        float: left;
        padding-right: 30px;
        padding-left: 0;
        margin: 0 !important;
    }

    body.single-portfolio #portfolio-content .col p {
        margin: 40px 0;
        line-height: 20px;
    }

    body.single-portfolio #portfolio-content .col h2 {
        font-size: 28px;
        line-height: 26px;
        margin: 30px 0;
    }

    body.single-portfolio #portfolio-content .col table {
        margin: -20px 0 60px;
        font-size: 12px;
        line-height: 18px;
    }

    body.single-portfolio #portfolio-footer {
        margin: 40px 0 0 0;
    }

    body.single-portfolio #project-navigation .project-prev {
        margin-bottom: 0;
    }

    body.single-portfolio #project-navigation strong {
        font-size: 32px;
        margin-bottom: 8px;
    }

    /* About */
    body.page-template-tm-about .about #a-propos {
        flex: 0 1 56%;
    }

    body.page-template-tm-about .about #a-propos-image {
        flex: 0 1 44%;
        height: 80vh;
    }

    body.page-template-tm-about #content {
    }

    /* Footer */
    body.bottom #wrapper #footer {
        opacity: 1;
    }

    body #wrapper #footer-text {
        padding: 100px 15px 30px;
    }

    body #wrapper #footer-text p {
        font-size: 32px;
        line-height: 42px;
        max-width: inherit;
        width: 70%;
    }
}

/* Tablets (portrait) ----------- */
@media only screen and (min-width : 768px) and (max-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 1) {
    body.page-template-tm-about #content {
        flex-direction: column-reverse;
    }

    body.page-template-tm-about .about #a-propos {
        padding: 0;
        flex: inherit;
    }

    body.page-template-tm-about .about #a-propos-image {
        margin-left: inherit;
        height: 80vh;
        margin-bottom: 30px;
    }
}

@media only screen and (min-height: 768px) and (min-width: 2000px) {
    body.bottom .vertical-wrapper.left {
        bottom: 50%;
    }
}
