/* ============================================================
   Bibli-Connect v2 — Styles publics
   ============================================================ */

:root {
    --bc-primary:     #1e5799;
    --bc-primary-dk:  #163f73;
    --bc-accent:      #e8832a;
    --bc-bg:          #f5f7fa;
    --bc-border:      #dde2ea;
    --bc-text:        #2c3e50;
    --bc-text-light:  #6c7a89;
    --bc-success:     #2ecc71;
    --bc-warning:     #f39c12;
    --bc-danger:      #e74c3c;
    --bc-radius:      8px;
    --bc-shadow:      0 2px 8px rgba(0,0,0,.08);
    --bc-transition:  .2s ease;
}

/* ── Reset local ──────────────────────────────────────────────────────────── */
.bc-wrap * {
    box-sizing: border-box;
}

/* ── Erreurs ──────────────────────────────────────────────────────────────── */
.bc-error {
    color: var(--bc-danger);
    padding: .5rem 1rem;
    border-left: 3px solid var(--bc-danger);
    background: #fdf2f2;
    border-radius: var(--bc-radius);
    margin: 1rem 0;
}

/* ── Formulaire de recherche ──────────────────────────────────────────────── */
.bc-search {
    margin: 1.5rem 0;
}
.bc-search__form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: stretch;
}
.bc-search__input {
    flex: 1 1 280px;
    padding: .6rem 1rem;
    border: 2px solid var(--bc-border);
    border-radius: var(--bc-radius);
    font-size: 1rem;
    transition: border-color var(--bc-transition);
}
.bc-search__input:focus {
    outline: none;
    border-color: var(--bc-primary);
}
.bc-search__select {
    padding: .6rem .8rem;
    border: 2px solid var(--bc-border);
    border-radius: var(--bc-radius);
    background: #fff;
    font-size: .9rem;
}
.bc-search__btn {
    padding: .6rem 1.4rem;
    background: var(--bc-primary);
    color: #fff;
    border: none;
    border-radius: var(--bc-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--bc-transition);
}
.bc-search__btn:hover { background: var(--bc-primary-dk); }

.bc-search__results-info {
    margin: .75rem 0;
    color: var(--bc-text-light);
    font-size: .9rem;
}

/* ── Liste de notices ─────────────────────────────────────────────────────── */
.bc-notices-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.bc-notice-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow);
    transition: box-shadow var(--bc-transition);
}
.bc-notice-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.bc-notice-item__cover {
    flex: 0 0 60px;
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bc-bg);
}
.bc-notice-item__body {
    flex: 1;
    min-width: 0;
}
.bc-notice-item__title {
    margin: 0 0 .25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bc-primary);
}
.bc-notice-item__title a {
    color: inherit;
    text-decoration: none;
}
.bc-notice-item__title a:hover { text-decoration: underline; }
.bc-notice-item__meta {
    font-size: .85rem;
    color: var(--bc-text-light);
    margin: 0;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.bc-pagination {
    display: flex;
    gap: .4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}
.bc-pagination__btn {
    padding: .4rem .9rem;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    background: #fff;
    cursor: pointer;
    font-size: .9rem;
    transition: all var(--bc-transition);
}
.bc-pagination__btn:hover,
.bc-pagination__btn--active {
    background: var(--bc-primary);
    color: #fff;
    border-color: var(--bc-primary);
}
.bc-pagination__btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ── Fiche notice (single) ────────────────────────────────────────────────── */
.bc-notice-single {
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 1.5rem;
    box-shadow: var(--bc-shadow);
}
.bc-notice-single__header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.bc-notice-single__cover {
    flex: 0 0 120px;
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.bc-notice-single__meta { flex: 1; }
.bc-notice-single__title {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
    color: var(--bc-primary);
}
.bc-notice-single__auteurs {
    font-size: 1rem;
    color: var(--bc-text-light);
    margin: 0 0 .25rem;
}
.bc-notice-single__editeur {
    font-size: .9rem;
    color: var(--bc-text-light);
}
.bc-notice-single__resume {
    margin: 1rem 0;
    line-height: 1.7;
    color: var(--bc-text);
}

/* Badge disponibilité */
.bc-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .7rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    margin-top: .5rem;
}
.bc-badge--available { background: #d4f8e3; color: #1a7a45; }
.bc-badge--unavailable { background: #fde8e8; color: #9b2020; }

/* Exemplaires */
.bc-exemplaires {
    margin-top: 1.5rem;
}
.bc-exemplaires__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--bc-border);
}
.bc-exemplaires__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.bc-exemplaires__table th {
    background: var(--bc-bg);
    padding: .5rem .75rem;
    text-align: left;
    font-weight: 600;
    color: var(--bc-text-light);
    border-bottom: 1px solid var(--bc-border);
}
.bc-exemplaires__table td {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--bc-border);
}
.bc-exemplaires__table tr:last-child td { border-bottom: none; }

