.container1 {
  text-align: center;
}
.toggle-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  width: 100%;
  height: 50px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.toggle-option {
  position: relative;
  width: 50%;
  text-align: center;
  line-height: 50px;
  font-weight: 500;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
  white-space: nowrap; /* Empêche le texte de se briser sur plusieurs lignes */
  font-size: calc(1rem + 0.5vw); /* Taille de police responsive */
}

.toggle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #1f4d65, #8bc0db);
  border-radius: 20px;
  z-index: 1;
  transition: all 0.3s ease;
}

input[type="radio"] {
  display: none;
}

input#inscrire:checked ~ .toggle-bg {
  left: 0;
}

input#infos:checked ~ .toggle-bg {
  left: 50%;
}

input#inscrire:checked + label {
  color: #fff;
}

input#infos:checked + label {
  color: #fff;
}

.validate-btn {
  background-color: #1f4d65;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.validate-btn:hover {
  background-color: #2575fc;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
}