/* ═══════════════════════════════════════════════════════════════════
   Randozone — Fiche livre (librairie/post-bs5.php) — Bootstrap 5
   CSS dédiée. Autres sources chargées par la page : rz-bs5.css (socle)
   et hero1.css (hero éditorial .rz-hero-editorial + hv-*), comme le font
   déjà dossiers.php, fiche/index-bs5.php et itineraire/search-bs5.php.
   Le hero était auparavant recopié ici : la copie a divergé (restée en
   max-width après le passage mobile first de hero1.css), d'où le
   chargement direct de la feuille d'origine.
   Les blocs marqués @mutualisable restent dupliqués depuis slien.css /
   topo.css — candidats à une extraction future dans rz-bs5.css.
   ═══════════════════════════════════════════════════════════════════ */

/* ── @mutualisable (slien.css) : signature éditoriale ─────────────── */
.sig-v1 {
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: 14px;
  padding: 1.05rem 1.3rem;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.sig-v1-mk {
  flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(31,127,194,.1);
  color: var(--rz-primary-dark);
  display: grid; place-items: center;
}
.sig-v1-mk .rz-ico { width: 20px; height: 20px; }
.sig-v1-txt { font-size: .95rem; line-height: 1.55; color: var(--rz-inksoft); margin: 0; }
.sig-v1-txt strong { color: var(--rz-ink); font-weight: 600; }
.sig-v1-link { color: var(--rz-blue); text-decoration: none; font-weight: 600; }
.sig-v1-link:hover { text-decoration: underline; color: var(--rz-primary-dark); }

/* ── @mutualisable (slien.css) : figure image principale ──────────── */
.iti-figure {
  border-radius: 14px; overflow: hidden;
  margin: 0 0 1.75rem; border: 1px solid var(--rz-border);
}
.iti-figure img { display: block; width: 100%; height: auto; }
.lib-figcaption {
  font-size: .82rem; color: var(--rz-inksoft);
  text-align: center; padding: .6rem 1rem;
  border-top: 1px solid var(--rz-border);
  background: var(--rz-surface-2);
}

/* ── Titres de section (.iti-h2) ───────────────────────────────────
   Les <section> du gabarit portent .art-body : leurs h2 reçoivent donc
   l'habillage d'article du socle (accent chaud, graisse, échelle typo,
   rythme vertical), le même que les h2 sortis de la BDD sur
   actualite-bs5.php. .iti-h2 ne garde QUE la mise en page de l'icône —
   pas une seule propriété typographique, sinon elle reprendrait la main
   sur le socle et on recopierait à nouveau ce qu'il définit déjà. */
.iti-h2 { display: flex; align-items: center; gap: .65rem; }
/* La pastille suit la couleur du titre : currentColor, donc rien à
   resynchroniser si l'accent des h2 bouge un jour dans le socle. */
.iti-h2 .ico {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  color: inherit;
  background: color-mix(in oklch, currentColor 8%, white);
  border: 1px solid color-mix(in oklch, currentColor 22%, white);
}
.iti-h2 .ico svg { width: 18px; height: 18px; }

/* ── @mutualisable (slien.css) : liste clé/valeur ─────────────────── */
.iti-kv {
  background: var(--rz-surface);
  border: 1px solid var(--rz-border);
  border-radius: 16px; padding: .4rem 1.35rem; height: 100%;
}
.iti-kv-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0; border-top: 1px solid var(--rz-border);
}
.iti-kv-row:first-child { border-top: 0; }
.iti-kv-key {
  display: flex; align-items: center; gap: .55rem;
  font-size: .9rem; color: var(--rz-inksoft);
  width: 44%; flex-shrink: 0;
}
.iti-kv-key .rz-ico { width: 1rem; height: 1rem; color: var(--rz-blue); flex-shrink: 0; }
.iti-kv-val { font-size: .96rem; font-weight: 600; color: var(--rz-ink); margin-left: auto; text-align: right; }
.iti-kv-link { color: var(--rz-ink); text-decoration: underline; text-underline-offset: 2px; }
.iti-kv-link:hover { color: var(--rz-blue); }

