@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --green: #1DB954;
  --black: #0a0a0a;
  --light: #f1f1f1;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--black);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* === FOND VIDÉO === */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: -1;
}

/* === NAVBAR GLASS EFFECT === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(10, 10, 10, 0.25); /* plus transparente */
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(35px) saturate(200%);
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: var(--green);
}

.social-links .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #00ff80;
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 50px;
  margin: 10px auto;
  width: 280px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links .btn:hover {
  background-color: #00cc66;
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ff80;
}

.social-links i {
  font-size: 1.3rem;
}


/* Espacement sections */
section {
  padding: 80px 20px;
  text-align: center;
}
section h2 {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 30px;
}

/* === BOUTON MUSIQUE === */
#play-sound {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(29,185,84,0.4);
  transition: 0.3s;
  z-index: 10;
}
#play-sound:hover {
  background: #18a94c;
  box-shadow: 0 0 25px rgba(29,185,84,0.6);
}

/* === CONTENU GÉNÉRAL === */
.content {
  margin-top: 150px;
  text-align: center;
  padding: 40px 20px;
}
.content h1 {
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 15px;
}
.content p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 30px;
}
.btn {
  background: var(--green);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(29,185,84,0.4);
}
.btn:hover {
  background: #18a94c;
  box-shadow: 0 0 25px rgba(29,185,84,0.6);
  transform: translateY(-3px);
}

/* === TABLEAU TARIFS === */
section {
  max-width: 1000px;
  margin: 100px auto 80px;
  padding: 0 20px;
  text-align: center;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
}
th, td {
  padding: 18px;
  text-align: center;
}
th {
  background: rgba(29,185,84,0.2);
  color: var(--green);
  text-transform: uppercase;
}
tr:nth-child(even) {
  background: rgba(255,255,255,0.05);
}
.highlight {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* === FORMULAIRES === */
.form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 30px auto;
  max-width: 500px;
}
.form input, .form textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  resize: none;
  outline: none;
}
.form button {
  background: var(--green);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.7;
}
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

/* === FAQ === */
.faq p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #ddd;
}
.faq strong {
  color: var(--green);
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar { flex-direction: column; align-items: flex-start; padding: 10px 20px; }
  .navbar nav a { margin: 8px 12px 0 0; display: inline-block; }
  .content h1 { font-size: 2rem; }
  .content p { font-size: 1rem; }
  table th, table td { padding: 12px; font-size: 0.9rem; }
}

/* Nettoyage complet des boutons sociaux */
.no-extra::after,
.no-extra::before {
  content: none !important;
  display: none !important;
}

/* Alignement propre logo + texte */
.social-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.social-links .btn i {
  font-size: 1.3rem;
  margin-right: 8px;
  margin-left: -4px;
  color: white;
}

/* Effet visuel doux */
.social-links .btn:hover {
  box-shadow: 0 0 20px rgba(29,185,84,0.5);
  transform: translateY(-3px);
}

/* Animation bouton musique */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(29,185,84,0.6); }
  70% { box-shadow: 0 0 0 20px rgba(29,185,84,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,185,84,0); }
}

#play-sound {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(29,185,84,0.4);
  z-index: 10;
  animation: pulse 2s infinite;
}
#play-sound:hover {
  background: #18a94c;
  animation: none; /* arrêt du pulse au hover */
}

/* Icônes Telegram / Instagram dans la FAQ */
.faq-icon {
  display: inline-block;
  margin: 8px;
  font-size: 1.8rem;
  color: #00ff80;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.faq-icon:hover {
  color: #000;
  background-color: #00ff80;
  transform: scale(1.1);
}

.cmd-desc {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 25px;
}

/* ================================
   🎧 FORMULAIRE DE CONTACT SOUNDZY
===================================*/

#contact {
  text-align: center;
  padding: 60px 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 255, 128, 0.2);
  border-bottom: 1px solid rgba(0, 255, 128, 0.2);
}

#contact h2 {
  font-size: 2rem;
  color: #00ff80;
  margin-bottom: 10px;
}

#contact p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 30px;
}

/* Le bloc du formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 450px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.2);
  backdrop-filter: blur(10px);
}

/* Champs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: 2px solid rgba(0, 255, 128, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00ff80;
  box-shadow: 0 0 8px #00ff80;
  outline: none;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Bouton */
.contact-form button {
  background-color: #00ff80;
  color: #000;
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #00cc66;
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ff80;
}

/* Animation fade-in pour harmoniser avec le reste du site */
#contact.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

