/* ============================================================
   Poésies & fonds almahdiyou.org — liste, liseuse, bibliothèque
   Chargé après style.css + enluminure.css (mêmes variables).
   ============================================================ */
:root {
  --font-ar: "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
  --vers-taille: 1.18rem;
  --parchemin: #FFFDF7;
}
[hidden] { display: none !important; }
.lien-evitement { position: absolute; left: -9999px; }
.lien-evitement:focus { left: 12px; top: 12px; z-index: 100; background: var(--emerald); color: #fff; padding: 8px 14px; border-radius: 6px; }

[lang="ar"], .ar { font-family: var(--font-ar); direction: rtl; unicode-bidi: isolate; line-height: 2.05; }

/* ---------- Bandeau recueils ---------- */
.recueils { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.recueil {
  flex: 0 0 auto; scroll-snap-align: start; min-width: 210px; max-width: 250px;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #FFFDF8, var(--sand-light));
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.recueil:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -18px rgba(11,26,21,.6); }
.recueil[aria-pressed="true"] { background: linear-gradient(160deg, var(--emerald-deep), var(--emerald)); color: var(--sand-light); border-color: var(--gold); }
.recueil .r-eyebrow { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.recueil[aria-pressed="true"] .r-eyebrow { color: var(--gold-soft); }
.recueil .r-nom { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin: 4px 0 2px; line-height: 1.2; }
.recueil .r-ar { font-family: var(--font-ar); font-size: 1.05rem; color: var(--gold); direction: rtl; text-align: right; line-height: 1.6; }
.recueil[aria-pressed="true"] .r-ar { color: var(--gold-soft); }
.recueil .r-nb { font-size: .8rem; opacity: .7; }

/* ---------- Barre de recherche / filtres ---------- */
.outils-liste { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 8px 0 22px; }
@media (min-width: 760px) { .outils-liste { grid-template-columns: 2fr 1fr 1fr; } }
.outils-liste input, .outils-liste select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line-gold); border-radius: 999px; background: #FFFDF8; color: var(--ink);
}
.outils-liste input { padding-left: 42px; background: #FFFDF8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8923F' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center / 18px no-repeat; }
.compteur { font-size: .88rem; color: rgba(19,36,30,.62); margin: -6px 0 16px; }

/* ---------- Cartes poème ---------- */
.grille-poemes { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grille-poemes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grille-poemes { grid-template-columns: repeat(3, 1fr); } }
.carte-poeme {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 18px; border-radius: 14px; color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, rgba(217,190,124,.16), transparent 40%),
    linear-gradient(180deg, var(--parchemin), var(--sand-light));
  border: 1px solid var(--line-gold);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.carte-poeme::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--gold), var(--emerald)); opacity: .85; }
