body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url("images/bg.png");
  background-attachment: fixed;
  color: white;
  overflow-x: hidden;
}

.bg-animated {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url('https://media.githubusercontent.com/media/JulianCataldo/particles-bg/main/public/animated-network.svg') no-repeat center center;
  background-size: cover;
  opacity: 0.25;
}

.container {
  max-width: 600px;
  margin: 80px auto;
  padding: 24px;
  background-color: rgba(15, 15, 30, 0.3);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  box-shadow: 0 0 45px rgba(168, 96, 96, 0.5);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.title {
  font-size: 24px;
  font-weight: 600;
}

.subtitle {
  color: #bbb;
  margin-top: 4px;
}

.button {
  display: block;
  margin: 12px auto;
  padding: 10px 20px;
  background: rgba(40, 20, 20, 0.5);
  border: 3px solid #ffffff;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
  width: 80%;
}

.button:hover {
  background: rgba(108, 57, 57, 0.5);
}

.music-player {
  margin-top: 24px;
  background: rgba(40, 20, 20, 0.5);
  border-radius: 12px;
  padding: 16px;
  position: relative;
}

.song-info {
  margin-bottom: 12px;
}

.song-title {
  font-weight: 700;
  font-size: 18px;
}

.song-artist {
  color: #bbb;
  font-size: 14px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.player-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: 0.2s;
  padding: 6px;
}

.player-btn:hover {
  color: #1ac4f8;
}

.play-btn {
  font-size: 36px;
}

.progress-container {
  width: 90%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 10px auto;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: #1ac4f8;
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #bbb;
  width: 90%;
  margin: 0 auto;
}

.player-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

.volume-slider {
  width: 80px;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1ac4f8;
  cursor: pointer;
}

.banner-box {
  margin-top: 20px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid #e1e1e1;
}

.banner-box img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.note {
  margin-top: 16px;
  color: #888;
  font-size: 12px;
}

/* ----------- BLOC DISCORD ----------- */

#links-discord {
  width: 100%;
  max-width: 560px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 20px;
  box-sizing: border-box;
}

.discord-avatar {
  width: 65px;
  height: 65px;
  border-radius: 15%;
  border: 3px solid #e1e1e1;
}

hr {
  margin: 20px 0;
  border: none;
  height: 4px;
  background: linear-gradient(to right, rgb(255, 255, 255), rgb(91, 91, 91));
}

#links-discord h2 {
  margin: 0;
  font-size: 1.2em;
}

#links-discord h3 {
  margin: 3px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* ----------- BLOCS LIENS ----------- */

.container2 {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  gap: 20px;
  flex-wrap: wrap;           /* permet de revenir à la ligne */
}

a.box {
  display: flex;
  align-items: center;
  background-color: rgba(40, 20, 20, 0.5);
  padding: 20px;
  flex: 1 1 260px;           /* s'adapte en responsive */
  max-width: 295px;
  min-height: 40px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  border: 3px solid #ffffff;
  border-radius: 8px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

a.box:hover {
  background: rgba(112, 64, 64, 0.5);
}

.box img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 15px;
  border-radius: 15%;
  border: 3.5px solid #e1e1e1;
}

.box span {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.overlay {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 90%;
}

.overlay-text {
  font-size: 28px;
  font-weight: bold;
  color: white;
  text-align: center;
  text-transform: uppercase;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

#card {
  transform-style: preserve-3d;
  transform: perspective(5000px) rotateY(var(--rotateX)) rotateX(var(--rotateY));
}

.invalid_photo {
  width: 20px;
  height: 20px;
}

.text {
  color: #ffffff;
}

/* Style spécial PayPal */
.box.paypal-box {
  border-color: #0070ba;
}

.box.paypal-box:hover {
  background: rgba(0, 112, 186, 0.4);
}

.box.paypal-box img {
  border-color: #0070ba;
}

/* VISUALIZER */
.audio-visualizer {
    width: 100%;
    height: 90px;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.audio-visualizer .bar {
    width: 90%;
    height: 5px;
    background: linear-gradient(90deg, #ff00ff, #b400ff);
    border-radius: 6px;
    transition: height 0.08s linear;
}

/* ============================= */
/*         RESPONSIVE            */
/* ============================= */

@media (max-width: 768px) {
  body {
    background-attachment: scroll; /* évite les bugs sur mobile */
  }

  .container {
    margin: 40px 12px;
    padding: 18px;
  }

  .title {
    font-size: 22px;
  }

  #links-discord {
    padding: 10px 12px;
    gap: 10px;
  }

  .discord-avatar {
    width: 55px;
    height: 55px;
  }

  .container2 {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  a.box {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }

  .box span {
    text-align: left;
    font-size: 16px;
  }

  .music-player {
    padding: 12px;
  }

  .song-title {
    font-size: 16px;
  }

  .audio-visualizer {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 20px;
  }

  .overlay-text {
    font-size: 22px;
  }

  .volume-slider {
    width: 70px;
  }
}
