body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 20px auto;
  max-width: 800px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  background-color: white;
}

h1 {
  text-align: center;
  color: #4e5052;
  margin-bottom: 25px;
}

p {
  margin-top: 25px;
}

a {
  color: #b84f18;
  text-decoration:none;
}

/* Liste des laboratoires */

label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.25s ease;
}

label:hover {
  background-color: #e0f0ff;
}

input[type="radio"] {
  margin-right: 8px;
  accent-color: #b84f18;
  cursor: pointer;
  transform: scale(1.1);
}

#structureContainer {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  background-color: #fafafa;
  margin-bottom: 20px;
  box-shadow: inset 0 0 8px #ddd;
}

/* Barre de recherche */

#structureSearch,
input[type="text"]#annees {
  padding: 8px 12px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 800px;
}

#structureSearch,
input[type="text"]#periode {
  padding: 8px 12px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 800px;
}

#structureSearch:focus,
input[type="text"]#annees:focus {
  outline: none;
  border-color: #4e5052;
  box-shadow: 0 0 5px #4e5052;
}

/* Boutons */

.button-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 0;
}
  
/* Bouton Envoyer la requête */

button#send {
  font-size: 1em;
  padding: 8px 16px;
  background-color: #b84f18;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-right: 10px;
}

button#send:disabled {
  background-color: #bbb;
  cursor: not-allowed;
}

button#send:hover:not(:disabled) {
  background-color: #b84f18;
  box-shadow: 0 0 8px #b84f18;
}

/* Bouton Arrêt de la requête */

button#stopProcess {
  font-size: 1em;
  padding: 8px 16px;
  background-color: gray;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-right: 10px;
}

button#stopProcess:hover:not(:disabled) {
  background-color: gray;
  box-shadow: 0 0 8px gray;
}

/* Bouton Export CSV */

button#exportCSV {
  font-size: 1em;
  padding: 8px 16px;
  background-color: gray; /* désactivé = gris */
  border: none;
  color: white;
  border-radius: 6px;
  cursor: not-allowed;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button#exportCSV:enabled {
  background-color: #28a745; /* vert quand activé */
  cursor: pointer;
}

button#exportCSV:hover:enabled {
  background-color: #218838;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
}

/* Barre de progression */

#progressBarContainer {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin: 0 auto 10px auto;
}

#progressBar {
  width: 100%;
  height: 20px;
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  background-color: #ddd;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#progressBar::-webkit-progress-bar {
  background-color: #ddd;
  border-radius: 10px;
}

#progressBar::-webkit-progress-value {
  background-color: #b84f18;
  border-radius: 10px;
  transition: width 0.3s ease;
}

#progressBar::-moz-progress-bar {
  background-color: #b84f18;
  border-radius: 10px;
  transition: width 0.3s ease;
}

#progressText {
  display: none;
}