@import "variable.css";

:root {
    --width-cube:400px;
    --height-cube: 400px;
}

.alert-display{
    
    position: absolute;
    top:-4%;
    right: 1%;
    max-width: 400px;
    height: 100px;
}

.accueil-display {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
}

.cube-flex-container {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.cube-flex-item:nth-child(1) {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}
.cube-flex-item:nth-child(2) {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
}


.cube-display{
    width: var(--width-cube);
    height: var(--height-cube);
}

.logo-entreprise {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cube-menu {
    width: var(--width-cube);
    border-radius: 9999px; 
    color: rgb(255, 255, 255);
    position: absolute;
    top: 0px;

}

.cube-sub-menu{
    align-items: flex-start; 
    display: flex;
    justify-content: center; 
    
}

/* Menu position */
.qhse-menu {
    transform-origin: top left;
    transform: translate(calc(var(--width-cube)*-1.06), calc(var(--height-cube)*-0.23)); 
}
.rh-menu{
    transform: translate(calc(var(--width-cube)*0.733), calc(var(--height-cube)*-0.2));
}
.projet-menu{
    transform: translate(calc(var(--width-cube)*0.75), calc(var(--height-cube)*1.1)); 
}
.management-menu{
    transform: translate(calc(var(--width-cube)*1.3), calc(var(--height-cube)*0.35)); 
}
.stock-menu {
    transform: translate(calc(var(--width-cube)*-0.98), calc(var(--height-cube)*1.05)); 
}
.materiel-menu {
    transform: translate(calc(var(--width-cube)*-1.06), calc(var(--height-cube)*0.6)); 
}

#dashboard-droite{
    height: 100%;
    float: right;
    
    
}
#dashboard-principal{
    height: calc(100vh - 145px);
    
    margin: auto;
    
    display:flex; 
    flex-direction: column;
    align-content: stretch; 
    flex-wrap: nowrap;
}
.tdb-element{
    max-width: 300px;
}
.tdb-row{
    height: 33%;
    min-height: 230px;
    display: flex;
}
.tdb-message{
    align-self: flex-end;
}

#reviews {
    display: grid;
    place-items: center;
    margin: auto auto;
}

.sp-carousel {
    display: flex;
    gap: 15px;
    margin: auto auto;
    position: relative;
    overflow-x: hidden;
    width: 100% !important;
}
.SP-slider {
    height: auto;
    transition: transform 0.3s ease;
    flex: 0 0 100%;
    max-width: 100%;
    height: 100%;
    margin: 30px auto;
}
.SP-slider > .reviewer-name {
    font-size: large;
}
.bd-container {
    max-width: 1024px;
    width: calc(100% - 3rem);
}
.order-landing-data {
    text-align: center;
    position: relative;
z-index: 10;
    padding: 1rem 1rem 2rem;
    box-shadow: 6px 3px 3px #0000003b;
    box-shadow: 0px 0px 8px #7E848D;
    
    max-width: 95%;
    
}
.carousel-dots {
    display: flex;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    display: flex;
}
.dot.active {
    background-color: #000;
}

.dot:hover {
background-color: #aaa;
}

.bi {
    color: #000;
}
.order-landing__data {
    width: 100%;
}
.SP-slider .slide {
    flex: 1;
    text-align: center;
    transition: transform 0.3s ease;
}

.SP-slider .slide:not(.active) {
    filter: blur(5px); /* Adjust the blur strength as needed */
}

.carousel-dots {
    text-align: center;
}

.carousel-dots .dot {
    display: inline-block;
    margin: 0 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
}
.recherche_globale_container{
    display: inline-block; 
    min-width: 300px;
    width: 80%;
    margin-left: 10%;
    margin-top: 5px;
}
.recherche_globale_search{
    width: 0px;
    text-wrap: nowrap;
    transform: translate(16px);
    font-size: 1.5rem;
    color:#999999;
}
.recherche_rapide{
    display: inline-block;
    font-size: 1.4rem;
    padding-left: 10%;
    width: 99%;
    border-radius: 25px;
}
.recherche_header{
    display: inline-block;
    font-size: 1.1rem;
    padding-left: 10%;
    width: 95%;
    border-radius: 25px;
}
.recherche_header_search{
    width: 0px;
    text-wrap: nowrap;
    transform: translate(13px);
    font-size: 1.1rem;
    color:#646464;
}

.row_recherche {
    padding-bottom: 15px !important;
}

.recherche_annuaire{
    display: inline-block;
    font-size: 1rem;
    padding-left: 12%;
    width: 60%;
    border-radius: 10px;
}
.recherche_annuaire_search{
    width: 0px;
    text-wrap: nowrap;
    transform: translate(16px);
    font-size: 1.2rem;
    color:#646464;
}
.recherche_globale_option{
    display: inline-block; 
    margin-left: 10%; 
    margin-right: 10%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding-bottom: 5px;
    padding-top: 10px;

}

/* Trait de liaison */

