/* Page /poemes.php (s'appuie sur home.css pour .poeme et .recueils) */
.poemes-hero { border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 36px; }
.poemes-hero .ap-lede strong { color: var(--orange); }

/* Mode auteur */
.auteur-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 24px; background: var(--dark); color: #d9dce6; border-radius: 12px; }
.auteur-banner i { font-size: 20px; color: #ffa94d; }
.auteur-banner p { margin: 0; }
.auteur-banner strong { color: #fff; }

.liseuse { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.liseuse-nav { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.liseuse-search { position: relative; margin: 0; padding: 14px 14px 8px; font-weight: normal; }
.liseuse-search i { position: absolute; left: 28px; top: 50%; transform: translateY(-25%); color: var(--muted); font-size: 13px; }
.liseuse-search input { width: 100%; margin: 0; padding: 10px 12px 10px 36px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.liseuse-search input:focus { outline: none; border-color: var(--accent); background: #fff; }
.liseuse-arbre { overflow-y: auto; padding: 6px 8px 14px; }
.lz-livre summary { display: flex; align-items: center; gap: 10px; padding: 10px 8px; cursor: pointer; list-style: none; position: sticky; top: 0; background: #fff; z-index: 1; }
.lz-livre summary::-webkit-details-marker { display: none; }
.lz-livre summary i { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--accent); font-size: 12px; }
.lz-livre-nom { flex: 1; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.lz-livre-n { font-size: 12px; color: var(--muted); }
.lz-section { margin: 10px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lz-titre { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 6px 8px; font: inherit; font-size: 14px; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.lz-titre:hover { background: var(--paper); }
.lz-titre.is-current { background: #fff4e6; box-shadow: inset 3px 0 0 var(--orange); }
.lz-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-st { flex: none; font-size: 11px; white-space: nowrap; }
.lz-st.is-today { color: var(--orange); font-weight: 600; }
.lz-vide { padding: 20px 8px; color: var(--muted); text-align: center; }

.liseuse-lecture .poeme { min-height: 420px; }
.liseuse-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.liseuse-bas .home-btn:disabled { opacity: .35; }
.liseuse-pos { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.liseuse-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; font-size: 14px; }
.lz-outil { padding: 0; font: inherit; font-weight: 500; color: var(--accent) !important; background: none; border: 0; cursor: pointer; }
.lz-outil:hover { text-decoration: underline !important; }
.lz-astuce { margin-left: auto; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .liseuse { grid-template-columns: 1fr; }
  .liseuse-nav { position: static; max-height: 420px; }
  .lz-astuce { display: none; }
}
.poemes-hero { display: block; }
.lz-modifier { display: inline-block; margin: -4px 0 10px; font-size: 13px; font-weight: 600; color: #e8590c; }
.auteur-banner a { margin-left: 8px; font-weight: 600; white-space: nowrap; }
.lz-livre summary img.recueil-couv { width: 28px; height: 28px; flex: none; object-fit: cover; border-radius: 50%; }

/* Page /poeme.php : un poème seul, à partager */
.poeme-seul { max-width: 720px; margin: 0 auto; }
.poeme-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.poeme-partager { margin: 12px 0 0; font-size: 14px; }
.poeme-partager a { color: var(--accent); font-weight: 500; }
