
/**********    GENERAL    *********/
:root {
    --bs-theme: #0b0d45;
    --bs-themehover: #00002b;
    --bs-themedisable: #4a4c84;
    --bs-themeborder: #24265e;
    --bs-background: url(../img/fonds/default.jpg);
}
body {
    padding: 0;
    margin: 0;
    font-family: Comfortaa;
    color: #fff !important;
}
.fond-trans{
    background: rgba(255,255,255,0.3);
    padding : 15px;
}
.hide{
    display:none;
}
.show{
    display:block;
}
.gras {
    font-weight: bold;
}
.contain-back{
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),var(--bs-background);
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.min-height{
    min-height: calc(100vh - 60px);
}
.btn-tcsm {
    color: #fff;
    background-color: var(--bs-theme);
    border-color: var(--bs-theme);
}
.btn-tcsm:hover {
    color: #fff;
    background-color: var(--bs-themehover);
    border-color: var(--bs-themehover);
}
.disable{
    color: grey;
    background-color: var(--bs-themedisable);
    border-color: var(--bs-themedisable);
    pointer-events: none;
}
.message{
    position: absolute;
    top: 245px;
    left: 50%;
    transform: translate(-50%, -50%);
}
.message-admin {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
}
/**********   FIN GENERAL    *********/

/**********   CONNEXION/INSCRIPTION/MDP    *********/

/* Anim textScramble */
    .text {
        font-weight: bold;
        font-size: 1em;
        color: #111;
    }
    .dud {
        color: #666666;
    }
/* Fin anim textScramble */    

.feedback {
    width: 100%;
    font-size: 0.875em;
    color: #333333;
}
.errorMdp {
    font-size: 0.875em;
    font-weight: lighter;
    font-style:italic
}
.sign-up {
    font-weight: bold;
    color: #333333;
    text-decoration: underline;
    font-style:italic
}
.mail-mdp {
    font-style:italic;
    font-weight:bold;
    text-align:justify;
}
input[data-code]{
    text-align:center
}
#newKey{
    font-size: 0.8rem;
    text-decoration: underline;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}
#newKey:hover{
    cursor:pointer;
    color: #0d6efd;
    font-size: 0.8rem;
}

/* oeil mdp */
.mdpEye {
    position: relative;
}

.mdpEye .password-icon {
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    width: 20px;
    color: #888;
    transition: all 0.2s;
}

.mdpEye .password-icon:hover {
    cursor: pointer;
    color: var(--bs-themehover);
}

.mdpEye .password-icon .fa-eye-slash {
    display: none;
}

/**********   FIN CONNEXION/INSCRIPTION    *********/

