:root {
    --main-border: 0px solid #000;
    --main-rouge: #ff2e21;
}


@media screen and (min-width: 1450px) {


    #DIV_ALERTES {
        background: #00FF00;
    }
    .BA {
        background:#ffffff;
        cursor: pointer;
        width:305px;
        height:90px;
        display:inline-block;
        margin:5px;
        border:3px solid #000;
        border-radius: 20px;
        padding-top:18px;
    }

    .BA_left {
        width:80%;
        top:-6px;
        margin:6px;
        /*
        margin-left:4px;*/
        float:left;
        position:relative;
        border: var(--main-border); ;
    }
    .BA_center {
        width:55px;
        top:-15px;
        left:2px;
        font-weight: bold;
        font-size: 3.4em;
        float:left;
        position:relative;
        text-align:right;
        border: var(--main-border); ;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    }

    .BA_right {

        position: relative;
        top:-10px;
        height:70px;
        width:150px;
        margin-top:0px;
        margin-left:5px;
        border: var(--main-border); ;
        float:left;
        text-align: left;
        vertical-align: middle;

        font-size: 1.4em;
        font-weight: bold;
        /*line-height: 80px;*/
    }
    #BA_r {
        margin-left: 15px; /* poussé de la moitié de hauteur de viewport */
        margin-top: 35px; /* poussé de la moitié de hauteur de viewport */
        transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
        line-height: 25px;
        font-size: 0.9em;
    }

    .txtalerte {
        font-size: 1.2em;
        letter-spacing: 0.2em;
    }
    .txtalerte2 {
        font-size: 0.9em;
    }

    .BA_pictosmall {
        z-index: 99;
        position: absolute;
        width:26px;
        top:-5px;
        right:0px;
    }



 /* ZONE BRICS*/

    .TITRE_ZONE {
        font-size: 2em;
    }

    /* Forme */
    .BC {
        cursor: pointer;
        width:150px;
        height:200px;
        display:inline-block;
        margin:5px;
    }

    .BC_pvoyant0{
        top:-10px;
        right:-20px;
        width: 25px;
        position:absolute;
    }

    .BC_pvoyant1{
        top:-5px;
        width: 15px;
        position:absolute;
        right:5px;
    }

    /* Bas */
    .Bbas_g,.Bbas_g2,.Bbas_r,.Bbas_r2,.Bbas_o,.Bbas_o2 {
        height:20%;
        border-bottom-right-radius:18px;
        border-bottom-left-radius:18px;

        font-size: 1.1em;
    }

    .TxtbasM10  {
        height : 40px;
        width:150px;
        text-align: center;
        position: absolute;
        /*line-height: 2.6em*/
        display : flex;
        align-items : center;
        justify-content : center;
        font-weight: bold;
        font-size:1.2em ;

    }
    .TxtbasP10  {
        height : 40px;
        width:150px;
        text-align: center;
        position: absolute;
        /*line-height: 1.2em;*/
        display : flex;
        align-items : center;
        justify-content : center;
        font-weight: bold;
        font-size:1.2em ;
    }

    /* Haut */
    .Bhaut_g,.Bhaut_g2, .Bhaut_r, .Bhaut_o ,.Bhaut_o2 , .Bhaut_r2 {
        height:70%;
        margin-left:0px;
        margin-top:1px;
        border-top-right-radius:18px;
        border-top-left-radius:18px;
        line-height: 2.2em;
        background: #fff;

    }

    .Bimage {
        border:0px solid #000;
        top:24px;
        width:90px;
        position: relative;
        margin-left: auto;
        margin-right: auto;

    }

    .Text1 {

        margin-top:10px;
        line-height: 1em;
        font-size: 1.1em;
        height:20px;
    }
    .Text2 {
        margin-top:35px;
        font-size: 0.9em;
        text-align: center;
        /*margin-right:10px;*/
        /*font-style: italic;*/
    }

    #Horodatage_date {
        margin-left:10px;
        margin-top:-2px;
        font-size: 0.7em;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    }

    #onlineStatus {
        margin-top:4px;
        /*border:3px solid #000;*/
        width: 28px;
        height: 28px;
        margin-right: 2px;
        float: right;
    }

    #ParamBody {

    }

}
@media screen and (min-width: 1000px) and (max-width: 1450px) {
    .ehpadH3{
        font-size:1.5em;
    }

    #DIV_ZONES {
        /*border:5px solid #FF0000;*/
        /*background:#FF0000;*/
    }

    .BA {
        background:#ffffff;
        cursor: pointer;
        width:230px;
        height:60px;
        display:inline-block;
        /*margin:5px;*/
        border:3px solid #000;
        border-radius: 20px;
        padding-top:22px;

    }
    .BA_left {
        width:62%;
        border: var(--main-border); ;
        float:left;
        position:relative;
        margin-top:-6px;
        margin-left:4px;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    }
    .BA_center {
        border: var(--main-border); ;
        width:20%;
        font-weight: bold;
        font-size: 2.4em;
        float:left;
        position:relative;
        top:-18px;
        text-align: right;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    }

    .BA_right {
        position: relative;
        top:-18px;
        height:50px;
        width:120px;
        margin-top:0px;
        margin-left:5px;
        border: var(--main-border); ;
        float:left;
        text-align: left;
        vertical-align: middle;

        font-size: 0.9em;
        font-weight: bold;
        /*line-height: 80px;*/
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    }
    #BA_r {
        margin-top: 25px; /* poussé de la moitié de hauteur de viewport */
        transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    }


    .txtalerte {
        font-size: 1.2em;
    }
    .txtalerte2 {
        font-size: 0.8em;
    }

    .BA_pictosmall {
        z-index: 99;
        position: absolute;
        width:20px;
        top:-12px;
        right:10px;
    }


