@import url("../font.css");

* {
    --text_hr: rgb(219, 218, 216);
    --h_barre:  rgb(196, 196, 196);

    --text: #153144;

    --header-height: 50px;
    
    --color-primary: #0cb35f;
    --color-formboot: #153144;
    --color-secondary: #086032;
    --color-terssiaire: #0cb35f;
    --bg: linear-gradient(45deg,#17c269c0, #0eee7ea6);

    scroll-behavior: smooth;
    box-sizing: border-box;
    color: var(--text); 
    margin: 0;
    padding: 0;
}

body {
    font-size: 14px;
    font-weight: 100;
    width: 100%;
    height: 100%;
    background: rgb(244, 245, 247);
    font-family: "Poppins xs";
}

img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

a {
    position: relative;
    color: var(--text);
}

a:hover, 
a:hover i {
    text-decoration: none;
    color: var(--color-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

.d-none-app {
   visibility: hidden;
}

.f-1 {
    font-size: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 50px;
    background: #0cb36090;
}

.bg-infos {
    background: #0cb36021 !important;
}

strong {
    font-weight: 500;
    font-family: 'Poppins mx', candara, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins bold extra";
}

.block {
    margin: 5px 0;
    border-radius: 5px;
    background: #fff;
}

.block-sh {
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.10);
}

/* loader-container */
.loader-container {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 101;
    background: #0cb360b9;
    color: #fff;
}

.loader-container * {
    color: #fff;
    margin: 10px 0;
    font-size: 15px;
}

.loader-container.show {
    display: flex;
}

.loader-container .loader {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50px;
    border: 3px solid transparent;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

.loader-container .loader::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 5px;
    right: 5px;
    border-radius: 50px;
    border: 3px solid transparent;
    border-top-color: #ffffffcc;
    animation: spin 5s linear infinite;
}

.loader-container .loader::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    bottom: 14px;
    right: 14px;
    border-radius: 50px;
    border: 3px solid transparent;
    border-top-color: #ffffff7d;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}


/* CONTAINER */

.content-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.content-body.show,
.content-body.show .center-content{
    display: block;
    width: 100%;
}

.content-body.show #header {
    width: 100%;
}

.center-content {
    width: calc(100vw - 300px);
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* sidebar */
#sidebar {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    border-right: 1px solid rgb(244, 245, 247);
}

#sidebar.show {
    display: none;
}

.logo-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    height: 50px;
    padding: 2px 10px;
    border-bottom: 1px solid rgb(244, 245, 247);
}

.logo-block img {
    width: auto;
    height: 40px;
    margin: 0 5px;
}

.logo-block h4 {
    margin-top: 8px;
    font-family: "Poppins bold";
}

.current-user {
    position: relative;
    min-width: 120px;
    min-height: 120px;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.current-user::after {
    content: '';
    position: absolute;
    top: 36%;
    left: 50%;
    width: 120px;
    height: 120px;
    padding: 5px;
    background: #d3dee320;
    border-radius: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

#avatar {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    margin: 10px 0;
    z-index: 2;
    background: #fff;
}

.menu-sidebar {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding-left: 20px;
}

.menu-sidebar-items {
    width: 90%;
    margin: 2px 0;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    transition: transform .3s;
}

.menu-sidebar-items i {
    margin: 0 5px;
    color: var(--color-primary);
}

.menu-sidebar-items:focus,
.menu-sidebar-items:hover {
    background: #0cb3601d;
    color: var(--text);
    font-family: "Poppins bold";
    transform: scale(1.2, 1.2);
}

.menu-sidebar-items.active {
    background: #0cb3601d;
    color: var(--text);
    font-family: "Poppins bold";
    transform: scale(1.2, 1.2);
}

/* header */
.header-holder, 
#header {
    width: calc(100vw - 300px);
    height: 50px;
}

#header {
    position: fixed;
    top: 0;
    background: #fff;
    border-bottom: 1px solid rgb(244, 245, 247);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#header i {
    font-size: 24px;
    margin: 0 10px;
}


/* container site */
.container {
    margin-top: 55px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    overflow-x: hidden;
}

.statistique {
    width: 100%;
    flex-wrap: wrap;
}

.statistique-items {
    width: 30%;
    min-width: 200px;
    height: 200px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transform-style: preserve-3d;
}

.statistique-items i {
    font-size: 30px;
    margin: 10px 0;
    background: #153144;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.statistique-items > * {
    transform: translateZ(40px);
}

.statistique-items:nth-child(1) {
    background: linear-gradient(45deg, rgba(51, 243, 233, 0.5), rgba(51, 243, 109, 0.377));
}

.statistique-items:nth-child(2) {
    background: linear-gradient(45deg, rgba(243, 51, 173, 0.5), rgba(214, 243, 51, 0.377));
}

.statistique-items:nth-child(3) {
    background: linear-gradient(45deg, rgba(173, 51, 243, 0.5), rgba(51, 141, 243, 0.377));
}


/* login */

.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.auth-body #logo {
    width: 130px;
}

#login {
    width: 400px;
    min-height: 500px;
    text-align: center;
    border-radius: 10px;
}

/* notice */
.notice {
    display: none;
    position: absolute;
    top: 40px;
    right: 10px;
    width: 300px;
    max-height: calc(100vh - 100px);
    padding: 10px 20px;
    background: #fff;
    z-index: 101;
    overflow-y: auto;
}

.notice.show {
    display: block;
}

.notice .notice-items {
    border-bottom: 1px solid #d2d7dc;
    margin: 8px 0;
}

.notice .notice-items span {
    font-size: 10px;
}

/* formalité */

.badge-formatilté {
    color: #086032 !important;
    padding: 4px 6px;
    border-radius: 4px;
    background: #0cb3603f;
}