/**********    HEADERS - BARNAVS    *********/
.header {
    background-color: var(--bs-theme) !important;
    height:90px;
    border-bottom:solid 3px var(--bs-themeborder);
}
.fond-superadmin{
    max-width:60px;
}
.logo-superadmin{
    max-width:30px;
}
.logo-header{
    max-width:30px;
    margin-right:10px
}
.navbar-brand {
    font-family: Comfortaa !important;
}
.navbar-nav, .dropdown-menu {
    background-color: var(--bs-theme) !important;
}
.dropdown-item:hover{
    background-color: var(--bs-themehover) !important;
    color:#cccdcb;
    font-weight: bold;
}
.bg-light a, .bg-light .title{
    color: #fff;
}
.bg-light p {
    height:80px;
}
.nav-item{
    padding-left:15px;
}
.title {
    font-family: Comfortaa !important;
    font-size: 1.1rem;
    color: #c5cad3;
}
.titleServeur{
    font-family: Comfortaa !important;
    font-size: 0.8rem;
    font-style: italic;
    color: #c5cad3;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-link {
    text-decoration: none;
    font-size: 1.3rem !important;
    color: #434a56; 
}
.nav-link i {
    margin-right:15px;
}
.deconnect-serveur, .deconnect-serveur-admin, .deconnect-bar, .deconnect-cuisine, .deconnect-admin, 
.switch-first, .switch-second, .switch-third,
.switch-first-admin, .switch-second-admin, .switch-third-admin,
.switch-first-serveur, .switch-second-serveur, .switch-third-serveur {
    color:#fff;
    font-size:1.5rem;
    position: absolute;
    top: 28px;
}
.deconnect-admin, .deconnect-bar, .deconnect-cuisine {
    right: 2%;
}
.switch-first, .switch-first-admin {
    right: 20%;
}
.switch-second, .switch-second-admin {
    right: 15%;
}
.switch-third, .switch-third-admin {
    right: 10%;
}
.deconnect-serveur{
    right: 50%
}
.deconnect-bar{
    right: 5%
}
.deconnect-serveur-admin {
    right: 35%;
}
.switch-first-serveur {
    right: 55%;
}
.switch-second-serveur {
    right: 50%;
}
.switch-third-serveur {
    right: 45%;
}
.deconnect-bar:hover,
.deconnect-cuisine:hover,
.deconnect-admin:hover,
.deconnect-serveur:hover, .deconnect-serveur-admin:hover, 
.switch-first:hover, .switch-second:hover, .switch-third:hover,
.switch-first-admin:hover, .switch-second-admin:hover, .switch-third-admin:hover,
.switch-first-serveur:hover, .switch-second-serveur:hover, .switch-third-serveur:hover,
.nav-link:hover{
    color:rgb(167, 160, 160)!important;
}
.fa-arrow-right{
    font-size:0.6rem;
}

    /* INFOBULLES PERSOS */
        .infobulle-list {
            position: relative;
        }
        .infobulle:hover::after,
        .infobulle:focus::after,
        .infobulle-list:hover::after,
        .infobulle-list:focus::after {
            content: attr(aria-label);  /* on affiche aria-label */
            position: absolute;
            top: 2.8em;
            left: 50%;
            transform: translateX(-50%); /* on centre horizontalement  */
            z-index: 1;
            white-space: nowrap;
            padding: 5px 14px;
            background: #148c9f;
            color: #fff;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        /* on génère un second élément en :before pour la flèche */
        [aria-label="Admin"]:hover::before,
        [aria-label="Admin"]:focus::before,
        [aria-label="Cuisine"]:hover::before,
        [aria-label="Cuisine"]:focus::before,
        [aria-label="Bar"]:hover::before,
        [aria-label="Bar"]:focus::before,
        [aria-label="Serveur"]:hover::before,
        [aria-label="Serveur"]:focus::before,
        [aria-label="Déconnexion"]:hover::before,
        [aria-label="Déconnexion"]:focus::before,
        [aria-label="Modifier"]:hover::before,
        [aria-label="Modifier"]:focus::before,
        [aria-label="Supprimer"]:hover::before,
        [aria-label="Supprimer"]:focus::before,
        [aria-label="Envoi identifiants"]:hover::before,
        [aria-label="Envoi identifiants"]:focus::before {
            content: "▲";
            position: absolute;
            top: 2.5em;
            left: 50%;
            transform: translateX(-50%); /* on centre horizontalement  */
            font-size: 10px;
            color: #148c9f;
        }
    /* FIN INFOBULLES */

/**********    FIN HEADER - BARNAV    *********/

/**********    FOOTER    *********/
.site-footer {
    background:var(--bs-theme);
    color: #fff;
    min-height:60px;
    border-top:solid 3px var(--bs-themeborder);
}
.site-footer .col-12 {
    height:60px;
    line-height:60px;
}
.logo-footer{
    max-width:20px;
    margin-left:5px;
}
.link-footer{
    text-decoration:none;
    color:#fff;
    font-style:italic;
    font-weight: bold;
}
.link-footer:hover{
    color:#ccc;
}
.ml14-footer {
    font-weight: 200;
    font-size: 1em;
}

.ml14-footer .text-wrapper-footer {
    position: relative;
    display: inline-block;
    padding-top: 0.1em;
    padding-right: 0.05em;
    padding-bottom: 0.15em;
}

.ml14-footer .line {
    opacity: 0;
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: #fff;
    transform-origin: 100% 100%;
    bottom: 22px;
}

.ml14-footer .letter-footer {
    display: inline-block;
    line-height: 1em;
}

/**********    FIN FOOTER    *********/

/**********    BAR / CUISINE    *********/
.bolder {
    font-weight: bold;
    text-decoration: underline;
}
.smaller {
    font-size:0.8rem;
    font-style: italic;
}
#cards .first-list-group-item {
    border-bottom: 1px solid #111 !important;
    text-align:end;
    padding-right: 5px;
    font-size: 14px;
    font-style: italic;
}
#cards .card-body p {
    font-size: 12px;
    font-style: italic;
}
#cards .card .btn {
    width : 40px;
}
#cards .card .btn i {
    font-size: 0.9rem;
}
.btn-cuisine{
    width : 70px !important;
    font-size:0.8rem;
    padding-top:0.6rem
}
.attente-border {
    border : 4px solid #dc3545;
}
.attente-bg {
    background-color: #f4bec3;
    color : #111;
}
.prepa-border {
    border : 4px solid #ffc107;
}
.prepa-bg {
    background-color: #ffdf80;
    color : #111;
}
.over-border {
    border : 4px solid #198754;
}
.over-bg {
    background-color: #a9efce;
    color : #111;
}
.border-left{
    border-left:solid 1px #999;
}
/**********    FIN BAR/CUISINE    *********/

