/* ==========================================================================
   1. CONFIG EASY-EDIT
   ========================================================================== */
:root {
  /* Effet Liquid / Glassmorphism */
  --glass-bg: rgba(15, 15, 20, 0.45);        /* Transparence de la carte */
  --glass-border: rgba(255, 255, 255, 0.12); /* Bordure lumineuse */
  --glass-blur: 5px;                         /* Niveau de floutage */
  --card-radius: 24px;                        /* Arrondi de la carte */

  /* Liens */
  --link-bg: rgba(255, 255, 255, 0.05);
  --link-hover-bg: rgba(139, 92, 246, 0.2);
  --link-hover-border: rgba(167, 139, 250, 0.5);

  /* Couleurs */
  --accent: #8b5cf6;
  --text: #ffffff;
  --muted: #a1a1aa;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: transparent; /* Permet d'éviter de masquer la vidéo */
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   3. VIDÉO DE FOND & OVERLAY
   ========================================================================== */
.bg-video {
  position: fixed;
  
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  z-index: -2;
  transform: translate(-50%, -50%); /* Centre la vidéo parfaitement sans l'étirer */
  object-fit: cover;
  pointer-events: none;
  filter: brightness(0.65) blur(3px); /* Ajuste la luminosité de la vidéo */
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45); /* Assombrit la vidéo */
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   4. ÉCRAN D'ENTRÉE (ENTER SCREEN)
   ========================================================================== */
.enter {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(15px);
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.enter.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-card { text-align: center; }

.enter-avatar {
  width: 80px;
  height: 80px;
  margin: auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #000);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.4);
}

.enter-title { margin-top: 16px; font-weight: 700; }
.enter-sub { margin-top: 6px; color: var(--muted); font-size: 13px; }

/* ==========================================================================
   5. CARTE PRINCIPALE (LIQUID GLASS)
   ========================================================================== */
.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 18px;
  position: relative;
  z-index: 2;
}

.profile-card {
  width: min(480px, 100%);
  padding: 36px 28px 24px;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Avatar & Statut */
.avatar-wrap {
  position: relative;
  width: 100px;
  margin: 0 auto;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.status {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  background: #22c55e;
  border: 3px solid #000;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

/* Identité */
.identity h1 { font-size: 26px; margin: 16px 0 2px; }
.handle { margin: 0; color: var(--muted); font-size: 13px; }

.verified {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  background: var(--accent);
  vertical-align: middle;
}

.bio { color: #d4d4d8; font-size: 14px; margin: 14px 0 20px; }

/* ==========================================================================
   6. LIENS
   ========================================================================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--link-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.link:hover {
  transform: translateY(-2px);
  background: var(--link-hover-bg);
  border-color: var(--link-hover-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.arrow { color: var(--muted); justify-self: end; }

/* ==========================================================================
   7. PARTICULES & BOUTON SON
   ========================================================================== */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-120vh); }
}

.sound {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
}

.stats { color: var(--muted); font-size: 12px; margin-top: 20px; }
footer { color: #52525b; font-size: 11px; margin-top: 16px; }