﻿/* version MEC-Phil 2018-05-15 : 12h00 */

/** section alert ***/
section.alert {
    /*line-height: 1.35;*/
    border: 1px solid #414141;
    text-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    position: relative;
    padding-left: 6.5rem;
    min-height: 6.65rem;
    padding-top: 2.15rem;
    padding-bottom: 1rem;
    background-color: #ffffff;
    display: block;
    margin-top: 2rem;
    /*background-size: 4rem 4rem;
  background-position: 1rem 1rem;
  background-repeat: no-repeat;*/
}


    /*2018-10-30 FV*/
    section.alert:focus {
        outline: 3px auto #9ECBFC !important;
        outline-offset: -2px !important;
        -moz-outline-radius: 3px !important;
    }

    section.alert .h2, section.alert h2 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        position: relative !important;
        top: -0.75rem !important;
    }

    section.alert p {
        margin: 0.85rem 0;
    }

        section.alert p:last-of-type {
            margin-bottom: 1rem;
            padding-bottom: 0;
        }

        section.alert p:only-of-type {
            margin-top: 0.5rem;
        }

        section.alert p:first-of-type {
            margin-top: 0;
            padding-top: 0;
        }





.card-body > section.alert {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.alert-success {
    color: #006c08;
    background-color: #fff;
    border-color: #006c08 !important;
}

.alert-danger {
    color: #be1615;
    background-color: #fff;
    border-color: #e00000 !important;
}

    .alert-danger a {
        color: inherit;
    }


.alert-important {
    /*color: #ff9933;*/
    background-color: #fff;
    border-color: #f5960a !important;
}

.alert-info {
    color: #414141;
    background-color: #fff;
    border-color: #414141 !important;
}
/** /section alert ***/

/* Pointe sur alertes */

.alert-success.pointe::before {
    border-top: 10px solid #006c08;
}

.alert-danger.pointe::before {
    border-top: 10px solid #e00000;
}

.alert-important.pointe::before {
    border-top: 10px solid #f5960a;
}

.alert-info.pointe::before {
    border-top: 10px solid #414141;
}

/* Icones des alerts */

.alert-danger-icone {
    background-image: url(../images/ic_danger.svg);
    background-size: 4.25rem 4.25rem;
    background-position: 1.25rem 1.2rem;
    background-repeat: no-repeat;
    padding-left: 6rem;
}

.alert-important-icone {
    background-image: url(../images/ic_important.svg);
    background-size: 4.25rem 4.25rem;
    background-position: 1.25rem 1.2rem;
    background-repeat: no-repeat;
    padding-left: 6rem;
}

.alert-success-icone {
    background-image: url(../images/ic_check.svg);
    background-size: 4.25rem 4.25rem;
    background-position: 1.25rem 1.2rem;
    background-repeat: no-repeat;
    padding-left: 6rem;
}

.alert-info-icone {
    background-image: url(../images/ic_info.svg);
    background-size: 4.25rem 4.25rem;
    background-position: 1.25rem 1.2rem;
    background-repeat: no-repeat;
    padding-left: 6rem;
}

a.icon-sms {
    background-image: url(../images/ic_sms.svg);
    background-size: 3rem 3rem;
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    padding: 1rem 2rem 1rem 4rem;
    border-radius: 0.3rem;
    background-color: #fff;
    margin: 2.5rem 0;
}

h2.icon-check, p.icon-check {
    background-image: url(../images/ic_check_success.svg);
    background-repeat: no-repeat;
    background-position: 1rem 0.5rem;
    background-size: 8rem 8rem;
    min-height: 10rem;
    padding-left: 11.5rem;
    padding-right: 1rem;
    padding-top: 3rem;
    font-size: 2.5rem;
    font-weight: 700 !important;
}


.echec {
    border-radius: .25rem;
    border: 1px solid #dc3545;
}

    .echec h2.icon-check {
        background-image: url(../images/ic_danger.svg);
        background-position: 1rem 0.5rem;
        background-size: 7rem 7rem;
    }




.modal-body p.echec {
    background-image: url(../images/ic_danger.svg);
    background-repeat: no-repeat;
    background-position: 2rem 1.75rem;
    background-size: 6rem 6rem;
    min-height: 10rem;
    padding-left: 11.5rem;
    padding-right: 1rem;
    padding-top: 3rem;
    font-size: 2.5rem;
    font-weight: 700 !important;
    border: 1px solid #dc3545;
}

.noRef {
    margin: 1.5rem 0 1rem 11.5rem;
}

/** Message d'erreur **/
.invalid-feedback, .mini-alert-important, .mini-alert-danger {
    position: relative;
    left: 0rem;
    margin: 1rem 0rem;
    color: #be1615;
    background-image: url("../images/ic_danger.svg");
    background-size: 2.25rem 2.25rem;
    background-position: 0rem top;
    background-repeat: no-repeat;
    padding-left: 2.75rem;
    font-size: inherit;
    line-height: normal;
    display: block;
}

.form-control.is-invalid + small.text-muted + p.invalid-feedback {
    margin-top: 0;
}

.mini-alert-important {
    background-image: url(../images/ic_important.svg);
    color: inherit;
}

.dropdown-item.mini-alert-important {
    margin: 0;
    padding: 1rem 1rem 1rem 4.85rem;
    background-size: 2.5rem 2.5rem;
    background-position: 1.25rem 1rem;
    line-height: 1.5;
}

    .dropdown-item.dropdown-alert:hover, .dropdown-item.dropdown-alert:focus,
    .dropdown-item.mini-alert-important:hover, .dropdown-item.mini-alert-important:focus {
        color: inherit !important;
        background-color: inherit !important;
    }
/** / Message d'erreur **/


.main-container .maindiv section.alert-small {
    margin: 0;
}

section.alert-small {
    background-color: inherit;
    margin: 0;
    line-height: inherit;
    border: none;
    min-height: 2.25rem;
    padding: 0;
    background-size: 2.25rem 2.25rem;
    background-position: 0rem top;
    background-repeat: no-repeat;
    padding-left: 3.0rem;
    font-size: inherit;
}

    section.alert-small p {
        margin: 0;
        margin-top: 0;
    }



    section.alert-small p {
        padding-top: 0.3rem !important;
        padding-left: 1rem !important;
    }

section.alert-small {
    position: relative;
    margin: -0.75rem -1rem -1.15rem !important;
    padding 1rem !important;
    background-position: 1rem 0.4rem;
}


/*2020-03-11
    section.alert-small p {
        padding-top: 0.3rem !important;
        padding-left: 1rem !important;
    }

section.alert-small {
    position: relative;
    margin: -0.75rem -1rem -1.15rem;
    background-color: yellow;
    padding 1rem !important;
    background-position: 1rem 0.4rem;
}*/
/*/ 2020-03-11*/



.dropdown-item section.alert-small {
    margin: 1rem 0;
    width: auto;
}

.alert-small.alert-important-icone {
    /*background-image: url("../images/ic_important_orange.svg");*/
}

ul li.sansPuce {
    list-style: none;
}

.main-container .maindiv ul li.sansPuce section.alert-small {
    margin: 0 0 0 -2.9rem;
}


.col-sm-2 .invalid-feedback:first-of-type,
.col-sm-3 .invalid-feedback:first-of-type { /* Ajouter le 2019-07-11 */
    padding-left: 0;
    display: flex;
    min-width: 40rem;
}

    .col-sm-2 .invalid-feedback:first-of-type::before,
    .col-sm-3 .invalid-feedback:first-of-type::before { /* Ajouter le 2019-07-11 */
        content: '';
        background-image: url(../images/ic_danger.svg);
        background-repeat: no-repeat;
        background-position: top;
        min-width: 2.25rem;
        position: relative;
        margin-right: 0.75rem;
    }

/* Si doubles modales: mettre le second fond transparent*/
.modal-backdrop.show ~ .modal-backdrop.show {
    opacity: 0;
}

/* Dans les cas de doubles modales, aucun fond translucide ne s'affichant par dessus la premi�re, donner une ombre port�e au modale pour lui donner de la distance apparente avec le fond */
.modal-content {
    -webkit-box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    -moz-box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.modal-body [tabindex="-1"]:focus { /* Conserver ce style sur tout �l�ment pouvant avoir le focus au clavier � l'exemption des champs qui ont leur propre style simulant un outline au focus */
    outline: 3px auto #9ECBFC !important;
    outline-offset: -2px !important;
    -moz-outline-radius: 3px !important;
}

/*
.modal .lastFocus {
    background-color: yellowgreen !important;
    color: black !important;

}

body .lastFocus2 {
    background-color: yellow !important;
    color: black !important;
   
} */

section.alert:focus {
    -webkit-box-shadow: 0px 0px 3px 2px rgba(156,206,255,1);
    -moz-box-shadow: 0px 0px 3px 2px rgba(156,206,255,1);
    box-shadow: 0px 0px 5px 3px rgba(156,206,255,0.8);
}

section.alert:focus {
    outline: none !important;
}

/* Boite d'alerte avec pointe + 2 lignes et plus de texte en pleine largeur*/
section.alert.pointe {
    /*background-color: yellow;*/
    padding-top: 1rem;
    padding-bottom: 0;
}
    /* Boite d'alerte avec pointe + 1 ligne de texte en pleine largeur*/
    section.alert.pointe.ls {
        padding-top: 2rem;
    }

[role=group] .invalid-feedback:first-child {
    /*background-color: yellow;*/
    position: relative;
    top: -0.5rem;
    margin-bottom: -0.1rem;
}
