/*region Gestion des divisons principales*/
/*Division principale : central sur l'écran*/


#MainDiv[data-env="DEV"]{
    background-image: url("/Assets/background_dev.png");
}

#MainDiv[data-env="TEST"]{
    background-image: url("/Assets/background_test.png");
}

#MainDiv{
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    background-image: url("/Assets/background.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #2b190d;
    scroll-behavior: smooth;
}

/* Sous-divisions multiples*/
.contentDiv{
    width: 75%;
    margin: 10px auto;
    padding: 10px;
    background-color: #3a1c12;
}
/*endregion*/

/*region Gestion selon taille de l'écran*/
/* petit+ écran */
@media screen and (min-width: 768px) {

    @media screen and (max-width: 1999px) {
        ::-webkit-scrollbar {
            width: 7px;
        }
    }

    @media screen and (min-width: 1200px) {
        ::-webkit-scrollbar {
            width: 10px;
        }
    }

    ::-webkit-scrollbar-track {
        background-color: dimgray;
        border: none;
    }

    ::-webkit-scrollbar-thumb {
        background: darkgray;
    }
}

/* moyens+ écrans */
@media screen and (min-width: 992px){
    .modal-medium {
        max-width: 50%;
    }

    .modal-large {
        max-width: 90%;
    }

    .contentDiv{
        margin-top: 10px;
        margin-bottom: 10px;
        border-radius: .4rem;
        border: 1px solid transparent;
    }
}

/* moyens- écrans */
@media screen and (max-width: 991px){
    label{
        margin-bottom: 9px;
    }

    .form-group {
        margin-bottom: 9px;
    }

    .contentDiv {
        width: 100%;
        margin: auto;
    }

    .modal-medium, .modal-large {
        max-width: 90%;
    }
}
/*endregion*/

/*region Bouton Moutarde*/
/*On remplace la couleur d'origine des boutons Bootstrap*/
.btn-outline-primary:not(:disabled):not(.disabled).active, .btn-outline-primary:not(:disabled):not(.disabled):active, .show>.btn-outline-primary.dropdown-toggle,
.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle{
    color: #fff;
    background-color: #ba830e;
    border-color: #ba830e;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #ba830e;
    border-color: #ba830e;
}

.btn-primary:hover, .btn-primary.focus, .btn-primary:focus {
    background-color: #876750;
    border-color: #876750;
}

.btn-primary.focus, .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(135, 103, 80, 0.5);
}

.btn-outline-primary {
    color: #ba830e;
    border-color: #ba830e;
}

.btn-primary, .btn-primary:disabled {
    color : white;
    background-color: #ba830e;
    border-color: #ba830e;
}

.btn-outline-primary.focus, .btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(186, 131, 14, 0.5);
}
/*endregion*/

/*region Lien Moutarde*/
.mustard-link {
    color : #ba830e;
}

.mustard-link:hover {
    color: #876750;
}
/*endregion*/

/*region Personnalisation des formulaires*/
label{
    font-weight: bold;
}

button[type="submit"]{
    margin-top: 10px;
}

input:disabled{
    color: #6c757d;
}

.form-group.required label:after {
    content:" *";
    color:red;
}

form {
    text-align: left;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.invalid-feedback {
    text-align: center;
}
/*endregion*/

/*region Formulaire d'affichage (inactif)*/
.display-form .form-control:disabled {
    background-color: unset;
}

.display-form input:disabled {
    color: unset;
}

/*Résout un bug sur les tooltips boutons désactivés*/
button[disabled] {
    pointer-events: none;
}

.btn:disabled {
    cursor: not-allowed;
}
/*endregion*/

/*region Gestion des alignement de text*/
.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.align-center {
    text-align: center;
}
/*endregion*/

.tooltip {
    z-index: 2000;
}

.card-title {
    color : rgb(186, 131, 14);
    font-size : 16px;
    font-weight: 700;
}

.modal-body-full {
    padding: 0;
}

.modal-body-full > .card {
    border-radius: 0;
    margin-bottom: 0;
}