/*
Nouveau fichier CSS tout neuf pour remise à plat du front à partir de l'ancien fichier (octobre 2018)

Une fois terminé, il remplacera le fichier style.css actuel
*/
/* 
    Created on : 4 oct. 2018, 10:02:29
    Author     : Maxime Levert
*/

:root {
    /* Très mauvais : rouge foncé */
    --color-very-bad: #AA3333;
    /* Mauvais : rouge */
    --color-bad: #ff0000;
    /* Moyen presque mauvais : orange */
    --color-medium-bad: #E47D1D;
    /* Moyen : jaune */
    --color-medium: #fee980;
    /* Bon : vert */
    --color-good: #398439;
    /* Très bon : vert */
    --color-very-good: #5d5;
}

* {
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
    font-size: 12px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #212529;
    /*font-size: 1.4em;*/
    /*overflow:hidden;*/
}

h1 {
    font-size: 2.2rem;
    text-align: center;
}

h2 {
    font-size: 1.7rem;
    text-align:center;
    color: #6c6159;
}

h4 {
    margin: 5px 0;
}

p {
    text-align: justify;
}


a {
    text-decoration:none;
    color: #398439;
}

a:hover{
    text-decoration: underline;
}

table {
    border-spacing: 0;
}

td {
    padding: 2px;
    font-size: 0.9em;
}

.center {
    display:flex;
    align-items: center;
    flex-direction: column;
}

label.required:after {
    content:"*";
    color:#ff0000;
}

/********** Structure (header/content/footer) ************/

header {
    background-color: #81ad62;
    display: flex;
    z-index: 1;
    align-items: center;
}


#content {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

footer {
    background-color: #81ad62;
    font-size: 0.9rem;
    font-weight: lighter;
    color: #fff;
    position			: fixed;
    bottom				: 0;
    left				: 0;
    right				: 0;
    z-index: -1;
}
footer>p {
    margin: 2px 2px 2px 2px;
}

.main_logo {
    max-width: 50px;
    max-height: 25px;
    margin: 1px;
}

.titre_app {
    color: #fff;
    font-size : 1.3rem;
    margin: 2px;
}


.supervision_title {
    color :#005fa0;
}

/* barre de menu */

.button-menu {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2; /* will be above everything */
    padding: .5rem;
    background-color: #212529;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.navbar-left
{
    display: flex;
}

nav {
    position: absolute;
    width: 60vw;
    top: 0;
    bottom: 0;
    left: -60vw;
    z-index: 0; 

}

nav a {
    display: block;

    background-color: #81ad62;
    border-top: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    padding: 7px;

}

nav a:hover,
nav a:focus,
nav a:active {
    background: #555;
    text-decoration: none;
}

#main {

    position: relative;
    z-index: 1; /* will be in the middle stacking */
    background: #fff;

    transition: transform .3s;
}

#toggle-nav {
    display: none;
}

#toggle-nav:checked + label {
    transform: scale(0.8);
}

#toggle-nav:checked ~ #main {
    transform: translateX(60vw);
}


/* Formulaire de connexion */

#formconnexion{
    max-width: 650px;
    background-color: #d2e4ad;
    margin-right: auto;
    margin-left: auto;

    padding: 0.3rem;
    border-radius: 5px;

    display:flex;
    flex-direction: column;
}


.conteneurinput {
    max-width: 328px;

    font-size: 1.0rem;

    margin-left:2px;
}

.conteneurinput input{
    padding: 8px 10px;
    margin: 5px 0;
}

.conteneurinput input[type="text"],
.conteneurinput input[type="email"],
.conteneurinput input[type="password"],
.conteneurinput textarea{
    width: 100%;

    border-radius: 4px;
    border: 1px solid #bbb;
    outline: none;
    font-size: 1.1rem;
}

.conteneurinput input[type="submit"]{
    width: 100%;
}




div.important {
    border:2px solid darkkhaki;
    border-radius: 4px;
    padding: 10px;
    font-size: 1.15em;
    margin: 10px;
}
/****** Barre de navigation (boutons suivant...etc) ********/

.barre-nav {
    display:flex;
    justify-content: space-between;
    margin: 1px 0px 2px 0px;
}

.barre-nav .button {
    margin: 1px;
}
.barre-nav .left{

}
.barre-nav .center{
}

.barre-nav .right{

}


/****** infobulles ********/

.button-tip {
    width:1.1rem;
    height: 1.1rem;
    font-size: 0.9rem;
    background-color:#398439;   
    color: #fff;
    display:inline-block;
    text-align: center;
    border-radius: 0.55rem;
    cursor: help;
}

.button-tip:link{
    text-decoration: none;
}


.button-tip:after {
    content: "?";
}
/***** Saisie adventices ****/

.adventicesetudies{
    border-radius: 4px;
    border: 1px solid gray;
    max-width: 600px;
    margin:5px;
    padding:6px;
}

