/* Page d'inscription amiiapp.com/inscription — mobile-first (iPhone, Android, navigateur intégré TikTok). */
.signup-page { background: var(--cream); }
.signup-page .privacy-trigger { position: static; display: block; margin: 14px auto 96px; box-shadow: none; }

.su-wrap { width: min(100% - 32px, 560px); margin: 0 auto; padding: 20px 0 120px; }
.su { position: relative; }
.su-noscript { padding: 24px 0; color: var(--muted); }

.su-progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 18px; }
.su-progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--brand)); transition: width .3s var(--ease); }

.su-screen { outline: none; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px 24px; box-shadow: var(--shadow); }
.su-screen h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; }
.su-screen h2 { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -.02em; margin: 0 0 8px; }
.su-screen h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.su-lead { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: 0 0 18px; }
.su-step { color: var(--orange-ink); font-weight: 700; font-size: .85rem; margin: 0 0 6px; letter-spacing: .02em; }
.su-eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--peach); color: var(--orange-ink); font-weight: 700; font-size: .82rem; margin: 0 0 14px; }

/* Champs : une colonne, 16 px minimum (évite le zoom automatique sur iPhone). */
.su-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.su-field label, .su-field legend { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 8px; padding: 0; color: var(--ink); }
.su input[type="text"], .su input[type="email"], .su input[type="password"], .su input[type="search"], .su select {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 14px; appearance: none; -webkit-appearance: none;
}
.su select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.su input:focus, .su select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(250, 114, 2, .15); }
.su input[aria-invalid="true"] { border-color: #C0392B; }
.su-hint { color: var(--muted); font-size: .85rem; line-height: 1.45; margin: 8px 0 0; }
.su-err { color: #B0281B; font-size: .9rem; font-weight: 600; margin: 8px 0 0; }
.su-err[hidden], .su-ok[hidden], .su-hint[hidden] { display: none; }
.su-ok { color: #3F7A2C; font-size: .92rem; font-weight: 600; margin: 8px 0 0; }
.su-date { display: grid; grid-template-columns: 1fr 1.5fr 1.1fr; gap: 8px; }
.su-at { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; padding-left: 14px; }
.su-at span { color: var(--muted); font-weight: 700; }
.su .su-at input { border: 0; box-shadow: none; padding-left: 6px; }
.su-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.su-seg label { margin: 0; cursor: pointer; }
.su-seg input { position: absolute; opacity: 0; pointer-events: none; }
.su-seg span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px solid var(--line-strong); border-radius: 14px; font-weight: 600; background: #fff; }
.su-seg input:checked + span { border-color: var(--brand); background: var(--peach); color: var(--orange-ink); }
.su-seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(250, 114, 2, .2); }
.su-check-row { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.45; margin: 14px 0; cursor: pointer; }
.su-check-row input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex-shrink: 0; }
.su-check-row small { color: var(--muted); }
.su-terms a { color: var(--orange-ink); text-decoration: underline; }

/* Boutons */
.su-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.su-btn:active { transform: scale(.98); }
.su-btn[disabled] { opacity: .6; cursor: default; }
.su-btn-primary { background: linear-gradient(135deg, var(--orange), var(--brand)); color: #fff; box-shadow: 0 10px 24px -10px rgba(250, 114, 2, .7); }
.su-btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.su-btn-soft { background: var(--peach); color: var(--orange-ink); }
.su-btn-xl { width: 100%; min-height: 60px; font-size: 1.15rem; }
.su-link { display: block; margin: 14px auto 0; background: none; border: 0; padding: 10px; font: inherit; font-size: .95rem; font-weight: 600; color: var(--orange-ink); text-decoration: underline; cursor: pointer; }
.su-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.su-row .su-btn { flex: 1 1 200px; }

/* Barre d'action : toujours visible, au-dessus du clavier */
.su-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 252, 248, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.su-bar[hidden] { display: none; }
.su-bar .su-btn { flex: 1 1 0; max-width: 560px; }
.su-bar .su-btn-ghost { flex: 0 0 34%; }
.su-bar .su-btn-ghost[hidden] { display: none; }
@media (min-width: 640px) { .su-bar { justify-content: center; } .su-bar .su-btn { flex: 0 1 270px; } .su-bar .su-btn-ghost { flex: 0 1 150px; } }
.su-kb .su-bar { padding-bottom: 10px; }

/* Accueil */
.su-hero { text-align: left; }
.su-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.su-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); line-height: 1.4; }
.su-points li span { color: var(--green); font-weight: 800; }

/* Compte existant */
.su-exists { background: var(--peach); border-radius: 16px; padding: 14px; margin: -6px 0 14px; }
.su-exists p { margin: 0 0 10px; font-weight: 600; color: var(--orange-ink); }

