/** header **
------------------------------------------------------------
------------------------------------------------------------*/
header {
    position: relative;
    z-index: 110;
    transition: .3s;
    background: var(--color-fond-bleu);
    height: 90px;
}
.custom-logo-link {
    display: inline-flex;
    cursor: pointer;
    width: auto;
    height: 90px;
    flex-grow: 1;
    text-align: center;
    max-width: calc(100% - 180px);
    justify-content: center;
    align-items: center;
}
header .custom-logo-link img {
    max-width: 100%;
    max-height: 66%;
    width: 100%;
}
footer .custom-logo-link,
aside .custom-logo-link {
    max-width: 100%;
}
footer .custom-logo-link img {
    max-width: 100%;
    max-height: 66%;
    width: 100%;
}
aside .custom-logo-link img {
    max-width: 100%;
    max-height: 66%;
    width: 100%;
}
.menu-avatar {
    margin: 15px;
    display: flex;
    width: 60px;
    height: 60px;
    border-radius: 200px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}
.menu-avatar img {
    object-fit: contain;
    max-width: 110%;
    max-height: 110%;
}
.current-avatar {
    margin: -10px 0 2px 0;
    display: inline;
    float: right;
}
.current-avatar img {
    max-width: 64px;
    max-height: 64px;
}
.menu-burger {
    display: flex;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    border: 1px solid var(--color-bleu-fonce);
    border-radius: 200px;
    margin: 15px;
    cursor: pointer;
}
.menu-light-mode {
    margin: 0;
    display: flex;
    align-items: center;
    top: 0 !important;
    justify-content: center;
    color: var(--color-dark);
    right: 10px !important;
    z-index: 100;
    cursor: pointer;
    font-size: 24px;
}
.text-light-mode {
    font-size: 9px;
    text-align: left;
    margin-left: 6px;
    line-height: 11px;
}
.menu-burger {
    color: var(--color-bleu-fonce);
    font-weight: 300;
}
body:not(:has(.visible-on-mobile)) .menu-burger .fa-xmark {
    display: none;
}
body:has(.visible-on-mobile) .menu-burger .fa-bars {
    display: none;
}
.custom-logo-intro {
    width: 100%;
    max-width: 500px;
    object-fit: contain;
}
.page-content .custom-logo-intro {
    width: 100%;
    max-width: 350px;
}
.panel-user {
    position: absolute;
    display: none;
    right: 20px;
    top: 20px;
    z-index: 1;
    -width: 170px;
    height: 90px;
    justify-content: end;
    background: #ecf6fccc;
    border-radius: 200px;
    align-items: center;
}
.show-header-notifications, .show-header-rechercher {
    display: flex;
    margin: 15px 0 15px 15px;
}
.show-header-notifications .icon-header-notif i,
.show-header-rechercher .icon-header-rechercher i {
    position: relative;
    display: flex;
    width: 60px;
    height: 60px;
    border-radius: 200px;
    font-size: 20px;
    font-weight: 400;
    color: var(--color-bleu-fonce);
    transition: .3s;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    background: var(--color-light);
}



/** Footer **
------------------------------------------------------------
------------------------------------------------------------*/
footer, .footer {
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--color-light);
    height: 100px;
    border-top: 1px solid #8C8CA1;
}
footer .col-3, .footer .col-3,
aside .col-3, .aside .col-3{
    position: relative;
    padding: 0!important;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}
footer img.custom-logo,
.footer-custom-logo img.custom-logo,
aside img.custom-logo,
.aside-custom-logo img.custom-logo{
    width: 120px !important;
    height: auto;
    margin: 15px 20px 15px 20px;
    min-height: 80px;
    object-fit: contain;
}
footer ul, aside ul {
    padding-left: 0!important;
}
.home footer {
    display: none!important;
}

