﻿/* Font Lato */
/*@import url('https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i&subset=latin-ext');*/
/*@import url(https://fonts.googleapis.com/css?family=Droid+Sans:400,700);
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
@import url(https://fonts.googleapis.com/css?family=Lato:400,300italic,300,400italic);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,300italic,300);*/


/*-------------------------------------------------------------
					GLOBAL STYLE
--------------------------------------------------------------- */
html,
button,
input,
select,
textarea {
    font-size: 1em;
    line-height: 1.4;
}

:focus {
    outline: none;
}

body {
    height: auto;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
    font-size: 1em;
    line-height: 1.4;
}

img {
    max-width: 100%;
}

img.show-border {
    border: 1px solid #51a728;
    padding: 10px;
}

ol, ul {
    padding: 0;
    margin: 1em 0;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    position: relative;
    /*font-family: 'Montserrat', sans-serif;*/
    font-weight: normal;
    background: none;
    line-height: 1.4em;
}

h1 {
    border-left: 5px solid #51a728;
    color: #51a728;
    font-size: 2.2em;
    padding-left: 10px;
    margin: 0.67em 0;
    margin-top: 0.3em;
    font-weight: 700;
}

h3 {
    border-bottom: 1px solid #51a728;
    color: #51a728;
    font-size: 1.2em;
    padding: 10px 0;
    font-weight: 700;
    margin-bottom: 20px;
}

h5 {
    margin-bottom: 10px;
    font-weight: bold;
    margin-top: 10px;
}

.no-wrap {
    white-space: nowrap;
}

.no-margin {
    margin: 0 !important;
}

.no-margin-top {
    margin-top: 0 !important;
}

.no-margin-bottom {
    margin-bottom: 0 !important;
}

.no-padding {
    padding: 0 !important;
}

.no-padding-left {
    padding-left: 0 !important;
}

.no-padding-right {
    padding-right: 0 !important;
}

.no-padding-top {
    padding-top: 0 !important;
}

.no-padding-bottom {
    padding-bottom: 0 !important;
}

.asteriskField {
    color: #ff0000;
}

/** Colors **/
.red {
    color: #ff0000;
}

.green {
    color: #51a728;
}

.bleu {
    color: #013581;
}

.grey {
    color: #999999 !important;
}

/*-------------------------------------------------------------
					ANGULAR MATERIAL
--------------------------------------------------------------- */
.md-default-theme .md-datepicker-open .md-datepicker-calendar-icon,
.md-datepicker-open .md-datepicker-calendar-icon {
    color: #51a728;
}

.md-default-theme .md-datepicker-input-container.md-datepicker-focused,
.md-datepicker-input-container.md-datepicker-focused {
    border-bottom-color: #51a728;
}

.md-default-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator, .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator, .md-default-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator, .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator {
    background: #51a728;
}

/*-------------------------------------------------------------
					BOOTSTRAP
--------------------------------------------------------------- */
section {
    margin: 0 0 30px;
}

blockquote {
    border-left: 5px solid #51a728;
    background-color: #dff0d8;
}

/*------------------------ Tables -------------------------------*/
.table {
    margin-top: 20px;
}


.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    padding: 5px !important;
    font-size: 90%;
}

.table > thead > tr > th.filter {
    padding: 5px 15px;
}

.table > thead > tr > th {
    border-bottom: 0;
    border-top: 0;
    text-align: left;
    /*border-left: 1px solid #ffffff !important;*/
    font-weight: 400;
    /*width: 14%;*/
}

.table > thead > tr > th:focus {
    outline: none;
    box-shadow: none;
}

.table > tbody > tr:last-of-type {
    border-bottom: 1px solid #ddd;
}

.table.vertical-align > tbody > tr > td {
    vertical-align: middle;
}

.ng-table th.sortable.sort-asc,
.ng-table th.sortable.sort-desc {
    background-color: inherit;
    text-shadow: none;
}

.ng-table-sort-header {
    color: #ffffff;
    background-color: #51a728;
}

.ng-table th.sortable .sort-indicator {
    width: 100%;
    float: right;
}

.ng-table th.sortable .sort-indicator:before {
    border-top-color: #ffffff;
    border-bottom-color: #ffffff !important;
    opacity: .8;
}

.ng-table th.sortable .sort-indicator:after {
    border-bottom-color: #ffffff;
    border-top-color: #ffffff !important;
    opacity: .8;
}

