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

html {
    min-height: 100%;
    position: relative;
}

body {
    -webkit-font-smoothing: antialiased;
    background: #fff url(../img/trame.png);
    color: #666;
    font-family: 'montserratlight', sans-serif;
    height: 100%;
    width: 100%;
}

body#home {
    background: #fff;
    width: 100%;
}

body#home #home-content {
    bottom: 0;
    display: none;
    height: 100%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 30;
}

body#home #home-content .table {
    display: table;
    height: 100%;
    width: 100%;
}

body#home #home-content .cell {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

body#home #home-content .row {
    display: inline-block;
    text-align: left;
}

body#home #home-background {
    background-color: #fff;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 0;
    height: 100%;
    opacity: 0.1;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 10;
}

.grayscale {
    filter: grayscale(100%); /* Current draft standard */
    -webkit-filter: grayscale(100%); /* New WebKit */
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%); 
    -o-filter: grayscale(100%); /* Not yet supported in Gecko, Opera or IE */ 
    filter: url(resources.svg#desaturate); /* Gecko */
    filter: gray; /* IE */
    filter: grayscale(1); /* Firefox */
    -webkit-filter: grayscale(1); /* Old WebKit */
}

.row {
    margin-left: -5px;
    margin-right: -5px;
}

.row [class*='col-']:not(:first-child),
.row [class*='col-']:not(:last-child) {
    padding-right: 5px;
    padding-left: 5px;
}

.row [class*='col-'] {
    margin-bottom: 5px;
    margin-top: 5px;
}

.container {
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.container-fluid>.navbar-collapse,
.container-fluid>.navbar-header,
.container>.navbar-collapse,
.container>.navbar-header {
    margin-left: 0;
    margin-right: 0;
}

a,
a:hover,
a:focus,
a:active {
    color: #333;
    outline: none;
}

.btn,
.btn:hover,
.btn:focus,
.btn:active {
    outline: none;
}

.close.close-out {
    background: #fff;
    border-radius: 50%;
    border: 1px solid #666;
    color: #666;
    float: none;
    opacity: 1;
    padding: 0 7px 3px 7px;
    position: absolute;
    right: -15px;
    top: -15px;
    z-index: 1030;
}

.close.close-out:hover {
    border: 1px solid #333;
    color: #333;
}

body > .container {
    background-color: #fff;
    padding-top: 60px;
}

.footer {
    color: #666;
    line-height: 18px;
    padding-top: 20px;
    z-index: 1030;
}

.footer a {
    color: #666;
}

.footer a:hover {
    color: #333;
}

.navbar>.container .navbar-brand,
.navbar>.container-fluid .navbar-brand {
    margin-left: -10px;
}

.navbar-toggle {
    margin-right: 10px;
}

#navbar-main {
    background: none;
    border: 0;

}

body#home #navbar-main {
    background-color: #fff;
}

#navbar-main > .container {
    background-color: #fff;
        padding-top : 5px; /* AJOUT RICHARD */
}

#navbar-main .navbar-brand {
    color: #333;
    height: 60px;
    max-height: 60px;
    padding: 5px 10px 0 10px;
}

#navbar-main .navbar-nav {
    margin-right : 5px;
}

#navbar-main .navbar-nav > li > a {
    padding-left : 5px;
    padding-right : 5px;
    margin-left : 10px;
}

#navbar-main .navbar-nav > li > a {
    color: #666;
    font-size: 18px;
    padding-bottom: 5px;
    padding-top: 5px;
}

#navbar-main .navbar-nav > li:hover > a {
    /*color: #333;*/
    background-image: url(../img/trame.png);
}

#navbar-main .navbar-nav>.active>a,
#navbar-main .navbar-nav>.active:hover>a {
    background-color: transparent;
    /*color: #333;*/
    background-image: url(../img/trame.png);
}


.modal-open {
    overflow-y: auto;
}

body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
    padding-right: 0 !important;
    margin-right: 0;
}

body.modal-open > .container {
    padding-left: 10px;
}

.modal-backdrop {
    background-color: #fff;
}

.modal-backdrop.in {
    filter: alpha(opacity=90);
    opacity: .9;
}


#page-atelier {
    margin: 0 auto;
    max-width: 900px;
}


