/* ==========================================================================
   Metal Eternel — design system
   Sombre éditorial : l'énergie metal, la lisibilité d'un magazine.
   ========================================================================== */

@font-face {
    font-family: 'Archivo Black';
    src: url("../fonts/archivo-black-VgUkuOr.woff2") format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Presse gothique : encre sur papier, monochrome + un oxblood retenu. */
    --bg: #e9e3d4;
    --surface: #f3eee2;
    --surface-2: #e1dac8;
    --border: #c7bda6;
    --border-strong: #16130f;
    --text: #16130f;
    --text-muted: #6b6353;
    --accent: #7a2016;
    --accent-hover: #9c2a1d;
    --accent-soft: rgba(122, 32, 22, 0.10);
    --radius: 7px;
    --radius-sm: 5px;
    --display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
    --body: 'Iowan Old Style', Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-hover);
}

p a,
.article-body a {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
.brand {
    font-family: var(--display);
    line-height: 1.1;
}

.brand {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1 {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.02;
    margin: 0.4rem 0 1rem;
}

/* Titre de section : petites-capitales sur double filet, façon presse. */
h2 {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text);
    margin: 2.6rem 0 1.1rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px double var(--border-strong);
}

h3 {
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    margin: 0 0 0.3rem;
}

/* Lettrine sur le corps éditorial */
.article-body > p:first-of-type::first-letter {
    font-family: var(--display);
    font-weight: 700;
    font-size: 3.1rem;
    line-height: 0.8;
    float: left;
    margin: 0.15rem 0.5rem 0 0;
    color: var(--text);
}

.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* Bandeau-titre inversé : oxblood + texte crème, façon nameplate de journal. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--accent);
    border-bottom: 3px double rgba(243, 238, 226, 0.45);
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 0;
}

.brand {
    font-size: 1.25rem;
    color: #f3eee2;
    letter-spacing: 0.06em;
}

.brand:hover {
    color: #f3eee2;
}

.brand::after {
    content: '.';
    color: #e8c37a;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.nav-links a {
    color: rgba(243, 238, 226, 0.82);
    padding: 0.2rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: #f3eee2;
    border-bottom-color: #e8c37a;
}

.nav-account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.nav-user {
    color: rgba(243, 238, 226, 0.7);
    font-style: italic;
}

/* Déconnexion : petite puce contour crème, affordance claire. */
.nav-logout {
    border: 1px solid rgba(243, 238, 226, 0.55);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.7rem;
    color: #f3eee2 !important;
    border-bottom: 1px solid rgba(243, 238, 226, 0.55) !important;
    transition: background 0.15s ease;
}

.nav-logout:hover {
    background: rgba(243, 238, 226, 0.14);
    border-color: #f3eee2;
}

.nav-search {
    margin-left: auto;
}

.nav-search + .nav-account {
    margin-left: 0;
}

.nav-search input {
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(243, 238, 226, 0.5);
    border-radius: var(--radius-sm);
    padding: 0.4rem 1rem;
    font: inherit;
    font-size: 0.88rem;
    width: 11rem;
    max-width: 38vw;
    transition: border-color 0.15s ease, width 0.2s ease;
}

.nav-search input::placeholder {
    color: var(--text-muted);
}

.nav-search input:focus {
    outline: none;
    border-color: #e8c37a;
    width: 14rem;
}

/* --------------------------------------------------------------------------
   Contenu
   -------------------------------------------------------------------------- */

main.container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Accroche du site */
.site-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.25rem;
}

.site-tagline strong {
    color: var(--text);
}

/* Hero (une de la home) : bloc encadré, façon une de journal. */
.hero {
    position: relative;
    background: var(--surface);
    border: 3px double var(--border-strong);
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
}

/* Pas de pochette floutée en presse gothique : la une reste papier + encre. */
.hero-with-art::before,
.hero-with-art::after {
    display: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
}

