/* Onboarding (onboarding.js). Aplats, pas de dégradé. */

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: #08090b;
  color: var(--text, #f4f7ee);
}

.onboarding[hidden] {
  display: none;
}

.ob-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(32rem, 100%);
  height: 100%;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}

.ob-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem 0.4rem;
}

.ob-back {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: #17191e;
  border: 0;
  border-radius: 50%;
  color: inherit;
}

.ob-back svg,
.ob-ic svg,
.ob-check svg,
.ob-bullets svg,
.ob-done svg,
.ob-prep-steps svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ob-progress {
  flex: 1;
  height: 0.3rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.ob-progress i {
  display: block;
  height: 100%;
  background: var(--accent, #7bf1a8);
  border-radius: 999px;
  transition: width 300ms ease;
}

.ob-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.2rem 1.3rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.ob-body h2 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
}

.ob-sub {
  margin: 0 auto 1.3rem;
  max-width: 24rem;
  color: var(--muted, #9aa3b2);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.ob-foot {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem 1.3rem 1rem;
}

.ob-cta {
  width: 100%;
  min-height: 3.4rem;
  background: var(--accent, #7bf1a8);
  border: 0;
  border-radius: 999px;
  color: var(--accent-ink, #0e1410);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  transition: opacity 200ms ease;
}

.ob-cta:disabled {
  opacity: 0.35;
}

.ob-link {
  padding: 0.6rem;
  background: none;
  border: 0;
  color: var(--text, #fff);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Accueil */
.ob-s-welcome .ob-body {
  display: grid;
  align-content: end;
}

.ob-hero {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}

.ob-hero-figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: min(16rem, 66%);
  margin-bottom: 0.2rem;
}

.ob-logo {
  width: 3.6rem;
  height: 3.6rem;
}

.ob-hero h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ob-hero p {
  margin: 0;
  max-width: 22rem;
  color: var(--muted, #9aa3b2);
  font-size: 1rem;
  line-height: 1.45;
}

/* Sexe */
.ob-sex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.ob-sex-card {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  padding: 0.9rem 0.6rem;
  background: #111317;
  border: 2px solid transparent;
  border-radius: 22px;
  color: var(--muted, #9aa3b2);
  font: inherit;
  font-weight: 750;
}

.ob-sex-card .bd-fig {
  width: 82%;
}

.ob-sex-card.on {
  border-color: var(--accent, #7bf1a8);
  color: var(--text, #fff);
}

/* Objectifs */
.ob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.ob-tile {
  position: relative;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  padding: 1.2rem 0.6rem;
  background: #17191e;
  border: 2px solid transparent;
  border-radius: 20px;
  color: var(--text, #fff);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

.ob-tile.on {
  border-color: var(--accent, #7bf1a8);
  background: #1b1e24;
}

.ob-tile em {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  color: var(--accent, #7bf1a8);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.ob-emoji {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  background: #23262d;
  border-radius: 50%;
  font-size: 1.7rem;
}

.ob-emoji.sm {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.15rem;
}

/* Valeur */
.ob-value-figs,
.ob-figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  width: min(20rem, 88%);
  margin: 0 auto 1.2rem;
}

.ob-bullets {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ob-bullets li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted, #9aa3b2);
  line-height: 1.45;
}

.ob-bullets li b {
  color: var(--text, #fff);
}

.ob-bullets svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent, #7bf1a8);
}

/* Zones */
.ob-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.ob-chips button {
  padding: 0.6rem 1rem;
  background: #17191e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text, #fff);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
}

.ob-chips button.on {
  background: #fff;
  border-color: #fff;
  color: #0b0c10;
}

/* Listes (expérience, jours, matériel, source) */
.ob-list {
  display: grid;
  gap: 0.6rem;
}

.ob-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 3.6rem;
  padding: 0.8rem 1rem;
  background: #17191e;
  border: 2px solid transparent;
  border-radius: 16px;
  color: var(--text, #fff);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  text-align: left;
}

.ob-row > span:first-child,
.ob-row > span:nth-child(2):last-child {
  flex: 1;
}

.ob-row.on {
  border-color: var(--accent, #7bf1a8);
  background: #1b1e24;
}

.ob-row em {
  margin-left: auto;
  color: var(--muted, #9aa3b2);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
}

.ob-row em.hl {
  color: var(--accent, #7bf1a8);
}

.ob-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: none;
}

.ob-bars i {
  width: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.ob-bars i:nth-child(1) { height: 6px; }
.ob-bars i:nth-child(2) { height: 9px; }
.ob-bars i:nth-child(3) { height: 12px; }
.ob-bars i:nth-child(4) { height: 15px; }
.ob-bars i:nth-child(5) { height: 18px; }

.ob-bars i.on {
  background: var(--accent, #7bf1a8);
}

.ob-gear .ob-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  background: #23262d;
  border-radius: 12px;
}

.ob-gear > span:nth-child(2) {
  flex: 1;
}

.ob-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: transparent;
}

.ob-check svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 3;
}

.ob-gear.on .ob-check {
  background: var(--accent, #7bf1a8);
  border-color: var(--accent, #7bf1a8);
  color: var(--accent-ink, #0e1410);
}

.ob-src > span:nth-child(2) {
  flex: 1;
}

/* Molette */
.ob-wheel-value {
  margin: 0.4rem 0 1rem;
  color: var(--muted, #9aa3b2);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.ob-wheel-value b {
  color: var(--text, #fff);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ob-wheel {
  position: relative;
  width: min(12rem, 70%);
  height: 240px;
  margin: 0 auto;
}

.ob-wheel-band {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  height: 48px;
  background: #1b1e24;
  border-radius: 14px;
  pointer-events: none;
}

.ob-wheel-list {
  position: relative;
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.ob-wheel-list::-webkit-scrollbar {
  display: none;
}

.ob-wheel-pad {
  height: 96px;
}

.ob-wheel-item {
  display: grid;
  place-items: center;
  height: 48px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.35rem;
  font-weight: 700;
  scroll-snap-align: start;
  cursor: pointer;
}

.ob-wheel-item.on {
  color: var(--text, #fff);
  font-size: 1.6rem;
  font-weight: 850;
}

/* Consentement */
.ob-consent p {
  margin: 0 0 0.9rem;
  color: var(--muted, #9aa3b2);
  line-height: 1.5;
}

.ob-consent-btns {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.ob-consent-btns .ob-row {
  justify-content: center;
  text-align: center;
}

/* Compte */
.ob-form {
  display: grid;
  gap: 0.7rem;
}

.ob-form .ob-cta {
  margin-top: 0.4rem;
}

.ob-s-account .au-legal {
  margin-top: 0.9rem;
  text-align: center;
}

/* Préparation */
.ob-center {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
}

.ob-ring {
  position: relative;
  width: 9rem;
  height: 9rem;
}

.ob-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ob-ring circle {
  fill: none;
  stroke-width: 9;
}

.ob-ring .track {
  stroke: rgba(255, 255, 255, 0.08);
}

.ob-ring .bar {
  stroke: var(--accent, #7bf1a8);
  stroke-linecap: round;
}

.ob-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 850;
}

.ob-prep-steps {
  display: grid;
  gap: 0.6rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.ob-prep-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 650;
  transition: color 250ms ease;
}

.ob-prep-steps li svg {
  color: transparent;
  transition: color 250ms ease;
}

.ob-prep-steps li.done {
  color: var(--text, #fff);
}

.ob-prep-steps li.done svg {
  color: var(--accent, #7bf1a8);
}

/* Prêt */
.ob-done {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin: 1rem auto 0.4rem;
  border: 3px solid var(--accent, #7bf1a8);
  border-radius: 50%;
  color: var(--accent, #7bf1a8);
}

.ob-done svg {
  width: 2.4rem;
  height: 2.4rem;
  stroke-width: 2.6;
}

.ob-week {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ob-week-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: #17191e;
  border-radius: 16px;
}

.ob-week-row > span:last-child {
  display: grid;
  gap: 0.1rem;
}

.ob-week-row small {
  color: var(--muted, #9aa3b2);
  font-size: 0.8rem;
}

.ob-day {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  background: rgba(var(--tone), 0.16);
  border-radius: 12px;
  color: rgb(var(--tone));
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ob-targets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ob-targets div {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.4rem;
  background: #17191e;
  border-radius: 16px;
  text-align: center;
}

.ob-targets b {
  font-size: 1.2rem;
  font-weight: 850;
}

.ob-targets span {
  color: var(--muted, #9aa3b2);
  font-size: 0.75rem;
}
