@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700&display=swap');
@import "input.css";
@import "font.css";
@import "breadcrumb.css";
@import "navigation.css";
@import "button.css";
@import "table.css";
@import "article.css";
@import "quiz.css";


:root {
    --hauteur-menu: 60px;
    --idcar: #f9896b;
    --idleads: #51459e;
    --idlinks: #40d1ff;
    --idwelcome: #20c993;
    --light: #f6f8ff;
    --bleu: #40d1ff;
    --bleu-fonce: #51459e;
    --orange-feu: #F9896B;
    --bleu-flash: #84E8F4;
    --violet: #51459e;
    --bg-primary: white;
    --bg-secondary: #f6f8ff;
    --bg-tertiary: #eaefff;
    --border-color: #ececec;
    --border-dark-color: #40377b;
    --color-text-primary: #111926;
    --color-text-secondary: #888888;
    --color-dark-text-primary: white;
    --color-dark-text-secondary: #bbc0c2;
    --sidebar-width: 343px;
    --color-light: #f6f8ff;
    --beige: #ffac95;
    --canard: #3EB7C6;
}



.main {
    width: calc(100vw - var(--hauteur-menu));
    height: calc(100vh - var(--hauteur-menu));
    float: right;
    overflow: auto;
}

.main.sidebars {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: initial;
}

.content {
    position: relative;
    flex: 1;
    overflow: auto;
}

