/* Veloria — expérience joueur (événements, parcours) */
.xp-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.xp-hero {
  margin-bottom: 1.75rem;
}

.xp-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.xp-lead {
  color: var(--muted, #94a3b8);
  max-width: 42rem;
  line-height: 1.55;
}

.xp-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4ade80;
}

.xp-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: xp-pulse 2s infinite;
}

@keyframes xp-pulse {
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.xp-muted {
  color: var(--muted, #94a3b8);
  font-size: 0.9rem;
  line-height: 1.45;
}

.xp-section h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.xp-spotlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius, 12px);
}

.xp-spotlight-icon {
  font-size: 2rem;
  line-height: 1;
}

.xp-spotlight-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0;
}

.xp-tag {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.xp-events-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.xp-event-card {
  padding: 1.1rem;
  border-radius: var(--radius, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.xp-event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.xp-event-emoji {
  font-size: 1.4rem;
}

.xp-event-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.xp-event-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.xp-event-when {
  font-size: 0.85rem;
  color: #c4b5fd;
  margin-bottom: 0.5rem;
}

.xp-location {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

.xp-cta {
  margin-top: 2rem;
  padding: 1.25rem;
}

.xp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* Parcours (espace membre) */
.parcours-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.parcours-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.75rem 0 0.35rem;
}

.parcours-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.parcours-stats {
  font-size: 0.8rem;
  color: var(--muted);
}

.parcours-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.15);
  color: #86efac;
  white-space: nowrap;
}

.parcours-badge--done {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.parcours-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.parcours-step {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.parcours-step:last-child {
  border-bottom: none;
}

.parcours-step.done {
  opacity: 0.75;
}

.parcours-check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.parcours-step.done .parcours-check {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.parcours-link {
  font-size: 0.85rem;
  color: #a78bfa;
  text-decoration: none;
}

.parcours-careers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.parcours-career {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.parcours-career:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
}

.parcours-career-emoji {
  font-size: 1.4rem;
}

.parcours-events-mini {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.parcours-events-mini li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.parcours-tips ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Accueil — bandeau & aperçu événements */
.landing-newcomer {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.1);
  text-align: center;
}

.landing-newcomer p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.landing-events-preview {
  margin-top: 1rem;
}

.landing-events-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.landing-event-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
}

.landing-event-mini:hover {
  border-color: rgba(139, 92, 246, 0.35);
}

.landing-event-mini strong {
  font-size: 0.95rem;
}

.landing-event-mini span {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .parcours-hero {
    flex-direction: column;
  }
  .landing-event-mini {
    flex-direction: column;
    align-items: flex-start;
  }
}
