body {
    height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.sub-header {
    width: 100%;
    height:20px;
    left: 0;
    bottom: 0;
    background-color: black;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 11px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.header {
    background-color: #003F69;
    height: 70px;
    line-height:70px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
}             
        
        
#video-container {
    position: relative;
    width: 800px;
    height: 450px;
    margin: 20px auto;
    background-color: #000;
}
video {
    width: 100%;
    height: 100%;
}
canvas {
    display: none;
}
button {
    margin-top: 10px;
}

.button-group {
    display: flex;
    border-radius: 5px;
    height:60px;
}

button {
 position: relative;    
    border: none;
    color: white;
    padding: 5px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin: 4px 5px;
    cursor: pointer;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    border-radius: 5px;
}


#capture-screenshot {
    background-color: #0078d7; /* bleu */    
}

#capture-screenshot {
    background-color: #0060ac;
}

#reset-button {
    background-color: #f10914; /* rouge */
}

#reset-button:hover {
    background-color: #ca102f;
}


.boutonUpload {
    width:200px;
    height:60px;
}

#prev-frame, #next-frame, #play-button, #pause-button, #stop-button{
   background-color: #4CAF50;
}

#prev-frame:hover, #next-frame:hover,  #play-button:hover, #pause-button:hover, #stop-button:hover {
    background-color: #3e8e41;
  }

.uploadbutton {
    background-color: #4CAF50; /* Green */    
    border: none;
    color: white;
    font-size:20px;
    padding: 13.7px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    height:24px;
    line-height: 24px;
    -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    user-select: none;
    border-radius: 5px;  
  }
  .uploadbutton:hover {
    background-color: #3e8e41;
  }
  
  input[type=file] {
    display:none;  
  }

  .controle {
    display:flex;
    flex-direction: row;
  }

/* Tooltip caché par défaut */
button.tooltip::before {
    content: attr(data-tooltip); /* Utilise l'attribut data-tooltip pour afficher le texte */
    position: absolute;
    bottom: 150%; /* Positionne au-dessus du bouton */
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50; /* Fond sombre semi-transparent */
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0; /* Caché par défaut */
    visibility: hidden; /* Rend invisible */
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

/* Petite flèche en dessous du tooltip */
button.tooltip::after {
    content: '';
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #4CAF50 transparent transparent transparent; /* Triangle vers le haut */
    opacity: 0; /* Caché par défaut */
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Affichage du tooltip au survol */
button.tooltip:hover::before,
button.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px); /* Légère animation vers le haut */
}