@media (min-width: 720px) {
    .hero-inner {
        grid-template-columns: 220px 1fr;
        align-items: center;
        padding: 2.25rem;
    }
}

.hero .cover-lg {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 1;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease;
}

.hero a:hover .cover-lg {
    transform: scale(1.02) rotate(-0.5deg);
}

.hero-kicker {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--accent-hover);
    margin: 0 0 0.5rem;
}

.hero-title {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    line-height: 1.05;
    margin: 0.6rem 0;
}

.hero-title a {
    color: var(--text);
}

.hero-title a:hover {
    color: var(--accent-hover);
}

/* Cartes de publication avec visuel */
.content-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-card-media {
    position: relative;
    display: block;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: var(--surface-2);
}

.content-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.content-card:hover .content-card-media img {
    transform: scale(1.05);
}

.content-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.5;
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
}

.content-card-score {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    font-family: var(--display);
    font-size: 1.35rem;
    color: #f3eee2;
    background: var(--accent);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.6rem;
}

.content-card-score small {
    font-size: 0.7em;
    opacity: 0.85;
}

.content-card-body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.content-card-meta {
    margin: 0;
}

.content-card-byline {
    margin-top: auto;
}

/* Cartes */
.card-list {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .card-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.card-album {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.card-album h3 {
    margin-top: 0;
}

/* Badges */
.badge {
    display: inline-block;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 0.08rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.3rem;
}

a.badge:hover {
    color: var(--text);
    border-color: var(--accent);
}

.badge-accent {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-hover);
}

/* Note */
.score {
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--accent-hover);
}

/* Pochettes */
.cover {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cover-sm {
    width: 72px;
    height: 72px;
}

.cover-lg {
    width: 180px;
    height: 180px;
}

.cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    font-size: 1.5rem;
    opacity: 0.6;
    box-shadow: none;
}

.cover-placeholder.cover-lg {
    font-size: 3rem;
}

.album-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.album-header h1 {
    margin: 0;
}

/* Tracklist */
.tracklist {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: track;
}

.tracklist li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--border);
}

.tracklist li:nth-child(odd) {
    background: var(--surface);
}

.tracklist .duration {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Article */
.article-body {
    white-space: pre-line;
    font-size: 1.06rem;
    max-width: 42rem;
}

.article-body h2::before {
    display: none;
}

/* Layout chronique : sidebar discographie */
.content-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-layout .sidebar {
    order: 2;
}

.content-layout .content-main {
    order: 1;
    min-width: 0;
}

@media (min-width: 800px) {
    .content-layout {
        display: grid;
        grid-template-columns: 230px 1fr;
        align-items: start;
        gap: 2.5rem;
    }

    /* Pas de sidebar (article sans groupe lié) : pleine largeur */
    .content-layout.no-sidebar {
        display: block;
    }

    .content-layout .sidebar {
        order: 0;
        position: sticky;
        top: 4.5rem;
    }
}

.sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    font-size: 0.9rem;
}

.sidebar-title {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
}

.sidebar-albums {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
}

.sidebar-albums li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-albums li:last-child {
    border-bottom: none;
}

.sidebar-albums li.current {
    font-weight: 700;
}

.sidebar-albums .badge {
    font-size: 0.62rem;
    padding: 0.02rem 0.45rem;
    margin-left: 0.25rem;
}

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */

form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.92rem;
}

form input[type='text'],
form input[type='email'],
form input[type='password'],
form input[type='search'],
form select,
form textarea {
    width: 100%;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
    font: inherit;
    transition: border-color 0.15s ease;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

button,
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.4rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s ease;
}

button:hover,
.btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* Flash */
.flash {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.flash-success {
    background: rgba(46, 125, 74, 0.15);
    border: 1px solid rgba(46, 125, 74, 0.5);
}

.flash-error {
    background: var(--accent-soft);
    border: 1px solid var(--accent);
}

/* Bandeau de prévisualisation (brouillons) */
.preview-banner {
    background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 12px, transparent 12px, transparent 24px);
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    color: var(--text);
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    font-weight: 600;
}