.projects .project {
    height: 280px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.projects .project img {
    -webkit-transition: all ease .5s;
    -moz-transition: all ease .5s;
    -ms-transition: all ease .5s;
    -o-transition: all ease .5s;
    transition: all ease .5s;
    width: 100%;
}

.projects .project .project_container {
    -webkit-transition: all ease .5s;
    -moz-transition: all ease .5s;
    -ms-transition: all ease .5s;
    -o-transition: all ease .5s;
    transition: all ease .5s;
    background-color: #fff;
    background-image: url(../img/trame.png);
    bottom: 0;
    color: #666;
    left: 0;
    overflow: hidden;
    padding: 12px;
    position: absolute;
    right: 0;
    top: 160px;
    z-index: 5;
}

html:not(.touch) .projects .project .project_container:hover {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
}

.projects .project .project_container .title {
    color: #666;
    display: block;
    font-size: 16px;
    height: 105px;
    text-decoration: none;
}

.projects .project .project_container .title span {
    font-size: 21px;
}

.projects .project .project_container .desc {
    font-size: 12px;
}

.projects .project img {
    margin-top: -25%;
}

html:not(.touch) .projects .project:hover img {
    margin-top: 0;
}

html:not(.touch) .projects .project:not(.open_content):hover .project_container {
    padding-bottom: 0;
    padding-top: 0;
    top: 100%;
}

html:not(.touch) .projects .project:not(.open_thumb) .project_container:hover {
    padding-bottom: 12px;
    padding-top: 12px;
    top: 0;
}

.projects .project .category {
    display: block;
    height: 280px;
    left: 0;
    position: absolute;
    top: -280px;
    width: 100%;
    z-index: 4;
}

.projects .project .category a {
    color: #666;
    display: block;
    height: 100%;
    width: 100%;
}

.projects .project .category span {
    background-color: #fff;
    background-image: url(../img/trame.png);
    display: block;
    font-size: 20px;
    left: 0;
    line-height: 30px;
    padding: 10px 5px 5px 5px;
    position: absolute;
    top: 0;
    width: 100%;
}

.projects .project .category {
    -webkit-transition: all ease .5s;
    -moz-transition: all ease .5s;
    -ms-transition: all ease .5s;
    -o-transition: all ease .5s;
    transition: all ease .5s;
}

html:not(.touch) .projects .project:not(.open_content):hover .category {
    -webkit-transition: all ease .5s;
    -moz-transition: all ease .5s;
    -ms-transition: all ease .5s;
    -o-transition: all ease .5s;
    transition: all ease .5s;
    top: 0;
}

#project {
    position: relative;
}

#project-container {
    height: 570px;
}

#project-content {
    bottom: 0;
    padding-right: 5px;
    position: absolute;
}

#project-content h2 {
    margin-top: 0;
    margin-bottom : 10px;
}

#project-content p {
    margin-bottom: 0;
    max-height: 500px;
    overflow-y: auto;
}

.project-icon {
    width: 40px;
}

.project-icon img {
    opacity: 0.6;
}

.project-icon:hover img {
    opacity: 1;
}

/* AJOUT RICHARD */

#navbar .dropdown-menu>li>a {
    color : #666;
    padding-left : 5px;
    margin-left : 7px;
}

#navbar .navbar-right ul.dropdown-menu {
    left : 0;
    right : auto;
}

#navbar .dropdown-menu>li>a:hover {
    color : #333;
    background-color: #FFF;
    background-image: url('../img/trame.png');

}

.row.gallery img {
	opacity : 1;
}

.row.gallery a:hover img {
	opacity : 0.6;
}

h1,h2,h3,h4,h5,h6 {
	font-weight : normal;
	padding : 0;
	margin : 0;
}

.projects .project a.project_container {
	display : block;
	text-decoration : none;
}


/* FIN AJOUT RICHARD */


@media all and (max-width: 767px) {
    body#home #home-content h1 {
        font-size: 30px;
    }

    body#home #home-content h2 {
        font-size: 25px;
    }

    #page-atelier {
        max-width: 600px;
    }

    .projects .project {
        height: auto;
    }

    .projects .project img {
        margin-top: 0;
    }

    .projects .project .project_container {
        position: initial;
    }

    .projects .project .project_container .title {
        height: auto;
    }

    .projects .project .project_container .desc {
        display: none;
    }

    html:not(.touch) .projects .project .project_container:hover {
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
    }

    html:not(.touch) .projects .project:not(.open_content):hover .project_container {
        padding-bottom: 12px;
        padding-top: 12px;
        top: initial;
    }

    html:not(.touch) .projects .project:not(.open_thumb) .project_container:hover {
        padding-bottom: 12px;
        padding-top: 12px;
        top: initial;
    }

    .projects .project .category {
        display: none;
    }

    #project {
        margin: 0 auto;
        max-width: 600px;
    }

    #project-container {
        height: auto;
    }

    #project-content {
        position: relative;
    }

    #project-content h2 {
        font-size: 20px;
    }

    #project-content p {
        font-size: 12px;
    }
}

@media all and (min-width: 768px) and (max-width: 991px) {
    #project-container {
        height: 360px;
    }

    /*#project-content p {
        max-height: 280px;
    }*/
    #project-content {
        max-height: 330px;
        overflow : auto;
    }

    #project-content h2 {
        font-size: 20px;
    }

    #project-content p {
        font-size: 12px;
    }
}

@media all and (min-width: 992px) {
    #page-atelier #col-r-l,
    #page-atelier #col-r-r {
        height: 445px;
        max-height: 445px;
        overflow-y: auto;
    }
}

@media all and (min-width: 992px) and (max-width: 1199px) {
    #project-container {
        height: 470px;
    }

    #project-content p {
        max-height: 370px;
    }
}








