/* ===================================================================
   RHFD Revues — Cards livre + filtres
   Module mod_rhfd_revues — v1.0 avril 2026
   =================================================================== */

.rhfd-card {
    display: block;
    text-decoration: none;
    color: inherit;
    perspective: 600px;
}
.rhfd-card__book {
    position: relative;
    height: 280px;
    background: #fff;
    border-radius: 2px 6px 6px 2px;
    box-shadow: -4px 1px 8px rgba(0,0,0,.06), 0 2px 10px rgba(0,0,0,.08);
    overflow: hidden;
    transition: box-shadow .3s, transform .25s;
    border-left: 3px solid #d5d0c8;
}
.rhfd-card:hover .rhfd-card__book {
    box-shadow: -4px 2px 12px rgba(0,0,0,.1), 0 10px 30px rgba(0,0,0,.14);
    transform: translateY(-4px);
}
.rhfd-card__book img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    box-sizing: border-box;
}
.rhfd-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,18,15,.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s;
}
.rhfd-card:hover .rhfd-card__overlay {
    opacity: 1;
}
.rhfd-card__overlay-title {
    font-size: .82rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 8px;
}
.rhfd-card__overlay-meta {
    font-size: .72rem;
    color: rgba(255,255,255,.6);
    letter-spacing: .03em;
}
.rhfd-card__overlay-numero {
    display: inline-block;
    margin-top: 10px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    background: #c8102e;
    padding: 2px 10px;
    border-radius: 3px;
}
.rhfd-card__subtitle {
    font-size: .74rem;
    color: #777;
    line-height: 1.3;
    margin-top: 8px;
    padding: 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rhfd-card__keywords {
    display: none;
}
@media (max-width: 639px) {
    .rhfd-card__book { height: 240px; }
}

/* Filtres */
.rhfd-filters {
    background: #fafaf9;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.rhfd-filters__select {
    height: 36px;
    padding: 0 30px 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: .85rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 160px;
}
.rhfd-filters__select:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200,16,46,.12);
}
.rhfd-filters__search {
    position: relative;
    max-width: 300px;
    flex: 1;
}
.rhfd-filters__search input {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: .85rem;
    background: #fff;
    box-sizing: border-box;
}
.rhfd-filters__search input:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200,16,46,.12);
}
.rhfd-filters__search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: .8rem;
    pointer-events: none;
}
.rhfd-filters__reset {
    display: none;
    margin-left: 12px;
    border: none;
    background: none;
    color: #c8102e;
    font-size: .8rem;
    cursor: pointer;
    padding: 4px 8px;
}
.rhfd-filters__reset:hover { text-decoration: underline; }
.rhfd-no-results {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: .9rem;
}