/**********    ACCUEIL    *********/
/**********    FIN ACCUEIL    *********/

/**********    SERVEUR    *********/
.btn-serveur {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.info-serveur{
    font-size : 0.8rem;
    font-style : italic;
    text-align : center;
}
.height60{
    height:60px;
}
#productList{
    background-color:rgba(255,255,255,0.3)
}
#productList .col-4 {
    padding: 0 2px;
    border:rgba(255,255,255,0.3) solid 1px
}
.divEmpty{
    height: 8px;
}
.btn-product{
    width: 100%;
    margin-bottom:4px !important;
}
#table {
    width: 50px !important;
    text-align: center;
}
#formCommande textarea {
    max-width: 140px !important;
    vertical-align: middle;
    text-align: center;
}
.total {
    font-weight: bold;
    font-size: 2rem;
}
/**********    FIN SERVEUR    *********/

/**********    ADMIN    *********/
    /* Accueil admin */
    .carre_produit,
    .carre_user,
    .carre_stat,
    .carre_cat,
    .carre_annule,
    .carre_structure,
    .carre_super_structure {
        width: 170px;
        height: 100px;
        border: 1px solid #E6E9ED;
        border-radius: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    .carre_fast {
        width: 250px;
        height: 40px;
        border: 1px solid #E6E9ED;
        border-radius: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    .carre_fast, .buttonAdminFast {
        background: #ff3333;
    }
    .carre_fast:hover, .buttonAdminFast:hover {
        background: #e60000;
        color: #fff;
    }
    .carre_produit, .buttonAdminProduit {
        background: #17a2b8;
    }
    .carre_produit:hover, .buttonAdminProduit:hover {
        background: #148c9f;
        color: #fff;
    }
    .carre_user, .buttonAdminUser {
        background: #e6b800;
    }
    .carre_user:hover, .buttonAdminUser:hover {
        background: #cca300;
        color: #fff;
    }
    .carre_stat, .buttonAdminStat {
        background: #DC0055;
    }
    .carre_stat:hover, .buttonAdminStat:hover {
        background: #A80041;
        color: #fff;
    }
    .carre_cat, .buttonAdminCat  {
        background: #339933;
    }
    .carre_cat:hover, .buttonAdminCat:hover  {
        background: #267326;
        color: #fff;
    }
    .carre_annule, .buttonAdminAnnule {
        background: #262626;
    }
    .carre_annule:hover, .buttonAdminAnnule:hover {
        background: #4d4d4d;
        color: #fff;
    }
    .carre_structure, .buttonAdminStructure {
        background: var(--bs-theme);
    }
    .carre_structure:hover, .buttonAdminStructure:hover {
        background: var(--bs-themehover);
        color: #fff;
    }
    .carre_super_structure, .buttonSuperStructure {
        background: #cc0000;
    }
    .carre_super_structure:hover, .buttonSuperStructure:hover {
        background: #800000;
        color: #fff;
    }
    .logo-admin{
        max-width:40px;
    }
    .carre_title {
        border-bottom: 2px solid #E6E9ED;
        padding: 1px 5px 6px;
        margin-bottom: 10px;
        color: #fff;
        text-align: center;
        font-size:1rem;
        height:33px;
        line-height:33px;
    }
    .carre_fast_title {
        padding: 1px 5px 6px;
        color: #fff;
        text-align: center;
        font-size:1rem;
        height:40px;
        line-height:40px;
    }
    .lien_carre{
        text-decoration: none;
    }
    .carre_content {
        padding: 0;
        font-size: 2rem;
        vertical-align: middle;
        text-align: center;
        color: #fff;
    }

    /* fin accueil admin */

    .div-form {
        color:#111;
        background:rgba(255,255,255,0.5);
        margin-top:15vh;
        margin-right:auto;
        margin-left:auto;
    }
    .div-form-signUp {
        color:#111;
        background:rgba(255,255,255,0.5);
        margin: 10vh auto;
        
    }
    .div-form-admin {
        color:#111;
        background:rgba(255,255,255,0.6);
        margin-top:10vh;
        margin-bottom:10vh;
        margin-right:auto;
        margin-left:auto;
    }
    .advert-admin, .info-admin {
        font-size:0.8rem;
        font-style: italic;
    }
    .advert-admin {
        color:#b30000;
    }
    .info-admin{
        color:#111;
    }
    .select-admin{
        font-size:0.8rem;
        font-style: italic;
        color:#111;
        margin-left:20px;
    }
    .titre-list {
        margin-top:10vh;
        margin-bottom:5vh;
    }
    
    .table-list{
        background:rgba(255,255,255,0.6);
        margin-bottom:10vh;
    }
    
    .table-list .fa-pen-to-square {
        color: #ffc107;
    }
    
    .table-list .fa-trash-can {
        color: #cc0000;

    }
    .fa-trash-can:hover, .spanStatut:hover, .fa-envelope:hover{
        cursor: pointer;
    }
    .star-admin{
        color: #ffcc00;
        font-size: 1rem;
    }
    .star-gerant{
        color: #ff3300;
        font-size: 1rem;
    }
    .btn-admin {
        width:100% !important;
        color: #fff;
    }
    .btn-admin-stat{
        padding:0;
        width:25%;
        height:30px;
        font-size:1rem;
        color: #fff!important;
    }
    .buttonStatUser {
        background: #00b300;
        color: #fff;
    }
    .span-statDate{
        font-size:1.5rem;
        color:#111;
        font-style: italic;
        margin-right:10px;
    }
    .titre-statDate{
        font-size:1.5rem;
        color:#DC0055;
        text-align:center;
        margin-bottom: 25px;
    }
    #datetimePicker input[type=date] {
        text-align: center !important; 
    }
    .color-total {
        background-color:rgba(220, 0, 85,0.5) !important;
        color: #fff;
        font-weight: bold;
    }
    .color-total-2 {
        background-color:rgba(255,255,255,0);
    }
    .color-total::before{
        content:none!important;
    }
    .modal-title, .modal-body {
        color: #111! important;
    }
    .structure-titre{
        font-size: 2rem;
    }
    .logo-structure{
        max-height:100px;
        margin-top: 25%;
        margin-bottom : 20px;
    }
    .fond-structure{
        max-width:90%;
        margin-top:20px;
        margin-bottom : 20px;
    }
    #tableStructure {
        width:40vw;
        margin-left:18vw;
        color:#111
    }
    #tableStructure th, #tableStructure td{
        width: 20vw;
        height: 35px;
    }
    /* animation accessible à https://tobiasahlin.com/moving-letters/ */
    .ml9 {
        position: relative;
        font-weight: bold;
        color:#990000;
    }
    .ml9 .text-wrapper {
        position: relative;
        display: inline-block;
        padding-top: 0.2em;
        padding-right: 0.05em;
        padding-bottom: 0.1em;
        overflow: hidden;
    }
    .ml9 .letter {
        transform-origin: 50% 100%;
        display: inline-block;
        line-height: 1em;
        font-size: 1rem;
    }
    /* fin animation */
    /* statut */
    .red, .green, .statutDisabled, .statutDisabledSecteurs {
        border-radius:5px;
        padding:7px;
        color:#fff;
        -webkit-border-radius:5px;
        -moz-border-radius:5px;
        -ms-border-radius:5px;
        -o-border-radius:5px;
    }
    .red{
        background-color:#dc3545;
    }
    .green {
        background-color:#198754;
    }
    .statutDisabled {
        background-color:#808080;
        color: #fff;
    }
    .spanColor{
        display:block;
        width:60px;
        height:25px;
    }
    /* fin statut */

    /*  form valid */
    .valid{
        border:solid 2px rgb(0,168,0);
        color: #008000;
    }

    .invalid, .messInvalid{
        display: block;
        width: 100%;
        margin-top: 0.25rem;
        font-size: 0.875em;
        color: #dc3545;
    }
    .invalid{
        border:solid 2px rgb(168,0,0);
    }
    /*  fin form valid */
