diff --git a/css/styleMenu.css b/css/styleMenu.css index 136c7ce02f8544c055bc445dfdeeee5e51b21eed..da87023a125b24188c839331968717b04894aaa2 100644 --- a/css/styleMenu.css +++ b/css/styleMenu.css @@ -145,24 +145,22 @@ body { } @media (max-width: 991px) { - /* Lorsque la sidebar est fermée, on conserve une largeur par défaut (ici 250px) */ #sidebar { - width: 250px; - height: 100%; + width: 250px !important; + height: 100% !important; transition: width 0.3s ease; } - /* Quand la sidebar est ouverte (classe "show" ajoutée par Bootstrap), elle occupe toute la fenêtre */ #sidebar.show { - width: 100vw; - height: 100vh; - position: fixed; - top: 0; - left: 0; - padding-top: 50px; /* Laisser de l'espace sous le bouton hamburger si nécessaire */ - z-index: 1050; + width: 100vw !important; + height: 100vh !important; + position: fixed !important; + top: 0 !important; + left: 0 !important; + padding-top: 50px !important; + z-index: 1050 !important; } - /* Optionnel : masquer le contenu principal quand la sidebar est affichée */ .main-content { - display: none; + display: none !important; } } +