html {
    background-color: rgba(0,0,0,1);
    color:white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: italic;
    font-size: 9px;
}
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75); /* Black with opacity */
}

.modal-content {
    background-color: rebeccapurple;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 50%;
}

.close {
    float: right;
    font-size: 20px;
    cursor: pointer;
}

/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
  }
  
  /* Style the buttons that are used to open the tab content */
  .tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #ddd;
  }
  
  /* Create an active/current tablink class */
  .tab button.active {
    background-color: #ccc;
  }
  
  /* Style the tab content */
  .tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
  }

  .tabcontent {
    animation: fadeEffect 1s; /* Fading effect takes 1 second */
  }
  
  /* Go from zero to full opacity */
  @keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
  }

/* Style commun pour tous les champs */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  font-size: 11px;
  /*padding: 10px 12px;*/
  border: 0px solid #4CAF50;
  /*border-radius: 8px;*/
  background-color: wheat;
  color: #000;
  transition: all 0.3s ease;
  width:calc(100% - 0px);
  box-sizing: border-box;
  height: 15px;
}

/* Effet au focus */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: #2E7D32;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 5px rgba(46, 125, 50, 0.5);
}

/* Style spécifique pour les select */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%207%205-7z%22%20fill%3D%22%234CAF50%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 7px;
  cursor: pointer;
}

/* Style pour les labels */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #4CAF50;
}
th {
  position: sticky;
  top: 0;
  background-color: rebeccapurple; /* ou autre couleur pour éviter la transparence */
  z-index: 1; /* pour rester au-dessus du contenu */
  color:#f9f9f9;
}

.canvas-container {
  display: flex;
  gap: 2px; /* espace entre les canvas */
  justify-content: center; /* centrer horizontalement */
  align-items: center; /* aligner verticalement si besoin */
}

canvas {
  border: 0px solid #ccc; /* pour bien visualiser */
}

.cell {
  position: relative;
  /*height: 200px;*/
  /*width: 200px;*/
  /*border: 1px solid #ccc;*/
}

.centered-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*width: 100px;*/
  /*height: 50px;*/
  /*background-color: #f0f0f0;*/
}

.canvas-wrapper {
  position: relative;
  display: inline-block;
}

canvas {
  display: block;
}

.legend {
  position: absolute;
  top: 10px; /* position verticale */
  left: 50px; /* position horizontale */
  /*background-color: rgba(255, 255, 255, 0.5); /* fond semi-transparent */
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  color: #f9f9f9;
  pointer-events: none; /* pour ne pas bloquer les interactions avec le canvas */
}

/* Cible les navigateurs WebKit (Chrome, Edge, Safari) */
.div-scrollable::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.div-scrollable::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.div-scrollable::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  border: 2px solid #f0f0f0;
}

.div-scrollable::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.open{
  visibility: hidden;
}

@keyframes blinkBackground {
  0%   { background-color: white; }
  50%  { background-color: #d8b4e2; } /* mauve */
  100% { background-color: white; }
}

.blinking-input {
  animation: blinkBackground 1s infinite;
}






