/* Mobile Menu Styles */
@media screen and (max-width: 1200px) {
  /* Toggle button display */
  #navigation .toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Enhanced burger button animation */
  #navigation .toggle .cs-box {
    position: relative;
    width: 24px;
    height: 24px;
  }
  
  #navigation .toggle .cs-box span {
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--blanc);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
                opacity 0.3s ease;
  }
  
  #navigation .toggle .cs-box span:nth-of-type(1) {
    top: 0;
  }
  
  #navigation .toggle .cs-box span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
  }
  
  #navigation .toggle .cs-box span:nth-of-type(3) {
    bottom: 0;
  }
  
  /* Animation for active state */
  #navigation .toggle.active .cs-box span:nth-of-type(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  #navigation .toggle.active .cs-box span:nth-of-type(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  
  #navigation .toggle.active .cs-box span:nth-of-type(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Hide navigation by default on mobile */
  .navigation-principale {
    display: none;
  }
  
  /* Show navigation when active */
  .navigation-principale.active {
    display: block;
    position: fixed;
    top: 90px; /* Height of the header */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--bleunuit);
    z-index: 100;
    overflow-y: auto;
    padding-bottom: 100px; /* Ensure space for the button */
    animation: fadeIn 0.3s ease-in-out;
  }
  
  /* Menu container */
  .navigation-principale.active .menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 30px 20px 80px;
  }
  
  /* Menu items */
  .navigation-principale.active .main-menu {
    width: 100%;
  }
  
  .navigation-principale.active .main-menu li {
    margin: 20px 0;
    width: 75%;
    text-align: left;
    padding-left: 20px;
  }
  
  .navigation-principale.active .main-menu li a {
    color: var(--blanc);
    font-size: 1.25rem;
    display: inline-block;
  }
  
  /* Register button */
  .btn-inscription {
    width: calc(100% - 40px);
    margin: 20px;
    text-align: left;
    padding-left: 20px;
  }
  
  /* Animation for menu appearance */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

/* Small screen specific styles (320px to 480px) */
@media screen and (max-width: 480px) {
  .navigation-principale.active .main-menu li {
    text-align: left;
    padding-left: 15px;
    margin: 15px 0;
  }
  
  .navigation-principale.active .main-menu li a {
    font-size: 1.1rem;
  }
  
  /* Ensure register button is fully visible */
  .btn-inscription {
    width: calc(100% - 30px);
    margin: 15px;
    text-align: left;
    padding: 10px 15px;
    font-size: 1rem;
  }
}
