@font-face{

    font-family: "Poppins";
    src:   url('../font/poppins-medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face{

    font-family: "Poppins";
    src:   url('../font/poppins-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --green: #9CAF44;
    --red : #D4480B;
    --blue : #2E3561;
    --orange :#DB9E16;
    --bg-redTransparent : #faebe4;
    --bg-cancel :#808080;
    --main-color-dark:#4D4D4D;
    --main-color:#999999;
    --main-bgcolor:#F2F2F2;
}
/*
surcharge classes Botstrap 
*/
.btn-secondary, .btn-success, .btn-primary,.btn-alarm{
    border:none
}
.btn-success{
    background: var(--green);

}
.btn-secondary{
    background: var(--bg-cancel);
}
.btn-primary{
    background: var(--blue);
}
.alert-danger{
    background: none;
    color:var(--red);
}
.btn-close{
    display:none
}
/*général*/
body{
    font-size:0.875rem;
    line-height: 1.5;
    font-family: "Poppins",sans-serif;
    font-weight: normal;
    font-size:1rem;
    color:var(--main-color);
}
header {
    padding: 1.15rem 0 0;
}
/*formulaires */
body.connexion{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.connexion form{
    padding: 1rem;
    background: #fff;
}
legend{
    font-size: 1rem;
}
.connexion input{

}
div.form-group{
    margin-bottom:1rem;
}
/*import*/
#formImport{display:none;}
.admin-import{display:none;}
button.admin-import {background: var(--red);color: #fff;    position: absolute;
    right: 0.5rem;
    top: 0.5rem;}
button.admin-import:hover{ border-color:var(--red); color:var(--red);}
span.ster {
    color: var(--red);
}
/*navigation*/
nav ul{

    list-style: none;
    padding-left: 0;

}
li.navbar-item {
    padding-bottom:1.15rem;
}
.admin .navbar-item.active{
    color:var(--red);
    border-bottom:solid 3px;
}

nav.context-menu li::before{
    content:'';
    display:inline-block;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    background: var(--main-color);
    vertical-align: middle;
    margin-right:.75rem

}


.admin nav.context-menu li.active::before,.admin nav.context-menu li:hover::before{
    background: var(--red);
}
nav.context-menu li.active{
    background-color: var(--main-bgcolor);
}
.admin nav.context-menu li.active{
    background-color: var(--bg-redTransparent);
}
.operateur nav.context-menu a.archive,.operateur nav.context-menu a.export,.operateur nav.context-menu a.publiee{
    display:none;
}
header a, .context-menu a{
    color:inherit;
    text-decoration: none;
    padding-right: 1rem;
    padding-left: 1rem;
}
.admin header .home, .admin .profil,.admin nav a:hover,.admin nav a:focus{
    color:var(--red);
}
.home{
    align-self: stretch;
}
.home a,.logout a{
    display: block;
    font-size: 0;
        padding-left: 0;


}
.home a::before,.logout a::before {
    display: inline-block;
    content:'';
    height: 33px;
    width: 33px;

}
.logout a::before{
    background: url('../img/pictogram-deconnection.png') no-repeat center;
}
.home a::before{
    background: url('../img/pictogram-maison.png') no-repeat center
}
/*.operateur nav,.operateur header .home{
    color:var(--blue);
}*/
.sidebar.col-md-2{
    padding-left:0;
    padding-top: 1.5rem;
    max-width:240px;
}
.sidebar li{
    padding: 1rem 0 ;
    padding-left:1rem;
}
.main{
    background: var(--main-bgcolor);
    min-height: 90vh;
    padding: 1.5rem
}
.main>div{
    background: #fff;
    padding: 2rem;
    position:relative;
}
button.help{
    height: 30px;
    width: 30px;
    font-weight: bold;
    border-width: 3px;
    background: none;
}
/*tableau récapitulatif*/
.recap table {
    width: 100%;
}
.recap td.action{
    text-align: right;
    min-width: 145px;
}


.recap tbody tr:nth-child(even) {
    background: var(--main-bgcolor);
}
.recap td, .recap th {
    padding: 0.5rem;
}
/* tableau recapitulatif des fiches */
td.statut .statut-icon {

    display: inline-block;
    height: 1rem;
    width: 1rem;
    border-radius: 50%;
    background: var(--orange);
    vertical-align: middle;
    margin-right: 0.5rem;

}

tr[data-statut="1"] .statut-icon{
    background: var(--red);
}
tr[data-statut="3"] .statut-icon  {
    background: var(--green);
}
td.statut .statut-icon.archive{
    background: var(--blue);
}

td.statut .new-icon{
    display: inline-block;
    height: 1.25rem;
    width: 1.25rem;
    vertical-align: middle;
    background: url('../img/pictogram-not-new.svg') no-repeat center/contain
}
.Publiees td.statut .new-icon{display: none;}

tr[data-new="1"] .new-icon{
    opacity: 0.4;
;}
/* Filtres*/
.filtres{
    margin-bottom: 1.5rem
}
.filtres button.select,.filtres #F-keywords{
    width:100%;
}
.filtres button.select{
    border:none;
    background: var(--blue);
    color:#fff
}
.filtres .checkgroup{
    display:none;
    padding : 1rem 0;
    border:solid 1px var(--blue);
}
.checkgroup label {
    margin: 0 0.25rem;
}
/*boutons*/
.action button{
    border:none;
    outline: none;
    width:25px;
    height: 25px;
    margin:0 0.25em;
    cursor:pointer;
    background: none
}
.action button.none{
    cursor:default;
}
button.show{
    background:   url('../img/pictogram-apercu.svg') no-repeat center ;
}
button.restore{
    background:   url('../img/pictogram-desarchiver.svg') no-repeat center ;
}
button.edit{
    background:   url('../img/pictogram-modifier.svg') no-repeat center;
}
button.del{
    background:   url('../img/pictogram-supprimer.svg') no-repeat center;
}
[data-statut="3"] button.del{
    visibility: hidden;
}
button.archiver{
    background:   url('../img/pictogram-archive.svg') no-repeat center/26px;
}
/*formulaire ajout/modification masqués au chargement*/
div.showForm,div.showOne {
    display:none;
}
div.showForm.voir div.attribution,div.showForm.voir div.commentaire{
    display:none;
}
.form-group.row {
    margin: 1rem 0;
}
#formAdd .btn-close{
    display:none;
}
/*personnalisation tinymce*/
button.tox-mbtn.tox-mbtn--select {
    background: var(--main-bgcolor);
}

/*suppression affichage notifications tinymce*/
.tox-promotion, span.tox-statusbar__branding{
    display: none;
}
.connexion a#scrollToTop {
    display: none;
}
/*MEDIA QUERIES */

