#call-box {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 170px;
  background-color: #333;
  color: white;
  cursor: pointer;
  border-radius: 5px 0 0 5px;
  display: flex;
  align-items: center;
  transition: width 0.5s ease-in-out;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* Conteneur général */
#call-box-content {
  display: flex;
  justify-content: space-between; /* Garde le texte à gauche et input/bouton à droite */
  align-items: center;
  width: 100%;
}

/* Texte vertical "On vous rappelle" */
#call-box span {
  font-size: 14px;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.1em;
  text-align: center;
  margin-right: 10px; /* Espacement à droite du texte */
}

/* Conteneur pour input et bouton */
#input-container {
  display: flex;
  flex-direction: column; /* Pour que l'input et le bouton soient alignés verticalement */
  width: 100%;
}

/* Champ de saisie */
#phone-input {
  display: none;
  width: 100%; /* Prend tout l'espace disponible dans le conteneur */
  margin-bottom: 10px; /* Espacement avec le bouton */
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  text-align: center;
}

/* Rectangle agrandi avec input visible */
#call-box.open {
  width: 300px;
  justify-content: flex-start;
}

#call-box.open #phone-input,
#call-box.open #send-btn {
  display: block;
}

/* Bouton envoyer */
#send-btn {
  display: none;
  background-color: #C0C0C0;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 5px;
  width: 100%; /* Même largeur que l'input */
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#send-btn:hover {
  background-color: #999;
}
