/* =========================
   VARIABLES
   ========================= */
:root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #3B1C0A;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

/* =========================
   PAGE GÉNÉRALE
   ========================= */
main {
    padding: 6rem 8% 4rem;
    background: radial-gradient(circle at top, #f5f3f0 0, #000 65%);
    color: var(--text-color);
}

/* =========================
   HEADER (on garde ton style)
   ========================= */
header {
    width: 90%;
    display: flex;
    justify-content: space-between;
    margin: auto;
    height: 50px;
    align-items: center;
}

header .logo {
    font-size: 1rem;
    color: var(--main-color);
    font-weight: 600;
    cursor: default;
    text-decoration: none;
    margin-right: auto;
}

header nav a {
    position: relative;
    text-decoration: none;
    color: var(--main-color);
    font-weight: 500;
    margin-left: 2rem;
}

.navbar a.active::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: .2rem;
    background: var(--main-color);
}

#darkMode-icon {
    margin-left: 2rem;
    font-size: 1rem;
    color: var(--main-color);
    cursor: pointer;
}

/* =========================
   HERO : TEXTE + COLLAGE
   ========================= */
/* =========================
   Bannière "Sa Musique"
   ========================= */
.music-hero {
    /* on sort de la marge de <main> qui a padding-inline: 8% */
    margin: 3.5rem -8% 2.5rem;
    padding: 2.5rem 8%;
    background: var(--shadow-color);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}
.music-text {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    color: var(--white-color);
}



.music-text p {
    max-width: 640px;
    margin-top: 25px;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 0.96rem;
}



.music-buttons {
    margin-top: 1.8rem;
    display: flex;
    gap: 1rem;
    justify-content: center;   /* boutons centrés */
}
.btn-main,
.btn-ghost {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.btn-main {
    background: var(--main-color);
    color: var(--white-color);
}

.btn-ghost {
    border: 1px solid var(--main-color);
    color: var(--main-color);
    background: transparent;
}
.member-banner {
    margin-bottom: 3rem;
    color: var(--white-color);
}

.member-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Titre "PROFILE / MEMBER" */
.member-banner-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.member-banner-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.7;
}

.member-banner-title {
    font-size: 1.9rem;
    letter-spacing: 0.18em;
    color: var(--main-color);
    text-transform: uppercase;
}

/* Bande de membres style BTS */
.member-banner-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, 1fr);
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    overflow-x: auto;
    scrollbar-width: thin;
}

/* chaque tuile membre */
.member-banner-item {
    position: relative;
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* images : ratio portrait comme les membres BTS */
.member-banner-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    filter: grayscale(30%);
    transform: translateY(0);
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
}

/* nom sous la photo */
.member-banner-item figcaption {
    margin-top: 0.6rem;
    opacity: 0.9;
}

/* hover : un peu comme un poster qui sort du bandeau */
.member-banner-item:hover img {
    transform: translateY(-6px);
    filter: grayscale(0%);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.85);
}

/* scroll horizontal discret sur mobile */
.member-banner-grid::-webkit-scrollbar {
    height: 6px;
}

.member-banner-grid::-webkit-scrollbar-track {
    background: transparent;
}

.member-banner-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

/* =========================
   LISTE DES TITRES
   ========================= */
.music-list {
    color: var(--bg-color);
    margin-top: 4rem;
}

.music-list h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* grille des cartes */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

/* cartes des morceaux */
.track-card {
    border-radius: 16px;
    overflow: hidden;
    color: var(--white-color);
    background: rgba(0, 0, 0, 0.728);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(10px);
}

.track-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.track-info {
    padding: 1rem 1.2rem 1.3rem;
}

.track-info h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.track-info p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* lien vers YouTube / plateformes */
.track-link {
    font-size: 0.85rem;
    text-decoration: none;
    color:  #d9b08c;
}

/* =========================
   Banner "Tous les chants & lives"
   ========================= */
.track-card.track-banner {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 35px var(--shadow-color);
}

.track-card.track-banner img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.track-card.track-banner .track-info {
    padding: 2.2rem 2rem;
}

.track-card.track-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 0.7rem;
}

.track-card.track-banner p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.track-card.track-banner .track-link {
    font-size: 0.95rem;
}

/* Footer Section */
.footer {
    padding: 4rem 5%;
    background-color: transparent;
    color: var(--white-color);
    text-align: center;
}

/* Banner */
.footer-banner {
    margin-bottom: 2rem;
}

.footer-banner-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
}

/* Footer content */
.footer-content {
    text-align: center;
}

.footer .social-media a {
    margin: 0 1rem;
    font-size: 2rem;
    color: var(--white-color);
    transition: color 0.3s ease;
}

.footer .social-media a:hover {
    color: var(--accent-color);
}



/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
    .music-hero {
        grid-template-columns: 1fr;
        row-gap: 3rem;
    }

    .music-visual {
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    main {
        padding-inline: 5%;
    }

    .music-hero {
        row-gap: 2.5rem;
    }

    .music-text h1 {
        font-size: 2.1rem;
    }

    .member-banner {
        margin-bottom: 2rem;
    }

    .member-banner-title {
        font-size: 1.7rem;
    }

    .member-banner-grid {
        padding-inline: 1rem;
        grid-auto-columns: 130px;
    }

    /* Banner en colonne sur mobile */
    .track-card.track-banner {
        grid-template-columns: 1fr;
    }

    .track-card.track-banner img {
        max-height: 220px;
    }

    .track-card.track-banner .track-info {
        padding: 1.6rem 1.4rem 1.8rem;
    }
}
