@font-face {font-family: "poppins"; 
  src: url("../font/Poppins-Regular.ttf") format('truetype');
}

body { 
  margin:0; 
  padding:0;
  background: #ccd8d6;
  font-family: Arial, sans-serif;
}

.sub-header {
    height: 15px;
    background-color: #ccd8d6;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.sub-header span#year {
    margin-left: 3px; 
    margin-right: 3px; 
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  color: white;
  height: 60px;
  padding: 0 20px;
}

.header-title {
    font-size: 30px;
    font-family: "poppins";
    font-weight:300;
}

.content {
    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-group {
    display: flex;
    border-radius: 5px;
    height:60px;
}

.button-group button {
    margin-top: 10px;
    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 */
}