@import "https://unpkg.com/open-props/normalize.min.css";
@import "https://unpkg.com/open-props/open-props.min.css";

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  perspective: 100vmin;
  background: var(--gray-9);
}

/* Style par défaut pour l'image */
.header-image img {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 0 auto 20px; /* Espace en bas par défaut pour mobile */
}

/* Ajustement de l'espacement pour les écrans larges (web) */
@media (min-width: 768px) {
  .header-image img {
    margin-bottom: -300px; /* Réduction de l'espace en bas sur les écrans de bureau */
    margin-top: -60px;
  }
}

.card-container {
  max-width: 900px;
  width: 100%;
  padding: 0px;
}

.card {
  display: flex;
  background: radial-gradient(
    circle at 43% 43%, /* Position pour simuler l'échelle */
    #0f3147, /* Couleur du centre */
    #0f172a 100% /* Couleur des alentours */
  );
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
  position: relative;
  transition: transform 0.2s;
}


.card-left {
  background:;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
}

/* Conteneur de la carte du logo uniquement */
.card-logo {
  --ratio-x: 0;
  --ratio-y: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 230px; /* Taille fixe pour le logo */
  border-radius: 25px;
  transform-style: preserve-3d;
  touch-action: none;
  transition: transform 0.2s;
  position: relative;
}

.card-logo:not(:hover) img {
  transition: translate 0.2s;
}

.card-logo:hover img {
  translate: calc((var(--ratio-x) - 0.5) * 20%) calc((var(--ratio-y) - 0.5) * 20%);
}

.card-logo:hover {
  transition: transform 0s;
  transform: rotateX(calc((var(--ratio-y) - 0.5) * 50deg)) rotateY(calc((var(--ratio-x) - 0.5) * -40deg));
}

.card-logo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at calc(var(--ratio-x) * 100%) calc(var(--ratio-y) * 100%), hsl(0 0% 100% / 0.5), transparent 50%);
  background-repeat: no-repeat;
  background-blend-mode: soft-light;
  z-index: 2;
}

.card-logo:before {
  content: "";
  background: linear-gradient(115deg, transparent 20%, var(--green-8) 30%, transparent 48% 52%, var(--indigo-8) 70%, transparent) 80% 80% / 300% 300%;
  filter: brightness(2) contrast(1);
  background-blend-mode: overlay;
  mix-blend-mode: color-dodge;
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.2;
  transition: opacity 0.2s;
}

.card-logo:hover:before {
  background-position: calc(var(--ratio-x) * 10%) calc(var(--ratio-y) * 10%), calc(80% + (var(--ratio-x) * -50%)) calc(80% + (var(--ratio-y) * -50%));
  opacity: 1;
}

img.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.1;
  translate: 0 0;
  transition: translate 0.2s ease;
}

.card-right {
  flex: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Conteneur pour chaque étape */
.step-container {
  background: #10172A;
  padding: 15px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

/* Bordure en dégradé */
.step-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  padding: 1px; /* Épaisseur de la bordure */
  background: linear-gradient(30deg, #4facfe, #00f2fe); /* Dégradé de bleu */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}


/* En-tête de l'étape */
.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Cercle pour les numéros */
.step-circle {
  background: #0BD1D0;
  color: #10172A;
  font-weight: bold;
  font-size: 16px;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.step-container h2 {
  font-size: 16px;
  color: #38bdf8;
  margin: 0;
}

.form-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 30%;
  max-width: 30%;
  min-width: 150px;
  margin-bottom: 10px;
}

.form-group label {
  margin-bottom: 5px;
  color: #38bdf8;
  font-size: 12px;
}

.form-group input,
.form-group select {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #3b82f6;
  background: #1e293b;
  color: #fff;
  font-size: 14px;
  width: calc(100% - 8px);
  box-sizing: border-box;
}

/* Conteneur pour le select avec flèche */
.custom-select {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-select select {
  appearance: none;
  width: 100%;
  padding: 8px;
  padding-right: 30px; /* Espace pour la flèche */
  border-radius: 10px;
  border: 1px solid #3b82f6;
  background: #1e293b;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
}

/* Ajout de la flèche */
.custom-select::after {
  content: "▼"; /* Caractère de la flèche */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #fff;
  pointer-events: none;
}


.options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.options button {
  flex: 1;
  padding: 10px;
  text-align: center;
  border: 1px solid #3b82f6;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.options button span {
  display: block;
  font-size: 12px;
  color: #38bdf8;
}

.options .custom {
  background: #3b82f6;
  color: #fff;
}

.purchase-btn {
  padding: 15px;
  background: #38bdf8;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
}

.custom-input {
  padding: 10px;
  border: 1px solid #3b82f6;
  border-radius: 10px;
  background: #1e293b;
  color: #fff;
  font-size: 16px;
  width: 100%; /* S'adapte à l'espace disponible */
  box-sizing: border-box;
}


/* Style pour le bouton sélectionné */
.options button.selected {
  background-color: #3b82f6; /* Couleur différente pour indiquer la sélection */
  color: #fff;
  border: 2px solid #2563eb;
}


/* Add top padding for the card logo on mobile */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
  }

  .card-left {
    padding-top: 20px; /* Increase padding above the logo */
  }

  /* Make the buttons full width and adjust the gap */
  .options button {
    flex: none;
    width: 100%; /* Full width for better horizontal sizing */
  }
}

/* Additional style adjustments for very small screens (if needed) */
@media (max-width: 600px) {
  .form-horizontal {
    flex-direction: column;
  }

  .options button {
    width: 90%; /* Adjust width for smaller screens */
    margin: 5px auto; /* Center align with small margins */
  }
}
