


body {
    background-color: #0e0e0e;
    margin: 0;
    padding: 0;
}

header {
    position: sticky;
    top: 0;
}
.navbar {
    position: sticky;
    top: 0;
    padding: 40px;
    display: flex;
    justify-content: center; 
    align-items: center;
    transition: background-color ease-in-out 0.4s;
    background-color: rgba(0, 0, 0, 0); 
    z-index: 1000;
   }

.navbar.scrolled {
    position: sticky;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    background-color: #000000;
}

.logo-link {
    position: absolute;
    left: 10px; 
}

.menu-toggle {
  display: none; 
}

.menu-button {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
}

.nav-menu {
    position: sticky;
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.logo {
    position: sticky;
    width: 100px;
    height: 100px;
}

.menu-button > img {
    width: 100px;
    height: 100px;
}

.navbar:hover{
    background-color: #000000;
}

.rubrique {
    position: relative;
    color: #00ffc6;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    overflow: hidden; 
    z-index: 0;
    transition: color 0.3s ease;
    color: #fff;
    text-align: center;
    animation: rubrique 1s ease-in-out infinite alternate;
    font-size: 20px;
}

.rubrique::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #00ffc6;
    border-radius: 10px;
    transition: width 0.3s ease;
    z-index: -1; 
}

.rubrique:hover::before {
    width: 100%;
}

.rubrique:hover {
    color: black;
    z-index: 2;
}

.titre-content{
    text-decoration: none;
    color: #fff;
}



@-webkit-keyframes rubrique {
    from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #00e686, 0 0 40px #00e660, 0 0 50px #00e660, 0 0 60px #00e632, 0 0 70px #00e60c;
  }

  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #4dd5ff, 0 0 40px #4dbeff, 0 0 50px #4d9aff, 0 0 60px #4d77ff, 0 0 70px #4d77ff, 0 0 80px #4d50ff;
  }

}



@media screen and (max-width : 768px) {
    .logo {
        display: none;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
        position: relative;
        gap: 50px;
    }   

    
    .menu-button {
    display: block; 
  }

  .menu-toggle:checked + .menu-button + .nav-menu  {
    display: flex;
  }
}