@media only screen and (min-width:567px){
    body.connexion{
        background: url('../img/background-567.jpg') no-repeat center /cover;
    }
}

@media only screen and (min-width:768px){
    body.connexion{
        background: url('../img/background-768.jpg') no-repeat center /cover;
    }
}
@media only screen and (min-width:992px){
    body.connexion{
        background: url('../img/background-992.jpg') no-repeat center /cover;
    }
    .filtres>div{
        position:relative;
    }
    .filtres .checkgroup {
        position: absolute;
        width:  calc(100% - var(--bs-gutter-x));

        z-index:2;
        max-height: 200px;
        overflow-y: auto;
        background: #fff;
    }
    div.help{
        text-align:right
    }
}
@media only screen and (min-width:1200px){
    body.connexion{
        background: url('../img/background-2000.jpg') no-repeat center /cover;
    }

}
@media only screen and (min-width:1620px){
    a#scrollToTop{
        display:none
    }
    nav.context-menu{
        position:sticky;
        top:5rem;

    }
    header{
        position: sticky;
        top: 0;
        z-index: 9;
        background: #fff;
    }

}
@media only screen and (max-width:1639px){
    a#scrollToTop{
        position: fixed;
        bottom: 0;
        right: 0;
        display: flex;
        width:40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        background: var(--blue);
        color:#fff;
        border-radius: 50%;
        font-size: 1rem;
    }
    a#scrollToTop svg{
        width: 60%;

    }

}

