/* onboarding.css — Accueil guidé de la 1re arrivée + tuto ARL. */

.onb-overlay,
.onb-tuto-overlay {
  position: fixed; inset: 0; z-index: 9900;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .26s ease;
}
.onb-overlay.show,
.onb-tuto-overlay.show { opacity: 1; }
.onb-tuto-overlay { z-index: 9950; }

.onb-card,
.onb-tuto-card {
  width: 100%; max-width: 420px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: linear-gradient(180deg, #1e1e24 0%, #141418 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  transform: translateY(14px) scale(.985);
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
  text-align: center;
  color: #fff;
}
.onb-overlay.show .onb-card,
.onb-tuto-overlay.show .onb-tuto-card { transform: translateY(0) scale(1); }

/* Points de progression */
.onb-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 16px; }
.onb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); transition: all .25s ease;
}
.onb-dot.on { background: #1db954; width: 22px; border-radius: 6px; }

/* Logo rond */
.onb-logo {
  width: 66px; height: 66px; margin: 4px auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
  background: linear-gradient(135deg, #1db954, #159e45);
  color: #fff;
  box-shadow: 0 10px 26px rgba(29, 185, 84, .35);
}
.onb-logo.dz { background: linear-gradient(135deg, #a238ff, #7d1fd6); box-shadow: 0 10px 26px rgba(162, 56, 255, .35); }
.onb-logo.ok { background: linear-gradient(135deg, #1db954, #12833a); }

.onb-card h2, .onb-tuto-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.onb-tuto-card h3 { font-size: 1.15rem; }
.onb-sub { margin: 0 0 16px; color: #b3b3b3; font-size: .92rem; line-height: 1.5; }
.onb-mini { margin: 0 0 4px; color: #b3b3b3; font-size: .82rem; line-height: 1.45; }

/* Liste des atouts (étape 1) */
.onb-feat { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; text-align: left; }
.onb-feat-row {
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; color: #e6e6e6;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px; padding: 11px 13px;
}
.onb-feat-row span { font-size: 1.2rem; }

/* Formulaires */
.onb-form { display: flex; flex-direction: column; gap: 9px; text-align: left; margin-bottom: 10px; }
.onb-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px; padding: 12px 14px;
  color: #fff; font-size: .92rem; outline: none;
  transition: border-color .18s;
}
.onb-input:focus { border-color: #1db954; }
.onb-input::placeholder { color: #8a8a8a; }

.onb-err { color: #ff6b6b; font-size: .82rem; display: none; }

.onb-links {
  display: flex; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; font-size: .8rem; margin-top: 2px;
}
.onb-links a { color: #a238ff; cursor: pointer; text-decoration: none; }
.onb-links a:hover { text-decoration: underline; }
.onb-links a:last-child { color: #9a9a9a; }

/* Boutons */
.onb-btn {
  width: 100%; box-sizing: border-box;
  border: none; border-radius: 999px;
  padding: 13px 18px; margin-top: 8px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: transform .12s ease, filter .18s ease, background .18s ease;
}
.onb-btn:active { transform: scale(.98); }
.onb-btn.primary { background: #1db954; color: #04140a; }
.onb-btn.primary:hover { filter: brightness(1.08); }
.onb-btn.primary:disabled { opacity: .6; cursor: default; }
.onb-btn.ghost { background: transparent; color: #b3b3b3; font-weight: 600; }
.onb-btn.ghost:hover { color: #fff; }

/* Étape iPhone / tuto : pastilles numérotées + icône */
.onb-ios, .onb-tuto-step { text-align: left; }
.onb-ios { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 18px; }
.onb-ios-step, .onb-tuto-step {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px; padding: 12px 13px;
  font-size: .88rem; color: #e6e6e6; line-height: 1.4;
}
.onb-tuto-step { margin-bottom: 9px; align-items: flex-start; }
.onb-ios-step .n, .onb-tuto-step .n {
  flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: #1db954; color: #04140a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem;
}
.onb-ios-step svg { flex: 0 0 auto; width: 24px; height: 24px; fill: #a238ff; }

.onb-tuto-note {
  text-align: left; font-size: .82rem; color: #d0c2ea;
  background: rgba(162, 56, 255, .12);
  border: 1px solid rgba(162, 56, 255, .25);
  border-radius: 10px; padding: 10px 12px; margin: 6px 0 4px; line-height: 1.45;
}

/* Confort mobile */
@media (max-width: 480px) {
  .onb-card, .onb-tuto-card { padding: 22px 18px 18px; border-radius: 18px; }
  .onb-card h2 { font-size: 1.2rem; }
}
