﻿* {
    padding: 0;
    margin: 0;
}

.header {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 10px;
    position: fixed;
    z-index: 50;
    flex-wrap: wrap;
    align-items: center;
    justify-content: end;
}

    .header .logo {
        margin-right: auto;
    }
/*navbar css*/
.navContainer {
    height: 100px;
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: end;
    padding: 5px;
}

nav {
    height: 100px;
    background-color: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

    nav a {
        height: 100%;
        padding: 0 5px;
        display: flex;
        align-items: center;
    }

    nav ul {
        display: block;
        list-style-type: none;
    }

        nav ul li {
            display: block;
            margin-right: 20px;
        }

.links-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 20px
}

#sidebar-active {
    display: none;
}

/* Burger hidden by default (desktop) */
.open-sidebar-button, .close-sidebar-button {
    display: none;
}

#sidebar-active:checked ~ .links-container {
    display: flex;
}

.menu-bar ul {
    display: inline-flex;
    list-style: none;
    color: black;
    flex-wrap: wrap;
    z-index: 4;
    margin: 1px;
    padding: 15px;
    text-align: center;
}

.menu-bar li {
    margin: 1px;
    padding: 5px;
    text-align: center;
}

.menu-bar ul li a {
    text-decoration: none;
    color: black;
}

.menu-bar .active,
.menu-bar li:hover,
.menu-bar a:hover {
    /* background: #2bab0d;*/
    color: gray;
    border-radius: 3px;
    text-decoration: none;
}

.menu-bar .sub-menu-1 {
    display: block;
    position: absolute;
    background: transparent;
    margin-top: 5px;
    margin-left: -15px;
    /*border: solid;*/
}

.menu-bar ul li:hover .sub-menu-1 ul {
    display: block;
    margin: 5px;
}

    .menu-bar ul li:hover .sub-menu-1 ul li {
        width: 140px;
        padding: 5px;
        border-bottom: 1px dotted #fff;
        background: transparent;
        border-radius: 0;
        text-align: left;
    }

        .menu-bar ul li:hover .sub-menu-1 ul li:last-child {
            border-bottom: none;
        }

        .menu-bar ul li:hover .sub-menu-1 ul li a:hover {
            color: #b2ff00;
        }

.sub-menu-1 {
    display: none;
    z-index: 1;
}

    .sub-menu-1 ul {
        background: rgba(255, 255, 0, 0.5);
        backdrop-filter: blur(5px);
    }

.navInline {
    display: inline-flex;
    align-items: center;
    text-align: right;
    width: 100%;
}

.LoginLogout {
    padding-bottom: 1em;
    float: right;
}

.menu {
    /*display: inline-flex;*/
    width: 100%;
    align-items: end;
    text-align: end;
    justify-content: end;
}

.media-Scroller {
    width: 40vw;
    height: 80vh;
}

.mainContainer {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    gap: 10px;
    overflow: hidden;
}

.ContainerGrid {
    display: grid;
    align-items: start;
    align-content: start;
    grid-gap: 0px;
    overflow: hidden;
    /*    position:fixed;
    background-color: green;*/
}

.ContainerGridMenu {
    display: grid;
    align-items: start;
    align-content: start;
    grid-gap: 0px;
    overflow: hidden;
    align-items: stretch;
    /*background-color: blue;*/
}

.menu-bar {
    background: transparent;
    text-align: start;
}

.login {
    text-align: start;
    padding-left: 65px;
    z-index: 10;
}

    .login .badge {
        color: black;
    }