/* ── Bouton de réservation ────────────────────────────────────────────────── */
.bc-btn-reserver {
    margin-top: 1rem;
    padding: .65rem 1.5rem;
    background: var(--bc-accent);
    color: #fff;
    border: none;
    border-radius: var(--bc-radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--bc-transition);
}
.bc-btn-reserver:hover { background: #c96d1a; }
.bc-btn-reserver:disabled { opacity: .5; cursor: not-allowed; }

/* ── Étagère ──────────────────────────────────────────────────────────────── */
.bc-etagere { margin: 1.5rem 0; }
.bc-etagere__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bc-primary);
}
.bc-etagere__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}
.bc-etagere__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--bc-text);
    transition: transform var(--bc-transition);
}
.bc-etagere__item:hover { transform: translateY(-3px); }
.bc-etagere__item-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--bc-shadow);
}
.bc-etagere__item-title {
    font-size: .8rem;
    line-height: 1.3;
    font-weight: 600;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ── Slider ───────────────────────────────────────────────────────────────── */
.bc-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--bc-radius);
    margin: 1.5rem 0;
}
.bc-slider__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bc-primary);
}
.bc-slider__track {
    display: flex;
    transition: transform .5s ease;
}
.bc-slider__slide {
    flex: 0 0 160px;
    margin-right: 1rem;
    text-align: center;
}
.bc-slider__slide-cover {
    width: 140px;
    height: 190px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--bc-shadow);
    display: block;
    margin: 0 auto;
}
.bc-slider__slide-title {
    font-size: .78rem;
    margin-top: .5rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--bc-text);
}
.bc-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border: 1px solid var(--bc-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bc-shadow);
    transition: all var(--bc-transition);
    z-index: 2;
}
.bc-slider__btn:hover { background: var(--bc-primary); color: #fff; }
.bc-slider__btn--prev { left: .5rem; }
.bc-slider__btn--next { right: .5rem; }

/* ── Compte lecteur ───────────────────────────────────────────────────────── */
.bc-compte { max-width: 760px; }
.bc-compte__login { max-width: 360px; }
.bc-login-form__group { margin-bottom: 1rem; }
.bc-login-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    font-size: .9rem;
}
.bc-login-form__input {
    width: 100%;
    padding: .6rem .9rem;
    border: 2px solid var(--bc-border);
    border-radius: var(--bc-radius);
    font-size: 1rem;
    transition: border-color var(--bc-transition);
}
.bc-login-form__input:focus {
    outline: none;
    border-color: var(--bc-primary);
}
.bc-login-form__btn {
    width: 100%;
    padding: .7rem;
    background: var(--bc-primary);
    color: #fff;
    border: none;
    border-radius: var(--bc-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--bc-transition);
}
.bc-login-form__btn:hover { background: var(--bc-primary-dk); }
.bc-login-form__error {
    color: var(--bc-danger);
    font-size: .85rem;
    margin-top: .5rem;
}