.footer .icon-footer i, .aside .icon-aside i {
    position: relative;
    display: flex;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 200px;
    background: var(--color-fond-bleu);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-bleu-fonce);
    transition: .3s;
}
.footer .col-3:hover .icon-footer i, .footer .selected .icon-footer i,
.aside  .col-3:hover .icon-aside i,  .aside  .selected .icon-aside i {
    background: var(--color-bleu-clair);
}
.footer .text-footer, .aside .text-aside {
    color: var(--color-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 22px;
}
.footer .text-footer {
    font-size: 16px;
}
.badge-notif {
    position: absolute;
    color: var(--color-light);
    border-radius: 200px;
    background: var(--color-fuschia);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    width: 20px;
    height: 20px;
    text-align: center;
    z-index: 1;
    margin-left: 42px;
}
.badge-notif:empty  {
    display: none;
}

.footer .row-navbar, .aside .row-navbar {
    width: 100%;
    line-height: 18px;
    justify-content: center;
}
.footer .row-navbar .col-3,
.footer .row-navbar .col-3 *,
.aside .row-navbar .col-3,
.aside .row-navbar .col-3 *{
    transition: .3s;
}
.footer .row-navbar .col-3:hover,
.footer .row-navbar .col-3.selected,
.aside .row-navbar .col-3:hover,
.aside .row-navbar .col-3.selected {
    color: var(--color-bleu-fonce) !important;
}
.footer .row-navbar .col-3.selected,
.aside .row-navbar .col-3.selected{
    border-radius: 5px;
    color: var(--color-bleu-fonce) !important;
}
.aside {
    position: fixed;
    background: var(--color-light);
    display: none;
    top: 0;
    width: 250px!important;
    height: 100vh !important;
    bottom: auto!important;
    border: 0!important;
    transition: .3s;
    overflow: auto;
}
.aside .row-navbar {
    display: flex;
    flex-direction: column;
    padding: 1rem !important;
}
.aside .row-navbar .col-3 {
    flex-direction: row;
    width: calc(100% - 0rem);
}
.aside .row-navbar .col-3 .text-aside {
    width: 100%;
    padding: 14px 0;
    border-radius: 0 200px 200px 0;
    padding-left: 45px;
    margin-left: -30px;
    text-align: left;
}
.aside  .row-navbar .col-3.selected .text-aside,
.aside  .row-navbar .col-3:hover .text-aside{
    background: var(--color-fond-bleu);
}



/** Application version bureau **
------------------------------------------------------------
------------------------------------------------------------*/
@media (min-width: 769px) {
    #contenu_page.principal.not-connected {
        max-width: 450px;
        left: calc( 50% - 225px );
    }
    #contenu_page.principal {
        top: 0;
        bottom: 0;
    }
    #contenu_page.principal, header, .header {
        left: 250px;
        width: calc(100% - 250px);
    }
    .header {
        display: none;
    }
    .panel-user {
        display: flex!important;
    }
    .footer {
        display: none;
    }
    .aside {
        display: block;
    }

}

/** Aperçu application version mobile sur bureau **
------------------------------------------------------------
------------------------------------------------------------*/
@media (max-width: 768px) {
    #contenu_page.principal, header, footer {
        max-width: 450px;
        left: calc( 50% - 225px );
    }
    footer .container {
        max-width: 450px;
    }
    .home_site {
        max-width: 450px;
        left: calc( 50% - 225px );
        right: calc( 50% - 225px );
    }
    .popup-install {
        max-width: 450px;
        left: calc( 50% - 225px );
        right: calc( 50% - 225px );
        margin: 0 3%;
        padding: 3%;
    }
    .footer .custom-logo-link {
        display: none;
    }
    .aside {
        width: 100% !important;
        margin-left: -100%;
        z-index: 101;
        display: block;
        overflow: auto;
    }
    .aside.visible-on-mobile {
        margin-left: 0;
    }
    .aside .custom-logo-link {
        visibility: hidden;
        opacity: 0;
        height: 60px;
    }
    .aside .text-aside {
        font-size: 17px;
        line-height: 32px;
    }
}
@media (max-width: 576px) {
    #contenu_page.principal, header, footer {
        max-width: 100%;
        left: 0;
    }
    footer .container {
        max-width: 100%;
    }
    .home_site {
        max-width: 100%;
        left: 0;
        right: 0;
    }
    .popup-install {
        max-width: 100%;
        left: 0;
        right: 0;
    }
}
