/* ============================================================
   Inscription gratuite et vérification du compte (LAUNCH-02) — signup.html, onboarding.html.
   Même langage visuel que login.html (carte centrée, variables de styles.css).
   ============================================================ */
.ob-page { min-height: 100vh; display: flex; flex-direction: column; }
.ob-main {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px 56px; background: var(--bg-gray);
}
.ob-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 40px 36px; width: 100%; max-width: 480px; box-shadow: var(--shadow-md);
}
.ob-logo { text-align: center; margin-bottom: 20px; }
.ob-logo a { font-size: 24px; font-weight: 700; color: var(--text-dark); letter-spacing: -0.5px; }
.ob-logo a span { color: var(--blue); }
.ob-title { font-size: 22px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.5px; margin-bottom: 6px; text-align: center; }
.ob-subtitle { font-size: 14px; color: var(--text-light); text-align: center; margin-bottom: 24px; line-height: 1.6; }

.ob-offer {
  display: flex; align-items: center; gap: 10px; background: var(--blue-light); color: var(--text-dark);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 22px;
}
.ob-offer strong { color: var(--blue-dark); }
.ob-offer-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

.ob-steps { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.ob-steps li { flex: 1; text-align: center; font-size: 11.5px; color: var(--text-light); }
.ob-steps li::before { content: ""; display: block; height: 4px; border-radius: 2px; background: var(--border); margin-bottom: 6px; }
.ob-steps li.done::before, .ob-steps li.current::before { background: var(--blue); }
.ob-steps li.current { color: var(--text-dark); font-weight: 600; }

.ob-row { display: flex; gap: 12px; }
.ob-row > .ob-field { flex: 1; min-width: 0; }
.ob-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ob-field label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.ob-field input, .ob-field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text-dark); background: #fff; outline: none; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ob-field input:focus, .ob-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(93, 150, 244, 0.12); }
.ob-field input::placeholder { color: #C4C9D4; }
.ob-field input.ob-invalid { border-color: #DC2626; }
.ob-field-error { font-size: 12.5px; color: #DC2626; display: none; }
.ob-field-error.visible { display: block; }
.ob-hint { font-size: 12.5px; color: var(--text-light); line-height: 1.5; }

.ob-phone { display: flex; gap: 8px; }
.ob-phone select { width: 42%; max-width: 190px; flex-shrink: 0; }
.ob-phone input { flex: 1; min-width: 0; }
.ob-code-input { letter-spacing: 8px; font-size: 22px !important; text-align: center; font-variant-numeric: tabular-nums; }

.ob-password { position: relative; }
.ob-password input { padding-right: 44px; }
.ob-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none;
  cursor: pointer; padding: 0; color: #94A3B8; display: flex; align-items: center; }

.ob-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 18px; cursor: pointer; }
.ob-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.ob-check a { color: var(--blue); }

.ob-submit {
  width: 100%; padding: 13px; background: var(--blue); color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.ob-submit:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(93, 150, 244, 0.35); }
.ob-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.ob-link-btn { background: none; border: none; color: var(--blue); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; }
.ob-link-btn:disabled { color: var(--text-light); cursor: default; font-weight: 500; }
.ob-actions-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.ob-alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; display: none; }
.ob-alert.visible { display: block; }
.ob-alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.ob-alert-info { background: var(--blue-light); border: 1px solid #C7DBFC; color: var(--text-dark); }
.ob-alert-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }

.ob-panel { display: none; }
.ob-panel.visible { display: block; }
.ob-center { text-align: center; }
.ob-big-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.ob-muted { font-size: 13.5px; color: var(--text-light); line-height: 1.6; }
.ob-footer-links { text-align: center; font-size: 13.5px; color: var(--text-light); margin-top: 22px; }
.ob-footer-links a { color: var(--blue); font-weight: 600; }
.ob-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%;
  animation: ob-spin 0.8s linear infinite; margin: 24px auto; }
@keyframes ob-spin { to { transform: rotate(360deg); } }

.ob-site-footer { background: var(--text-dark); padding: 20px 16px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.45); }
.ob-site-footer a { color: rgba(255,255,255,0.45); }

@media (max-width: 520px) {
  .ob-main { padding: 20px 12px 40px; }
  .ob-card { padding: 28px 20px 26px; border-radius: var(--radius); }
  .ob-row { flex-direction: column; gap: 0; }
  .ob-phone select { width: 46%; }
  .ob-steps li { font-size: 10.5px; }
}

/* Vérification anti-robot (LAUNCH-03) : le widget n'apparaît que si Cloudflare demande une interaction. */
.ob-turnstile { display: flex; justify-content: center; margin: 12px 0 0; min-height: 0; }
.ob-turnstile:empty { margin: 0; }

/* Documents contractuels (P0-2B) : cases jamais pré-cochées, texte publié lisible sur place. */
.ob-legal { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px 8px; margin: 4px 0 18px; }
.ob-legal-title { font-size: 13px; font-weight: 700; color: var(--text-dark); padding: 0 4px; }
.cx-legal-row { margin: 6px 0 10px; }
.cx-legal-line { display: flex; align-items: flex-start; gap: 8px; }
.cx-legal-line input[type="checkbox"] { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; }
.cx-legal-label { font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.cx-legal-read { background: none; border: 0; padding: 2px 0 0 24px; font-size: 12.5px; color: var(--blue); cursor: pointer; text-align: left; }
.cx-legal-read:hover { text-decoration: underline; }
.cx-legal-text { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; line-height: 1.5; max-height: 220px; overflow: auto; margin: 6px 0 0 24px; padding: 10px; background: var(--bg-gray); border-radius: var(--radius-sm); }
