/* ODWAY · Pages compte (connexion, bienvenue, mon espace)
   Reprend les couleurs et formes de la page d'accueil v2. */
:root {
  --ink: #2a1150;
  --muted: #6b5f86;
  --soft: #8a7fa3;
  --accent: #6424e4;
  --accent-dark: #5203ad;
  --accent-shadow: #4a1aa8;
  --tint: #f9f6ff;
  --tint-2: #f2ecff;
  --line: #efe8ff;
  --line-2: #e6def9;
  --good: #0f7b5f;
  --good-bg: #e8f7f1;
  --bad: #b42318;
  --bad-bg: #fdecea;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink); background: linear-gradient(180deg, var(--tint) 0%, #fff 420px);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* En-tête */
.ac-hd { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.ac-hd-in { max-width: 1040px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ac-hd img { width: 34px; height: 34px; object-fit: contain; display: block; }
.ac-hd nav { display: flex; gap: 18px; align-items: center; font-size: 15px; font-weight: 500; }
.ac-hd nav a, .ac-hd nav button { color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 6px 2px; }
.ac-hd nav a:hover, .ac-hd nav button:hover { color: var(--accent); }

/* Mise en page */
.ac-main { max-width: 1040px; margin: 0 auto; padding: 40px 20px 80px; }
.ac-narrow { max-width: 460px; margin: 0 auto; }
.ac-card { background: #fff; border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; box-shadow: 0 24px 50px -32px rgba(82,3,173,.35); }
@media (max-width: 520px) { .ac-card { padding: 22px 18px; border-radius: 18px; } .ac-main { padding-top: 28px; } }

h1 { font-size: clamp(26px, 5vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; margin: 0 0 10px; text-wrap: balance; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 600; margin: 0 0 14px; }
.ac-lead { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; }
.ac-small { font-size: 13px; line-height: 1.5; color: var(--soft); }
.ac-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #a184f8; margin: 0 0 8px; }

/* Boutons */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 14px 20px; border-radius: 12px; border: 0; cursor: pointer; font: 600 16px/1.2 'Poppins', system-ui, sans-serif; text-decoration: none; background: var(--accent); color: #fff; box-shadow: 0 2px 0 var(--accent-shadow); transition: background .15s, transform .15s; }
.ac-btn:hover { background: var(--accent-dark); color: #fff; }
.ac-btn:active { transform: translateY(1px); }
.ac-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ac-btn.ghost { background: #fff; color: var(--accent-dark); border: 2px solid #ded6f9; box-shadow: none; }
.ac-btn.ghost:hover { border-color: #a184f8; background: var(--tint); }
.ac-btn.inline { width: auto; }
.ac-btn.danger { background: var(--bad); box-shadow: none; }
.ac-btn.danger:hover { background: #8f1c13; }
.ac-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ac-google { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: none; }
.ac-google:hover { background: var(--tint); color: var(--ink); border-color: #cbbdf5; }
.ac-google svg { width: 20px; height: 20px; }

/* Champs */
.ac-field { display: grid; gap: 7px; margin-bottom: 16px; }
.ac-field label, .ac-legend { font-size: 14px; font-weight: 600; }
.ac-input, .ac-select { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: 400 16px 'Poppins', system-ui, sans-serif; }
.ac-input:focus, .ac-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(100,36,228,.14); }
.ac-input.code { letter-spacing: .5em; text-align: center; font-size: 22px; font-weight: 600; }
.ac-hint { font-size: 13px; color: var(--soft); }
.ac-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--soft); font-size: 13px; }
.ac-sep::before, .ac-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Choix (cartes radio / cases) */
.ac-choices { display: grid; gap: 10px; margin-bottom: 18px; border: 0; padding: 0; }
.ac-choices.two { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ac-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.ac-choice:hover { border-color: #cbbdf5; }
.ac-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ac-choice .ic { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--tint-2); display: grid; place-items: center; font-size: 19px; }
.ac-choice b { display: block; font-size: 15px; font-weight: 600; }
.ac-choice small { display: block; font-size: 13px; color: var(--muted); }
.ac-choice:has(input:checked) { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 1px var(--accent) inset; }
.ac-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; border: 0; padding: 0; }
.ac-pill { position: relative; }
.ac-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ac-pill span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; }
.ac-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.ac-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; margin-bottom: 14px; cursor: pointer; }
.ac-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }

/* Messages */
.ac-msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.ac-msg.err { background: var(--bad-bg); color: var(--bad); }
.ac-msg.ok { background: var(--good-bg); color: var(--good); }
.ac-msg.info { background: var(--tint-2); color: var(--accent-dark); }
.ac-dev { max-width: 1040px; margin: 16px auto 0; padding: 12px 16px; border-radius: 12px; background: #fff4d6; color: #7a4b00; font-size: 14px; border: 1px solid #f3d27a; }

/* Progression */
.ac-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.ac-progress i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.ac-progress i.on { background: var(--accent); }
.ac-step { display: none; }
.ac-step.on { display: block; animation: acrise .25s ease-out; }
.ac-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.ac-actions .ac-btn { flex: 1; }
.ac-actions .ac-back { flex: 0 0 auto; }
@keyframes acrise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ac-step.on { animation: none; } }

.ac-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: acspin .8s linear infinite; margin: 30px auto; }
@keyframes acspin { to { transform: rotate(360deg); } }