/* ZONE BRICS*/

    .TITRE_ZONE {
        font-size: 1.2em;
    }

    /* Forme */
    .BC {
        cursor: pointer;
        width:105px;
        height:150px;
        display:inline-block;
        margin:3px;
    }

    .BC_pvoyant0{
        top:-18px;
        right:-5px;
        width: 25px;
        position:absolute;

    }

    .BC_pvoyant1{
        top:-5px;
        width: 15px;
        position:absolute;
        right:5px;
    }

    /* Bas */
    .Bbas_g,.Bbas_g2,.Bbas_r,.Bbas_r2,.Bbas_o,.Bbas_o2 {
        height:20%;
        border-bottom-right-radius:18px;
        border-bottom-left-radius:18px;


    }

    .TxtbasM10  {
        height : 35px;
        font-size: 0.8em;
        width:105px;
        text-align: center;
        position: absolute;
        display : flex;
        align-items : center;
        justify-content : center;
    }
    .TxtbasP10  {
        height : 35px;
        font-size: 0.9em;
        width:120px;
        text-align: center;
        position: absolute;
        display : flex;
        align-items : center;
        justify-content : center;

    }

    /* Haut */
    .Bhaut_g, .Bhaut_g2, .Bhaut_r, .Bhaut_o,.Bhaut_o2, .Bhaut_r2 {
        height:70%;
        margin-left:0px;
        margin-top:1px;
        border-top-right-radius:18px;
        border-top-left-radius:18px;
        line-height: 2.2em;
       /* background: #f3f3f3;*/
    }

    .Bimage {
        top:22px;
        width:70px;
        position: relative;
        margin-left: auto;
        margin-right: auto;

    }

    .Text1 {

        line-height: 1em;
        font-size: 0.9em;
        height:16px;
    }
    .Text2 {
        margin-top:10px;
        font-size: 0.8em;
        text-align: center;
        margin-right:10px;
        /*font-style: italic;*/
    }

    #Horodatage_date {
        margin-left:10px;
        margin-top:-5px;
        font-size: 0.7em;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    }

    #onlineStatus {
        margin-top:5px;
        /*border:3px solid #000;*/
        width: 25px;
        height: 25px;
        margin-right: 5px;
        float: right;
    }

    #ParamBody {
        height:400px;
    }
}




.Xerror {
    text-align: center;
    color: var(--main-rouge);

}


/* BRICS ALERTE */







.rouge {
    border:3px var(--main-rouge) solid;
    background: var(--main-rouge);
    color:#fff;
}

.rouge_clair {
    border:3px #fababd solid;
}


.noir {
    border:4px #E2E2E2 solid;
}

.orange {
    border:3px #fc962b solid;
}
.orange_clair {
    border:3px #fad963 solid;

}
.gris {
    border:3px #B3B3B3 solid;
}

.gris_clair {
    border:4px #E2E2E2 solid;
}







.Bhaut_g,.Bhaut_g2 {
    border: 3px solid #E6E6E6;
    border-bottom:0px;
    background: #FFF;
}

.Bhaut_r {
    border: 3px solid #ff2e21;
    border-bottom:0px;
    background: var(--main-rouge);
    color:#fff;
}

.Bhaut_r2 {
    border: 3px solid #fff;
    border-bottom:0px;
    background: #fff;
    color:#ff2e21;
}

.Bhaut_o {
    border: 3px solid #E6E6E6;
    border-bottom:0px;
    background: #FFF;
}
.Bhaut_o2 {
    border: 3px solid #E6E6E6;
    border-bottom:0px;
    background: #e7e7e7;
}

.Bbas_g ,.Bbas_g2 {
    border: 3px solid #E6E6E6;
    border-top: 0px;
    background: #fff;
}
.Bbas_r {
    border: 3px solid #ff2e21;
    background: var(--main-rouge);
    border-top: 0px;
    font-weight: bold;
    color:#fff;
}

.Bbas_r2 {
    border: 3px solid #fff;
    background:#fff;
    border-top: 0px;
    font-weight: bold;
    color:var(--main-rouge);

}

.Bbas_o {
    border: 3px solid #E6E6E6;
    border-top: 0px;
    background: #fff;
    font-weight: bold;
}
.Bbas_o2 {
    border: 3px solid #E6E6E6;
    border-top: 0px;
    background: #e7e7e7;
    font-weight: bold;
}

