@import url('https://fonts.cdnfonts.com/css/poppins');

html {
	display: flex;
    justify-content: center;
    min-height: 100vh;
    align-items: center;
	height: auto;
 	background: radial-gradient(#272727, #0f0f0f);
}

body {
  	flex:1;
	height: 100%;
}

.body {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: 'Poppins', sans-serif;
  padding: 18px;
}

.form {
  width: 100%;
  max-width: 450px;
  margin-top: auto;
  margin-bottom: auto;
  transition: height 0.4s ease;

}

.progress-bar {
  display: flex;
  align-items: center;
  width: 100%;
}

.break {
  height: 4px;
  flex: 1;
  background-color: #cb6843;
  justify-content: center;
  transition: background-color 0.5s;
}

.step {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: #cb6843;
  border: 3px solid #cb6843;
  transition: background-color 1s;
}

.active {
  border: 3px solid #cb6843;
  background-color: #2F2F2F;
}

.active~.break {
  background-color: #2F2F2F;
}

.active~.step {
  border: 3px solid #2F2F2F;
  background-color: #2F2F2F;
}

.title {
  margin: 30px 0 15px 0;
  font-size: 16px;
}

.inputs {
  display: flex;
  flex-direction: row;
  margin: 10px 10px 0 10px;
  flex-wrap: wrap;
}

.step-1 input[type="radio" i],
.step-2 input[type="checkbox"],
.step-3 input[type="radio" i] {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0);
  cursor: pointer;
}

.radio-img {
  margin: 5px;
}

.step-1 input[type="radio"]:checked~label img,
.step-2 input[type="checkbox"]:checked~label img,
.step-5 input[type="radio"]:checked~label img {
  border: 1px solid rgba(255, 255, 255, 0.345);
}

.step-1 input[type="radio"]~label img,
.step-2 input[type="checkbox"]~label img,
.step-5 input[type="radio"]~label img {
  border: 1px solid #1B2A46;
  cursor: pointer;
  transition: filter 0.5s;
}

.step-1 input[type="radio"]:checked~.cicle-check,
.step-2 input[type="checkbox"]:checked~.cicle-check,
.step-5 input[type="radio"]:checked~.cicle-check {
  background-image: url("./assets/check-radio.png");
  background-size: cover;
}

.radio-img img {
  border-radius: 10px;
}

.radio-img {
  position: relative;
}

.cicle-check {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: #2e3c57;
  border-radius: 50%;
  z-index: 5000;
}

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

.boutons div {
  display: flex;
  flex: 1;
  justify-content: center;
  margin: 20px;
}

#previous {
  position: relative;
  background-color: #2F2F2F;
  color: rgb(41, 41, 41);
  border: none;
  border-radius: 20px;
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  height: 40px;
}

#previous img {
	height: 29px;
	position: absolute;
	width: 100%;
	right: 0;
	top: 7px;
}

#next {
  background-color: #cb6843;
  color: rgb(41, 41, 41);
  border: none;
  border-radius: 20px;
  flex: 1;
  height: 40px;
  font-size: 16px;
  font-weight: 700;
}
/* Effet au survol */
#next:hover {
  background-color: #e97b55;
  transform: scale(1.01);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.5s;
}

/* Effet quand cliqué */
#next:active {
  transform: scale(0.97);
  background-color: #b45835;
}

#previous img {
  opacity: 0.8;
}

/* Effet au survol */
#previous:hover {
  background-color: #303030;
  transform: scale(1.01);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.5s;
}

/* Effet quand cliqué */
#previous:active {
  transform: scale(0.97);
  background-color: #2c2c2c;
}

.container-input {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

form {
  position: relative;
  height: auto;

  /* ajuste selon ton contenu */
}
.step-content {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.step-content.active-step {
  display: block;
  opacity: 1;
}

/* Pour l'ancien slide qui sort de l'écran */
.step-content.to-left {
  left: -100%;
  /* sort à gauche */

}

.step-content.to-right {
  left: 100%;
  /* sort à droite */

}

.break {
  height: 4px;
  flex: 1;
  background-color: #2F2F2F;
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s;
}

.break.filled {
  background-color: #cb6843;
}
/*
.step-1 {
  height: 250px;
}

.step-2 {
  height: 500px;
}

.step-3 {
  height: 200px;
}

.step-4 {
  display: flex;
  flex-direction: column;
  height: 595px;
}

.step-5 {
  height: 250px;
}*/

.input-text .input {
  background-color: #2F2F2F;
  border: none;
  height: 30px;
  border-radius: 5px;
  margin-top: 9px;
  color: white;
  padding: 5px 10px;
}

.input:focus {
  outline: none;
}

.input-text {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
}

.step-4 .input-text label {
	flex:1;
	font-size: 14px;
}

/* Masquer les boutons radio natifs */
.radio-img input[type="radio"] {
  display: none;
}

/* Style du label comme bouton */
.checkbox-bouton {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: #2F2F2F;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.171);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  height: 15px;
}

/* Effet cliqué */
.checkbox-bouton:active {
  top: 2px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Quand le bouton est sélectionné */
.step-3 input[type="radio"]:checked+label.checkbox-bouton {
  background-color: #404040;
  color: #ffffff;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.radio-orga {
  display: flex;
  justify-content: space-evenly;
}

.step-4 .info-inputs {
  display: flex;
  flex-wrap: wrap;

}

.step-4 .input-text {
  margin: 8px 15px;
  width: 42%;
	flex:1;
}

.step-4 label {
  font-size: 16px;
}

.step-2 label {
  font-size: 16px;
}

.step-content label img:hover {
  /* border-color: rgba(255, 255, 255, 0.345) !important; */
  filter: brightness(1.2);
}

input {
  font-size: 13px;
  color-scheme: dark;
}

.input-error {
  border: 0.5px solid #920000c7 !important;
  animation: shake789 0.5s ease-in-out;
}

@keyframes shake789 {
  0% {
    transform: translateX(0px);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0px);
  }
}

.toastify {
  font-size: 10px;
}


.step-1-pro {
	justify-content: end!important;
}
.step-1-par {
	justify-content: start!important;
}

@media (max-width: 768px) {
	.boutons {
  flex-direction: column;
  align-items: center;
}

.boutons div {
  margin: 10px 0;
  width: 100%;
}
}