/* Ville */
.su-chosen { display: flex; gap: 8px; align-items: center; background: var(--peach); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.su-chosen[hidden] { display: none; }
.su-results { list-style: none; margin: -8px 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.su-results[hidden] { display: none; }
.su-results button { display: block; width: 100%; text-align: left; min-height: 48px; padding: 12px 14px; background: #fff; border: 0; border-bottom: 1px solid var(--line); font: inherit; font-size: .95rem; cursor: pointer; }
.su-results li:last-child button { border-bottom: 0; }
.su-results button:active { background: var(--peach); }
#c-gps { width: 100%; margin-bottom: 16px; }

/* Photos */
.su-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.su-slot { position: relative; aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--sand); color: var(--muted); font-size: .78rem; font-weight: 600; text-align: center; cursor: pointer; overflow: hidden; padding: 6px; }
.su-slot.has { border: 0; padding: 0; cursor: default; }
.su-slot img { width: 100%; height: 100%; object-fit: cover; }
.su-slot input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.su-plus { font-size: 1.8rem; line-height: 1; color: var(--brand); }
.su-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.su-main { position: absolute; left: 6px; bottom: 6px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* Centres d'intérêt */
.su-count { font-weight: 600; font-size: .9rem; margin: 0 0 8px; color: var(--ink-2); }
.su-theme { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: #fff; }
.su-theme summary { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 600; cursor: pointer; list-style: none; }
.su-theme summary::-webkit-details-marker { display: none; }
.su-theme summary em { font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; font-size: .75rem; padding: 2px 8px; margin-left: auto; }
.su-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 14px; }
.su-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-size: .92rem; cursor: pointer; }
.su-chip.on { border-color: var(--brand); background: var(--peach); color: var(--orange-ink); font-weight: 700; }
#i-list > .su-chips { padding: 0; }
/* Profil social : trois questions sur une page. */
.su-social-q { border: 0; margin: 0 0 18px; padding: 0; }
.su-social-q legend { font-weight: 700; font-size: 1rem; margin-bottom: 10px; padding: 0; }
.su-social-q .su-chips { padding: 0; }

/* Récapitulatif */
.su-recap { margin: 14px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.su-recap div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.su-recap div:last-child { border-bottom: 0; }
.su-recap dt { color: var(--muted); }
.su-recap dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.su-live { background: var(--peach); border-radius: 16px; padding: 4px 14px; margin: 8px 0; }
.su-live[hidden] { display: none; }

/* Confirmation */
.su-done { text-align: center; }
.su-done .su-lead { text-align: left; }
.su-check { width: 68px; height: 68px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #7CB66A, var(--green)); }
.su-point { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--orange), var(--brand)); color: #fff; font-weight: 800; font-size: 1.15rem; }
.su-verify { text-align: left; background: var(--sand); border-radius: 16px; padding: 14px; }
.su-verify p { margin: 0 0 6px; font-size: .95rem; line-height: 1.45; }
.su-stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 12px; }
.su-stores .store-btn img { height: 50px; width: auto; }
.su-stores .store-btn-play img { height: 74px; margin: -12px -10px; }

@media (min-width: 700px) {
  .su-wrap { padding-top: 36px; }
  .su-screen { padding: 32px 32px 34px; }
}
@media (prefers-reduced-motion: reduce) { .su-progress span, .su-btn { transition: none; } }

/* Connexion Google / Apple */
.su-social { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.su-or { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: #7a6a5d; font-size: .85rem; }
.su-or::before, .su-or::after { content: ""; flex: 1; height: 1px; background: rgba(0, 0, 0, .12); }
.su-btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; background: #fff; color: #1f1f1f; border: 1.5px solid rgba(0, 0, 0, .18); font-weight: 600; }
.su-btn-apple { background: #000; color: #fff; border-color: #000; }
.su-btn-social:disabled { opacity: .6; }

/* Biographie */
.su-field textarea { width: 100%; min-height: 130px; padding: 12px 14px; font: inherit; font-size: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: inherit; resize: vertical; box-sizing: border-box; }
.su-count { text-align: right; margin: -4px 0 12px; }
.su-count.is-near { color: #d9480f; }
.su-sugg { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.su-sugg-item { text-align: left; padding: 12px 14px; font: inherit; font-size: .95rem; line-height: 1.4; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; color: inherit; }
.su-sugg-item:active { border-color: var(--orange-ink); }

/* Boutons App Store / Google Play sous le formulaire */
.su-stores { margin-top: 28px; padding: 22px 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; text-align: center; }
.su-stores h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-family: var(--font-display); letter-spacing: -.01em; }
.su-stores p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
