body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.container {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.unit {
  margin-top: 80px;
  margin-bottom: 80px;
}

.input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

/* Ajoutez ces styles pour masquer les flèches dans Firefox */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Ajoutez ces styles pour masquer les flèches dans WebKit (Chrome, Safari) */
input[type="number"] {
  -moz-appearance: textfield;
}

button {
  padding: 10px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

.result {
  margin-top: 20px;
  font-size: 16px;
}

select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none; /* Enlève l'apparence par défaut sous Chrome/Safari */
  -moz-appearance: none; /* Enlève l'apparence par défaut sous Firefox */
  appearance: none; /* Enlève l'apparence par défaut pour les navigateurs qui supportent la propriété */
}

.select-arrow {
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: calc(50% - 3px);
}

.select-container {
  position: relative;
  display: inline-block;
}

.select-container:after {
  content: '▼';
  color: #000;
  position: absolute;
  right: 10px;
  top: calc(50% - 0.5em);
  pointer-events: none;
}