/* Chronique affichée sur la page album */
.inline-review {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.inline-review-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.inline-review-head .score {
    font-size: 2rem;
}

.inline-review-head h3 {
    margin: 0;
}

/* Avis / commentaires */
.rating-item {
    border-top: 1px solid var(--border);
    padding: 0.85rem 0;
}

.rating-item .who {
    font-weight: 700;
}

.rating-item-written {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
}

.rating-text {
    max-width: 42rem;
}

.score-inline {
    font-size: 1.1rem;
}

/* Petite mention « /10 » atténuée derrière chaque note */
.score-max {
    font-size: 0.55em;
    color: var(--text-muted);
    font-weight: 400;
}

.score-empty {
    color: var(--text-muted);
}

/* Intitulé de section discret (petite capitale accentuée) */
.eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-hover);
}

/* Scoreboard : rédaction vs lecteurs, côte à côte */
.scoreboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.score-tile {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
}

.score-tile-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.score-tile .score {
    font-size: 2.4rem;
    line-height: 1.1;
}

/* Chronique hero : le contenu éditorial mis en avant */
.chronique-hero {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.chronique-head {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.chronique-score {
    font-size: 2.6rem;
    line-height: 1;
}

.chronique-title {
    display: block;
    font-size: 1.6rem;
    margin: 0.1rem 0 0.35rem;
    padding: 0;
    border: 0;
}

.chronique-title::before {
    display: none;
}

.chronique-empty {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}

/* Accès rapide aux autres chroniques (cartes → ancres) */
.chronique-others {
    margin-bottom: 1.5rem;
}

.chronique-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.chronique-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s ease;
}

.chronique-card:hover {
    border-color: var(--accent);
}

.chronique-card-score {
    font-size: 1.5rem;
}

.chronique-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chronique-card-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 520px) {
    .scoreboard {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Page d'erreur */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page .error-code {
    font-family: var(--display);
    font-size: clamp(4rem, 15vw, 8rem);
    color: var(--accent);
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 2rem 0;
    background: var(--surface);
}

/* --------------------------------------------------------------------------
   Fiche groupe — l'artwork porte l'identité (pas de photo de groupe)
   -------------------------------------------------------------------------- */

.band-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
    margin-bottom: 2rem;
}

/* Mosaïque de pochettes en fond, calée à droite (là où le bloc était vide). */
.band-hero-mosaic {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    display: flex;
    flex-wrap: wrap;
    z-index: 0;
}

.band-hero-mosaic img {
    width: 33.333%;
    height: 50%;
    object-fit: cover;
    display: block;
}

/* Dégradé papier : opaque à gauche (texte lisible), pochettes visibles à droite. */
.band-hero--art::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 40%, rgba(243, 238, 226, 0.35) 100%);
}

.band-hero-inner {
    position: relative;
    z-index: 2;
    padding: 2.75rem 2rem;
    min-height: 220px;
}

@media (max-width: 640px) {
    .band-hero-mosaic {
        display: none;
    }
}

.band-hero-title {
    font-family: var(--display);
    text-transform: uppercase;
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 1;
    margin: 0.3rem 0 0.9rem;
}

.band-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.1rem;
    color: var(--text-muted);
    margin: 0 0 0.9rem;
}

.band-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
}

.band-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text);
}

.band-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .band-layout {
        grid-template-columns: 1fr 260px;
    }
}

.band-bio {
    max-width: 65ch;
}

/* Mur de pochettes : le cœur visuel de la page */
.discography-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
}

.disc-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text);
    text-decoration: none;
}

