body {
    overflow: initial !important;
}


.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6vh 8vw;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45)), url('../login-background.jpg');
    background-size: cover;
}

.login-card {
    width: 400px;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    padding: 70px 49px;
    backdrop-filter: blur(3px);
}

/* ci-dessous pour l'image */
.login-logo img {
    width: 288px;
}

.login-logo {
/* ci-dessous pour le texte */
    color: #00a0df;
    font-size: 50px;
    font-weight: bold;
}

.login-logo2 {
/* ci-dessous pour le texte */
    color: #00a0df;
    font-size: 20px;
    font-weight: bold;
}

.login-title {
    color: #0096d6;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
    margin: 4px 0 18px;
}
.input-group-text {
    background: #eef3f6;
    border-color: #d7dee5;
    color: #6c737a;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-control {
    border-color: #d7dee5;
    min-height: 46px;
}
.form-control:focus {
    border-color: #00a0df;
    box-shadow: 0 0 0 0.2rem rgba(0, 160, 223, 0.25);
}
.btn-login {
    background: #00a0df;
    color: #fff;
    border: none;
    width: 100%;
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
}
.btn-login:hover {
    background: #008dc2;
    color: #fff;
}
.login-footer a {
    color: #008dc2;
    font-weight: 500;
}
.login-footer a:hover {
    text-decoration: none;
}
@media (max-width: 992px) {
    .login-page {
        justify-content: center;
        padding: 5vh 5vw;
    }
    .login-card {
        max-width: 520px;
    }
}
label:has(+ input:required):after {
    content: ' *';
    color: red;
}

#label-username:before {
    display: inline-block;
    content: "";
    background-image: url('data:image/svg+xml,<svg class="bi bi-person" width="1em" height="1em" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M13 14s1 0 1-1-1-4-6-4-6 3-6 4 1 1 1 1h10zm-9.995-.944v-.002.002zM3.022 13h9.956a.274.274 0 00.014-.002l.008-.002c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664a1.05 1.05 0 00.022.004zm9.974.056v-.002.002zM8 7a2 2 0 100-4 2 2 0 000 4zm3-2a3 3 0 11-6 0 3 3 0 016 0z" clip-rule="evenodd"/></svg>');
    background-repeat: no-repeat;
    -webkit-background-size: 1.5rem 1.5rem;
    background-size: 1.5rem 1.5rem;
    background-position: 0 0.4rem;
    width: 1.75rem;
    height: 1.75rem;
}

#label-password:before {
    display: inline-block;
    content: "";
    background-image: url('data:image/svg+xml,<svg class="bi bi-lock" width="1em" height="1em" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M11.5 8h-7a1 1 0 00-1 1v5a1 1 0 001 1h7a1 1 0 001-1V9a1 1 0 00-1-1zm-7-1a2 2 0 00-2 2v5a2 2 0 002 2h7a2 2 0 002-2V9a2 2 0 00-2-2h-7zm0-3a3.5 3.5 0 117 0v3h-1V4a2.5 2.5 0 00-5 0v3h-1V4z" clip-rule="evenodd"/></svg>');
    background-repeat: no-repeat;
    -webkit-background-size: 1.5rem 1.5rem;
    background-size: 1.5rem 1.5rem;
    background-position: 0 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
}

.under-title {
    font-size: 12px;
    color:black;
    text-align: right;
    padding-right: 30px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#sidebar,
#sidebar.active {
    display: flex;
    align-items: center;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 12px 28px;
    min-height: 68px;
    background: #0f172a;
    color: #e2e8f0;
    border-bottom: 1px solid #1f2937;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
}

#sidebar > div,
#sidebar > ul {
    position: static;
}

#sidebar > ul li section:hover .sous {
    display: block;
}

#sidebar > ul {
    width: 100%;
    top: auto;
    padding: 0;
    margin: 0;
}

#sidebar .sidebar-header {
    padding: 0;
    margin: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background-color: #00a0df;
    border-radius: 10px;
    height: 40px;
}

#sidebar .sidebar-header span {
    color:white;
    font-weight: bold;
    font-size: 20px;
}

#sidebar .sidebar-header a {
    display: inline-flex;
    align-items: center;
}

#sidebar .logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 12px;
}

#sidebar .logo-box img {
    height: 34px;
    width: auto;
    display: block;
}

#sidebar .sidebar-header img {
    height: 48px;
    width: auto;
}

#sidebar .sidebar-header h3 {
    margin: 0;
    line-height: 1;
    display: block;
}

#sidebar .sidebar-header p {
    display: none;
}

#sidebar .top-menu {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

#sidebar .top-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#sidebar .top-menu__links {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    border-radius: 12px;
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#sidebar .top-menu > .top-menu__links:first-of-type {
    margin-left: auto;
}

#sidebar .top-menu > .top-menu__links:nth-of-type(2) {
    margin-right: auto;
}

#sidebar .top-menu__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#sidebar .top-menu__links a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    background: none;
    text-decoration: none;
    border-radius: 10px;
    position: relative;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#sidebar .top-menu__links a::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
}

#sidebar .top-menu__links a:hover {
    color: #f8fafc;
    background: #1f2937;
}

#sidebar .top-menu__links a.active {
    color: #ffffff;
    background: #10b981;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sous{
    position: absolute;
    top: 52px;
    margin-left: 80px;
    background: #111827;
    border-radius: 12px;
    padding: 8px 10px;
}

#sidebar ul li.active {
    background-color: #0f172a;
}

#sidebar ul li.active a {
    font-weight: bold;
    color: #ffff00;
    background-color: #10b981;
}

#sidebar .top-menu__links a.active::after {
    background: rgba(255, 255, 255, 0.7);
}

#sidebar .top-menu__actions .profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #f59e0b;
    color: #0f172a;
    border-radius: 10px;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#sidebar .top-menu__actions .profile-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(217, 119, 6, 0.4);
}

#sidebar .top-menu__actions .logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    min-width: 42px;
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: transparent;
    color: #e2e8f0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#sidebar .top-menu__actions .logout-btn:hover {
    color: #ffffff;
    border-color: #475569;
    background: #1f2937;
}

@media (max-width: 900px) {
    #sidebar {
        position: relative;
    }

    #sidebar .top-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    #sidebar .top-menu__links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 12px;
        padding: 6px;
        background: #111827;
        border: 1px solid #1f2937;
        box-shadow: none;
    }

    #sidebar .top-menu > .top-menu__links:first-of-type,
    #sidebar .top-menu > .top-menu__links:nth-of-type(2) {
        margin-left: 0;
        margin-right: 0;
    }

    #sidebar .top-menu__actions {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
}