.BAimage {
    top:-10px;
    width:28%;
    position: relative;


}



.Bimage_small {
    border:0px solid #000;
    width:48px;
    position: relative;
    padding:0px;
    float: left;
}

.BVoyant_r , .BVoyant_o {
    width: 55px;
    height: 55px;
    top:8px;
    border-radius: 40px;
    position:relative;
    text-align:center;

    display: inline-block;
}
.BVoyant_r {

    border: 3px solid #ff2e21;
    background: #fababd;
}

.BVoyant_o {
    border: 3px solid #fc962b;
    background: #fad963;
}


.bold {
    font-weight: bold;
}


#MNU_sortie {
 font-size:1.6em;
    font-weight: bold;
}
#MNU_depuis {
    font-size:1em;
    font-style: italic;
    text-align: left    ;
}



.ZoneImage {
    margin-top:10px;
    border:0px solid #000;
    font-size: 1.1em;
    text-align:center;
    height:50px;
}

.modal-dialog-bric {
    margin-top:100px;
    width:400px;


}
.modal-content-bric{
    border:3px solid #000;
    border-radius: 20px;
    background: #f2f2f2;
}

.modal-content-danger {
    margin:0px;
    padding:0px;
    border:3px solid #ff2e21;
    border-radius: 20px;
    background: #f3f3f3;
}

.modal-content-warning{
    border:3px solid #fc962b;
    border-radius: 20px;
    background: #f3f3f3;
}

.modal-content-light{
    border:0px solid #B3B3B3;
    border-radius: 20px;
    background: #FFF;
}

.modal-content-success{
    border:0px solid #00af00;
    border-radius: 20px;
    background: #FFF;
}

.modal-content-parametres {
    border:0px solid #B3B3B3;
    border-radius: 20px;
    background: #FFF;
}

.modal-content-graphiques {
    border:0px solid #B3B3B3;
    border-radius: 20px;
    background: #FFF;
}

.modal-header-bric {
    border-top-right-radius:18px;
    border-top-left-radius:18px;
    background: #f3f3f3;
    height: 200px;
    border-bottom:3px solid #000;
}

.modal-header-warning {
    border-top-right-radius:18px;
    border-top-left-radius:18px;
    background: #fad963;
    height: 100px;
    border-bottom:3px solid #fc962b;
}

.modal-header-light {
    border-top-right-radius:18px;
    border-top-left-radius:18px;
    background: #E2E2E2;
    height: 100px;
    border-bottom:3px solid #B3B3B3;
}
.modal-header-success {
    border-top-right-radius:18px;
    border-top-left-radius:18px;
    background: rgba(0, 175, 0, 0.19);
    height: 100px;
    border-bottom:3px solid #00af00;
}

.modal-header-danger {
    border-top-right-radius:18px;
    border-top-left-radius:18px;
    background: #fababd;
    height: 100px;
    border-bottom:3px solid #ff2e21;
}

.modal-header-parametres {
    border-top-right-radius:18px;
    border-top-left-radius:18px;
    background: #E2E2E2;
    height: 150px;
    border-bottom:3px solid #B3B3B3;
}

.modal-header-graphiques {
    border-top-right-radius:18px;
    border-top-left-radius:18px;
    background: #E2E2E2;
    height: 150px;
    border-bottom:3px solid #B3B3B3;
}


#Horodatage {
    line-height: 2em;
    margin-top:8px;
    padding:5px;
    font-size: 1.4em;
    border-radius: 8px;
    width:205px;
    height:45px;
    background:#fff;
    /*float: right;*/
    /*margin-right:70px;*/
}


#Horodatage_date {
    width: 130px;
    float: left;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

.online {

    border-radius: 20px;
    background: #00af00;
}
.offline {

    border-radius: 20px;
    background: #ff2e21;
}

.btn-fermeXXXX {
    float: right;
    position: relative;


}


.btn-ferme-o, .btn-ferme-r {
    z-index: 999999999999999999;
    float: right;
    position:relative;

    margin:0px;
    padding:0px;

    /*right:-25px;
    top:-25px;*/
    width:30px;
    height:30px;
    color:#FFF;

    opacity :0.7;
    border:0px;
    border-radius: 20px;
    font-size:1em;
}



.btn-ferme-o {
    top:-20px;
    background: #fc962b;
}
.btn-ferme-r {
    top:0px;
    background: #ff2e21;
}


.btn-noir        {  color:#FFF; background-color:#fc962b; font-size:1.0em; border-radius:10px; padding:8px;  }
.btn-noir:hover  {  color:#FFF; background-color:#fc962b;   }


.btn-retour        { color:#000; background-color:#E2E2E2; font-size:1.0em; border-radius:10px; padding:8px;  }
.btn-retour:hover  {  color:#000; background-color:#E2E2E2;   }


.loader {
    margin: auto;
    border: 20px solid #FFF;
    border-radius: 50%;
    border-top: 20px solid #fc962b;
    width: 20px;
    height: 20px;
    animation: spinner 4s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ------------------ */
