* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
}

html {
  background: #000;
}

/* ---------- Fond vidéo ---------- */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

/* ---------- Scène 3D ---------- */
.scene {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* ---------- Card glassmorphism ---------- */
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  width: 360px;
  max-width: 90vw;
  padding: 40px 30px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  text-align: center;
}

/* reflet lumineux qui suit le curseur */
.card-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.28),
    transparent 55%
  );
}

.card-content {
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.1);
}

h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bio {
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Boutons ---------- */
.links {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.btn svg {
  width: 26px;
  height: 26px;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-5px) scale(1.08);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ---------- Bulle Discord ---------- */
.bubble {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.9);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  background: #000;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* petite flèche */
.bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #000;
  transform: translate(-50%, -50%) rotate(45deg);
}

.discord:hover .bubble,
.discord:focus-visible .bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.verified {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Bloc vues (fixe, haut droite) ---------- */
.views-widget {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Cercle de l'icône (centrage parfait) */
.views-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.views-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.views-count {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Bloc son (fixe, bas droite) ---------- */
.sound-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Barre de volume */
.sound-slider {
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    #fff 0%,
    #fff var(--fill),
    rgba(255, 255, 255, 0.25) var(--fill),
    rgba(255, 255, 255, 0.25) 100%
  );
}

.sound-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.sound-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.sound-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sound-slider::-moz-range-track {
  background: transparent;
}

.sound-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.sound-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.sound-btn:active {
  transform: scale(0.95);
}

.sound-btn svg {
  width: 20px;
  height: 20px;
}

.sound-btn .icon-on { display: none; }
.sound-btn.on .icon-on { display: block; }
.sound-btn.on .icon-off { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 420px) {
  .links { gap: 10px; }
  .btn { width: 50px; height: 50px; }
  .views-widget { top: 16px; right: 16px; }
}