/* Sections compte */
.bc-compte__section {
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--bc-shadow);
}
.bc-compte__section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--bc-primary);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--bc-border);
}
.bc-pret-item {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid var(--bc-border);
}
.bc-pret-item:last-child { border-bottom: none; }
.bc-pret-item__cover {
    width: 40px;
    height: 54px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.bc-pret-item__title {
    font-weight: 600;
    font-size: .9rem;
    flex: 1;
}
.bc-pret-item__retour {
    font-size: .8rem;
    color: var(--bc-text-light);
    white-space: nowrap;
}
.bc-pret-item__retour--late { color: var(--bc-danger); font-weight: 600; }

/* Bouton annuler réservation */
.bc-btn-cancel-resa {
    padding: .3rem .7rem;
    background: transparent;
    border: 1px solid var(--bc-danger);
    color: var(--bc-danger);
    border-radius: var(--bc-radius);
    font-size: .8rem;
    cursor: pointer;
    transition: all var(--bc-transition);
}
.bc-btn-cancel-resa:hover { background: var(--bc-danger); color: #fff; }

/* ── Messages flash ───────────────────────────────────────────────────────── */
.bc-flash {
    padding: .75rem 1rem;
    border-radius: var(--bc-radius);
    margin: .75rem 0;
    font-size: .9rem;
    display: none;
}
.bc-flash--success { background: #d4f8e3; color: #1a7a45; border-left: 3px solid var(--bc-success); }
.bc-flash--error   { background: #fde8e8; color: #9b2020; border-left: 3px solid var(--bc-danger); }
.bc-flash--visible { display: block; }

/* ── Loader ───────────────────────────────────────────────────────────────── */
.bc-loader {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--bc-text-light);
}
.bc-loader--visible { display: block; }
.bc-loader::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--bc-border);
    border-top-color: var(--bc-primary);
    border-radius: 50%;
    animation: bc-spin .7s linear infinite;
    vertical-align: middle;
    margin-left: .5rem;
}
@keyframes bc-spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .bc-notice-single__header { flex-direction: column; }
    .bc-notice-single__cover { width: 90px; height: 120px; }
    .bc-etagere__grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .bc-exemplaires__table { font-size: .78rem; }
}

/* ── Bannière mode démo ───────────────────────────────────────────────────── */
.bc-demo-banner {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--bc-radius);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.bc-demo-banner a { color: #fff; text-decoration: underline; }

/* ── Étagère v2 ───────────────────────────────────────────────────────────── */
.bc-etagere__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
    margin-top: .75rem;
}
.bc-etagere__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--bc-text);
    transition: transform var(--bc-transition);
}
.bc-etagere__item:hover { transform: translateY(-4px); }

.bc-etagere__cover-wrap {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.bc-etagere__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.bc-etagere__item:hover .bc-etagere__cover { transform: scale(1.04); }

.bc-etagere__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,87,153,.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
}
.bc-etagere__item:hover .bc-etagere__overlay { opacity: 1; }
.bc-etagere__overlay-text {
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    padding: .25rem .5rem;
}

