/* Fiche d'un cahier : tableau des caractéristiques (2026-11-19). Le HTML vient de l'office ; le filtre
   « caracteristiques » (apps/cahiers/templatetags/referencement.py) en fait des libellés <th>, sans « : ». */
.caracteristiques table.tc-caracteristiques { font-size: .95rem; line-height: 1.45; max-width: 420px; width: 100%; margin: 4px 0 12px; border-collapse: collapse; }
.caracteristiques table.tc-caracteristiques tr { border: 0; }
.caracteristiques table.tc-caracteristiques tr + tr > * { border-top: 1px solid #efe7e1; }
.caracteristiques table.tc-caracteristiques th,
.caracteristiques table.tc-caracteristiques td { padding: 6px 0 !important; vertical-align: top; border-radius: 0; }
.caracteristiques table.tc-caracteristiques th {
  font-weight: 400; color: #7a6a60; text-align: left; white-space: nowrap; width: 1%; padding-right: 18px !important;
}
.caracteristiques table.tc-caracteristiques th::first-letter { text-transform: uppercase; }
.caracteristiques table.tc-caracteristiques td { color: #2b2420; }
.caracteristiques table.tc-caracteristiques td.tc-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media only screen and (max-width: 600px) {
  .caracteristiques table.tc-caracteristiques { max-width: none; font-size: 1rem; }
}

/* Bloc description, caractéristiques, feuilletage (2026-11-19). */
.tc-fiche-details { display: flex; flex-wrap: wrap; align-items: flex-start; margin-bottom: 36px; }
.tc-fiche-details::after { display: none; }
.tc-fiche-details > #description { flex: 0 0 100%; padding: 0 .75rem; }
.tc-fiche-details > #description p { text-align: left; font-size: 1.02rem; line-height: 1.65; max-width: 64ch; margin: 0 0 14px; }
.tc-fiche-feuilleter #fb5 { background: #f6f1ec !important; border-radius: 6px; }
.tc-feuilleter-legende {
  display: flex; align-items: center; justify-content: center; gap: 7px; margin: 8px 0 0;
  font-size: .9rem; color: #7a6a60;
}
.tc-feuilleter-legende svg { color: rgb(176, 73, 50); flex: none; }
@media only screen and (max-width: 600px) {
  .tc-fiche-details > #description { order: 0; }
  .tc-fiche-details > .tc-fiche-feuilleter { order: 1; margin-bottom: 18px; }
  .tc-fiche-details > .tc-fiche-carac { order: 2; }
}

/* Feuilletage : pages d'origine en 110 x 157 px (livre ouvert 220 x 157 au plus, non agrandi pour rester net).
   Cadre proportionné au livre et à ses flèches au lieu du grand rectangle vide ; le script lit cette hauteur. */
.tc-fiche-feuilleter #fb5:not(.fullScreen) {
  max-width: 300px; height: auto !important; aspect-ratio: 300 / 190; margin: 0 auto;
}
.tc-fiche-feuilleter #fb5-container-book { transition: transform .45s ease; }
@media (prefers-reduced-motion: reduce) { .tc-fiche-feuilleter #fb5-container-book { transition: none; } }