/* ----------- MOBILE & TABLET ----------- */
@media (max-width: 1300px) {
    .bodyContainer {
        padding-top: 0px;
    }

    .logo {
        display: none;
    }

    /* Burger en haut à gauche */
    .open-sidebar-button, .close-sidebar-button {
        padding: 20px;
        display: block;
        z-index: 100;
        position: fixed;
        top: 10px;
        left: 10px;
        right: auto;
        background: transparent;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }

    /* Menu sous le burger, effet vitre */
    .links-container {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        /* width: 90vw; */ /* Supprimé */
        /* max-width: 400px; */ /* Supprimé */
        width: auto; /* Ajouté */
        min-width: 180px; /* Ajouté, ajuste selon ton besoin */
        position: fixed;
        top: 60px;
        left: 10px;
        background-color: rgba(255,255,255,0.25);
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        border-radius: 8px;
        transition: all 0.3s;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.3);
        padding: 8px 18px; /* Ajouté pour l'espace autour du menu */
        box-sizing: border-box;
    }
    #sidebar-active:checked ~ .links-container {
        display: flex;
    }

    .menu-bar {
        width: 100%; /* Ajouté */
        box-sizing: border-box; /* Ajouté */
        background-color: transparent;
        backdrop-filter: blur(0.1rem);
        height: auto;
        padding: 0; /* Ajouté */
        margin: 0; /* Ajouté */
    }

        .menu-bar ul {
            width: 100%; /* Ajouté */
            box-sizing: border-box; /* Ajouté */
            flex-direction: column;
            overflow-y: visible;
            transition: 0.4s ease-out;
            flex-wrap: nowrap;
            z-index: 15;
            position: relative;
            top: 0;
            left: 0;
            padding: 5px 0; /* Ajusté : padding latéral supprimé */
            background-color: transparent;
            border: solid;
            border-color: transparent;
            margin: 0; /* Ajouté */
        }

            .menu-bar ul li a {
                text-decoration: none;
            }

    #sidebar-active:checked ~ .links-container .menu-bar ul {
        backdrop-filter: blur(0.2rem);
        box-shadow: 5px 10px 15px 5px rgba(0, 0, 0, 0.3);
        background-color: rgba(211, 211, 211, 0.5);
        transition: all 0.3s ease;
    }

    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 0;
    }

    .header {
        padding: 10px;
    }

    .bodyContainer {
        width: 100%;
        padding-top: 0px;
    }

    .sub-menu-1 {
        width: 130px;
        height: 50px;
    }

        .sub-menu-1 ul {
            background: rgba(255, 255, 0, 0.5);
            backdrop-filter: blur(5px);
        }

    @media (min-width: 700px) {
        .bodyContainer {
            padding-top: 0px;
        }
    }

    @media (max-height: 500px) and (orientation: landscape) {
        .bodyContainer {
            padding-top: 0px;
        }

        .logo {
            display: none;
        }

        .links-container {
            display: none;
            flex-direction: column;
            align-items: flex-start;
            width: 90vw;
            max-width: 400px;
            position: fixed;
            top: 60px;
            left: 10px;
            background-color: rgba(255,255,255,0.25);
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            border-radius: 8px;
            transition: all 0.3s;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.3);
            padding: 0; /* Ajouté */
            box-sizing: border-box; /* Ajouté */
        }

        #sidebar-active:checked ~ .links-container {
            display: flex;
        }

        .open-sidebar-button, .close-sidebar-button {
            padding: 5px;
            display: block;
            z-index: 100;
            position: fixed;
            top: 10px;
            left: 10px;
            right: auto;
            background: transparent;
            border: none;
            font-size: 2rem;
            cursor: pointer;
        }

        .menu-bar {
            width: 100%; /* Ajouté */
            box-sizing: border-box; /* Ajouté */
            background-color: transparent;
            backdrop-filter: blur(10px);
            padding: 0; /* Ajouté */
            margin: 0; /* Ajouté */
        }

            .menu-bar ul {
                width: 100%; /* Ajouté */
                box-sizing: border-box; /* Ajouté */
                flex-direction: column;
                overflow-y: visible;
                transition: 0.4s ease-out;
                flex-wrap: nowrap;
                z-index: 15;
                position: relative;
                top: 0;
                left: 0;
                padding: 5px 0; /* Ajusté : padding latéral supprimé */
                background-color: transparent;
                border-color: transparent;
                margin: 0; /* Ajouté */
            }

        #sidebar-active:checked ~ .links-container .menu-bar ul {
            backdrop-filter: blur(0.2rem);
            box-shadow: 5px 10px 15px 5px rgba(0, 0, 0, 0.3);
            background-color: rgba(211, 211, 211, 0.5);
            transition: all 0.3s ease;
        }

        #sidebar-active:checked ~ #overlay {
            height: 100%;
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 0;
        }


    }
}
