/* #### MOBILE #### */
@media screen and (max-width: 1024px) {
  body {
    line-height: normal;
    background-color: #3d3f4e;
  }

  #wrapper h2 {
    font-size: 2.5em;
  }

  #wrapper h3 {
    font-size: 2.2em;
  }

  #wrapper p {
    line-height: normal;
    font-size: 1.8em;
  }

  #wrapper #sidecol {
    width: 100%;
    float: none;
  }

  #wrapper .sidecol_block {
    display: flex;
    flex-direction: column;
  }

  #wrapper .sidecol_block h3,
  #wrapper .sidecol_block_menu h3 {
    font-size: 1.5em;
  }

  #wrapper .module_content > ul.menu {
    display: flex;
    flex-wrap: wrap;
  }

  #wrapper .module_content > ul.menu li {
    padding: 0 30px 10px 0;
    font-size: 1.4em;
    background: none;
  }

  #wrapper .menu_mois > ul.menu li {
    width: 15%;
  }

  #wrapper #content80 {
    margin: 0;
    padding: 0;
    width: 100%;
    float: none;
    background-color: transparent;
    background-image: url(../img/content_bg.png);
  }

  .table th,
  .table td {
    font-size: 1.4em;
  }

  input,
  button.btn {
    font-size: 1.5em;
    width: auto;
  }

  #body_bg {
    height: 100vh;
    background-size: cover;
  }

  .main-module {
    display: flex;
    gap: 0px;
    flex-direction: column;
  }

  .content {
    padding-left: 18px;
  }

  .menu-desktop {
    display: none !important;
  }

  .menu-mobile {
    display: block !important;
    height: 40px;
    font-size: 20px;
    width: 230px;
  }
}

.menu-mobile {
  display: none;
}

.burger-button,
.burger-panel,
.burger-backdrop {
  display: none;
}

[hidden] {
  display: none !important;
}

@media screen and (max-width: 1024px) {
  #wrapper #sidecol {
    display: none !important;
  }

  .auth-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
  }

  .burger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;

    border: 1px solid #bfbfbf;
    border-radius: 8px;

    background: linear-gradient(#f6f6f6, #dcdcdc);

    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 2px 4px rgba(0, 0, 0, 0.15);

    cursor: pointer;
    flex-direction: column;
    margin-right: auto;
    line-height: 1;
  }

  .burger-button .bar {
    display: block;
    width: 22px;
    height: 3px;
    margin: 3px 0;
    background: #3a3a3a;
    border-radius: 2px;
  }

  .burger-panel {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 85vw;
    max-width: 420px;
    height: 100%;
    max-height: 100vh;
    background: #fff;
    z-index: 999999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
    padding: 16px;
  }

  /* Fix pour mobiles : éviter que le menu soit rogné en paysage */
  @supports (height: 100dvh) {
    .burger-panel {
      height: 100dvh;
      max-height: 100dvh;
    }
  }

  .burger-panel.open {
    transform: translateX(0);
  }

  .burger-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
  }

  .burger-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 10px;
  }

  .burger-title {
    font-size: 20px;
    font-weight: 600;
  }

  .burger-close {
    background: transparent;
    border: 0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
  }

  .burger-content .module {
    margin-bottom: 16px;
  }

  .burger-content .module h3 {
    margin-top: 8px;
  }
}