.adventicesetudies #bttn-adv {
    margin:2px;
}

.newformadv{
    display:flex;
}

.newformadv>button{
    max-height: 24px;
    margin:1px;
}

.row_adventice {
    display:flex;
}

.row_adventice>div {
    min-width: 250px;
}

.adventicesetudies label{
    min-width:30%;
}
.adventicesetudies select{
    max-width: 250px;
}


/****** Flash **********/

.flash {
    background-color: #fffd76;
    text-align: center;
    width: 100%;
    padding: 3px 2px;
    margin: 0;
}

.flash-notice{
    font-size: 1.2rem;
}

.flash-danger{
    color: #b60000;
}
/****** Boutons **********/


.button, button {
    color: #fff;
    background-color: #5cb85c;
    border-color: #398439;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;

}

.supervision .button, .supervision button {
    background-color: #005fa0;
}

.supervision .button:hover, .supervision .button:focus,
.supervision button:hover, .supervision button:focus{
    background-color:#004c90;
}

.button:hover,.button:focus,
button:hover,button:focus{
    color: #fff;
    background-color: #356f35;
    border-color: #356f35;
    text-decoration: none;
}


.button:active, .button:active:focus, .button:active:hover,
button:active, button:active:focus, button:active:hover{
    color: #fff;
    background-color: #449d44;
    border-color: #398439;
}

.button-min {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}



.bt-danger, .supervision .bt-danger {
    background-color: #db2020;
}

.bt-danger:hover {
    background-color: #800000;
    border-color:  #800000;
}

.bt-danger:active, .bt-danger:active:focus, .bt-danger:active:hover {
    background-color: #600000;
    border-color: #400000;
}




/*
.bt-suivant:after {
    content:" <i class='fas fa-chevron-right'></i>";
}
*/




.conseil
{
    /*border: 1px solid #000;*/
    background-color: #f5e79e;
    border-radius: 6px;
    max-width: 600px;
    margin: 5px;
    padding: 5px;
}

.conseil ul {
    list-style: none; 
}

/********** Tableau des systèmes **********/



table.liste-scenarios-odera tbody tr:nth-child(2n+1){
    background-color:#fef3bb;

}
table.liste-scenarios-odera tbody tr:nth-child(2n+2){
    background-color:#fee980;
}


/**********  page fiches techniques *****/

.fiches_techniques {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}


.fiches_techniques > section {
    display:flex;
    flex-direction: column;
    justify-content:flex-start;
    margin: 5px;
    padding: 5px;
    text-align: center;

    border: 1px solid #398439;
    border-radius: 6px;
    width:45%;
}

.fiches_techniques img.vignette {
    width: 48px;
}

/**********  page saisie ITK ************/


.mode-flexible .cell-adv{
    border-radius: 2px;
    background-color:#efa2a9;
    margin: 2px;
    padding: 2px;

    min-width: 60px;
    max-width: 73px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}