.ng-table th.sortable.sort-asc .sort-indicator:after,
.ng-table th.sortable.sort-asc .sort-indicator:hover:after,
.ng-table th.sortable.sort-desc .sort-indicator:after {
    opacity: .8;
}

.ng-table tr.typo {
    background-color: #f9f9f9;
}

.ng-table-pager .btn.btn-default {
    padding: 6px 12px !important;
}

.ng-table .input-table {
    width: 80%;
    display: inline;
}

/*------------------------ Forms -------------------------------*/
.form-horizontal .control-label {
    padding-top: 3px;
    font-size: 14px;
}

.input-group-addon {
    border-radius: 0;
}

label {
    font-weight: 400;
}

textarea {
    resize: vertical;
}

.form-inline {
    margin: 0 0 12px;
}

.form-control {
    border-radius: 0;
    box-shadow: none;
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: #51a728;
}

/*------------------------ Buttons -------------------------------*/
.btn.disabled, .btn[disabled] {
    color: #c3c3c3;
    pointer-events: none;
}

.btn {
    border-radius: 0;
    padding: 15px 30px;
    margin: 0 0 10px 0;
}

.btn > .fa {
    margin-right: 10px;
}

.btn-default {
    border-color: #51a728;
    color: #51a728;
}

.btn-default:hover,
.btn-default.focus,
.btn-default:focus,
.btn-default.active.focus,
.btn-default.active:focus,
.btn-default.active:hover,
.btn-default:active.focus,
.btn-default:active:focus,
.btn-default:active:hover {
    background-color: #f9f9f9;
    border-color: #51a728;
    color: #51a728;
}

.btn-success {
    color: #fff;
    background-color: #51a728;
    border-color: #51a728;
}

.btn-success:hover {
    background-color: #7FC05F;
    border-color: #7FC05F;
}

button:focus {
    box-shadow: none !important;
    outline: none !important;
}

.btn-table {
    padding: 6px 12px;
    border: none;
    font-size: 1em;
    margin: 2px;
}

.btn-table > .fa {
    margin: 0;
}

.btn-group-vertical > button {
    border-radius: 0 !important;
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.btn-lien-table {
    background: none;
    padding: 0;
    margin: 0;
    margin: 0 5px;
}

.btn-lien-table > .fa {
    margin: 0;
}

.btn-lien-table.red:hover > .fa {
    color: #aa0f0f;
}

.btn-suppr-qst {
    text-align: center;
    white-space: normal;
}

.btn-suppr-qst > .fa {
    display: block;
    margin: 0;
}

/*.bloc-btn-fixed {
	position: relative;
}*/

.fix-to-top {
    position: fixed !important;
    top: 10px;
}

.fix-to-top > button {
    display: block;
}

/*------------------------ Pagination -------------------------------*/
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    background-color: #51a728;
    border-color: #51a728;
}

.pagination > li > a,
.pagination > li > span {
    color: #51a728;
}

/*------------------------ Panels -------------------------------*/
.panel {
    border-radius: 0 !important;
    box-shadow: none;
}

.panel-default > .panel-heading {
    background-color: #f9f9f9;
    border-radius: 0 !important;
    padding: 5px 15px;
    /*border-color: #51a728;
        background-color: #51a728;
        color: #ffffff;*/
}

/*------------------------ Modals -------------------------------*/
.modal-body > button.close {
    display: none;
}

.modal-footer {
    text-align: center;
}

.modal-footer .btn + .btn {
    margin-bottom: 10px;
    margin-left: 15px;
}

/*-------------------------------------------------------------
					HEADER NAV
--------------------------------------------------------------- */

.navbar-custom {
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #c3c3c3;
    height: 150px;
    margin-bottom: 50px;
    margin-top: -14px;
    position: relative;
    border-radius: 0;
}

.navbar-custom.bo-nav {
    display: flex;
    margin-top: 0;
}

.bo-nav > .bo-nav-container {
    display: flex;
    align-items: center;
}

.navbar-header {
    max-height: 100%;
}

.bo-nav .navbar-header {
    max-height: 100%;
}

.navbar-brand {
    height: auto;
    padding: 0;
}

.navbar-brand > img {
    width: 310px !important;
}

.bo-nav .navbar-brand > img {
    width: 210px !important;
}

.nav > li > a {
    padding: 0;
}

