/* ----------------------------------------------*/
/* DF - Gestion du menu principal - sliding down */
/* ----------------------------------------------*/

  header {
    position: relative;
    z-index: 100;
  }
  .hamburger {
    position: fixed;
    top: 0px;
    right: 40px;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 951;
    /*background: rgba(255,255,255,0.7);*/
    /*border-radius: 50%;*/
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.04);*/
    transition: background 0.2s;
  }
  .hamburger:hover {
    background: #fff;
  }
  .bar {
    display: block;
    width: 32px;
    height: 2px;
    margin: 4px 0;
    background: #232a36;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s cubic-bezier(.4,2,.6,1);
  }
  
  /* Menu principal caché par défaut */
  .main-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transform: translateY(-100%);
      transition: transform 0.5s ease, opacity 0.3s;
    z-index: 250;
    padding: 10px 0 16px 0;
    opacity: 0;
    pointer-events: none;
  }
  .main-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 48px;
  }
  .main-menu li a {
    text-decoration: none;
    color: #232a36;
    font-size: 1.2rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
  }
  .main-menu li a:hover {
    background: #f0f0f0;
  }

