  /* --- Page entière --- */
  body {
    margin: 0;
    background: #fff;                 /* Fond blanc autour de l'écran */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
	flex-direction: column;
  }
  
  .page {
	  display: none;
  }
  
  .page.active {
	  display: flex;
  }
  
  .device {
    background-color: #333;
    height: 50vh;
    width: 100vh;
    display: flex;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
	justify-content: space-around;
  }
  
  .helptext {
    width: 100vh;
    display: flex;
    padding: 20px;
	justify-content: center;
}


  /* --- Conteneur 4:3 --- */
  .screen {
	position: relative;
    background: #000;
    aspect-ratio: 4 / 3;
    height: 230;
    width: 300;
    font-size: 1.3vh; /* base proportionnelle à la hauteur de l'écran */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0 0 0;
    box-sizing: border-box;
  }
  
	.knob-container {
    display: flex;
    justify-content: center;
    align-self: center;
	height: 30vh;
    width: 30vh;
  }

.knob {
    width: 30vh;
    height: 30vh;
    border-radius: 50%;
    background-color: #777;
    cursor: grab;
}

.indicator {
    position: relative;
    width: 5vh;
    height: 5vh;
    border-radius: 50%;
    background-color: #aaa;
    left: 15vh;
    transform-origin: 0 15vh;
}

  /* --- Logo --- */
  .logo {
    width: 100%;                       /* Toute la largeur du “pseudo-écran” */
    height: auto;
    display: block;
  }

  .version {
    text-align: center;
    color: #fff;
    font-size: 2.6em;
    margin: 0.2% 0;
  }
  
  .unselectedtext {
    text-align: left;
    color: #888;
    font-size: 2.2em;
    margin: 0.2% 0;
  }
  /* Couleurs spéciales */
	.selected-text   { color: #fff; }
	.red-text     { color: #ff4040; }

  /* --- Boutons --- */
  .row {
    display: flex;
    justify-content: center;
    gap: 2%;	
	margin: 1%;
  }
  .top-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
  }
  
  .logo-container {
  width: 25%;
  display: flex;
  justify-content: flex-end;
  }
	
  .button {
    width: 48%;                        /* La moitié de la largeur de l'écran */
    padding: 1.5% 0;
    border-radius: 25px;
    border: none;
    font-size: 2.6em;
    color: #fff;
    cursor: pointer;
  }
  .grey { background: #999999; }
  .blue-dark { background: #003366; }
  .blue-dark.selected  { background: #1010ff; color: #fff; }
  .blue-dark-small { 
    background: #003366;
    font-size: 1em;
    padding: 0%;
    margin: 0% 0% 0% auto;
    width: 30%;
  }
  .blue-dark-small.selected { 
    background: #1010ff;
    font-size: 1em;
	color: #fff;
    padding: 0%;
    margin: 0% 0% 0% auto;
    width: 30%;
  }
  .green-dark { background: #005500; color: #888; }
  .green-dark.selected { background: #7cfc00; color: #fff; }
  .red { background: #8b0000; color: #888; }
  .red.selected { background: #ff0000; color: #fff;}
  .invisible {
      cursor: pointer;
	  background: #999;
	  font-size: 1em;
	  border-radius: 0;
	  width: auto;
  }

  /* Classe pour l'état selected */
  .button.selected {
      /* Ne pas définir de background ici, car il sera redéfini par les classes spécifiques */
  }
  
  /* Désactiver les boutons */
  .button:disabled {
      cursor: not-allowed;
  }
  
/* Ajout de la classe pour le bouton sélectionné */
.selected {
    box-shadow: 0 0 2px 1px rgba(255, 255, 255, 0.4);
    transform: scale(1.0);
}

  /* --- Footer texte --- */
  .footer {
    text-align: center;
    color: #fff;
    font-size: 2.6em;
    
  }

  /* --- Ligne de statut --- */
  .status {
    display: flex;
    justify-content: space-between;     /* Toute la largeur de l'écran */
    color: #fff;
    font-size: 2.6em;
    padding: 1% 1% 0 1%;
    background: #000;
  }
  .status span {
    display: flex;
    align-items: center;
    gap: 0.2em;
  }
  .square_red {
    width: 1em;
    height: 1em;
    background: red;                   /* Par défaut rouge */
    display: inline-block;
  }	
  .square_green {
    width: 1em;
    height: 1em;
    background: lawngreen;
    display: inline-block;
  }
  /* --- Fenêtre surgissante --- */
.overlay {
  position: absolute;            /* par-dessus tout le reste */
  
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup {
  width: 80%;                    /* 80% de la largeur de l'écran noir */
  background: #ccc;              /* rectangle gris */
  padding: 2% 0;
  text-align: center;
  box-sizing: border-box;
}

.popup-label {
  color: #000;
  font-size: 2.2em;
  margin-bottom: 2em;
  display: flex;
  justify-content: left;
}

.popup-buttons {
  display: flex;
  justify-content: space-around;
  margin: 1em;
}

/* --- Graphique --- */
.graph {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	height: 80%;
	padding: 10px;
	justify-content: left;
}
.bar {
	width: 1em;
	margin: 0 auto;
	border-radius: 1px;
}
.red-bar {
	background-color: red;
}
.green-bar {
	background-color: green;
}
.blue-bar {
	background-color: blue;
}
.yellow-bar {
	background-color: yellow;
}
/* Ajout de style pour le tableau */
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.3em;
}

th, td {
	text-align: center;
	color: #fff;
}

th {
	background-color: #000;
}

tr:nth-child(even) {
	background-color: #111;
}

tr:nth-child(odd) {
	background-color: #111;
}