/* --- Variables & Reset --- */
:root {
  --bg-color: #05060b;
  --text-color: #e6edf7;
  --accent-color: #7c3aed; /* Violet néon */
  --accent-glow: rgba(124, 58, 237, 0.4);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(10, 11, 16, 0.65);
}

.profile-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-family: 'Inter', sans-serif; /* Ou ta police par défaut */
  overflow-x: hidden;
  
  /* Fond étoiles dynamiques */
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 80% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.5), transparent);
  background-size: 500px 500px;
  animation: spaceDrift 60s linear infinite;
}

/* Ajout d'une texture "Scanline" par dessus tout l'écran */
.profile-body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

/* --- Animation Fond --- */
@keyframes spaceDrift {
  from { background-position: 0 0; }
  to { background-position: 100px 100px; }
}

/* --- Topbar (inchangé mais modernisé) --- */
.topbar {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  background: rgba(5, 6, 11, 0.8);
  backdrop-filter: blur(10px); /* Effet flou */
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar .brand {
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.topbar__spacer { flex: 1; }

.topbar__link {
  color: #c3b4ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.topbar__link:hover { color: #fff; text-shadow: 0 0 5px #c3b4ff; }

/* --- Page Content --- */
.profile-page {
  padding-top: 40px;
  padding-bottom: 40px;
  max-width: 800px; /* Plus étroit pour la lecture */
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.profile-page h1 {
  margin: 0 0 20px;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Petit indicateur vert "Online" à côté du titre */
.profile-page h1::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

/* --- Bloc JSON (La Star) --- */
.profile-json {
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  
  /* Glassmorphism */
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  /* Bordure brillante subtile */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.2), 
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(124, 58, 237, 0.05); /* Lueur interne violette */

  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace; /* Police code moderne */
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a5b3ce; 
  overflow: auto;
  max-height: calc(100vh - 200px);
  
  /* Scrollbar custom */
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

/* Syntaxe : Clés et valeurs (géré par un petit hack ou juste couleur unie) */
.profile-json {
  color: #93c5fd; /* Bleu clair tech */
}

/* Curseur clignotant à la fin du texte (géré par CSS pseudo-element si on veut) */
.typing-cursor::after {
  content: '▋';
  display: inline-block;
  vertical-align: bottom;
  animation: blink 1s step-start infinite;
  color: var(--accent-color);
}

@keyframes blink { 50% { opacity: 0; } }