.trait-liaison {
    position: absolute;
    border-width: 1px;
    border-style: solid;
}
.trait-liaison-management{
    border-color: var(--management-color);
    width:140px;
    top:-2px; 
    left:-28px; 
    transform: translateX(-110px) rotate(-20deg); 
    transform-origin: top right;
}
.trait-liaison-materiel {
    border-color: var(--materiel-color);
    width:120px;
    top:-2px; 
    right:-60px; 
    transform: translateX(60px) rotate(-25deg); 
    transform-origin: top left;
}
.trait-liaison-projet {
    border-color: var(--projet-color);
    width:150px;
    top:-2px; 
    left:-100px; 
    transform: translateX(-50px) rotate(30deg); 
    transform-origin: top right;
}

.trait-liaison-qhse {
    border-color: var(--qhse-color);
    width:250px;
    top:-2px; 
    right:-90px; 
    transform: translateX(160px) rotate(27deg); 
    transform-origin: top left;

}
.trait-liaison-rh {
    border-color: var(--rh-color);
    width:100px;
    bottom:-2px; 
    left:-30px; 
    transform: translateX(-70px) rotate(-45deg); 
    transform-origin: top right;
}
.trait-liaison-stock {
    border-color: var(--stock-color);
    width:190px;
    top:-2px; 
    right:-90px; 
    transform: translateX(100px) rotate(-15deg); 
    transform-origin: top left;
}

.cube-item-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    padding-left: 5px;
}
.cube-item-body {
    font-size: 1.1rem;
    border-top: 2px solid black;
    padding:12px 10px 5px 10px;
    background-color: white;
    color:var(--primary-text-color);
    position: relative;
}
.message-important{
    color: var(--alerte-a-venir-color);
    font-weight: bold;
    font-size: 1.8rem;
    margin: auto;
    text-align: center;
    display: block;
}
.message-important img{
    margin: auto;
}
.detail-message-important{
    color: var(--primary-text-color);
    font-size: 1.4rem;
    margin: auto;
    text-align: center;
    display: block;
}

.detail-message-important a{
    color: var(--management-color);
}
.logo-container{
    display: inline-block;
    width: 100%;
    text-align: center;
}
.logo{
    max-width:250px;
    text-align: center;
    max-height: 100px;
}

.management-body{
    /*width:var(--width-cube);*/
    border-color:var(--management-color);
    background-color: var(--management-color); 
    color: var(--reversed-primary-text-color);
}

/* Couleur des blocs et titres */
.management-title-color{
    color:var(--management-color);
}
.management-border-color{
    border-color:var(--management-color);
}
.materiel-title-color{
    color:var(--materiel-color);
}
.materiel-border-color{
    border-color:var(--materiel-color);
}
.projet-title-color{
    color:var(--projet-color);
}
.projet-border-color {
    border-color:var(--projet-color);
}
.qhse-title-color{
    color:var(--qhse-color);
}
.qhse-border-color{
    border-color:var(--qhse-color);
}
.rh-title-color{
    color:var(--rh-color);
}
.rh-border-color{
    border-color:var(--rh-color);
}
.stock-title-color{
    color:var(--stock-color);
}
.stock-border-color{
    border-color:var(--stock-color);
}
.alertes-title-color{
    color:var(--alerte-color);
}
.alertes-border-color{
    border-color:var(--alerte-color);
}



.cube-item-body ul {
    margin: 0;
    padding: 0;
    padding-left: 30px;
}


.cube-item-comments-table {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto; 
    overflow-x: hidden; 
    text-wrap: wrap;
}
.cube-item-comment {
    color: var(--reversed-primary-text-color); 
    text-wrap: wrap; 
    min-width: 350px; 
    display:block;
}


.cube-badge-green {
    padding:1px 10px 1px 10px;
    text-align: center;
    color: var(--reversed-primary-text-color);
    background-color: var(--ok-color);
    border-radius: 25px;
    max-width: 100px;
    width: 3.5rem;
}
.cube-badge-red {
    padding:1px 10px 1px 10px;
    text-align: center;
    color: var(--reversed-primary-text-color);
    background-color: var(--alerte-color);
    border-radius: 25px;
    max-width: 60px;
    width: 3.5rem;
}
.cube-badge-orange {
    padding:1px 10px 1px 10px;
    text-align: center;
    color: var(--reversed-primary-text-color);
    background-color: var(--materiel-color);
    border-radius: 25px;
    max-width: 60px;
    width: 3.5rem;
}
.cube-badge-green-display{
    display:none;
}

#cube {
    position: relative;
    width:100%;
    top: 150px;
    transform: scale(0.8);
}
#tdb-mobile {
    display: none;
}
@media (max-width:1023px) {
    .trait-liaison {
        display: none;
    }
    #tdb-mobile {
        display: block;
        margin-left: 0;
    }
    #tdb-desktop {
        display: none;
    }
  
}


@media (min-width: 768px) and (max-width: 1024px) {
    #cube{
        transform: scale(0.8);
    }
}
@media (min-width: 1025px) {
    #cube{
        transform: scale(1);
    }
}


.accueil-flex-container {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

@media (max-width: 1023px) {
    .accueil-flex-container {
        -webkit-flex-direction: column-reverse;;
        -ms-flex-direction: column-reverse;;
        flex-direction: column-reverse;
    }
}
.accueil-flex-item:nth-child(1) {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    padding-left: 300px;
}
.accueil-flex-item:nth-child(2) {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-align-self: auto;
    -ms-flex-item-align: auto;
    align-self: auto;
    padding-left: 350px;
}