/* Le catalogue public : artistes/index.html, artistes/fiche.html,
   releases/index.html, releases/fiche.html. Chargé APRÈS site.css,
   qui porte la barre, le pied de page et l'en-tête de page. */

/* Sur les deux listes, le titre prend la taille d'affiche et la phrase
   passe dans la colonne de droite, calée sur sa ligne de base. */
.catalogue .page__tete h1 {
    grid-column: 1 / 8;
    max-width: none;
    font-size: var(--t-affiche);
    line-height: 0.9;
}

.catalogue .page__tete .page__chapo {
    grid-column: 9 / 13;
    margin: 0;
}

.catalogue__corps {
    padding: 0 var(--marge);
}

/* --- Filtres : des mots, le choisi souligné d'or. --- */

.catalogue__filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 56px;
}

.catalogue__filtres[hidden] {
    display: none;
}

.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.filtre {
    position: relative;
    padding: 10px 0;
    border: 0;
    background: none;
    color: var(--encre-douce);
    cursor: pointer;
    font: inherit;
    font-size: var(--t-chapo);
    font-weight: 500;
    transition: color var(--d-ui) ease;
}

.filtre[hidden] {
    display: none;
}

.filtre::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 4px;
    height: 2px;
    background: var(--or);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--d-ui) var(--ease-out);
}

[dir="rtl"] .filtre::after {
    transform-origin: right;
}

.filtre.is-active {
    color: var(--encre);
}

.filtre.is-active::after {
    transform: scaleX(1);
}

.filtre:focus-visible {
    outline: 2px solid var(--or-clair);
    outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .filtre:hover {
        color: var(--encre);
    }
}

.filtre-choix {
    min-height: 48px;
    padding: 0 40px 0 16px;
    border: 0;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d5ad52' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: var(--encre);
    font: inherit;
    appearance: none;
}

[dir="rtl"] .filtre-choix {
    padding: 0 16px 0 40px;
    background-position: left 16px center;
}

.catalog-empty {
    color: var(--encre-douce);
    font-size: var(--t-chapo);
}

/* --- Le roster : de grands portraits en quinconce. --- */

.roster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 96px var(--gouttiere);
}

/* La colonne de droite descend d'un demi-portrait : on lit en zigzag. */
.roster .membre:nth-child(even) {
    margin-top: 22vw;
}

.membre__fiche {
    display: block;
    color: inherit;
    text-decoration: none;
}

.membre__portrait,
.disque__pochette {
    position: relative;
    display: block;
    overflow: clip;
    background: var(--surface);
}

.membre__portrait {
    aspect-ratio: 4 / 5;
}

.membre__portrait img,
.disque__pochette img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out);
}

.membre__initiales,
.disque__initiales,
.fiche__initiales {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--or);
    font-family: var(--police-titre);
    font-size: var(--t-titre);
    font-weight: 700;
}

.membre__nom {
    margin-top: 24px;
    color: var(--teinte, var(--encre));
    font-size: var(--t-titre);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    text-transform: uppercase;
}

.membre__ligne {
    margin-top: 12px;
    color: var(--encre-douce);
    font-size: var(--t-chapo);
}

.membre__liens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 16px;
}

@media (hover: hover) and (pointer: fine) {
    .membre__fiche:hover img,
    .disque:hover img {
        transform: scale(1.04);
    }
}

.membre__fiche:focus-visible,
.disque:focus-visible {
    outline: 2px solid var(--or-clair);
    outline-offset: 6px;
}

/* --- Les sorties : une grille de pochettes. --- */

.disques {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px var(--gouttiere);
}

.disque {
    display: block;
    color: inherit;
    text-decoration: none;
}

.disque__pochette {
    aspect-ratio: 1;
}

.disque__titre {
    margin-top: 20px;
    font-size: var(--t-tete);
    line-height: 1.1;
}

.disque__meta {
    display: block;
    margin-top: 8px;
    color: var(--encre-douce);
}

