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

body,
html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: white;
}

/* Canvas de fond */
canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: black;
}

/* Zone centrale */
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #7289da;
  transition: transform 0.3s;
}

.avatar:hover {
  transform: scale(1.1);
}

.username {
  font-size: 2em;
  font-weight: bold;
  margin-top: 15px;
}

.status {
  margin-top: 5px;
  font-size: 1em;
  opacity: 0.8;
}

.subtitle {
  margin-top: 10px;
  font-size: 1.1em;
  color: #ccc;
}

/* Barre réseaux sociaux */
.socials {
  position: absolute;
  top: 50%;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(-50%);
}

.socials img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.3s;
}

.socials img:hover {
  transform: scale(1.2);
}

/* Lecteur audio */
.player {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
}

.next-track {
  margin-top: 5px;
  font-size: 0.9em;
  color: #aaa;
  text-align: center;
}

/* Heure/date + compteur */
.footer-left {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 0.9em;
  color: #aaa;
}

.footer-right {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 0.9em;
  color: #aaa;
}

/* Message bienvenue */
.welcome {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2em;
  font-weight: bold;
  opacity: 0;
  animation: fadeSlide 2s forwards;
}

/* Animations */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .socials {
    right: 10px;
    gap: 10px;
  }

  .socials img {
    width: 35px;
    height: 35px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .username {
    font-size: 1.5em;
  }

  .welcome {
    font-size: 1.5em;
  }
}
