
html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  display: block;
  flex-direction: column;
  justify-content: start;
  align-content: start;
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: Arial, sans-serif;
  color: #ececec;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--gray-950);
  gap : 3vw;
}

#volet
{
  background-color:   #171717;
}

#timers
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap : 10px;
}


:root {
  --user-chat-width: 70%;
  --sidebar-inline-padding: 12px;
  --sidebar-mask: linear-gradient(90deg,#000,#000 84%,transparent 89%,transparent);
  --white: #fff;
  --black: #000;
  --gray-50: #f9f9f9;
  --gray-100: #ececec;
  --gray-200: #e3e3e3;
  --gray-300: #cdcdcd;
  --gray-400: #b4b4b4;
  --gray-500: #9b9b9b;
  --gray-600: #676767;
  --gray-700: #424242;
  --gray-750: #2f2f2f;
  --gray-800: #212121;
  --gray-900: #171717;
  --gray-950: #0d0d0d;
  --red-500: #ef4444;
  --red-700: #b91c1c;
  --brand-purple: #ab68ff;
  --yellow-900: #927201;
}

.dark {
  --main-surface-background: rgba(33,33,33,.9);
  --message-surface: rgba(50,50,50,.85);
  --dot-color: var(--white);
  --text-primary: var(--gray-100);
  --text-primary-inverse: var(--gray-950);
  --text-secondary: var(--gray-400);
  --text-tertiary: var(--gray-500);
  --text-quaternary: var(--gray-600);
  --text-placeholder: hsla(0,0%,100%,.8);
  --text-error: #f93a37;
  --border-xlight: hsla(0,0%,100%,.05);
  --border-light: hsla(0,0%,100%,.1);
  --border-medium: hsla(0,0%,100%,.15);
  --border-heavy: hsla(0,0%,100%,.2);
  --border-xheavy: hsla(0,0%,100%,.25);
  --border-sharp: hsla(0,0%,100%,.05);
  --main-surface-primary: var(--gray-800);
  --main-surface-primary-inverse: var(--white);
  --main-surface-secondary: var(--gray-750);
  --main-surface-secondary-selected: hsla(0,0%,100%,.15);
  --main-surface-tertiary: var(--gray-800);
  --sidebar-surface-primary: var(--gray-900);
  --sidebar-surface-secondary: var(--gray-800);
  --sidebar-surface-tertiary: var(--gray-750);
  --sidebar-title-primary: hsla(0,0%,94%,.5);
  --sidebar-surface: #2b2b2b;
  --sidebar-body-primary: #ededed;
  --sidebar-icon: #a4a4a4;
  --link: #7ab7ff;
  --link-hover: #5e83b3;
  --surface-error: 249 58 55;
}

#volet {
  width: 15%;
  height: 100%;
  background-color:var(--gray-900);
  color:var(--gray-600);
  transition: left 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 0.5%;
  gap : 5px;
  font-size: 14px;

}

#content
{
  width:85%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}


#volet *.selected
{
  background-color: var(--gray-750);
}





#volet *.accessible
{
    color: var(--gray-300);
}

#volet *:hover

{
  background-color: var(--gray-800);
  cursor: pointer;
}


#content > div
{
  height: 100%;
  width: 100%;
  display: none;
  align-items: center;
}

#content > div.selected
{
  display: block;
}

#volet *
{
  width: 80%;
  font-weight: bold;
}

#volet *
{
  padding: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.composant
{
  border-radius: 15px;
  
  background: var(--gray-800);
  color: var(--gray-300);
  border: 0;
  cursor: pointer;
  box-sizing: border-box;
  display: flex;
justify-content: center;
align-items: center;
text-align: center;
}

.composant.hasTitle
{
  padding-top: 15px;

}

select,
button
{
  height: 100%;
width: 100%;
border-radius: 15px;
border: 0;
padding: 0;
background: var(--gray-800);
color: var(--gray-300);
display: flex;
justify-content: center;
align-items: center;
text-align: center;
cursor: pointer;
}
button
{
  background: none;
  border: 3px solid orangered;
  font-weight: bolder;
}

button:hover
{
  background: var(--gray-900);

}

input:focus
{
  outline: 0;

}

.title {
  position: absolute; /* Permet de le superposer */
  top: 0; /* Toujours en haut */
  left: 50%; /* Centre horizontalement */
  transform: translateX(-50%); /* Ajuste le centrage pour aligner parfaitement */
  padding: 5px 10px; /* Ajoute de l'espace autour du texte */
  font-weight: bold;
  z-index: 100; /* S'assure qu'il est au-dessus des autres éléments */
  pointer-events: none; /* Rend le titre non cliquable (facultatif) */
  font-weight: bold;
  color: var(--gray-400);
  font-size: 10px;

  background: var(--gray-900);
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}




/* Style de base pour l'input range */
input[type="range"] {
  -webkit-appearance: none; /* Désactive le style par défaut */
  appearance: none;
  height: 6px; /* Hauteur de la piste */
  background: var(--gray-300);
  border-radius: 5px; /* Coins arrondis */
  outline: none; /* Supprime l'outline */
  opacity: 0.7; /* Opacité par défaut */
  transition: opacity 0.2s ease; /* Transition fluide */
}

/* Style de la piste (fond) */
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; /* Hauteur de la piste */
  background: var(--gray-300);
  border-radius: 5px; /* Coins arrondis */
}

