.ws_menu a, .ws_menu a:active, .ws_menu a:hover {
    text-decoration: none;
    color: white;
}

.ws_menu {
    width: calc(100% - 200px);
    height: 70px;
    text-align: center;
    color: white;
    display: flex;
    gap: 2px;
    font-size: 13px !important;
    z-index: 20;
    margin-left: 30px;
}

.ws_reduit {
    display: none;
}

.ws_reduit img {
    width: 50px;
    filter: invert(1);
    margin-left: 80px;
}

.ws_menu .ws_menu_n1 {
    display: flex;
    align-items: stretch;
    padding: 0;
    width: max-content;
    min-width: 60px;
    border-radius: 7px 7px 0 0;
    white-space: nowrap;
    height: 100%;
    position: relative;
    z-index: 10;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.ws_menu .ws_menu_n1:hover {
    transform: translateY(-2px);
}

.ws_menu .ws_menu_n1:hover .ws_menu_n2 {
    display: block !important;
}

.ws_menu .ws_menu_n1 > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

.ws_menu .ws_menu_n1 span {
    font-size: 20px;
    position: absolute;
    margin-top: -5px;
    margin-left: 2px;
}

.ws_menu .ws_menu_n2 {
    display: flex;
    justify-content: flex-start;
    position: absolute;
    width: 200%;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    min-width: 100%;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(135deg, #1f2937, #111827);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.ws_menu .ws_menu_n2 p {
    color: white;
    padding: 0;
    margin: 0;
    font-size: 13px !important;
    font-family: "Grold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ws_menu .ws_menu_n2 p a {
    display: block;
    padding: 12px 20px;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ws_menu .ws_menu_n2 p:last-child a {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.ws_menu .ws_menu_n2 p a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 24px;
}

/* Couleurs au hover uniquement */
.ws_menu .rouge:hover {
    background-color: #dc2626;
}

.ws_menu .rouge .ws_menu_n2 p a:hover {
    background-color: rgba(220, 38, 38, 0.8);
}

.ws_menu .vert:hover {
    background-color: #16a34a;
}

.ws_menu .vert .ws_menu_n2 p a:hover {
    background-color: rgba(22, 163, 74, 0.8);
}

.ws_menu .jaune:hover {
    background-color: rgb(255, 214, 0);
}

.ws_menu .jaune .ws_menu_n2 p a:hover {
    background-color: rgba(255, 214, 0, 0.8);
}

/* Focus pour accessibilité */
.ws_menu a:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

@media (min-width: 960px) {
    .ws_reduit {
        display: none !important;
    }
}

@media (max-width: 960px) {
    .ws_reduit {
        display: block !important;
        background-color: rgba(0, 0, 0, 0.9) !important;
        border-radius: 8px 0 0 8px;
        padding: 10px;
    }

    .ws_menu {
        display: block !important;
        position: fixed;
        right: 0 !important;
        top: 0;
        left: initial !important;
        width: 150px !important;
        height: auto;
        margin-left: 0;
        z-index: 1000;
    }

    .ws_menu .ws_menu_n1 {
        display: none;
        width: 150px !important;
        min-width: 150px;
        background-color: rgba(0, 0, 0, 0.95);
        border-radius: 0 !important;
        text-align: right !important;
        height: auto;
        padding: 0;
    }

    .ws_menu .ws_menu_n1 > a {
        padding: 16px 20px;
    }

    .ws_menu .ws_menu_n1:hover {
        transform: none;
    }

    .ws_menu .ws_menu_n2 {
        position: absolute;
        left: initial !important;
        right: 100% !important;
        top: 0 !important;
        min-width: 180px;
        width: max-content;
        border-radius: 10px 0 0 10px !important;
        margin-right: 2px;
    }

    .ws_menu .ws_menu_n2 p a {
        text-align: right;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws_menu .ws_menu_n1,
    .ws_menu .ws_menu_n2 p a {
        transition: none;
    }
}