.carte-poeme::after { content: ""; position: absolute; right: -28px; top: -28px; width: 96px; height: 96px; background: var(--e-rosace) center / contain no-repeat; filter: brightness(.55) sepia(1) saturate(2); opacity: .13; pointer-events: none; }
.carte-poeme:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(11,26,21,.65); border-color: var(--gold); text-decoration: none; }
.carte-poeme .c-haut { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.carte-poeme .c-recueil { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.carte-poeme h3 { font-size: 1.22rem; margin: 0; color: var(--emerald-deep); }
.carte-poeme .c-vers { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.02rem; color: rgba(19,36,30,.78); line-height: 1.5; margin: 0; padding-left: 14px; border-left: 1px solid var(--line-gold); }
.carte-poeme .c-vers.ar { font-style: normal; border-left: 0; border-right: 1px solid var(--line-gold); padding: 0 14px 0 0; font-size: 1.2rem; }
.carte-poeme .c-bas { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; color: rgba(19,36,30,.6); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: rgba(11,86,65,.08); color: var(--emerald); border: 1px solid rgba(11,86,65,.15); }
.badge.or { background: rgba(184,146,63,.12); color: #7D6224; border-color: rgba(184,146,63,.35); }
.badge.alerte { background: rgba(156,59,46,.08); color: #8A3A2C; border-color: rgba(156,59,46,.25); }
.badge.ar-seul { background: var(--emerald-deep); color: var(--gold-soft); border-color: var(--gold); }
.plus-wrap { text-align: center; margin: 28px 0 8px; }
.btn-doux { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-gold); background: #FFFDF8; color: var(--emerald-deep); font: inherit; font-weight: 600; cursor: pointer; }
.btn-doux:hover { border-color: var(--gold); background: #fff; }
.vide { text-align: center; padding: 40px 10px; color: rgba(19,36,30,.6); }

details.a-retrouver { margin-top: 40px; border: 1px dashed var(--line-gold); border-radius: 12px; padding: 14px 18px; background: rgba(241,233,216,.35); }
details.a-retrouver summary { cursor: pointer; font-weight: 600; color: var(--emerald-deep); }
details.a-retrouver ul { margin: 12px 0 0; padding-left: 18px; columns: 2 260px; font-size: .92rem; }
details.a-retrouver li { margin-bottom: 6px; break-inside: avoid; }
.credit { font-size: .78rem; color: rgba(19,36,30,.55); }
.credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-gold); }

/* ============================================================
   Liseuse
   ============================================================ */
.liseuse-hero { padding: 54px 0 46px !important; }
.liseuse-hero h1 { font-size: clamp(1.7rem, 5vw, 2.7rem); }
.liseuse-hero .sous-titre { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: rgba(251,248,241,.85); font-size: .95rem; }
.liseuse-hero .titre-ar { font-family: var(--font-ar); font-size: 1.5rem; color: var(--gold-soft); direction: rtl; }

.barre-lecture {
  position: sticky; top: var(--haut-entete, 0px); z-index: 40;
  background: rgba(251,248,241,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-gold);
}
.barre-lecture .container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.barre-lecture .groupe { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.outil {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-gold); background: #FFFDF8; color: var(--emerald-deep);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.outil:hover { border-color: var(--gold); }
.outil[aria-pressed="true"] { background: var(--emerald); color: var(--sand-light); border-color: var(--gold); }
.segmente { display: inline-flex; border: 1px solid var(--line-gold); border-radius: 999px; overflow: hidden; background: #FFFDF8; }
.segmente button { border: 0; background: transparent; padding: 0 14px; height: 38px; font: inherit; font-size: .86rem; font-weight: 600; color: var(--emerald-deep); cursor: pointer; }
.segmente button[aria-pressed="true"] { background: var(--emerald); color: var(--sand-light); }
.segmente button:not(:last-child) { border-right: 1px solid var(--line-gold); }

.page-poeme { padding: 36px 0 60px; }
/* mobile : barre d'outils fixée en bas, sur une ligne, défilable */
@media (max-width: 760px) {
  .barre-lecture { position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-bottom: 0; border-top: 1px solid var(--line-gold); box-shadow: 0 -8px 20px -16px rgba(11,26,21,.6); padding-bottom: env(safe-area-inset-bottom); }
  .barre-lecture .container { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
  .barre-lecture .groupe { flex-wrap: nowrap; }
  .barre-lecture .outil { height: 36px; padding: 0 10px; font-size: .8rem; white-space: nowrap; }
  .segmente button { height: 34px; padding: 0 10px; font-size: .8rem; white-space: nowrap; }
  .page-poeme { padding-bottom: 96px; }
  .liseuse-hero .sous-titre { font-size: .88rem; }
}

.feuillet {
  position: relative; max-width: 760px; margin: 0 auto;
  background: var(--parchemin);
  border: 1px solid var(--line-gold); border-radius: 6px;
  box-shadow: 0 30px 60px -48px rgba(11,26,21,.7), 0 0 0 6px rgba(241,233,216,.6), 0 0 0 7px var(--line-gold);
  padding: 46px 22px 40px;
}
@media (min-width: 700px) { .feuillet { padding: 64px 70px 54px; } }
.feuillet::before, .feuillet::after { content: ""; position: absolute; left: 50%; width: 220px; height: 22px; transform: translateX(-50%); background: var(--e-ornement) center / contain no-repeat; }
.feuillet::before { top: 16px; }
.feuillet::after { bottom: 14px; transform: translateX(-50%) rotate(180deg); }
.feuillet.large { max-width: 1060px; }

.intro-poeme { font-size: .98rem; color: rgba(19,36,30,.78); line-height: 1.7; border-left: 2px solid var(--gold-soft); padding: 4px 0 4px 16px; margin: 0 0 30px; font-style: italic; }
.strophe { margin: 0 0 1.5em; font-family: var(--font-display); font-weight: 400; font-size: var(--vers-taille); line-height: 1.75; color: var(--ink); }
.vers { position: relative; display: block; padding-left: 3.4em; text-indent: -0.8em; }
.vers .num { position: absolute; left: 0; top: .15em; width: 2em; text-align: right; font-family: var(--font-body); font-size: .7em; font-weight: 600; color: var(--gold); font-variant-numeric: oldstyle-nums; }
.strophe .vers:nth-child(even):not(.avec-num) { padding-left: 4.4em; }
.vers .num { text-indent: 0; }
@media (max-width: 700px) {
  .vers { padding-left: 2.6em; }
  .strophe .vers:nth-child(even):not(.avec-num) { padding-left: 3.2em; }
  .vers .num { width: 1.6em; }
}
@media (min-width: 701px) { .strophe:first-child .vers:first-child::first-letter { font-size: 2.1em; line-height: 1; color: var(--emerald); float: left; padding: 4px 6px 0 0; font-weight: 600; } }

/* paires arabe / latin */
.paire { display: grid; gap: 6px 36px; margin: 0 0 1.4em; padding-bottom: 1.2em; border-bottom: 1px dashed rgba(184,146,63,.28); }
.paire:last-child { border-bottom: 0; }
.paire .col-ar { font-family: var(--font-ar); direction: rtl; text-align: right; font-size: calc(var(--vers-taille) * 1.35); line-height: 2.1; color: var(--emerald-deep); }
.paire .col-lat { font-family: var(--font-display); font-size: var(--vers-taille); line-height: 1.7; }
.paire .col-lat .tr { font-style: italic; color: rgba(19,36,30,.85); }
.paire .col-lat .fr { color: rgba(19,36,30,.7); font-family: var(--font-body); font-size: .92em; }
.mode-deux .paire { grid-template-columns: 1fr; }
@media (min-width: 820px) { .mode-deux .paire { grid-template-columns: 1fr 1fr; align-items: start; } .mode-deux .paire .col-ar { order: 2; } }
.mode-ar .paire .col-lat, .mode-lat .paire .col-ar { display: none; }
.mode-ar .paire { border-bottom-color: transparent; padding-bottom: 0; margin-bottom: .6em; }
.mode-ar .feuillet-corps { direction: rtl; }
.mode-ar .paire .col-ar { text-align: center; }

.colophon { text-align: center; margin: 34px 0 6px; font-size: .92rem; color: rgba(19,36,30,.7); font-style: italic; }
.colophon::before { content: ""; display: block; width: 16px; height: 16px; margin: 0 auto 12px; background: var(--e-etoile) center / contain no-repeat; }
.lexique { margin-top: 30px; border-top: 1px solid var(--line-gold); padding-top: 18px; }
.lexique summary { cursor: pointer; font-weight: 600; color: var(--emerald-deep); }
.lexique ol { list-style: none; padding: 0; margin: 12px 0 0; font-size: .92rem; line-height: 1.7; }
.lexique li { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.lexique li [lang="ar"] { font-size: 1.15em; }

.pied-poeme { max-width: 760px; margin: 22px auto 0; display: flex; flex-direction: column; gap: 14px; }
.nav-poemes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nav-poemes a { display: block; padding: 14px 16px; border: 1px solid var(--line-gold); border-radius: 12px; background: #FFFDF8; color: var(--emerald-deep); }
.nav-poemes a:hover { border-color: var(--gold); text-decoration: none; }
.nav-poemes a small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.nav-poemes a span { font-family: var(--font-display); font-weight: 600; }
.nav-poemes .suiv { text-align: right; grid-column: 2; }
.avis-source { font-size: .8rem; color: rgba(19,36,30,.58); text-align: center; }
.avis-source a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-gold); }

/* mode lecture : plein écran, sans en-tête ni pied de page */
body.lecture .site-header, body.lecture .site-footer, body.lecture .liseuse-hero { display: none; }
body.lecture { background: #F4ECDC; }
body.lecture .barre-lecture { background: rgba(244,236,220,.96); }
body.lecture .feuillet { box-shadow: none; }
body.nuit { background: #0E1714; }
body.nuit .feuillet { background: #13201B; color: #E9E1CF; border-color: rgba(217,190,124,.3); box-shadow: none; }
body.nuit .strophe, body.nuit .paire .col-lat { color: #E9E1CF; }
body.nuit .paire .col-ar { color: var(--gold-soft); }
body.nuit .barre-lecture { background: rgba(14,23,20,.95); border-color: rgba(217,190,124,.3); }
body.nuit .outil, body.nuit .segmente { background: #13201B; color: var(--gold-soft); }
body.nuit .nav-poemes a { background: #13201B; color: #E9E1CF; }
body.nuit .intro-poeme, body.nuit .colophon, body.nuit .avis-source { color: rgba(233,225,207,.75); }

/* ---------- Bibliothèque : onglets & fiches ---------- */
.onglets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.onglets button { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-gold); background: #FFFDF8; color: var(--emerald-deep); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.onglets button[aria-selected="true"] { background: var(--emerald); color: var(--sand-light); border-color: var(--gold); }
.onglets button .n { opacity: .65; font-weight: 500; margin-left: 4px; }
.carte-doc { display: flex; gap: 16px; padding: 18px; border-radius: 12px; border: 1px solid var(--line-gold); background: linear-gradient(180deg, var(--parchemin), var(--sand-light)); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.carte-doc:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -22px rgba(11,26,21,.7); text-decoration: none; }
.couv { flex: 0 0 64px; height: 88px; border-radius: 3px 8px 8px 3px; position: relative; overflow: hidden; color: var(--gold-soft);
  background: radial-gradient(circle at 50% 42%, rgba(217,190,124,.25), transparent 50%), var(--e-girih-doux) 0 0 / 30px 30px, linear-gradient(135deg, var(--nuit), var(--emerald));
  box-shadow: inset 4px 0 0 rgba(0,0,0,.25), 0 6px 12px -8px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; }
.couv::after { content: ""; width: 26px; height: 26px; background: var(--e-medaillon) center / contain no-repeat; }
.couv.discours { background: radial-gradient(circle at 50% 42%, rgba(217,190,124,.25), transparent 50%), var(--e-girih-doux) 0 0 / 30px 30px, linear-gradient(135deg, #3B2A10, #8A6A2A); }
.couv.revues { background: radial-gradient(circle at 50% 42%, rgba(217,190,124,.25), transparent 50%), var(--e-girih-doux) 0 0 / 30px 30px, linear-gradient(135deg, #1F2B3A, #2F5468); }
.carte-doc .d-type { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.carte-doc h3 { font-size: 1.05rem; margin: 3px 0 6px; }
.carte-doc p { font-size: .88rem; color: rgba(19,36,30,.7); margin: 0 0 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-doc.indispo { opacity: .7; }
.grille-docs { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .grille-docs { grid-template-columns: 1fr 1fr; } }

.fiche { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 36px 0 10px; }
@media (min-width: 900px) { .fiche { grid-template-columns: 260px 1fr; } }
.fiche .couv { width: 180px; height: 250px; flex: none; margin: 0 auto; }
.fiche .couv::after { width: 70px; height: 70px; }
@media (max-width: 899px) { .fiche .couv { display: none; } .fiche { padding-top: 22px; } .fiche aside { order: 2; } }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; margin: 18px 0; }
.fiche dt { color: rgba(19,36,30,.6); }
.fiche dd { margin: 0; font-weight: 500; }
.actions-doc { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.texte-doc { font-size: 1.05rem; line-height: 1.85; max-width: 72ch; }
.texte-doc p { margin: 0 0 1.1em; }
.texte-doc p[dir="rtl"] { font-family: var(--font-ar); font-size: 1.3em; line-height: 2.1; text-align: right; }
.doc-cols.bilingue { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .doc-cols.bilingue[data-mode="deux"] { grid-template-columns: 1fr 1fr; } .doc-cols.bilingue[data-mode="deux"] .col-ar { border-left: 1px solid var(--line-gold); padding-left: 30px; } }
.doc-cols[data-mode="fr"] .col-ar, .doc-cols[data-mode="ar"] .col-fr { display: none; }
.texte-doc.col-ar { font-family: var(--font-ar); font-size: 1.28rem; line-height: 2.15; text-align: right; max-width: none; }
.texte-doc.col-ar p { font-size: 1em; }
.visionneuse { width: 100%; height: 78vh; border: 1px solid var(--line-gold); border-radius: 8px; background: #fff; }

/* ---------- Impression ---------- */
@media print {
  .site-header, .site-footer, .barre-lecture, .pied-poeme .nav-poemes, .liseuse-hero .hero-pattern, .actions-doc, [hidden] { display: none !important; }
.lien-evitement { display: none !important; }
  .liseuse-hero { background: none !important; color: #000 !important; padding: 0 0 10px !important; }
  .liseuse-hero h1, .liseuse-hero .sous-titre { color: #000 !important; text-shadow: none !important; }
  .liseuse-hero::before, .liseuse-hero::after { display: none !important; }
  .feuillet { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .lexique[open] summary { display: none; }
  details.lexique > *:not(summary) { display: block !important; }
  .strophe { break-inside: avoid; }
}

.liseuse-hero .badge:not(.ar-seul):not(.alerte) { background: rgba(251,248,241,.1); color: var(--gold-soft); border-color: rgba(217,190,124,.45); }
.liseuse-hero .badge.alerte { background: rgba(251,248,241,.92); }

/* ============================================================
   Médaillons des poètes (photo ronde ou initiales en attendant)
   ============================================================ */
.medaillon {
  --t: 56px;
  position: relative; flex: 0 0 auto;
  width: var(--t); height: var(--t); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(217,190,124,.28), transparent 55%),
    var(--e-girih-doux) center / calc(var(--t) * .7) calc(var(--t) * .7),
    linear-gradient(145deg, var(--emerald), var(--nuit));
  box-shadow: 0 0 0 2px var(--gold-soft), 0 0 0 calc(var(--t) * .06) rgba(251,248,241,.95), 0 0 0 calc(var(--t) * .06 + 1px) var(--gold), 0 8px 18px -10px rgba(11,26,21,.7);
  overflow: hidden; isolation: isolate;
}
.medaillon .ini {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .04em;
  font-size: calc(var(--t) * .34); line-height: 1; color: var(--gold-soft);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.medaillon::after {   /* petite étoile d'or en pied de médaillon */
  content: ""; position: absolute; left: 50%; bottom: calc(var(--t) * .1); transform: translateX(-50%);
  width: calc(var(--t) * .16); height: calc(var(--t) * .16);
  background: var(--e-etoile) center / contain no-repeat; opacity: .9; z-index: 1;
}
.medaillon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.medaillon.avec-photo::after { display: none; }
.medaillon.xs { --t: 26px; box-shadow: 0 0 0 1.5px var(--gold-soft); }
.medaillon.xs::after { display: none; }
.medaillon.sm { --t: 40px; }
.medaillon.md { --t: 64px; }
.medaillon.lg { --t: 112px; }
.medaillon.xl { --t: 150px; }

/* cartes Diwanes */
.recueil { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.recueil .medaillon { margin: 2px 0 10px 2px; }
.recueil[aria-pressed="true"] .medaillon { box-shadow: 0 0 0 2px var(--gold-soft), 0 0 0 5px rgba(9,62,48,.9), 0 0 0 6px var(--gold-soft); }
.recueil .tous { --t: 64px; margin: 2px 0 10px 2px; }

/* auteur sur les cartes poème */
.carte-poeme .c-haut { justify-content: flex-start; align-items: center; gap: 10px; }

/* puces de filtre par poète */
.puces-poetes { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 18px; }
.puce-poete { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-gold); background: #FFFDF8; font: inherit; font-size: .84rem; font-weight: 600; color: var(--emerald-deep); cursor: pointer; }
.puce-poete[aria-pressed="true"] { background: var(--emerald); color: var(--sand-light); border-color: var(--gold); }
@media (max-width: 640px) { .puces-poetes { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .puce-poete { flex: 0 0 auto; } }

/* en-tête liseuse */
.liseuse-hero .tete-poete { display: flex; align-items: center; gap: 26px; }
.liseuse-hero .tete-poete > div { min-width: 0; }
.liseuse-hero .medaillon { box-shadow: 0 0 0 2px var(--gold-soft), 0 0 0 8px rgba(251,248,241,.08), 0 0 0 9px rgba(217,190,124,.55), 0 14px 30px -12px rgba(0,0,0,.6); }
.liseuse-hero .lien-poete { color: var(--sand-light); text-decoration: underline; text-decoration-color: rgba(217,190,124,.5); text-underline-offset: 3px; }
@media (max-width: 640px) { .liseuse-hero .tete-poete { flex-direction: column; align-items: flex-start; gap: 16px; } .liseuse-hero .medaillon.lg { --t: 84px; } }

/* fiche poète */
.fiche-poete { display: grid; gap: 30px; grid-template-columns: 1fr; padding: 40px 0 10px; }
@media (min-width: 860px) { .fiche-poete { grid-template-columns: 240px 1fr; } }
.fiche-poete aside { text-align: center; }
.fiche-poete .credit-photo { font-size: .75rem; color: rgba(19,36,30,.55); margin-top: 14px; }
.fiche-poete .nom-ar { font-family: var(--font-ar); font-size: 1.5rem; color: var(--gold); direction: rtl; margin-top: 14px; }
.bio-attente { border: 1px dashed var(--line-gold); border-radius: 12px; padding: 16px 18px; color: rgba(19,36,30,.65); font-size: .92rem; background: rgba(241,233,216,.3); margin-bottom: 24px; }
@media (min-width: 760px) { #contenu .outils-liste { --cols-outils: 2fr 1fr; } }
@media (min-width: 701px) { .strophe:first-child .vers:first-child { text-indent: 0; } }
