/* =========================
   BASE
========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Poppins', sans-serif;
  background: #0d0d0d;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* =========================
   HEADER
========================= */
header {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .logo a {
  text-decoration: none;
  color: #00ffc3;
  font-size: 1.5em;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
}

header ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

header a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

header a:hover {
  color: #00ffc3;
}

/* =========================
   MAIN / CONTAINER
========================= */
main {
  flex: 1;
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

h1, h2 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
}

h1 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #00ffc3;
}

h2 {
  color: #00ffc3;
  margin: 40px 0 20px;
}

/* =========================
   BUTTONS
========================= */
.button,
.btn-play {
  display: inline-block;
  padding: 12px 25px;
  background: #00ffc3;
  color: #111;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.button:hover,
.btn-play:hover {
  background: #00e0a3;
}

/* =========================
   ABOUT
========================= */
.about {
  max-width: 800px;
  margin: 50px auto;
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}

.about p {
  line-height: 1.6;
  color: #ccc;
}

/* =========================
   LEADERBOARD
========================= */
.leaderboard {
  max-width: 500px;
  margin: 30px auto;
  list-style: none;
  padding: 0;
  text-align: center; /* 👈 centre le texte */
}

.leaderboard li {
  background: #1a1a1a;
  border: 1px solid #222;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-weight: 600;
  flex-direction: column;
  display: flex;
  justify-content: center; /* 👈 centre horizontalement */
  align-items: center;     /* 👈 centre verticalement */
  gap: 10px;
}


.leaderboard li:nth-child(1) {
  border-color: gold;
}
.leaderboard li:nth-child(2) {
  border-color: silver;
}
.leaderboard li:nth-child(3) {
  border-color: #cd7f32;
}

/* =========================
   ADMIN
========================= */
form {
  max-width: 400px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input {
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #222;
  color: white;
}

input:focus {
  outline: 2px solid #00ffc3;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #111;
  color: #aaa;
  display: flex;
  justify-content: space-between;
  padding: 15px 40px;
  font-size: 0.9em;
  flex-shrink: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  header ul {
    flex-direction: column;
    gap: 10px;
  }

  .sound-card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .sound-card {
    width: 90%;
  }

  .button,
  .btn-play {
    width: 100%;
  }

  .socials {
    flex-direction: column;
  }
}
