/* Assurer que html et body occupent 100% de la hauteur et ne génèrent pas de marges inattendues */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* On fait du body un conteneur flex en colonne */
  body {
    display: flex;
    flex-direction: column;
  }
  
  /* Le conteneur principal s'étend pour occuper tout l'espace disponible */
  #appContainer {
    flex: 1;
    display: flex;
    flex-direction: column; /* Par défaut en mobile portrait */
  }
  
  /* Layout pour mobile portrait : onglets en haut, 3D en dessous */
  .tabs {
    width: 100%;
  }
  .threeD-panel {
    width: 100%;
    flex: 1;
  }
  
  /* Styles des onglets (communs) */
  .tabs-header {
    display: flex;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ccc;
  }
  .tabs-header .tab {
    flex: 1;
    padding: 15px !important;
    text-align: center;
    background-color: #f1f1f1 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-bottom: none !important;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .tabs-header .tab:hover {
    background-color: #e2e2e2 !important;
  }
  .tabs-header .tab.active {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
    border-bottom: 2px solid #007bff !important;
    box-shadow: none !important;
  }
  .tabs-content {
    flex: 1;
    overflow: auto;
    padding: 15px;
    background-color: #fff;
  }
  .tab-panel {
    display: none;
    height: 100%;
  }
  .tab-panel.active {
    display: flex;
    flex-direction: column;
  }
  .map-panel {
    flex: 1;
    min-height: 300px;
  }
  .radio-option {
    display: flex;
    align-items: center;  /* vertically centers the items */
    flex-wrap: nowrap;    /* prevents wrapping */
    gap:10px;
  }
  
  /* Layout Desktop : côte à côte, 50% chacun */
  @media screen and (min-width: 768px) {
    /* On fait de #appContainer un flex en row pour disposer côte à côte */
    #appContainer {
      flex-direction: row;
    }
    .tabs, .threeD-panel {
      width: 50%;
      height: 100vh;
    }
    .tabs {
      border-right: 1px solid #ccc;
      display: flex;
      flex-direction: column;
    }
    /* Les onglets restent en haut dans la partie gauche */
    .tabs-header {
      display: flex;
      width: 100%;
    }
    .tabs-header .tab {
      flex: 1;
      padding: 15px !important;
    }
    .tabs-content {
      flex: 1;
      overflow-y: auto;
    }
  }
  
  /* Footer (reste en bas, en dehors de #appContainer) */
  footer {
    background-color: #333;
    color: #ccc;
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid #555;
  }
  