.disc-cover {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.disc-cover .cover {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    transition: transform 0.25s ease;
}

.disc-item:hover .disc-cover .cover {
    transform: scale(1.06);
}

.disc-title {
    font-weight: 600;
    line-height: 1.25;
}

.disc-item:hover .disc-title {
    color: var(--accent-hover);
}

.lineup {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lineup li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}

.lineup-name {
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Home — rythme éditorial (une → vedettes → grille)
   -------------------------------------------------------------------------- */

.hero-badges {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
}

.hero-excerpt {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 52ch;
    margin: 0.5rem 0 1.1rem;
}

/* Deux publications en vedette, plus grandes, juste sous la une */
.home-featured {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 2.5rem;
}

.home-featured .content-card-media {
    aspect-ratio: 16 / 9;
}

.home-featured h3 {
    font-size: 1.3rem;
}

@media (max-width: 640px) {
    .home-featured {
        grid-template-columns: 1fr;
    }
}

.home-all {
    margin-top: 1.75rem;
    font-weight: 600;
}

.home-all a {
    color: var(--accent-hover);
}

/* Header — un peu plus de présence pour la marque */
.site-header .brand {
    font-size: 1.3rem;
}

/* --------------------------------------------------------------------------
   Listings — filtres, nav lettres, cartes groupe avec artwork
   -------------------------------------------------------------------------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

.filter-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
    color: var(--text);
    border-color: var(--accent);
}

.filter-pill.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.5rem;
}

.letter-nav a {
    display: grid;
    place-items: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--display);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.letter-nav a:hover {
    border-color: var(--accent);
    color: var(--text);
}

.band-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.band-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.band-card-media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-2);
}

.band-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.band-card:hover .band-card-media img {
    transform: scale(1.05);
}

.band-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.5;
}

.band-card-body {
    padding: 0.85rem 1rem 1rem;
}

.band-card-body h3 {
    margin: 0 0 0.25rem;
}

.band-card-meta {
    margin: 0 0 0.5rem;
}

.band-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Profil chroniqueur
   -------------------------------------------------------------------------- */

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    flex: none;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 2.2rem;
    color: #fff;
    background: linear-gradient(145deg, var(--accent) 0%, #7a1e18 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-name {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0.2rem 0 0.5rem;
}

.profile-bio {
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 0 0.5rem;
}

@media (max-width: 560px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Authentification — carte centrée (connexion / inscription)
   -------------------------------------------------------------------------- */

.auth-card {
    max-width: 420px;
    margin: 2.5rem auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 2rem;
}

.auth-card h1 {
    margin-top: 0;
}

.auth-card label,
.auth-card .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0.9rem 0 0.3rem;
}

.auth-card input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-card button {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.65rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.auth-card button:hover {
    background: var(--accent-hover);
}

.auth-card .auth-alt {
    margin: 1.25rem 0 0;
    text-align: center;
}

/* Titres bonus (éditions deluxe) : atténués dans la tracklist */
.track-bonus {
    opacity: 0.55;
}

.track-bonus-tag {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.02rem 0.32rem;
    margin-left: 0.35rem;
    color: var(--text-muted);
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Compte / photo de profil
   -------------------------------------------------------------------------- */

/* Photo ronde, mêmes dimensions que le monogramme, cadre encre. */
.profile-photo {
    flex: none;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-strong);
}

.settings-card {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 1.75rem;
    max-width: 620px;
}

.settings-photo {
    flex: none;
}

.settings-form h2 {
    margin-top: 0;
}

.settings-form input[type='file'] {
    display: block;
    margin: 0.5rem 0 1rem;
    font: inherit;
}

@media (max-width: 560px) {
    .settings-card {
        flex-direction: column;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Fiche album — chronique à gauche, tracklist en colonne à droite
   -------------------------------------------------------------------------- */

.album-body {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .album-body {
        grid-template-columns: 1fr 300px;
    }

    /* Tracklist qui suit la lecture de la chronique. */
    .album-aside {
        position: sticky;
        top: 5rem;
    }
}

.album-aside h2:first-child {
    margin-top: 0;
}
