#hmilarge {
  width: 770px;
  height: 450px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
}

#hmilarge .header1 {
  background: no-repeat url('../../img/HMI/Large/header1.png');
  height: 30px;
}
#hmilarge .header2 {
  background: no-repeat url('../../img/HMI/Large/header2.png');
  height: 30px;
}

/* === Content === */
#hmilarge .content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  background-color: white;
}

#hmilarge .footer1 {
  background: no-repeat url('../../img/HMI/Large/footer1.png');
  height: 50px;
}
#hmilarge .footer2 {
  background: no-repeat url('../../img/HMI/Large/footer2.png');
  height: 50px;
}

/* === Liens latéraux (navigation) === */
#hmilarge .nav-side {
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
  user-select: none;
}

/* === Grille principale === */
#hmilarge .content-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  overflow-y: auto;
}

/* === Scrollbar (grille) === */
#hmilarge .content-grid::-webkit-scrollbar {
  width: 8px;
}
#hmilarge .content-grid::-webkit-scrollbar-thumb {
  background-color: var(--bs-gray-500);
  border-radius: 5px;
}
#hmilarge .content-grid::-webkit-scrollbar-thumb:hover {
  background-color: var(--bs-gray-700);
}

/* === Contenu à gauche avec un menu à droite === */
#hmilarge .content-main {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

#hmilarge .content-menu {
  width: 240px;
  line-height: 50px;
  background: no-repeat url('../../img/HMI/Large/menu.png');
  color: white;
  flex-shrink: 0;
}

/* === Scrollbar personnalisée === */
#hmilarge .content-main::-webkit-scrollbar {
  width: 10px;
}
#hmilarge .content-main::-webkit-scrollbar-track {
  background: var(--bs-gray-200);
}
#hmilarge .content-main::-webkit-scrollbar-thumb {
  background-color: var(--bs-gray-600);
  border-radius: 5px;
}
#hmilarge .content-main::-webkit-scrollbar-thumb:hover {
  background-color: var(--bs-gray-800);
}
#hmilarge .content-main {
  scrollbar-width: auto;
  scrollbar-color: var(--bs-gray-600) var(--bs-gray-200);
}

/* === Lien mis en évidence === */
#hmilarge .content-menu li.active {
  display: block;
  background: no-repeat url('../../img/HMI/Large/menu_active.png');
}
#hmilarge .content-menu li.inactive:hover {
  background: rgba(94, 94, 94, 0.4)
}

/* === Bloc du footer qui dépasse === */
#hmilarge .timeDefault, #hmilarge .timeYellow, #hmilarge .timeOrange, #hmilarge .timeRed {
  width: 182px;
  height: 65px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
#hmilarge .timeDefault {
  background: no-repeat url('../../img/HMI/Large/footer/TimeDefault.png');
}
#hmilarge .timeYellow {
  background: no-repeat url('../../img/HMI/Large/footer/TimeYellow.png');
}
#hmilarge .timeOrange {
  background: no-repeat url('../../img/HMI/Large/footer/TimeOrange.png');
}
#hmilarge .timeRed {
  background: no-repeat url('../../img/HMI/Large/footer/TimeRed.png');
}

#hmilarge .border-red {
  border-color: red !important;
}
#hmilarge .border-yellow {
  border-color: #ffd700 !important;
}
#hmilarge .border-orange {
  border-color: #ffa500 !important;
}