/* Fiches de la bibliothèque : fil d'Ariane (nav + ol) et bloc « Dans le même rayon ».
   Complète biblio.css (.book-breadcrumb y est déjà stylé pour l'ancien rendu en lignes). */

/* ---------- Fil d'Ariane ---------- */

.book-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
}

.book-breadcrumb li {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

/* Séparateur en fin de maillon : si le fil passe à la ligne, aucune ligne ne commence par « / » */
.book-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--color-text-muted, #5a6270);
}

.book-breadcrumb a {
    display: inline-block;
    padding: 5px 0;
}

@media (pointer: coarse), (max-width: 620px) {
    /* zone cliquable de 44 px ; le padding du haut du fil est réduit d'autant */
    .book-breadcrumb { padding-top: 4px; }
    .book-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
    .book-breadcrumb ol { align-items: center; }
}

.book-breadcrumb [aria-current="page"] {
    color: var(--color-text-muted, #5a6270);
}

/* ---------- Dans le même rayon ---------- */

.fiche-rayon {
    max-width: 860px;
    margin: 0 auto;
    padding: 8px var(--section-h-padding, 24px) 32px;
}

.fiche-rayon h2 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: var(--text-xl, 1.6rem);
    font-weight: 700;
    color: var(--color-ink, #2a2a2e);
    margin: 24px 0 6px;
    text-wrap: balance;
}

.fiche-rayon-name {
    margin: 0 0 16px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: var(--text-xs, 0.78rem);
    color: var(--color-text-muted, #5a6270);
}

.fiche-rayon-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fiche-rayon-list li { margin: 0; min-width: 0; }

.fiche-rayon-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--color-card-border, #e8ecf0);
    border-radius: var(--card-radius, 14px);
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.fiche-rayon-card:hover,
.fiche-rayon-card:focus-visible {
    border-color: var(--color-accent, #3aaa64);
    box-shadow: 0 8px 24px rgba(58, 170, 100, 0.08);
    transform: translateY(-2px);
}

.fiche-rayon-card img {
    flex: 0 0 56px;
    width: 56px;
    height: auto;
    border-radius: 2px 5px 5px 2px;
    box-shadow: inset 2px 0 4px -2px rgba(0, 0, 0, 0.3), 0 4px 12px -4px rgba(15, 25, 35, 0.3);
}

.fiche-rayon-card .fr-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.fiche-rayon-card .fr-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: var(--text-sm, 0.88rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-ink, #2a2a2e);
    overflow-wrap: anywhere;
}

.fiche-rayon-card .fr-meta {
    font-size: var(--text-xs, 0.78rem);
    color: var(--color-text-muted, #5a6270);
    overflow-wrap: anywhere;
}

.fiche-rayon-card .fr-rating {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: var(--text-xs, 0.78rem);
    font-weight: 600;
    color: var(--color-accent-dark, #267d42);
}

.fiche-rayon-all {
    margin: 16px 0 0;
    font-size: var(--text-sm, 0.88rem);
}

.fiche-rayon-all a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    font-weight: 600;
    color: var(--color-accent-dark, #267d42);
    text-decoration: none;
}

.fiche-rayon-all a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .fiche-rayon-list { grid-template-columns: minmax(0, 1fr); }
}