.mode-flexible .adv-color-1, .adv-color-1 { background-color:#40bdd1; }
.mode-flexible .adv-color-2, .adv-color-2 { background-color:#aacd4e; }
.mode-flexible .adv-color-3, .adv-color-3 { background-color:#efa2a9; }
.mode-flexible .adv-color-4, .adv-color-4 { background-color:#ccc; }
.mode-flexible .adv-color-5, .adv-color-5 { background-color:#c0a16b; }

.mode-flexible .cell-adv-result{
    border-radius: 2px;
    background-color:#fff8d4;
    margin: 2px;
    padding: 2px;
    max-width: 100%;
    text-align: center;
}

.mode-flexible .cell-adv-label {
    padding:1px 0px;
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.animated {
    position: relative !important; 
    box-shadow:2px 2px 9px #000;
}


.talkbubble {
    border-radius: 3px;
    position: relative;
    background: #ffffff;
    border: 1px solid #000000;
    padding: 5px;
    font-style: italic;
    margin-bottom: 3px;
}
.talkbubble:after, .talkbubble:before {
    top: 100%;
    left: 20%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.talkbubble:after {
    border-color: rgba(255, 255, 255, 0);
    border-top-color: #ffffff;
    border-width: 10px;
    margin-left: -10px;
}
.talkbubble:before {
    border-color: rgba(0, 0, 0, 0);
    border-top-color: #000000;
    border-width: 11px;
    margin-left: -11px;
}

/********* AGT Select *************>/
/* Style AGT-Select plugin*/

.agt-select {
    max-width: 500px;
    padding: 4px;
}

.agt-select .select-all{
    position: absolute;
    z-index: 50;
    margin:2px;
    padding:4px;
    min-width:310px;
    max-width: 310px;
    display:flex;
    border: 1px solid #000;
    border-radius: 4px;
    flex-wrap:wrap;
    background-color: #fff;
    box-shadow: 4px 4px 6px #222;

    transition-property: all;
    transition-duration: .5s; /* on aurait pu écrire 500ms également */
    transition-timing-function: ease-in;
    transition-delay: 1s;
}

.agt-select .select-all>.button{
    border-radius: 0;
    /*min-width: 33%;*/
    max-width: 33.333%;
    flex-grow: 1;
    margin: 0.5px;
    width: 33%;
}


.agt-select .toolbar-agt-select,
.agt-select 
{
    width:100%;
    padding-bottom: 1px;
}

.agt-select .toolbar-agt-select>.bt-close {
    background-color: #be0000;
    float:right;
}

.agt-select .selected-items {
    display:flex;
    flex-wrap:wrap;
}

.agt-select .selected-items>.button {
    margin:1px;
}

.agt-select .bt-agt-select {
    min-width:80px;
}

.agt-select .select-all>.selected,
.agt-select .selected-items>.button
{
    border-color: green;
    background-color: transparent;
    color: green;
}

.agt-select .selected-items>.button:hover {
    background-color: red;
    color: #fff;
    border-color: #AA3333;
}



.graph-agt-select {
    width: 100%;
}

.c3-line {
    stroke-width: 2px !important;
}

.agt-select-extra {
    display:flex;
}

/****** Specifique résultats *********/
.zone_result_top {
    display:flex;
    flex-direction: row;
}


.zone_vivaces {
    border: 2px solid #c7dec7;
    border-radius: 2px;
    margin: 0 5px;
    padding: 5px;
}

.zone_legende {
    border: 1px solid #000;
    width: 250px;
    padding: 5px 0 10px 0;
    margin: 0 5px;
    background: #fff;
    color: #555;
    border-radius : 3px;
}

.zone_legende > div {
    padding: 1px 10px;
}
.zone_legende > h4 {
    margin : 0 0 5px 10px;
}


/****** Spécifique résultats - partie "adventice DATURA" *********/

#zone_adventice_datura_grille_complementaire th, #zone_adventice_datura_grille_complementaire td {
    border: 1px solid #000000;
}

#zone_adventice_datura_grille_croisement_odera th, #zone_adventice_datura_grille_croisement_odera td {
    border: 1px solid #000000;
}

/****** fenêtre modale **********/
.modal{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}


/****** Zone d'affichage des notes ********/

.note{
    padding: 5px;
    margin: 15px 10px;
    border-radius: 3px;
    font-weight: bold;
}


/********** Définition des types de couleurs *********/


/* Très mauvais : rouge foncé */
.color-very-bad{ background-color: #AA3333 !important; color:#fff; }

/* Mauvais : rouge */
.color-bad{ background-color: #ff0000 !important;  color:#fff;}

/* Moyen presque mauvais : orange */
.color-medium-bad{ background-color: #E47D1D !important; }

/* Moyen : jaune */
.color-medium{ background-color: #fee980 !important; }

/* Bon : vert */
.color-good{ background-color: #398439 !important; color:#fff; }

/* Très bon : vert */
.color-very-good{ background-color: #5d5 !important;  }

/********** Définition des types de couleurs pour les résultats avec l'adventice DATURA *********/

.datura-color-dark-orange { background-color: #F4B084; }
.datura-color-light-orange { background-color: #FFE699; }
.datura-color-light-blue { background-color: #BDD7EE; }
.datura-color-light-green { background-color: #83F906; }
.datura-color-green { background-color: #92D050; }
.datura-color-yellow { background-color: #ffff00; text-align: center; }
.datura-color-grey { background-color: #D9D9D9; }
.datura-color-deep-sky-blue { background-color: #00B0F0; text-align: center; font-weight: bold; }

/********** Responsive *************/



.only-medium-screen{
    display: none;
}

/*
Propriétées propres aux tailles d'écran non mobile (tablette/desktop)
*/
@media (min-width: 577px) {

    nav a {
        display: inline-block;
        border: 0;
        margin: 5px 1px 5px 0;
        background-color: #398439;
        font-size: 1.0rem;
        text-align: center
    }

    nav {
        position:static;
        display:flex;        
        height: 100%;
        width: auto;
        margin-left:0.5rem;
    }



    .main_logo {
        max-width: 100px;
        max-height: 40px;
        margin: 2px;
    }

    .only-medium-screen{
        display:initial;
    }

    #toggle-nav,
    .button-menu {
        display: none;
    }

    #formconnexion{
        padding: 1.5rem;
        border-radius: 5px;

        flex-direction: row;
    }

    td {
        font-size: 1em;
    }

    .fiches_techniques > section {
        flex-direction: column;
        width:250px;
    }

    .fiches_techniques img.vignette {
        width: 128px;
    }
}


@media (min-width: 577px) and (max-width:900px) {
    nav a {        
        margin: 3px 1px 3px 0;
        font-size: 0.9rem;
        padding:7px 2px;
    }
}

