/* Menu mobile avec meilleures performances */
.mobile-header {
    display: none;
    /* Caché par défaut */
    /* Important: retirer toute largeur par défaut */
    width: auto;
    height: auto;
    position: static;
}

@media screen and (max-width: 768px) {
    .mobile-header {
        display: block;
        width: auto;
        position: static;
        background-color: transparent;
    }

    #header table {
        display: none;
        /* Cacher le menu desktop */
    }
}
  /* Ajout pour la zone tactile élargie */
  #burger-touch-zone {
      position: fixed;
      top: 0;
      left: 0;
      width: 60px;
      height: 60px;
      z-index: 9998;
      background: transparent;
      cursor: pointer;
  }

  .burger-button {
      position: fixed;
      top: 15px;
      left: 15px;
      z-index: 9999;
      background-color: rgba(0, 0, 0, 0.8);
      color: white;
      border: none;
      border-radius: 5px;
      padding: 10px 15px;
      cursor: pointer;
      font-weight: bold;
      /* Forcer la taille naturelle du bouton */
      width: auto;
      display: inline-block;
      min-width: 0;
      max-width: none;
      /* Augmenter la sensibilité tactile sans changer l'apparence */
      -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
      touch-action: manipulation;
  }

  /* Supprimer le pseudo-élément qui pourrait interférer */
  .burger-button::before {
      content: none;
  }
/* Correction améliorée pour le menu mobile */

/* Cacher complètement le header desktop en mode mobile */
@media screen and (max-width: 768px) {
    /* Afficher le menu mobile */
    .mobile-header {
        display: block;
    }

    /* Cacher complètement le header et pas seulement la table */
    #header,
    header {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        box-shadow: none !important;
    }

    /* S'assurer que la table est bien cachée */
    #header table {
        display: none;
    }

    /* Supprimer d'autres éléments potentiellement visibles */
    #header:before,
    #header:after,
    header:before,
    header:after {
        display: none !important;
    }
}

/* Confirmation que le menu mobile est bien remonté hors écran */
.mobile-menu {
    transform: translateY(-100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    will-change: transform;
    overflow: hidden;
    /* Modifier pour empêcher tout débordement */
    pointer-events: none;

    /* Supprimer TOUS les contours possibles */
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding-top: 70px;
    padding-bottom: 20px;
}
/* S'assurer que le menu ouvert arrive bien à sa position finale */
.mobile-menu.open {
    transform: translateY(0);
    pointer-events: auto;
}

/* Supprimer explicitement les contours pour tous les éléments enfants */
.mobile-menu,
.mobile-menu * {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Supprimer les pseudo-éléments qui pourraient créer des contours */
.mobile-menu:before,
.mobile-menu:after,
.mobile-menu *:before,
.mobile-menu *:after {
    display: none !important;
}

/* Ajuster la position du contenu pour éviter tout débordement */
.mobile-menu button:first-child {
    margin-top: 20px;
    /* Espace en haut du premier bouton */
}

.mobile-menu button {
    width: 80%;
    padding: 10px;
    margin: 5px 0;
    background-color: rgba(40, 40, 40, 0.8);
    color: white;
    border: none;
    outline: none;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: none;
}

.mobile-menu button:hover {
    background-color: rgba(60, 60, 60, 0.8);
}