input[type="range"]::-moz-range-track {
  height: 6px; /* Hauteur de la piste */
  background: var(--gray-300);
  border-radius: 5px; /* Coins arrondis */
}

/* Style du curseur (thumb) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Désactive le style par défaut */
  appearance: none;
  width: 10px; /* Largeur du curseur */
  height: 10px; /* Hauteur du curseur */
  background: var(--gray-750);
  border-radius: 50%; /* Curseur rond */
  cursor: pointer; /* Curseur de la souris */
  box-shadow: 0 0 4px var(--gray-900);
  transition: background 0.2s ease, transform 0.2s ease; /* Transition fluide */
}

input[type="range"]::-moz-range-thumb {
  width: 10px; /* Largeur du curseur */
  height: 10px; /* Hauteur du curseur */
  background: var(--gray-750);
  border-radius: 50%; /* Curseur rond */
  cursor: pointer; /* Curseur de la souris */
  box-shadow: 0 0 4px var(--gray-900);
  transition: background 0.2s ease, transform 0.2s ease; /* Transition fluide */
}

/* Effet au survol */
input[type="range"]:hover {
  opacity: 1; /* Opacité maximale */
}

input[type="range"]:hover::-webkit-slider-thumb {
  background: var(--gray-800);
  transform: scale(1.1); /* Agrandissement léger */
}

input[type="range"]:hover::-moz-range-thumb {
  background: var(--gray-800);
  transform: scale(1.1); /* Agrandissement léger */
}

/* Effet en focus */
input[type="range"]:focus {
  box-shadow: 0 0 8px var(--gray-800);
}

input[type="range"]:focus::-webkit-slider-thumb {
  background: var(--gray-800);
  transform: scale(1.2); /* Agrandissement léger */
}

input[type="range"]:focus::-moz-range-thumb {
  background: var(--gray-800);
  transform: scale(1.2); /* Agrandissement léger */
}


input[type="text"]
{
  border: 0;
padding: 0;
background: var(--gray-800);
color: var(--gray-300);
display: flex;
justify-content: center;
align-items: center;
text-align: center;
  border-bottom: 1px solid var(--gray-300);
}


.nomApp
{
  position: absolute;
  top:0%;
  left : 0%;

}

.nomApp > p
{
  padding: 20px;
  padding-inline: 30px;
  margin: 0;
  font-size: 25px;
  font-weight: bold;
  color: orangered;
}


.marque
{
  position: absolute;
  top:95%;
  left : 0%;

}

.marque > p
{
  padding: 20px;
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  color: var(--gray-500);
}


.annee
{
  position: absolute;
  top:95%;
  left : 48%;

}

.annee > p
{
  padding: 20px;
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  color: orangered;
}


.produit
{
  position: absolute;
  top:0%;
  left : 60%;
  width: 40%;
  z-index: 100;
  display: flex;
  justify-content: end;

}



.produit > p
{
  margin: 0;
  font-size: 13px;
  color: var(--gray-500);
  padding: 20px;
}



.loading-container {
  text-align: center;
  color: var(--gray-800);

}

.loading-container.accessible
{
  color: var(--gray-300);

}

.loading-container > p
{
  padding: 0;
  margin: 1px;
}

.hourglass {
  font-size: 30px;
}

.spin 
{
  animation: rotateHourglass 4s ease-in-out infinite;

}

@keyframes rotateHourglass {
  0% {
      transform: rotate(0deg);
      animation-timing-function: ease-in;
  }
  25% {
      transform: rotate(90deg);
      animation-timing-function: ease-out;
  }
  50% {
      transform: rotate(180deg);
      animation-timing-function: ease-in;
  }
  75% {
      transform: rotate(270deg);
      animation-timing-function: ease-out;
  }
  100% {
      transform: rotate(360deg);
      animation-timing-function: ease-in;
  }
}

.description {
  font-size: 12px;
  font-weight: bold;
}

.timer {
  font-size: 12px;
}



/*
#cont3:hover
{
  top : 50%;
  height: 45%;
  width : 50%;
  border: 1px solid var(--gray-750);
  z-index : 1000;
}
  */

#chart_0
{
  height: 95%;
  width: 95%;
}


#loaderSorties
{
  position: absolute;
}


.loader {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gray-900)25%, var(--gray-950) 50%, var(--gray-900) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 15px;
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transition: opacity 1s ease-in-out;
}