/* ── @mutualisable (slien.css) : navigation préc/suiv ─────────────── */
.iti-nav {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: .75rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rz-border); margin-top: 1.5rem;
}
.iti-nav-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 600; color: var(--rz-blue);
  text-decoration: none; max-width: 48%;
}
.iti-nav-link:hover { color: var(--rz-primary-dark); }
.iti-nav-link.next { margin-left: auto; }
.iti-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── @mutualisable (slien.css) : bloc admin ───────────────────────── */
.rz-admin-block {
  background: #fff3cd; border-left: 3px solid #ffc107;
  border-radius: 0 8px 8px 0; padding: .75rem 1rem;
  font-size: .82rem; margin-bottom: 1.25rem;
}
.rz-admin-title { font-weight: 700; margin: 0 0 .4rem; font-size: .85rem; }
.rz-admin-block a { color: var(--rz-ink); text-decoration: underline; }
.rz-admin-block ul { padding-left: 1.1rem; margin: 0; }
.rz-admin-block li { margin-bottom: .2rem; }

/* ── @mutualisable (slien.css) : image sidebar ────────────────────── */
.sb-img {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rz-border); margin-bottom: 1.25rem;
}
.sb-img img { display: block; width: 100%; height: auto; }

/* Commentaires (.rz-comments) : centralisés dans rz-bs5.css, émis par rzComments(). */

/* ═══════════════════════════════════════════════════════════════════
   Spécifique librairie — fiche livre
   ═══════════════════════════════════════════════════════════════════ */

/* Intro de la fiche
   Même rôle que le chapô de .rz-article-head (socle) : un paragraphe que
   sa seule graisse détache du corps qui suit. La page ne peut pas
   réutiliser .rz-article-head telle quelle — son h1 vit dans le hero, pas
   dans la colonne. D'où cette règle locale, qui ne touche QUE la graisse :
   corps, couleur et interlignage restent ceux du <p> de la base. */
.lib-intro { font-weight: 700; }

/* Bouton « Acheter sur Amazon » */
.lib-amazon { margin: 1.5rem 0; text-align: center; }
.lib-amazon a {
  display: inline-flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1rem 1.6rem; text-decoration: none;
  background: var(--rz-surface); border: 1px solid var(--rz-border);
  border-radius: 14px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lib-amazon a:hover {
  border-color: rgba(31,127,194,.38);
  box-shadow: 0 16px 38px -26px var(--rz-shadow-card);
  transform: translateY(-2px);
}
.lib-amazon .lib-amazon-kick {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rz-inksoft);
}
.lib-amazon img { height: 28px; width: auto; display: block; }
.lib-amazon .lib-amazon-name { font-size: .9rem; font-weight: 600; color: var(--rz-ink); }

/* Liste « Les randos de ce guide »
   Sélecteur ul.… et non .… : la section porte .art-body, dont la règle
   `.art-body ul` remettrait sinon une puce en retrait (padding-left) sur
   cette liste-carte. À spécificité égale, c'est la feuille de page qui
   gagne — elle est chargée après le socle. */
ul.lib-guide-list {
  list-style: none; padding: 0; margin: 0;
  background: var(--rz-surface); border: 1px solid var(--rz-border);
  border-radius: 14px; overflow: hidden;
}
.lib-guide-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .8rem 1.2rem;
  border-top: 1px solid var(--rz-border); font-size: .92rem;
}
.lib-guide-list li:first-child { border-top: 0; }
.lib-guide-list a { color: var(--rz-blue); text-decoration: none; font-weight: 600; }
.lib-guide-list a:hover { color: var(--rz-primary-dark); text-decoration: underline; }
.lib-guide-list .lib-guide-page { font-size: .8rem; color: var(--rz-inksoft); font-weight: 500; }
.lib-guide-list .altitude {
  font-size: .8rem; font-weight: 700; color: var(--rz-easy);
  background: var(--rz-easy-bg); border-radius: 999px;
  padding: .2rem .6rem; flex-shrink: 0; white-space: nowrap;
}

/* Sidebar — couverture livre cliquable */
.lib-cover { display: block; margin-bottom: 1.25rem; }
.lib-cover img {
  display: block; width: 100%; height: auto;
  border-radius: 14px; border: 1px solid var(--rz-border);
}

/* Sidebar — derniers livres ajoutés */
.lib-last-title {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--rz-ink);
  margin: 0 0 .6rem;
}
.lib-last {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  background: var(--rz-surface); border: 1px solid var(--rz-border);
  border-radius: 14px; overflow: hidden;
}
.lib-last li { border-top: 1px solid var(--rz-border); }
.lib-last li:first-child { border-top: 0; }
.lib-last a {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem; font-size: .86rem;
  color: var(--rz-blue); text-decoration: none; line-height: 1.3;
  transition: background .12s;
}
.lib-last a:hover { background: var(--rz-surface-2); color: var(--rz-primary-dark); }
.lib-last a .rz-ico { width: 15px; height: 15px; flex-shrink: 0; color: var(--rz-blue); }
