/* Parcours de démarrage (#/demarrer) et paywall : voir onboarding.js */

/* Plein écran : pas de barre latérale ni de barre mobile */
body.is-onboarding .sidebar, body.is-onboarding .mobilebar { display: none; }
body.is-onboarding .shell-main { background: radial-gradient(70% 50% at 50% 0%, rgba(143, 211, 255, .22), transparent 70%), var(--bg-alt); }
body.is-onboarding .container { max-width: none; padding: 0 0 80px; }

.ob { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.ob-top { width: 100%; max-width: 1100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; }
.ob-skip { color: var(--muted); font-size: 14px; text-decoration: none; }
.ob-skip:hover { color: var(--text); }

.ob-card {
  width: min(640px, calc(100% - 32px)); margin-top: 6vh; padding: 36px; display: flex; flex-direction: column; gap: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-soft);
  animation: ob-in .45s var(--ease);
}
@keyframes ob-in { from { opacity: 0; transform: translateY(12px); } }
.ob-card h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.035em; line-height: 1.1; }
.ob-card .lead { margin: -12px 0 0; color: var(--muted); }
.ob-steps { margin: 0 0 -12px; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #1f87c9; }
.ob-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: -6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.ob-back:hover { color: var(--text); }
.ob-back svg { width: 16px; height: 16px; }

/* Étape 1 : deux grandes options */
.ob-options { display: grid; gap: 12px; }
.ob-option {
  display: flex; align-items: center; gap: 16px; padding: 20px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.ob-option:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.ob-option .wc-icon { flex: none; width: 48px; height: 48px; }
.ob-option-text { flex: 1; display: grid; gap: 4px; }
.ob-option-text strong { font-size: 18px; letter-spacing: -.02em; }
.ob-option-text span { color: var(--muted); font-size: 14px; }
.ob-option-go { flex: none; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.ob-option:hover .ob-option-go { color: var(--text); transform: translateX(3px); }

/* Champs */
.ob-field { display: grid; gap: 8px; }
.ob-input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.ob-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft); }
.ob-submit { align-self: flex-end; }
.ob-submit svg { width: 18px; height: 18px; }
.ob .form-error { margin: -8px 0 0; }

/* ---------- Paywall ---------- */
.paywall {
  width: min(980px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 34px 28px 24px; border: 0; overflow-y: auto;
  border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(10, 10, 10, .45);
}
.paywall::backdrop { background: rgba(10, 10, 10, .55); backdrop-filter: blur(3px); }
.paywall[open] { animation: modal-in .35s var(--ease); }
.pw-x { position: absolute; top: 14px; right: 18px; }
.pw-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pw-mascot { width: 84px; height: 84px; object-fit: contain; animation: pw-bob 3s ease-in-out infinite; }
@keyframes pw-bob { 50% { transform: translateY(-5px); } }
.pw-head h2 { margin: 4px 0 0; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.035em; }
.pw-head p { margin: 0; color: var(--muted); }
.pw-recap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.pw-recap span { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: #0b5c8f; font-size: 13px; font-weight: 600; }

.pw-periods { display: flex; gap: 4px; width: max-content; margin: 22px auto; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pw-period { border: 0; background: transparent; color: var(--muted); font-weight: 650; padding: 8px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pw-period.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(10, 10, 10, .1); }
.pw-save { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }

.pw-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pw-plan { position: relative; display: flex; flex-direction: column; padding: 24px 20px; border: 1px solid var(--line); border-radius: 18px; }
.pw-plan.pop { border: 2px solid var(--text); padding: 23px 19px; }
.pw-pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 12px; border-radius: 99px; background: var(--accent); font-size: 12px; font-weight: 700; }
.pw-plan h3 { margin: 0; font-size: 18px; }
.pw-for { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.pw-price { margin: 14px 0 0; display: flex; align-items: baseline; }
.pw-amount { font-size: 40px; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.pw-cur { font-size: 20px; font-weight: 700; }
.pw-per { color: var(--muted); margin-left: 5px; font-size: 14px; }
.pw-billed { color: var(--muted); font-size: 12px; margin: 4px 0 16px; }
.pw-choose { width: 100%; padding: 11px 18px; }
.pw-videos { display: grid; gap: 2px; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; color: #0b5c8f; }
.pw-videos strong { font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.pw-credits { color: var(--muted); font-size: 12px; margin-top: 2px; }
.pw-feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.pw-feats li { position: relative; padding-left: 24px; }
.pw-feats li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%230a0a0a' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pw-note { margin: 18px auto 0; max-width: 560px; text-align: center; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: #0b5c8f; font-size: 14px; }
.pw-foot { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .ob-top { padding: 16px; }
  .ob-card { padding: 24px 20px; margin-top: 2vh; }
  .ob-submit { align-self: stretch; }
  .paywall { padding: 28px 16px 18px; }
  .pw-plans { grid-template-columns: 1fr; gap: 18px; }
  .pw-plan.pop { order: -1; }
}

/* ---------- Connexion (auth.js) : même cadre que le parcours de démarrage ---------- */
.auth-card { width: min(440px, calc(100% - 32px)); gap: 18px; text-align: left; }
.auth-mascot { align-self: center; width: 72px; height: 72px; object-fit: contain; margin-bottom: -6px; animation: pw-bob 3s ease-in-out infinite; }
.auth-card h1 { text-align: center; font-size: clamp(26px, 3.4vw, 32px); }
.auth-card .lead { text-align: center; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-link, .auth-switch a { color: #1f87c9; font-size: 13px; font-weight: 600; text-decoration: none; }
.auth-link:hover, .auth-switch a:hover { text-decoration: underline; }
.auth-submit { align-self: stretch; }
.auth-message { margin: -4px 0 0; padding: 10px 12px; border-radius: 12px; background: #fdecec; color: var(--err); font-size: 14px; }
.auth-message.ok { background: var(--accent-soft); color: #0b5c8f; }
.auth-switch { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { font-size: 14px; }
.auth-code { text-align: center; font-size: 28px; font-weight: 700; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.auth-code::placeholder { color: #cfcfca; font-weight: 600; }
.auth-resend { font-size: 14px; color: #1f87c9; font-weight: 600; text-decoration: none; }
.auth-resend:disabled { color: var(--muted); cursor: default; text-decoration: none; }
