.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 40vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;     /* centré horizontalement */
    align-items: flex-start;     /* en haut de la page */
    padding-top: 40px;           /* espace pour respirer */
    z-index: 1000;
}

  /* Quand on active le popup */
.overlay.active {
  display: flex;
}

/* Le container popup */
.popup-container {
  position: absolute; /* indispensable pour le déplacement */
  top: 100px; left: 100px;
  background: rgba(179, 178, 178, 0.747);
  color: rgb(229, 241, 157);
  font-weight: bold;
  border-radius: 3px;
  width: max-content;
  max-width: 90%;
  padding: 1px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  animation: zoomIn 0.3s ease;
}

/* Animation d’apparition */
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Contenu à l’intérieur du container */
.content {
  margin-top: 20px;
}

.btPopUp{
  background: rgba(179, 178, 178, 0.747);
  border-radius: 2px;
  color: rgb(229, 241, 157);
  font-size: 0.9rem;
  width: max-content;
  height: max-content;    
  padding: 20px;
  margin-top: 20px;
}

.btPopUp:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

.popupDragHandle {
  background: rgba(0,0,0,0.05); /* léger fond pour voir la zone */
}

table{
  border-collapse: collapse;
  margin: 10px;
}

td.Conso{
  width: 150px;
}