.navbar-collapse,
.navbar-collapse.collapse {
    height: 100% !important;
    position: relative;
}

.navbar-collapse > ul {
    overflow: hidden;
    padding-right: 23px;
    height: 100%;
}

.navbar-collapse > ul > li {
    display: inline-block;
    height: 38px;
    padding-top: 96px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.85em;
    color: #666;
    font-weight: bold;
    padding-bottom: 8px;
    height: 100%;
}

.navbar-collapse > ul > li:hover {
    border-bottom: 8px solid #51a728;
    color: #51a728;
    font-weight: 700;
}

.navbar-collapse > ul > li > a {
    color: #666;
}

.navbar-collapse > ul > li:hover > a,
.navbar-collapse > ul > li > a:hover,
.navbar-collapse > ul > li > a:focus {
    background-color: transparent !important;
    color: #51a728;
    font-weight: 700;
}

@media (max-width: 768px) {
    .navbar-header {
        padding: 15px 0;
        border-bottom: 1px solid #51a728;
        height: 133px;
        margin: 0 !important;
    }
    
    .bo-nav .navbar-header {
        border-bottom: none;
        height: 100%;
    }

    .navbar-custom {
        height: auto;
        margin-bottom: 10px;
    }

    .navbar-toggle {
        float: left;
        margin-top: 0;
        margin-bottom: 0;
        border: none;
        height: 100%;
    }

    .navbar-toggle .icon-bar {
        background-color: #51a728;
        height: 3px;
    }

    .navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
        -ms-transform: rotate(45deg);
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        position: relative;
        top: 6px;
    }

    .navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
        opacity: 0;
    }

    .navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(4) {
        -ms-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        position: relative;
        top: -8px;
    }

    .navbar-brand > img {
        width: 240px !important;
    }

    .navbar-nav {
        margin: 0;
    }

    .navbar-collapse > ul {
        padding-right: 10px;
        height: auto;
    }

    .navbar-collapse > ul > li {
        min-height: inherit;
        display: block;
        height: auto;
        padding: 15px;
        margin-bottom: 0;
        font-size: 0.85em;
    }
}

/*-------------------------------------------------------------
					OTHERS : CUSTOM
--------------------------------------------------------------- */
.bloc-question {
    background-color: whitesmoke;
    padding: 15px;
}

/*-------------------------------------------------------------
					ANIMATIONS
--------------------------------------------------------------- */
.main-view.ng-enter {
    animation: fadeIn 0.4s both ease-in;
    z-index: 8888;
}

.main-view.ng-leave {
    animation: fadeOut 0.2s both ease-in;
    z-index: 9999;
}

/* leaving animations 
--------------------------------------------------------------- */
/* fade out */
/*@keyframes fadeOut {
	from {
		opacity: 0.5;
	}

	to {
		opacity: 0;
		-webkit-transform: scale(0.99);
	}
}*/

/* entering animations
--------------------------------------------------------------- */
/* fade in */
/*@keyframes fadeIn {
	from {
		opacity: 0;
		-webkit-transform: scale(0.99);
	}

	to {
		opacity: 1;
	}
}*/

/** Loader **/
#cssload {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .8);
    z-index: 9999;
    display: none; /* flex : contexte sur le parent */
    flex-direction: column; /* direction d'affichage verticale */
    justify-content: center; /* alignement vertical */
    background-attachment: fixed;
    background-size: cover;
}

.cssload-thecube {
    width: 73px;
    height: 73px;
    margin: 0 auto;
    /*margin-top: 49px;*/
    position: relative;
    transform: rotateZ(45deg);
    -o-transform: rotateZ(45deg);
    -ms-transform: rotateZ(45deg);
    -webkit-transform: rotateZ(45deg);
    -moz-transform: rotateZ(45deg);
}

.cssload-thecube .cssload-cube {
    position: relative;
    transform: rotateZ(45deg);
    -o-transform: rotateZ(45deg);
    -ms-transform: rotateZ(45deg);
    -webkit-transform: rotateZ(45deg);
    -moz-transform: rotateZ(45deg);
}

.cssload-thecube .cssload-cube {
    float: left;
    width: 50%;
    height: 50%;
    position: relative;
    transform: scale(1.1);
    -o-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
}

