body {
  font-family: 'Segoe UI', sans-serif;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.form-container {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 650px;
  max-width: 95%;
  border-top: 6px solid #ffa000;
}

h2 {
  margin-bottom: 25px;
  text-align: center;
  color: #424242;
  font-size: 24px;
  position: relative;
}

h2::after {
  content: '';
  width: 60px;
  height: 3px;
  background: #ffa000;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: ##ffa000;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #ffa000;
  box-shadow: 0 0 0 3px rgba(255,160,0,0.2);
}

input.error, select.error, textarea.error {
  border: 2px solid red;
  background-color: #ffecec;
}

.required {
  color: red;
  margin-left: 3px;
}

.btn-group {
  margin-top: 25px;
  text-align: right;
}

button {
  padding: 10px 25px;
  background: #ffa000;
  border: none;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #e09100;
  transform: scale(1.02);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.cgu-container {
  margin-top: 20px;
  margin-bottom: 20px;
}

.cgu-scrollbox {
  max-height: 250px;
  overflow-y: scroll;
  padding: 15px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 6px;
}

.checkbox-group {
  margin-top: 20px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #424242;
  margin-top: 12px;
  cursor: pointer;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #ccc;
  z-index: 0;
  transform: translateY(-50%);
}

.step {
  width: 40px;
  height: 40px;
  background: #ccc;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: bold;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease;
}

.step.active {
  background: #ffa000;
}


.hidden {
  display: none;
}

.invalid {
  border: 1px solid red;
}

/* Ajout de transitions pour une meilleure UX */
input[type="checkbox"], input[type="radio"] {
  transition: all 0.2s ease;
}

/* Style amélioré pour les messages d'erreur */
.error-message {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

input.error + .error-message {
  display: block;
}

/* Style cohérent pour tous les boutons */
button {
  cursor: pointer;
  padding: 12px 25px;
  font-size: 1rem;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* Responsive amélioré */
@media (max-width: 600px) {
  .form-container {
    padding: 20px;
  }
  
  .step-indicator::before {
    left: 5%;
    right: 5%;
  }
}