.bc-etagere__item-title {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
    margin: .5rem 0 .15rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.bc-etagere__item-author {
    font-size: .75rem;
    color: var(--bc-text-light);
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.bc-etagere__empty {
    color: var(--bc-text-light);
    font-style: italic;
    padding: 1rem 0;
}

/* ── Liste étagères ───────────────────────────────────────────────────────── */
.bc-list-etageres__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: .75rem;
}
.bc-list-etageres__item {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    text-decoration: none;
    color: var(--bc-text);
    transition: all var(--bc-transition);
    box-shadow: var(--bc-shadow);
}
.bc-list-etageres__item:hover {
    border-color: var(--bc-primary);
    box-shadow: 0 4px 16px rgba(30,87,153,.12);
    transform: translateY(-2px);
}
.bc-list-etageres__icon { font-size: 1.4rem; }
.bc-list-etageres__name {
    font-weight: 600;
    font-size: .95rem;
    color: var(--bc-primary);
}
.bc-list-etageres__desc {
    font-size: .8rem;
    color: var(--bc-text-light);
    line-height: 1.4;
}

/* ── Slider Splide v2 ─────────────────────────────────────────────────────── */
.bc-slider-wrap { margin: 1.5rem 0; }
.bc-slider__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bc-primary);
    margin-bottom: 1rem;
}
.bc-slider {
    /* Surcharges Splide */
}
.bc-slider .splide__slide { padding: .25rem; }
.bc-slider__link {
    display: block;
    text-decoration: none;
    color: var(--bc-text);
}
.bc-slider__cover-wrap {
    aspect-ratio: 3/4;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    transition: box-shadow .25s ease;
}
.bc-slider__link:hover .bc-slider__cover-wrap {
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.bc-slider__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.bc-slider__link:hover .bc-slider__cover { transform: scale(1.04); }

.bc-slider__slide-title {
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
    margin: .5rem 0 .15rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.bc-slider__slide-author {
    font-size: .72rem;
    color: var(--bc-text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Flèches Splide custom */
.bc-slider .splide__arrow {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--bc-border);
    box-shadow: var(--bc-shadow);
    width: 2.2rem;
    height: 2.2rem;
    opacity: 1;
    transition: all var(--bc-transition);
}
.bc-slider .splide__arrow:hover {
    background: var(--bc-primary);
}
.bc-slider .splide__arrow svg { fill: var(--bc-primary); }
.bc-slider .splide__arrow:hover svg { fill: #fff; }

/* Pagination dots */
.bc-slider .splide__pagination__page {
    background: var(--bc-border);
    width: 7px;
    height: 7px;
    transition: background var(--bc-transition);
}
.bc-slider .splide__pagination__page.is-active {
    background: var(--bc-primary);
    transform: scale(1.2);
}

/* Statuts exemplaires */
.bc-expl--available td { background: #f0fdf4; }
.bc-expl--out td { background: #fef9f0; }
.bc-expl--reserved td { background: #eff6ff; }
.bc-expl--returning td { background: #fdf4ff; }
.bc-expl--excluded td { background: #f9fafb; color: var(--bc-text-light); }

/* ── Responsive étagère/slider ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .bc-etagere__grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: .75rem;
    }
    .bc-list-etageres__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Bouton réserver — états supplémentaires ──────────────────────────────── */
.bc-btn-reserver--done {
    background: var(--bc-success);
    opacity: .8;
    cursor: default;
}
.bc-btn-reserver--login {
    background: var(--bc-text-light);
}
.bc-btn-reserver--login:hover { background: var(--bc-primary); }

.bc-login-inline {
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: .75rem 1rem;
    margin-top: .75rem;
}

/* ── Compte lecteur v2 ────────────────────────────────────────────────────── */
.bc-compte { max-width: 720px; }
.bc-compte__login { max-width: 400px; }

/* En-tête */
.bc-compte__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--bc-shadow);
}
.bc-compte__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bc-primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bc-compte__header-info { flex: 1; min-width: 0; }
.bc-compte__username { margin: 0 0 .15rem; font-size: 1.1rem; font-weight: 700; }
.bc-compte__email { margin: 0; font-size: .82rem; color: var(--bc-text-light); }
.bc-compte__expire { margin: .25rem 0 0; font-size: .82rem; }
.bc-compte__expire--expired { color: var(--bc-danger); font-weight: 600; }
.bc-compte__expire--soon    { color: var(--bc-warning); font-weight: 600; }
.bc-compte__logout {
    background: none;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: .4rem .8rem;
    font-size: .82rem;
    cursor: pointer;
    color: var(--bc-text-light);
    white-space: nowrap;
    transition: all var(--bc-transition);
    flex-shrink: 0;
}
.bc-compte__logout:hover { border-color: var(--bc-danger); color: var(--bc-danger); }

/* Stats rapides */
.bc-compte__stats {
    display: flex;
    gap: .75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.bc-compte__stat {
    flex: 1;
    min-width: 100px;
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: .75rem 1rem;
    text-align: center;
    box-shadow: var(--bc-shadow);
}
.bc-compte__stat--alert { border-color: var(--bc-danger); background: #fef2f2; }
.bc-compte__stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bc-primary);
    line-height: 1;
}
.bc-compte__stat--alert .bc-compte__stat-number { color: var(--bc-danger); }
.bc-compte__stat-label { font-size: .75rem; color: var(--bc-text-light); }

/* Section */
.bc-compte__section {
    background: #fff;
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--bc-shadow);
}
.bc-compte__section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--bc-primary);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--bc-border);
}
.bc-compte__empty { color: var(--bc-text-light); font-style: italic; font-size: .9rem; margin: 0; }

/* Cartes prêts / réservations */
.bc-prets-list { display: flex; flex-direction: column; gap: .6rem; }
.bc-pret-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem;
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    transition: box-shadow var(--bc-transition);
}
.bc-pret-card:hover { box-shadow: var(--bc-shadow); }
.bc-pret-card--late { border-color: var(--bc-danger); background: #fef2f2; }
.bc-pret-card--resa { border-color: #dbeafe; background: #eff6ff; }

.bc-pret-card__cover-link { flex-shrink: 0; }
.bc-pret-card__cover {
    width: 42px !important;
    height: 56px !important;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    display: block;
}
.bc-pret-card__body { flex: 1; min-width: 0; }
.bc-pret-card__title {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    color: var(--bc-primary);
    text-decoration: none;
    margin-bottom: .2rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.bc-pret-card__title:hover { text-decoration: underline; }
.bc-pret-card__meta { font-size: .78rem; color: var(--bc-text-light); margin: 0; }
.bc-pret-card__retour { font-size: .8rem; color: var(--bc-text-light); margin: .2rem 0 0; }
.bc-pret-card__retour--late { color: var(--bc-danger); font-weight: 600; }

/* Réservations */
.bc-pret-card__resa-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .2rem; }
.bc-rang-badge {
    display: inline-block;
    background: var(--bc-primary);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 10px;
}
.bc-btn-cancel-resa {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--bc-danger);
    background: transparent;
    color: var(--bc-danger);
    font-size: .85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--bc-transition);
}
.bc-btn-cancel-resa:hover { background: var(--bc-danger); color: #fff; }

@media (max-width: 480px) {
    .bc-compte__header { flex-wrap: wrap; }
    .bc-compte__logout { width: 100%; text-align: center; }
    .bc-compte__stats { gap: .5rem; }
}

/* ── Étagère — séries et numéros ──────────────────────────────────────────── */
.bc-etagere__grid {
    /* Réinitialise le grid-column pour les en-têtes de série */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* En-tête de groupe de série */
.bc-etagere__serie-header {
    grid-column: 1 / -1;          /* Prend toute la largeur du grid */
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0 .2rem;
    margin-top: .5rem;
    border-bottom: 2px solid var(--bc-primary);
}
.bc-etagere__serie-header:first-child { margin-top: 0; }
.bc-etagere__serie-header span {
    font-size: .82rem;
    font-weight: 700;
    color: var(--bc-primary);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Badge numéro dans la série (coin supérieur droit de la couverture) */
.bc-etagere__num-badge {
    position: absolute;
    top: .3rem;
    right: .3rem;
    background: var(--bc-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .1rem .35rem;
    border-radius: 3px;
    line-height: 1.4;
    z-index: 1;
}

/* S'assure que la cover-wrap est en position relative pour le badge */
.bc-etagere__cover-wrap { position: relative; }
