:root {
  --pink: #e91e8c;
  --dark-blue: #2d2a5e;
  --dark-blue-hover: #3a3670;
  --bg-box: #f5f5f5;
  --text: #2b2b2b;
  --border: #d9d9d9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  padding: 12px 24px;
  background: #fff;
  color: var(--text);
  display: flex;
  justify-content: center;
}

.page {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

h1 {
  color: var(--pink);
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  letter-spacing: 0.02em;
  text-align: left;
  width: 100%;
}

.info-box {
  background: var(--bg-box);
  padding: 20px 24px;
  border-radius: 4px;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

form label,
form .hint,
form .actions,
.g-recaptcha,
.code-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 50%;
  margin: 10px auto;
}

#verificationForm {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recaptcha-container {
  margin: 5px 0;
}

.code-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 20px auto;
}

/* Taille des champs du code uniquement */
.code-group input {
  width: 60px;
  min-width: 70px;
  max-width: 70px;
  height: 50px;
  padding: 5px;
  box-sizing: border-box;
  text-align: center;
}

label {
  font-weight: 600;
  margin-bottom: 4px;
}

input[type="text"] {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 1rem;
}

.hint {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 16px 0;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

button {
  flex: 1;
  padding: 12px 0;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 1rem;
  cursor: pointer;
}

.btn-retour {
  background: #fff;
  color: var(--text);
}

.btn-valider {
  background: var(--dark-blue);
  color: #fff;
  border: none;
}

.btn-valider:hover {
  background: var(--dark-blue-hover);
}


/* =====================================================
   RESPONSIVE UNIQUEMENT
   ===================================================== */

/* Tablettes */
@media (max-width: 768px) {

  body {
    padding: 12px 18px;
  }

  .page {
    max-width: 100%;
  }

  h1 {
    font-size: 2.1rem;
  }

  form label,
  form .hint,
  form .actions,
  .g-recaptcha {
    width: 70%;
  }

  .actions {
    width: 70%;
  }
}


/* Téléphones */
@media (max-width: 600px) {

  body {
    padding: 10px 14px;
  }

  .page {
    width: 100%;
  }

  h1 {
    font-size: 1.8rem;
  }

  .info-box {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  form label,
  form .hint,
  form .actions,
  .g-recaptcha {
    width: 90%;
  }

  .actions {
    width: 90%;
    gap: 10px;
  }

  /* Adaptation de l'espacement des champs */
  .code-group {
    gap: 10px;
  }
}


/* Petits téléphones */
@media (max-width: 400px) {

  body {
    padding: 8px 10px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .info-box {
    padding: 14px 15px;
    font-size: 0.9rem;
  }

  .code-group {
    gap: 6px;
  }

  .code-group input {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 48px;
  }

  form label,
  form .hint,
  form .actions,
  .g-recaptcha {
    width: 100%;
  }

  .actions {
    width: 100%;
    gap: 8px;
  }

  button {
    font-size: 0.95rem;
    padding: 11px 0;
  }
}


/* Très petits écrans */
@media (max-width: 340px) {

  h1 {
    font-size: 1.45rem;
  }

  .info-box {
    padding: 12px;
    font-size: 0.85rem;
  }

  .code-group {
    gap: 4px;
  }

  .code-group input {
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    height: 45px;
  }

  button {
    font-size: 0.9rem;
  }
}
