/* RESET — supprime marges/paddings et homogénéise le rendu */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY — thème sombre WAVE */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #111;
    color: #eee;
    line-height: 1.6;
    padding-bottom: 50px;
}

/* TITRE PRINCIPAL */
h1 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 5px;
    font-size: 2.2em;
    color: #4da6ff;
}
main p {
    text-align: center;
    color: #bbb;
    margin-bottom: 25px;
}

/* Navigation */
nav {
    display: flex;                 /* Utilise Flexbox pour aligner les éléments */
    justify-content: space-between; /* Espace entre logo et liens */
    align-items: center;           /* Centre verticalement les éléments */
    padding: 15px 40px;            /* Espacement interne du nav */
    background: #1a1a1a;           /* Fond sombre */
    position: sticky;              /* Reste visible en scrollant */
    top: 0;                         /* Position en haut de la page */
    z-index: 1000;                  /* Priorité au-dessus des autres éléments */
}

/* Logo dans la navigation */
nav .logo {
    font-size: 1.5em;      /* Taille du texte du logo */
    font-weight: bold;      /* Texte en gras */
    color: #4da6ff;        /* Couleur bleue */
}

/* Liens de navigation */
nav .nav-links a {
    margin-left: 20px;        /* Espace entre les liens */
    text-decoration: none;    /* Supprime le soulignement */
    color: #eee;              /* Couleur texte blanche */
    font-weight: 500;         /* Poids moyen */
    transition: color 0.3s;   /* Animation lors du survol */
}
nav .nav-links a:hover {
    color: #4da6ff;           /* Change la couleur au survol */
}

/* CONTAINER DU TOP 10 */
.top10-container {
    max-width: 550px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* CARTE MUSIQUE */
.music-card {
    padding: 1.3rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.music-card:hover {
    transform: translateY(-4px);
    background: #222;
    border-color: #4da6ff;
}

/* PODIUM — couleurs spéciales */
.first {
    border-color: #ffd700 !important;
    background: linear-gradient(135deg, #2b2100, #5f4e00, #ffd70040) !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.second {
    border-color: #c0c0c0 !important;
    background: linear-gradient(135deg, #2a2a2a, #6f6f6f, #c0c0c040) !important;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.25);
}

.third {
    border-color: #cd7f32 !important;
    background: linear-gradient(135deg, #2d1f14, #7a4c2e, #cd7f3240) !important;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.25);
}

/* RANG */
.music-rank {
    font-weight: bold;
    font-size: 1rem;
    opacity: 0.9;
}

/* TITRE MUSIQUE */
.music-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 4px;
}

/* ARTISTE */
.music-artist {
    opacity: 0.85;
    margin-bottom: 6px;
    font-size: 1rem;
}

/* META */
.music-meta {
    font-size: 0.9rem;
    opacity: 0.75;
}

/* LIEN CLIQUABLE */
a.card-link {
    text-decoration: none;
    color: inherit;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #1a1a1a;
    color: #777;
    font-size: 0.9rem;
}
