* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.menu {
  background-color: #222;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.menu .logo {
  font-size: 50px;
  font-weight: bold;
}

.menu-toggle {
  font-size: 50px;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -900px;
  width: 900px;
  height: 100%;
  background-color: #111;
  padding-top: 100px;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 50px;
  transition: background 0.3s;
}

.sidebar a:hover {
  background-color: #FFEE00;
  color:#000;
}

.menu.active + .sidebar {
  left: 0;
}

/* Pour le contenu principal */
.content {
  margin-top: 80px;
  padding: 20px;
  text-align: center;
}



#menu-demo2, #menu-demo2 ul{
padding:0;
margin:0;
list-style:none;
text-align:center;
}
#menu-demo2 li{
display:inline-block;
position:relative;
border-radius:8px 8px 0 0;
}
#menu-demo2 ul li{
border-radius:0;
}
#menu-demo2 ul li:hover{
border-radius:0;
}
#menu-demo2 ul li:last-child{
border-radius:0 0 8px 8px;
}
#menu-demo2 ul{
position:absolute;
z-index: 1000;
max-height:0;
left: 0;
right: 0;
overflow:hidden;
-moz-transition: .8s all .3s;
-webkit-transition: .8s all .3s;
transition: .8s all .3s;
}
#menu-demo2 li:hover ul{
max-height:15em;
}
/* background des liens menus */
#menu-demo2 li:first-child{
background-color: #131c3b;
}
#menu-demo2 li:nth-child(2){
background-color: #131c3b;
}
#menu-demo2 li:nth-child(3){
background-color: #01f3ff;
background-image: -webkit-linear-gradient(top, #01f3ff 0%, #333A40 100%);
background-image:linear-gradient(to bottom, #01f3ff 0%, #333A40 100%);
}
#menu-demo2 li:nth-child(4){
background-color: #ffff01;
background-image: -webkit-linear-gradient(top, #ffff01 0%, #333A40 100%);
background-image:linear-gradient(to bottom, #ffff01 0%, #333A40 100%);
}
#menu-demo2 li:nth-child(5){
background-color: #f80300;
background-image:-webkit-linear-gradient(top, #f80300 0%, #9F391A 100%);
background-image:linear-gradient(to bottom, #f80300 0%, #9F391A 100%);
}
#menu-demo2 li:nth-child(6){
background-color: #f80300;
background-image:-webkit-linear-gradient(top, #f80300 0%, #9F391A 100%);
background-image:linear-gradient(to bottom, #f80300 0%, #9F391A 100%);
}
#menu-demo2 li:nth-child(7){
background-color: #f80300;
background-image:-webkit-linear-gradient(top, #f80300 0%, #9F391A 100%);
background-image:linear-gradient(to bottom, #f80300 0%, #9F391A 100%);
}
#menu-demo2 li:last-child{
background-color: #00ed00;
background-image:-webkit-linear-gradient(top, #00ed00 0%, #677F35 100%);
background-image:linear-gradient(to bottom, #00ed00 0%, #677F35 100%);
}
/* background des liens sous menus */
#menu-demo2 li:first-child li{
background:#131c3b;
}
#menu-demo2 li:nth-child(2) li{
background:#01f3ff;
}
#menu-demo2 li:nth-child(3) li{
background:#131c3b;
}
#menu-demo2 li:nth-child(4) li{
background:#131c3b;
}
#menu-demo2 li:nth-child(5) li{
background:#131c3b;
}
#menu-demo2 li:last-child li{
background:#131c3b;
}
/* background des liens menus et sous menus au survol */
#menu-demo2 li:first-child:hover, #menu-demo2 li:first-child li:hover{
background:#131c3b;
}
#menu-demo2 li:nth-child(2):hover, #menu-demo2 li:nth-child(2) li:hover{
background:#131c3b;
}
#menu-demo2 li:nth-child(2):hover, #menu-demo2 li:nth-child(3) li:hover{
background:#01f3ff;
}
#menu-demo2 li:nth-child(2):hover, #menu-demo2 li:nth-child(4) li:hover{
background:#729EBF;
}
#menu-demo2 li:nth-child(3):hover, #menu-demo2 li:nth-child(5) li:hover{
background:#F6AD1A;
}
#menu-demo2 li:last-child:hover, #menu-demo2 li:last-child li:hover{
background:#CFFF6A;
}
/* les a href */
#menu-demo2 a{
text-decoration:none;
display:block;
padding:8px 32px;
color:#fff;
font-family:arial;
}
#menu-demo2 ul a{
padding:8px 0;
}
#menu-demo2 li:hover li a{
color:#fff;
text-transform:inherit;
}
#menu-demo2 li:hover a, #menu-demo2 li li:hover a{
color:#000;
}