#contact.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#form-message {
  margin-top: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #00ff80;
}

.hidden {
  display: none;
}

html {
  scroll-behavior: smooth;
}

.music-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  backdrop-filter: blur(6px);
}

/* === Conteneur pour bouton + slider === */
.music-controls {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;        /* centrage vertical parfait */
  justify-content: center;
  gap: 14px;                  /* espace entre bouton et slider */
  background: rgba(0, 0, 0, 0.75);
  padding: 12px 18px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  z-index: 999;
}

/* === Bouton musique === */
#toggle-music {
  background: #00ff80;
  border: none;
  color: #000;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 40px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(0, 255, 128, 0.6);
  transition: all 0.3s ease;
  z-index: 1001;
  min-width: 180px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* espace entre icône et texte */
}

#toggle-music.playing {
  box-shadow: 0 0 25px rgba(0, 255, 128, 0.8);
}

/* === Slider du volume === */
#music-volume {
  width: 100px;
  height: 5px;
  border-radius: 5px;
  background: #222;
  accent-color: #00ff80;
  cursor: pointer;
  vertical-align: middle;
}


#toggle-music.playing {
  animation: pulse 1.2s infinite;
  box-shadow: 0 0 10px #00ff80, 0 0 20px #00ff80;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px #00ff80, 0 0 20px #00ff80; }
  50% { box-shadow: 0 0 20px #00ff80, 0 0 40px #00ff80; }
}

/* ===== TOOLTIP DU VOLUME ===== */
#volume-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: #00ff80;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 255, 128, 0.4);
}

.faq-icon i.bi-discord,
.social-links i.bi-discord {
  color: #5865F2; /* Couleur officielle Discord */
}

.faq-icon:hover i.bi-discord,
.social-links .btn:hover i.bi-discord {
  color: #fff;
}

/* === Contrôle musique + volume === */
#toggle-music {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #00ff80;
  border: none;
  color: #000;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.5);
  transition: all 0.3s ease;
  z-index: 1000;
}

#toggle-music.playing {
  background: #00ff80;
  color: #000;
  box-shadow: 0 0 25px rgba(0, 255, 128, 0.8);
}

/* === Conteneur pour bouton + slider === */
.music-controls {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 12px; /* espace entre le bouton et le slider */
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  border-radius: 40px;
  backdrop-filter: blur(8px);
  z-index: 999;
}

/* === Slider du volume === */
#music-volume {
  width: 90px;
  accent-color: #00ff80;
  cursor: pointer;
}

#music-volume:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =============================
   📱 OPTIMISATION MOBILE SOUNDZY
============================= */

/* --- Global --- */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    text-align: center;
  }

  h1, h2, p {
    text-align: center;
    margin: 0 auto;
  }

  section {
    padding: 60px 20px;
  }

  .btn {
    display: inline-block;
    width: 90%;
    max-width: 320px;
    font-size: 1rem;
    padding: 14px 20px;
    border-radius: 2rem;
  }

  /* --- Navbar --- */
  .navbar {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    text-align: center;
  }

  .navbar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .navbar a {
    font-size: 1rem;
    padding: 6px 10px;
  }

  /* --- Accueil --- */
  #home .content {
    padding: 50px 10px;
  }

  #home h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  #home p {
    font-size: 1rem;
    margin: 12px 0 20px 0;
  }

  /* --- Tarifs --- */
  table {
    font-size: 0.9rem;
    width: 100%;
    border-collapse: collapse;
  }

  th, td {
    padding: 10px 5px;
  }

  /* --- Commander --- */
  #commander .social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  #commander .btn i {
    font-size: 1.3rem;
  }

  /* --- FAQ --- */
  #faq .faq {
    padding: 0 10px;
  }

  #faq a.faq-icon {
    font-size: 1.8rem;
    margin: 0 8px;
  }

  /* --- Footer --- */
  footer {
    font-size: 0.85rem;
    padding: 20px 10px;
  }

  /* --- Vidéo --- */
  #bg-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(0.45);
  }

  /* --- Musique --- */
  #toggle-music {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  #music-volume {
    width: 80px;
    margin-top: 8px;
  }

  /* Centrage du bloc musique */
  .music-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: fixed;
    right: 12px;
    bottom: 20px;
  }
}

/* Très petits écrans (moins de 400px) */
@media (max-width: 400px) {
  h1 { font-size: 1.3rem; }
  .btn { font-size: 0.9rem; }
  nav a { font-size: 0.9rem; }
}
