@color1 : #629DD1;
@color2 : #23527c;

/* Generique */
.flex {
    display: flex;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-1 {
    flex: 1;
}

/* Breadcrumb et mise en avant */
.color1 {
    color: @color1;
}

.menu_principal {
    top: 49px !important;
}

.menu_principal li {
    margin: 0 !important;
}

.menu_principal a, .menu_principal div {
    background-color: @color1;
}

.submenu a{
    background-color: #fff;
    color: @color1;
}

.input-group-addon{
    background-color: @color1;
    border-color: @color1;
}

.menu_principal a:hover, .menu_principal div:hover {
    background-color: darken(@color1, 25%);
}

legend {
    height: 40px !important;
    border-color: @color1;
}

#breadcrumbs-one a {
    color: black;
}

/* TopBar */

#topbar {
    background-color: lighten(@color1, 33%);
    border-bottom: 1px solid @color1;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

#title{
    margin: 10px;
    padding: 0;
}

#titlebar {
    display: inline-block;
}

#titlebar * {
    display: inline;
    font-size: 30px;
    font-weight: 500;
    color: rgb(51, 122, 183);
}

#titlebar select {
    width: 170px;
}

#titlebar sup {
    font-size: 20px;
}

#loginbar{
    margin-top: 3px;
}

#loginbar * {
    color: darken(@color1, 25%);
}

.menu-hamburger {
    color: @color1;
    top: 7px;
    left: 20px;
    position: fixed;
    cursor: pointer;
    font-size: 3em;
}

.menu-hamburger:hover {
    color: darken(@color1, 25%);
}

/* Version réduite */
@media(max-width:768px){
    #title {
        display : none;
    }

    #loginbar {
        display : none;
    }
}

#topline2 {
    text-align: center;
    margin-bottom: 1em;
}


/* Fond de la sidebar */
.color2 {
    color: #5a5555;
}

#wrapper.toggled-2 #sidebar-wrapper {
    background-color: #5a5555;
}

.background-color2 {
    background-color: #5a5555;
}

#a-li-menu-l2-active {
    border-bottom-color: #5a5555;
}

textarea:not(:empty):not(:placeholder-shown):not(:focus)[aria-invalid='true'],input:not([value=""]):not(:placeholder-shown):not(:focus)[aria-invalid='true']{
    background-color: rgba(255, 0, 0, 0.5) /*rgba(218, 18, 81, O.5)*/}

input[aria-required='true'], textarea[aria-required='true'] {
     border-color:#f00
}

.pagination {
     background: #eee;
    padding: 10px;
    width: 100%;
    text-align:center;
    margin:0;
}

.flex-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.disabled-input-as-label {
    border: 0px;
    background: none;
}

label[for="recherche"]{
    width: 210px;
}


header .search{
    cursor: pointer;
}

h1 .sup{
    font-size: 0.7em;
    top: -.6em;
}

header nav{
    padding: 0 1em 0 1em;
    border-bottom: 1px solid;
}

#content {
    margin: 3em auto;
    width: 80%;
}

/* Home */
.home-content {
    width: 100%;
}

.home-content .row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.home-content .card {
    height: 100%;
    width: 22em;
    min-width: 22em;
    border-radius: 1em;
    background-color: lighten(@color1, 30%);
    margin: 2em 2em;
    padding: 1em;
}

.home-content .card * {
    width: 90%;
    margin-left: 5%;
}

.home-content .card h3 {
    text-align: center;
}

.breadcrumb-arrow {
    float: left;
    padding: 0.7em 0.5em 0.7em 0.5em;
}

.annotation {
    color: #666666;
    font-size: 0.9em;
}

/* Pages d'index */

#content header {
    display: flex;
    flex-direction: row;
    color: @color2;
    margin-bottom: 2em;
}

#content header h2 {
    flex: 2;
    font-size: 1.8em;
    margin: 0;
}

#content header a {
    flex: 1;
    padding: 0 1em;
}

.datatable tbody>tr:hover{
    cursor: pointer;
    background-color: lighten(@color1, 30%);
}

.special_hidden {
    float: right;
    width: 0;
    height:0;
    border:none;
    background:none;
    color:white;
}

#yearpicker {
    color: #337ab7;
    border: 1px solid lightgrey;
}

#goback {
    color:#337ab7;
    font-size: 18px;
}

/* Formulaires */

.btn-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.btn-bar .btn {
    margin-left: 15px;
}