:root {
  --prm-gray: #ccc;
  --prm-color: #0d6efd;
  --snd-color: #17B978;
}

/* Progress step bar */
.steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.step-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: var(--prm-gray);
  transition: 0s;
  pointer-events: none;
}

.step-button[aria-expanded="true"] {
  width: 45px;
  height: 45px;
  background-color: var(--prm-color);
  color: #fff;
}

.step-title {
  width: 100px; /* Largeur fixe pour éviter que le texte décale la bulle */
  font-size: 0.8rem;
  white-space: normal;
  word-wrap: break-word;
}

.done {
  background-color: var(--prm-color);
  color: #fff;
}

.step-item {
  z-index: 10;
  text-align: center;
}

/* Positionnement de la barre entre le centre de la première et de la dernière bulle */
#progress {
  -webkit-appearance: none;
  position: absolute;
  left: 50px;
  right: 50px;
  z-index: 5;
  width: auto;
  height: 10px;
  margin-bottom: 18px;
}

#progress::-webkit-progress-value {
  background-color: var(--prm-color);
  transition: 0.5s ease;
}
#progress::-webkit-progress-bar {
  background-color: var(--prm-gray);
}

/* Styles pour les champs OTP */
.otp-input {
  width: 100%;
  max-width: 3rem;
  height: 3rem;
  text-align: center;
  font-size: 1.5rem;
  margin: 0.3rem;
}

.vibrate {
  animation: shake 0.5s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* Styles pour le timer circulaire (utilisé dans instructions) */
.countdown-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;  /* Réduit à 70% de la largeur du conteneur */
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  color: #071A52;
  word-wrap: break-word;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

/* Pour assurer que le conteneur maintient les bonnes proportions */
.countdown-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Styles pour les messages d'erreur */
.error-message {
  font-size: 0.85rem;
  color: #dc3545;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  margin-top: 0.5rem;
  text-align: center;
  width: 100%;
}

.error-message.show {
  opacity: 1;
}

.error-message.fade-out {
  opacity: 0;
}

#otp-error-message {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 1.5rem;
}