/* --- Les fiches : la grande image collée à gauche, le texte à droite. --- */

.fiche-section {
    padding: 0 var(--marge);
}

.retour {
    display: inline-block;
    margin-bottom: 40px;
    font-weight: 500;
}

.fiche {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gouttiere);
    align-items: start;
}

.fiche__image {
    grid-column: 1 / 7;
    position: sticky;
    top: 32px;
    overflow: clip;
    aspect-ratio: 4 / 5;
    background: var(--surface);
}

.fiche--disque .fiche__image {
    aspect-ratio: 1;
}

.fiche__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fiche__texte {
    grid-column: 8 / 13;
}

.fiche__titre {
    font-size: min(var(--t-affiche), 9vw);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
    overflow-wrap: anywhere;
}

/* Un nom d'artiste en capitales, comme sur l'accueil et le roster. */
.fiche:not(.fiche--disque) .fiche__titre {
    text-transform: uppercase;
}

.fiche__accroche {
    margin-top: 24px;
    font-size: var(--t-chapo);
    font-weight: 500;
}

.fiche__accroche a {
    color: var(--or-clair);
    text-underline-offset: 4px;
}

.fiche__precisions {
    margin-top: 8px;
    color: var(--encre-douce);
}

.fiche__bio {
    max-width: 52ch;
    margin-top: 32px;
    color: var(--encre-douce);
}

.fiche__bloc {
    margin-top: 72px;
}

.fiche__bloc h2 {
    margin-bottom: 20px;
    font-size: var(--t-tete);
}

/* Les sorties d'un artiste : pochette, titre, date, en rangées. */
.sorties-liste {
    display: grid;
    gap: 8px;
}

.sortie-ligne {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 8px;
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    transition: background-color var(--d-ui) ease;
}

.sortie-pochette {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.sortie-texte {
    display: grid;
    gap: 4px;
}

.sortie-titre {
    font-family: var(--police-titre);
    font-size: 20px;
    font-weight: 700;
}

.sortie-meta {
    color: var(--encre-douce);
}

@media (hover: hover) and (pointer: fine) {
    .sortie-ligne:hover {
        background: var(--surface-haute);
    }
}

.sortie-ligne:focus-visible {
    outline: 2px solid var(--or-clair);
    outline-offset: 2px;
}

.fiche-plateformes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fiche-note {
    max-width: 52ch;
    margin-top: 16px;
    color: var(--encre-douce);
}

/* Date, format, label : trois colonnes, sans cadre. */
.fiche__infos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 48px 0 0;
}

.fiche__infos dt {
    color: var(--encre-douce);
}

.fiche__infos dd {
    margin: 4px 0 0;
    font-family: var(--police-titre);
    font-size: var(--t-tete);
    font-weight: 700;
    line-height: 1.15;
}

.fiche-absente {
    max-width: 40ch;
    padding-bottom: 20vh;
}

.fiche-absente h1 {
    font-size: var(--t-titre);
}

.fiche-absente p {
    margin: 24px 0 32px;
    color: var(--encre-douce);
    font-size: var(--t-chapo);
}

@media (max-width: 900px) {
    .catalogue .page__tete h1,
    .catalogue .page__tete .page__chapo {
        grid-column: 1;
    }

    .catalogue .page__tete h1 {
        font-size: clamp(48px, 13vw, 96px);
    }

    .catalogue .page__tete .page__chapo {
        margin-top: 24px;
    }

    .disques {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fiche {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }

    .fiche__image,
    .fiche__texte {
        grid-column: 1;
    }

    .fiche__image {
        position: static;
    }

    .fiche__titre {
        font-size: clamp(48px, 14vw, 96px);
    }
}

@media (max-width: 640px) {
    .roster {
        grid-template-columns: minmax(0, 1fr);
        gap: 64px;
    }

    .roster .membre:nth-child(even) {
        margin-top: 0;
    }

    .disques {
        gap: 40px 16px;
    }

    .disque__titre {
        font-size: 19px;
    }

    .fiche__infos {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}