.legend
{
  display: flex;
  justify-content:start;
  align-items: center;
  gap : 7px;
  font-size: 10px;
}

.legend > p 
{
  color: var(--gray-400);
}

.separateur
{
  background-color: var(--gray-600);
}


.custom-select {
  font-size: 14px;
  color: var(--gray-400);

  position: relative;
  font-family: Arial, sans-serif;
  width: 100%;
}

.select-display {

  cursor: pointer;
  text-align: center;
  background: var(--gray-800);
  height: 100%;
  padding-bottom: 10px;
  overflow-x: scroll;
}

.options-container {
  position: absolute;
  width: 100%;
  background: var(--gray-750);
  display: none;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100000;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;

}

.option {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-600);

}

.option:hover {
  background: var(--gray-600);
}


#entrees
{
  width: 20%;
  height: 86%;
  background: var(--gray-900);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  justify-content: space-evenly;
  align-items: center;

  box-shadow: 0 0 10px var(--gray-300);

  margin-top: 4vh;
}

#entrees.loading
{
  cursor: wait;
  pointer-events: none;
}

#sorties
{
  height: 86%;
  background: var(--gray-900);
  box-sizing: border-box;
  border-radius: 15px;

  display: flex;
  justify-content: center;
  align-items: center;
  padding-inline: 1.5vw;
  
  box-shadow: 0 0 10px orangered;

  margin-top: 4vh;
}

#notip,
#ari,
#simes
{

  width: 20vw;
  height: 95%;
  background: var(--gray-800);
  border-radius: 15px;

  flex-direction: column;
  justify-content: space-evenly;
  align-items: end;

}

.sorties {
  opacity: 0;
  margin-right: 0;
  transform: scale(0.9);
  pointer-events: none;
  max-height: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.sorties.show {
  opacity: 1;
  display: flex;
  margin-right: 1.5vw;
  transform: scale(1);
  pointer-events: auto;
  max-width: 500px;
  max-height: 1000px;
}


.svg-container
{
  transition: all 0.5s ease;

}

#notip
{
  display: flex;
  opacity: 1 !important;
  transform: scale(1) !important;
}




#notip > .composant,
#ari > .composant,
#simes > .composant
{
  background: var(--gray-800);
  height: 30%;
  width: 95%;
}

#colorbar
{
  width: 3vw;
  height: 95%;
  background: var(--gray-800);
  border-radius: 15px;

}

#entrees > .composant
{
  background: var(--gray-800);
  width: 90%;
  height: 7%;
}

*
{
  position: relative;
}


#cont2
{
  height: 13% !important;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}


#methods
{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}


#methods > label
{
  display: flex;
  justify-content: center;
}


#tasks
{
  height: 15% !important;
}


svg
{
  border-radius: 15px;
}


.sliderDiv
{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.sliderDiv > label
{
  font-size: 12px;
  color: orangered;
  width: 25%; 

}


.sliderDiv > input[type="number"]
{
  width: 10%; 
}


.sliderDiv > input[type="range"]
{
  width: 40%; 
}

#sorties > div
{
  box-shadow: 0 0 10px var(--gray-500);
}


.image-container {

  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
  align-items: center;

}



.image-container a
{
  text-decoration: none;
  font-size: 18px;
  color: var(--gray-300);
}


.aide 
{
  position: absolute;
  top:95%;
  left : 96%;
  height: 5%;
  width: 4%;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.doc 
{
  position: absolute;
  top:95%;
  left : 92%;
  height: 5%;
  width: 4%;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.aide *
{
  cursor: pointer;
  z-index: 10000;
  color: var(--gray-400);
  transition: transform 0.3s ease;

}


.aide *:hover
{
  color: var(--gray-300);
  transform: scale(105%);

}

.doc *
{
  cursor: pointer;
  z-index: 10000;
  color: var(--gray-400);
  transition: transform 0.3s ease;

}


.doc *:hover
{
  color: var(--gray-300);
  transform: scale(105%);

}


/* Overlay pour griser le fond */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 2000;
}

/* Fenêtre d'aide */
#fenetreAide {
  position: fixed;
  bottom: 50px; /* Décalé au-dessus du bouton */
  right: 10px;
  width: 30%;
  height: 87.5%;
  background: var(--gray-750);
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--gray-600);
  padding: 15px;
  display: none;
  z-index: 10000;
  flex-direction: column;
  justify-content: center;
}

/* Triangle indicateur */
#fenetreAide::before {
  content: "";
  position: absolute;
  bottom: -10px;
  right: var(--before-content, 8px);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--gray-600); /* Couleur de la fenêtre */
}

#fenetreAide > div {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 20px;
  height: 10%;
  color: var(--gray-300); 
  font-weight: bold;
}


#entrees-blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 999999;
  cursor: wait;
  pointer-events: all;
  display: none;
}