.cssload-thecube .cssload-cube:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #51a728;
    animation: cssload-fold-thecube 2.76s infinite linear both;
    -o-animation: cssload-fold-thecube 2.76s infinite linear both;
    -ms-animation: cssload-fold-thecube 2.76s infinite linear both;
    -webkit-animation: cssload-fold-thecube 2.76s infinite linear both;
    -moz-animation: cssload-fold-thecube 2.76s infinite linear both;
    transform-origin: 100% 100%;
    -o-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    -webkit-transform-origin: 100% 100%;
    -moz-transform-origin: 100% 100%;
}

.cssload-thecube .cssload-c2 {
    transform: scale(1.1) rotateZ(90deg);
    -o-transform: scale(1.1) rotateZ(90deg);
    -ms-transform: scale(1.1) rotateZ(90deg);
    -webkit-transform: scale(1.1) rotateZ(90deg);
    -moz-transform: scale(1.1) rotateZ(90deg);
}

.cssload-thecube .cssload-c3 {
    transform: scale(1.1) rotateZ(180deg);
    -o-transform: scale(1.1) rotateZ(180deg);
    -ms-transform: scale(1.1) rotateZ(180deg);
    -webkit-transform: scale(1.1) rotateZ(180deg);
    -moz-transform: scale(1.1) rotateZ(180deg);
}

.cssload-thecube .cssload-c4 {
    transform: scale(1.1) rotateZ(270deg);
    -o-transform: scale(1.1) rotateZ(270deg);
    -ms-transform: scale(1.1) rotateZ(270deg);
    -webkit-transform: scale(1.1) rotateZ(270deg);
    -moz-transform: scale(1.1) rotateZ(270deg);
}

.cssload-thecube .cssload-c2:before {
    animation-delay: 0.35s;
    -o-animation-delay: 0.35s;
    -ms-animation-delay: 0.35s;
    -webkit-animation-delay: 0.35s;
    -moz-animation-delay: 0.35s;
}

.cssload-thecube .cssload-c3:before {
    animation-delay: 0.69s;
    -o-animation-delay: 0.69s;
    -ms-animation-delay: 0.69s;
    -webkit-animation-delay: 0.69s;
    -moz-animation-delay: 0.69s;
}

.cssload-thecube .cssload-c4:before {
    animation-delay: 1.04s;
    -o-animation-delay: 1.04s;
    -ms-animation-delay: 1.04s;
    -webkit-animation-delay: 1.04s;
    -moz-animation-delay: 1.04s;
}

@keyframes cssload-fold-thecube {
    0%, 10% {
        transform: perspective(136px) rotateX(-180deg);
        opacity: 0;
    }

    25%, 75% {
        transform: perspective(136px) rotateX(0deg);
        opacity: 1;
    }

    90%, 100% {
        transform: perspective(136px) rotateY(180deg);
        opacity: 0;
    }
}

@-o-keyframes cssload-fold-thecube {
    0%, 10% {
        -o-transform: perspective(136px) rotateX(-180deg);
        opacity: 0;
    }

    25%, 75% {
        -o-transform: perspective(136px) rotateX(0deg);
        opacity: 1;
    }

    90%, 100% {
        -o-transform: perspective(136px) rotateY(180deg);
        opacity: 0;
    }
}

@-ms-keyframes cssload-fold-thecube {
    0%, 10% {
        -ms-transform: perspective(136px) rotateX(-180deg);
        opacity: 0;
    }

    25%, 75% {
        -ms-transform: perspective(136px) rotateX(0deg);
        opacity: 1;
    }

    90%, 100% {
        -ms-transform: perspective(136px) rotateY(180deg);
        opacity: 0;
    }
}

@-webkit-keyframes cssload-fold-thecube {
    0%, 10% {
        -webkit-transform: perspective(136px) rotateX(-180deg);
        opacity: 0;
    }

    25%, 75% {
        -webkit-transform: perspective(136px) rotateX(0deg);
        opacity: 1;
    }

    90%, 100% {
        -webkit-transform: perspective(136px) rotateY(180deg);
        opacity: 0;
    }
}

@-moz-keyframes cssload-fold-thecube {
    0%, 10% {
        -moz-transform: perspective(136px) rotateX(-180deg);
        opacity: 0;
    }

    25%, 75% {
        -moz-transform: perspective(136px) rotateX(0deg);
        opacity: 1;
    }

    90%, 100% {
        -moz-transform: perspective(136px) rotateY(180deg);
        opacity: 0;
    }
}
