/* Zone principale */
main.adhesion {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(35px, 6vw, 90px);

  width: min(90%, var(--container));
  margin: 0 auto;
  padding: clamp(40px, 8vw, 100px) 0;

  color: #e8eaf2;
  align-items: center;
}

.alerte {
  margin: 24px 0 24px 0;
  padding: 14px 18px;

  color: #d9f7e5;
  background: #172d27;
  border: 1px solid #2d7658;
  border-left: 4px solid #4dcc91;
  border-radius: 10px;

  font-size: 0.9rem;
  line-height: 1.5;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

/* Colonne de présentation */
main > section:first-child {
  padding-right: clamp(0px, 2vw, 30px);
}

main > section:first-child h1,
main > section:first-child h2 {
  margin: 0 0 20px;

  color: #f5f6fa;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

main > section:first-child p {
  margin: 0 0 28px;

  color: #a7adbd;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Liste numérotée */
main > section:first-child ol {
  display: grid;
  gap: 18px;

  margin: 0;
  padding: 0;

  list-style: none;
  counter-reset: etape;
}

main > section:first-child li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: center;

  color: #c4c8d4;
  line-height: 1.5;
  counter-increment: etape;
}

main > section:first-child li::before {
  content: counter(etape);

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  color: #ffffff;
  background: linear-gradient(135deg, #8178f2, #574dd0);
  border-radius: 50%;

  font-weight: 700;
  box-shadow: 0 5px 15px rgba(87, 77, 208, 0.25);
}

/* Conteneur du formulaire */
main > section:last-child {
  width: 100%;
  padding: clamp(24px, 4vw, 42px);

  background: #171a24;
  border: 1px solid #2c3040;
  border-radius: 22px;

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.28),
    0 3px 12px rgba(0, 0, 0, 0.18);
}

/* Formulaire */
main form {
  display: grid;
  gap: 16px;
}

main form label {
  display: block;

  color: #d9dce7;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Champs sur une seule ligne, hauteur maximale de 45px */
main form input:not([type="checkbox"]):not([type="radio"]),
main form select {
  display: block;

  width: 100%;
  min-height: 35px;
  max-height: 35px;
  margin-top: 7px;
  padding: 0 14px;

  color: #f1f2f6;
  background: #202431;
  border: 1px solid #363b4c;
  border-radius: 10px;
  outline: none;

  font: inherit;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

/* Options du sélecteur */
main form select option {
  color: #f1f2f6;
  background: #202431;
}

/* Zone de texte */
main form textarea {
  display: block;

  width: 100%;
  min-height: 120px;
  max-height: 180px;
  margin-top: 7px;
  padding: 12px 14px;

  color: #f1f2f6;
  background: #202431;
  border: 1px solid #363b4c;
  border-radius: 10px;
  outline: none;

  font: inherit;
  line-height: 1.5;
  resize: vertical;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

/* Placeholder */
main form input::placeholder,
main form textarea::placeholder {
  color: #777e91;
}

/* Focus des champs */
main form input:not([type="checkbox"]):focus,
main form select:focus,
main form textarea:focus {
  background: #242938;
  border-color: #8178f2;
  box-shadow: 0 0 0 4px rgba(129, 120, 242, 0.16);
}

/* Checkbox */
main form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0 8px 0 0;

  accent-color: #8178f2;
  vertical-align: middle;
}

/* Texte associé à la checkbox */
main form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 6px;

  color: #a7adbd;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
}

/* Bouton */
main form button,
main form input[type="submit"] {
  width: 100%;
  min-height: 45px;
  margin-top: 8px;
  padding: 0 20px;

  color: #ffffff;
  background: linear-gradient(135deg, #8178f2, #574dd0);
  border: none;
  border-radius: 10px;

  font: inherit;
  font-weight: 700;
  cursor: pointer;

  box-shadow: 0 8px 20px rgba(87, 77, 208, 0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

main form button:hover,
main form input[type="submit"]:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(87, 77, 208, 0.38);
}

main form button:active,
main form input[type="submit"]:active {
  transform: translateY(0);
}

/* Champs invalides */
/* main form input:invalid:not(:placeholder-shown),
main form textarea:invalid:not(:placeholder-shown),
main form select:invalid {
  border-color: #d96c7b;
} */

/* Version mobile */
@media (max-width: 800px) {
  main {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  main > section:first-child {
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  main {
    width: min(100% - 24px, 620px);
    padding: 40px 0;
  }

  main > section:last-child {
    padding: 24px 18px;
    border-radius: 16px;
  }
}

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
  main *,
  main *::before,
  main *::after {
    transition: none;
  }
}