/* ═══════ MODULE PASSE DE SAISON ═══════
   Palette partagée : ivoire #faf6ee / or #e0b96f sur gris sombre, cartes
   rgba(26,20,16,0.7) bordure or 0.18, opacités texte ≥ 0.72, vert #7cc59a pour
   « acquis ». Classes préfixées .sp- pour éviter les collisions. */

.sp-wrap { display: flex; flex-direction: column; gap: 1.3rem; color: #faf6ee; }

.sp-head { margin-bottom: 0.2rem; }
.sp-title { font-family: 'Fraunces', serif; font-size: clamp(1.5rem, 4vw, 2.1rem); color: #e0b96f; margin: 0 0 0.3rem; }
.sp-sub { color: rgba(250, 246, 238, 0.8); margin: 0; max-width: 62ch; line-height: 1.55; font-size: 0.94rem; }

/* ── Bandeau saison + XP ── */
.sp-hero {
  background: linear-gradient(135deg, rgba(224, 185, 111, 0.14), rgba(0, 0, 0, 0.28));
  border: 1px solid rgba(224, 185, 111, 0.32);
  border-radius: 20px; padding: clamp(1.2rem, 3vw, 1.7rem);
}
.sp-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sp-hero__season { font-family: 'Fraunces', serif; font-size: 1.25rem; color: #e0b96f; font-weight: 700; }
.sp-hero__reset { margin: 0.3rem 0 0; font-size: 0.82rem; color: rgba(250, 246, 238, 0.74); }
.sp-hero__tier { text-align: right; display: flex; align-items: baseline; gap: 0.3rem; }
.sp-hero__tier b { font-family: 'Fraunces', serif; font-size: 2.2rem; color: #e0b96f; line-height: 1; }
.sp-hero__tier span { font-size: 0.9rem; color: rgba(250, 246, 238, 0.72); }

.sp-xp { margin-top: 1.1rem; }
.sp-xp__bar { height: 12px; border-radius: 100px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.sp-xp__bar i {
  display: block; height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, #e0b96f, #b8924f);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-xp__label { margin: 0.55rem 0 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: rgba(250, 246, 238, 0.82); }
.sp-xp__label span:first-child { font-family: 'Fraunces', serif; color: #e0b96f; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-xp__label b { color: #e0b96f; }

/* ── Avis (déconnecté / hors-ligne) ── */
.sp-notice {
  margin: 0; background: rgba(224, 185, 111, 0.12); border: 1px solid rgba(224, 185, 111, 0.35);
  border-radius: 12px; padding: 0.8rem 1rem; color: rgba(250, 246, 238, 0.9); font-size: 0.9rem;
}

/* ── Bandeau Premium (honnête) ── */
.sp-premium {
  margin: 0; border-radius: 14px; padding: 0.9rem 1.1rem; line-height: 1.55;
  background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(224, 185, 111, 0.22);
  color: rgba(250, 246, 238, 0.86); font-size: 0.9rem;
}
.sp-premium b { color: #e0b96f; }
.sp-premium__honest { display: inline-block; color: rgba(250, 246, 238, 0.72); font-size: 0.84rem; }
.sp-premium.is-active {
  background: rgba(124, 197, 154, 0.1); border-color: rgba(124, 197, 154, 0.4);
}
.sp-premium.is-active b { color: #7cc59a; }

/* ── Liste des paliers ── */
.sp-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.sp-tiers__head, .sp-tier {
  display: grid; grid-template-columns: 3rem 1fr 1.3fr; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.8rem;
}
.sp-tiers__head {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(250, 246, 238, 0.72); border-bottom: 1px solid rgba(224, 185, 111, 0.14); padding-bottom: 0.6rem;
}
.sp-tier {
  background: rgba(26, 20, 16, 0.7); border: 1px solid rgba(224, 185, 111, 0.14);
  border-radius: 12px; transition: border-color 0.2s, background 0.2s;
}
.sp-tier.is-reached { border-color: rgba(224, 185, 111, 0.3); }
.sp-tier.is-jalon { background: linear-gradient(135deg, rgba(224, 185, 111, 0.12), rgba(26, 20, 16, 0.7)); border-color: rgba(224, 185, 111, 0.4); }

.sp-tier__num {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.05rem;
  color: rgba(250, 246, 238, 0.82); text-align: center; white-space: nowrap;
}
.sp-tier.is-jalon .sp-tier__num { color: #e0b96f; }
.sp-tier__star { color: #e0b96f; font-size: 0.8rem; }

.sp-tier__free, .sp-tier__prem { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; min-width: 0; }
.sp-tiers__head .sp-tier__free, .sp-tiers__head .sp-tier__prem { font-weight: 700; }

.sp-free__label { font-weight: 700; color: #e0b96f; font-size: 0.9rem; white-space: nowrap; }
.sp-coin { color: #e0b96f; }
.sp-free__done { color: #7cc59a; font-weight: 600; font-size: 0.85rem; }
.sp-free__pending { color: rgba(250, 246, 238, 0.76); font-size: 0.82rem; }
.sp-free__locked { color: rgba(250, 246, 238, 0.5); }
.sp-claim { padding: 0.35rem 0.9rem; font-size: 0.82rem; }

.sp-prem__owned { color: #7cc59a; font-weight: 600; font-size: 0.86rem; }
.sp-prem__soon { color: rgba(250, 246, 238, 0.82); font-size: 0.86rem; }
.sp-prem__lock { color: rgba(250, 246, 238, 0.62); font-size: 0.84rem; }
.sp-prem__lock em {
  font-style: normal; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: #e0b96f; background: rgba(224, 185, 111, 0.14); border: 1px solid rgba(224, 185, 111, 0.3);
  border-radius: 100px; padding: 0.1rem 0.5rem; margin-left: 0.2rem;
}

.sp-foot {
  margin: 0; text-align: center; font-size: 0.82rem; line-height: 1.55;
  color: rgba(250, 246, 238, 0.74); border-top: 1px solid rgba(224, 185, 111, 0.14); padding-top: 1rem;
}

/* ── États (chargement / erreur) ── */
.sp-state {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 2rem 1rem; text-align: center; color: rgba(250, 246, 238, 0.82);
}
.sp-state p { margin: 0; }
.sp-state--err p { color: #f0a86f; }
.sp-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(224, 185, 111, 0.25); border-top-color: #e0b96f;
  animation: sp-spin 0.8s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .sp-tiers__head, .sp-tier { grid-template-columns: 2.2rem 1fr; }
  .sp-tier__prem, .sp-tiers__head .sp-tier__prem { grid-column: 1 / -1; margin-left: 2.9rem; }
  .sp-hero__top { flex-direction: column; }
  .sp-hero__tier { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-xp__bar i { transition: none; }
  .sp-spinner { animation-duration: 1.6s; }
}