.sidebar-body,
.sidebar-header {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-bloc > .sidebar-header {
    cursor: pointer;
}

.sidebar-bloc > .sidebar-header:hover {
    background-color: var(--color-light);
}

.sidebar {
    background-color: white;
    padding: 1rem;
}

.sidebar-chat {
    font-size: 12px;
    overflow: auto;
    max-height: calc(100vh - var(--hauteur-menu)*2 - 358px);
    min-height: calc(100vh - var(--hauteur-menu)*2 - 358px);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.sidebar-filtres-stock {
    min-height: calc(100vh - 1rem - var(--hauteur-menu)*4);
    max-height: calc(100vh - 1rem - var(--hauteur-menu)*4);
    overflow: auto;
}

.sidebar.dark {
    background-color: #eceff7;
}

.sidebar.right {
    border-left: 1px solid var(--border-color);
}

.sidebar.left {
    border-right: 1px solid var(--border-color);
}

.sidebar.left.hide {
    left: calc(var(--sidebar-width)*-1);
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    position: absolute;
}

.sidebar.left.hide + .drawer.left.active {
    left: var(--hauteur-menu);
}

.sidebar-body {
    width: 100%;
    /* overflow: auto; */
    font-size: 12px;
    position: relative;
    max-height: 100%;
}

.sidebar-footer .footer-btn-stock {
    position: fixed;
    bottom: 0;
    width: 343px;
    background-color: var(--color-light);
}

.sidebar.retracted {
    left: calc(-343px + var(--hauteur-menu));
    position: absolute;
}


.btn-sidebar {
    font-size: 10px;
    text-transform: uppercase;
    margin-left: auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    color: var(--bs-gray-600);
}

.btn-sidebar:hover {
    color: var(--bleu-fonce);
    font-family: 'Rubik Medium', sans-serif;
}

.btn-sidebar > i {
    font-size: 12px;
    margin-right: 2px;
}


.reorder-widget .sidebar-body {
    overflow: unset;
}

.sidebar-header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 0 1.5rem;
    color: var(--bleu-fonce);
    z-index: 50;
    height: var(--hauteur-menu);
}


.dropdown-item.active {
    background-color: var(--color-light);
    color: var(--bleu-fonce);
}


.content {
    position: relative;
    flex: 1;
    overflow: auto;
}


.h-custom {
    height: var(--hauteur-menu);
}


.user-bloc {
    padding: 1rem;
    background-color: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.user-bloc.sticky {
    position: sticky;
    top: 1.5rem;
}



/******************************************************************************************************************************/
/******************************************************************************************************************************/
/******************************************************************************************************************************/
/*********************************************************** LOADER ***********************************************************/
/******************************************************************************************************************************/
/******************************************************************************************************************************/
/******************************************************************************************************************************/

.loader {
    min-width: 30px;
    max-width: 60px;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.loader.absolute {
    position: absolute;
    z-index: 1000;
    margin: 0 10px;
}

.rond.bleu {
    fill: #51459E;
    animation: load 1s infinite ease-in-out;
    animation-delay: 0.2s;
}

.rond.bleuflash {
    fill: #84E8F4;
    animation: load 1s infinite ease-in-out;
    animation-delay: 0.1s;
}

.rond.orange {
    fill: #F9896B;
    animation: load 1s infinite ease-in-out;
}

@keyframes load {

    0%, 100% {
        transform: translateY(30px);
    }

    50% {
        transform: translateY(-30px);
    }
}

.modal-xxxl {
    --bs-modal-width: 75%;
}

.modal-xxl {
    max-width: 85%;
}

body,
.tooltip,
.popover {
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--color-text-primary);
}

/*.loader {*/
/*    height: 100%;*/
/*    width: 100%;*/
/*    position: fixed;*/
/*    left: 0;*/
/*    top: 0;*/
/*    background: rgba(255, 255, 255, .5);*/
/*    z-index: 10;*/
/*    display: grid;*/
/*    place-content: center;*/
/*}*/

/*.loading-dots {*/
/*    min-width: 30px;*/
/*    max-width: 60px;*/
/*    min-height: 43px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    margin: 0 auto;*/
/*}*/

/*.rond.bleu {*/
/*    fill: var(--bleu);*/
/*    animation: load 1s infinite ease-in-out;*/
/*    animation-delay: 0.2s;*/
/*}*/

/*.rond.vert {*/
/*    fill: var(--vert);*/
/*    animation: load 1s infinite ease-in-out;*/
/*    animation-delay: 0.1s;*/
/*}*/

/*.rond.orange {*/
/*    fill: var(--orange);*/
/*    animation: load 1s infinite ease-in-out;*/
/*}*/

/*.loading-dots {*/
/*    min-width: 100px;*/
/*    max-width: 160px;*/
/*    min-height: 113px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    margin: 0 auto;*/
/*}*/

.bg-idcar {
    background-color: var(--idcar);
    color: var(--light);
}

.bg-idleads {
    background-color: var(--idleads);
    color: var(--light);
}

.bg-idwelcome {
    background-color: var(--idwelcome);
    color: var(--light);
}

.bg-idlinks {
    background: radial-gradient(farthest-corner at 0% 0%, var(--bleu-flash) 40%, var(--bleu-fonce) 40%, var(--bleu-fonce) 70%, var(--orange-feu) 70%, var(--orange-feu) 100%);
    color: white;
}

.bg-violet {
    background-color: var(--violet);
    color: var(--light);
}

.bg-spin {
    background-color: var(--canard);
}

.text-violet {
    color: var(--violet);
}

.bloc {
    padding: 1.5rem 1.5rem 0 1.5rem;
    background-color: var(--bg-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.bloc-disabled {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, .5);
    backdrop-filter: blur(5px);
    top: 0;
    left: 0;
    border-radius: 5px;
    display: grid;
    place-content: center;
    text-align: center;
}

.bloc li {
    line-height: 36px;
}

.dot {
    width: 20px;
    height: 20px;
    border-radius: 50px;
    margin-right: 0.5rem;
    padding: 7px 7px 0 0;
}

footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
}

figcaption {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: center;
}

.logo-footer {
    max-width: 100px;
    padding: 3rem 0;
}

@keyframes load {

    0%,
    100% {
        transform: translateY(30px);
    }

    50% {
        transform: translateY(-30px);
    }
}

.bg-primary {
    background-color: var(--bg-primary) !important;
}

.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

.btn.bg-idleads:hover {
    background-color: #3f367e;
    color: white;
}

.fw-bold,
.bold,
strong,
b,
th,
.badge {
    font-weight: 600;
}

small.extrasmall {
    font-size: 10px;
    font-weight: 300;
}

header {
    background-color: var(--violet);
    color: var(--color-dark-text-primary);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav ul {
    margin: 0;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}


.header-nav ul a {
    color: var(--color-dark-text-secondary);
    padding: 1rem;
    border-bottom: 4px solid transparent;
    display: block;
    text-decoration: none;
}

.header-nav ul a.active, .header-nav ul a:hover {
    border-bottom: 4px solid var(--bleu);
    color: var(--color-dark-text-primary);
}


.sidebar {
    background-color: white;
    padding: 1rem;
}

.sidebar.left {
    border-right: 1px solid var(--border-color);
}

.sidebar.right {
    border-left: 1px solid var(--border-color);
}

.sidebar.hidden {
    visibility: hidden;
}

.search-home-container>i {
    position: absolute;
    right: 12px;
    top: 24px;
    color: var(--violet);
    font-size: 24px;
    transform: translateY(-50%);
}

.search-home {
    height: 48px;
    font-size: 24px;
    font-weight: 400;
    width: 100%;
    padding-left: .5rem;
}

.search-home-container {
    position: relative;
}

.search-home__results {
    background-color: white;
    border-radius: 5px;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.quiz-list {
    max-height : 450px;
    overflow-y: auto;
}

.search-home__results ul,
.article-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: black;
}

.search-home__results a, .article-list a {
    display: flex;
    align-items: center;
    padding: .5rem 1rem;
    gap: 1rem;
    border-bottom: none;
    flex-wrap: wrap;
}


.search-home__results a, .article-list li {
    border: 1px solid var(--border-color);
}

.article-history {
    padding-left: 56px;
    font-size: 12px;
    padding-bottom: .5rem;
}

.search-home__results a,
.article-list li:first-of-type {
    border-radius: 10px 10px 0 0;
}

.search-home__results a,
.article-list li:last-of-type {
    border-radius: 0 0 10px 10px;
    border-bottom: 1px solid var(--border-color);
}

.search-home__results li p,
.article-list li p {
    margin: 0;
    color: black;
}

.search-home__results li small,
.article-list li small {
    color: var(--violet);
}

.article-list li {
    line-height: var(--bs-body-line-height);
}

.article-list li .badge {
    text-decoration: inherit;
}

.chat-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--bg-primary);
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    color: var(--violet);
    cursor: pointer;
    flex-direction: column;
    transition: .2s;
    height: auto;
}

.chat-cta__form {
    display: none;
    padding: 0 1rem 1rem 1rem;
}

.chat-cta__title {
    padding: 1rem 3rem;
}

.chat-cta.active,
.chat-cta.active:hover {
    background-color: white;
}

.chat-cta.active .chat-cta__form {
    display: block;
}

.chat-cta:hover {
    background-color: var(--bg-secondary);
}

.highlight {
    background-color: var(--bs-highlight-bg);
}


@media screen and (max-width: 991px) {

    article {
        padding: 2rem;
        margin: 0;
    }

    .article-container {
        grid-template-columns: initial;
        gap: initial;
    }

    .sidebar.hidden {
        display: none;
    }

    .chat-cta.active {
        right: 1rem;
        width: calc(100% - 2rem);
    }

    .chat-cta__title {
        padding: 1rem;
        display: flex;
    }

    .chat-cta__title>span {
        display: none;
    }

    .chat-cta.active .chat-cta__title>span {
        display: block;
        color: var(--color-text-primary);
    }

    .chat-cta.active .chat-cta__title {
        padding: 1rem 2rem 1rem 1rem;
    }

    .header-nav ul {
        flex-wrap: wrap;
    }
    
}

.note-editor .dropdown-toggle::after {
    display: none;
}