/**********    FIN ADMIN    *********/

/**********    MEDIA QUERIES    *********/

@media (max-width: 992px) {
    .div-form, .div-form-signUp {
        margin-top:15vh;
    }
    .deconnect-admin{
        position: static;
        margin-left:35px;
    }
    .switch-first-admin,
    .switch-second-admin,
    .switch-third-admin {
        position: static;
        margin-right:100px;
    }
    .infobulle:hover::after,
    .infobulle:focus::after {
        display:none;
    }
    
    [aria-label]:hover::before,
    [aria-label]:focus::before {
        content: "";
    }
    #tableStructure {
        width:60vw;
        margin-left:40px;
        color:#111
    }
    #tableStructure th{
        width: 15%;
    }
    #tableStructure td{
        width: 15%;
    }
    .logo-structure {
        margin-top: 50px;
        margin-bottom: 20px;
    }
    .fond-structure{
        max-width:90%;
    }
    .border-left{
        border-left:solid 1px #999;
    }
}

@media (max-width: 768px) {
    .min-height{
        min-height: calc(100vh+60px);
    }
    .div-form, .div-form-signUp {
        margin-top:7vh;
    }
    .text {
        font-size: 0.8em;
    }
    .site-footer .col-12 {
        height: 30px;
        line-height:30px;
    }
    .footer-aside{
        font-size:0.9rem;
    }
    .ml14-footer .line {
        bottom: 8px;
    }
    .deconnect-admin{
        position: static;
        margin-left:35px;
    }
    .switch-first-admin,
    .switch-second-admin,
    .switch-third-admin {
        position: static;
        margin-right:35px;
    }
    .deconnect-bar, .deconnect-cuisine {
        top: 28px;
        font-size: 1.2rem;
        right:5%
    }
    .switch-first {
        font-size: 1.2rem;
        top: 28px;
        right:40%;
    }
    .switch-second {
        font-size: 1.2rem;
        top: 28px;
        right:30%;
    }
    .switch-third {
        font-size: 1.2rem;
        top: 28px;
        right:20%;        
    }
    .deconnect-serveur {
        font-size: 1.1rem;
        top: 31px;
        right: 44%;
    }
    .deconnect-serveur-admin {
        font-size: 1.1rem;
        top: 45px;
        right: 40%;
    }
    .switch-first-serveur {
        font-size: 1.1rem;
        top: 15px;
        right: 40%;
    }
    .switch-second-serveur {
        font-size: 1.1rem;
        top: 15px;
        right: 50%;
    }
    .switch-third-serveur {
        font-size: 1.1rem;
        top: 45px;
        right: 50%;
    }
    .infobulle:hover::after,
    .infobulle:focus::after {
        display:none;
    }
    
    [aria-label]:hover::before,
    [aria-label]:focus::before {
        content: "";
    }

    .message-admin {
        position: absolute;
        top: 130px;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .btn-admin {
        font-size:0.8rem;
    }
    .btn-admin-stat{
        width:50%;
    }
    .hide-div{
        display:none;
    }
    .color-total-2 {
        background-color:rgba(220, 0, 85,0.5) !important;
    }
    .logo-structure {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    #tableStructure {
        width:100vw;
        margin-left:15px;
        color:#111
    }
    #tableStructure th, #tableStructure td{
        width: 20vw;
        height: 35px;
    }
    .letters {
        <!-- font-size: 0.8rem; -->
    }
    .border-left{
        border-left:none;
    }
}
/**********    FIN MEDIA QUERIES    *********/