/* Reset de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    direction: rtl;
}

/* Container principal */
.menu {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
}
.resp {
    display: none;
}
/* Titre principal */
.topUl .title span {
    display: block;
    padding: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Conteneur de menu */
.menuResp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.menuResp img.logo {
    height: 40px;
    max-height: 60px;
}

/* Liste principale */
.bottomUl {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.bottomUl > li {
    position: relative;
}

.bottomUl > li > a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.bottomUl > li > a:hover {
    color: #007BFF;
}

/* Sous-menus */
.bottomUl li ul {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    min-width: 180px;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 999;
}

.bottomUl li:hover ul {
    display: block;
}

.bottomUl li ul li {
    padding: 0;
}

.bottomUl li ul li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.bottomUl li ul li a:hover {
    background-color: #f5f5f5;
}

/* Logo dans la liste */
.liLogo img.logo {
    height: 40px;
    margin: 0 10px;
}

/* Email utilisateur */
.menuMail {
    font-size: 0.9rem;
    text-align: center;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .bottomUl.noresp {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .menuResp {
        flex-direction: row;
        justify-content: space-between;
    }

    .menuResp .subMenu {
        display: block;
        cursor: pointer;
    }

    .menuResp.activeMenu .bottomUl.noresp {
        display: flex;
    }
}

/* Menu hamburger (image déclencheur) */
.subMenu {
    cursor: pointer;
    padding: 0.5rem;
}

/* Login Box */
.lbLogin {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.lbCheck,
.lbCheck + div {
    display: none;
}
.lbCheck:checked + .lbLogin {
    display: flex;
}

.lbLogin > label {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.lbLogin h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.lbLogin form input[type="text"],
.lbLogin form input[type="password"],
.lbLogin form input[type="submit"] {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.lbLogin a {
    font-size: 0.9rem;
    text-align: center;
    display: block;
    color: #007BFF;
}
