/* Grille de cartes « oeuvre » : page /oeuvres et section Oeuvres de la fiche
   artiste (markup : includes/oeuvre-card.php). */
.oeuvres-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.oeuvre-card{
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 22px rgba(13,19,31,.07);
    transition: transform .15s ease, box-shadow .15s ease;
}
.oeuvre-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(13,19,31,.12);
}
.oeuvre-card__link{
    display: block;
    text-decoration: none;
    color: inherit;
}
.oeuvre-card__link:hover{ text-decoration: none; }
.oeuvre-card__media{
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f5efe2, #ece2cb);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.oeuvre-card__placeholder-icon{
    font-size: 42px;
    line-height: 1;
    color: rgba(31,47,74,.28);
    filter: grayscale(1) opacity(0.6);
}
.oeuvre-card__img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.oeuvre-card__body{ padding: 12px 14px 14px; }
.oeuvre-card__body h3{
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    color: var(--navy);
    line-height: 1.25;
}
.oeuvre-card__artist{
    margin: 4px 0 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
}
.oeuvre-card__meta{
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}
.oeuvre-card__meta span{
    padding: 2px 8px;
    background: rgba(31,47,74,.06);
    border-radius: 999px;
}

.oeuvres-footer{ text-align: center; margin-top: 22px; }
.oeuvres-more{
    display: inline-block;
    padding: 11px 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.oeuvres-more:hover{
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.oeuvres-more[disabled]{ opacity: .7; cursor: progress; }

/* Choix du tri (select sur /oeuvres, boutons sur la fiche artiste). */
.oeuvres-sort{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.oeuvres-sort select{
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-weight: 700;
}
.oeuvres-sort__btn{
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.oeuvres-sort__btn:hover{ background: rgba(31,47,74,.06); }
.oeuvres-sort__btn[aria-pressed="true"]{
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
