:root{
  --fond:#fbfaf7;--texte:#22201c;--doux:#6b665d;--ligne:#e3dfd6;--accent:#8a3b12;--carte:#f3f0e9;--surligne:#fff3c4;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"Times New Roman",serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --hebreu:"SBL Hebrew","Ezra SIL","Taamey Frank CLM","Frank Ruehl CLM","Times New Roman","David","Noto Serif Hebrew","Arial Hebrew",serif;
}
@media (prefers-color-scheme:dark){:root{--fond:#1b1a18;--texte:#e9e5dc;--doux:#a8a196;--ligne:#38352f;--accent:#e2a072;--carte:#25231f;--surligne:#4a3f1c}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fond);color:var(--texte);font-family:var(--serif);font-size:1.15rem;line-height:1.65}
a{color:var(--accent);text-underline-offset:2px}
.cadre{display:flex;min-height:100vh}
.barre{position:sticky;top:0;height:100vh;width:15rem;flex-shrink:0;border-right:1px solid var(--ligne);background:var(--carte);font-family:var(--sans);font-size:.9rem;display:flex;flex-direction:column;overflow-y:auto}
.contenu{flex:1;min-width:0}
.barre-tete{height:3.5rem;display:flex;align-items:center;justify-content:space-between;padding:0 .5rem 0 1rem;flex-shrink:0}
.marque{font-family:var(--serif);font-size:1.2rem;color:var(--texte);text-decoration:none;font-weight:600;white-space:nowrap}
.marque span{font-family:var(--hebreu);font-weight:normal;color:var(--doux);margin-left:.3rem}
.bouton-ico{display:inline-flex;align-items:center;justify-content:center;padding:.45rem;border-radius:6px;color:var(--doux);background:none;border:0;cursor:pointer}
.bouton-ico:hover{background:var(--fond);color:var(--texte)}
.ico{width:1.25rem;height:1.25rem;flex-shrink:0}
.barre nav{padding:.5rem}
.groupe+.groupe{padding-top:.9rem}
.groupe-titre{padding:.25rem .75rem;font-size:.68rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--doux)}
.barre nav a{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;border-radius:6px;color:var(--doux);text-decoration:none;white-space:nowrap}
.barre nav a:hover{background:var(--fond);color:var(--texte)}
.barre nav a[aria-current]{background:var(--fond);color:var(--texte);font-weight:600}
.num-chap{display:inline-flex;align-items:center;justify-content:center;border:1.5px solid currentColor;border-radius:50%;font-size:.7rem;font-weight:700;line-height:1}
.libelle{overflow:hidden;text-overflow:ellipsis}
.barre-mobile,.menu-case,.voile,.barre .fermer{display:none}
html.replie .barre{width:4rem}
html.replie .barre .marque,html.replie .libelle{display:none}
html.replie .barre-tete{justify-content:center;padding:0}
html.replie .barre nav a{justify-content:center;padding:.55rem 0}
html.replie .groupe-titre{border-top:1px solid var(--ligne);margin:0 .75rem .4rem;padding:0;height:0}
@media (max-width:767px){
  .barre-mobile{display:flex;align-items:center;gap:.5rem;position:sticky;top:0;z-index:30;height:3rem;padding:0 .5rem;border-bottom:1px solid var(--ligne);background:var(--carte);font-family:var(--sans)}
  .barre,html.replie .barre{position:fixed;top:0;bottom:0;left:0;z-index:50;width:16rem;height:auto;transform:translateX(-100%);transition:transform .2s;box-shadow:0 0 24px rgba(0,0,0,.3)}
  html.replie .barre .marque{display:inline}
  html.replie .libelle{display:inline}
  html.replie .barre-tete{justify-content:space-between;padding:0 .5rem 0 1rem}
  html.replie .barre nav a{justify-content:flex-start;padding:.5rem .75rem}
  html.replie .groupe-titre{border:0;margin:0;padding:.25rem .75rem;height:auto}
  .barre .replier{display:none}
  .barre .fermer{display:inline-flex}
  .verset,.note,.entree{scroll-margin-top:3.75rem}
  .menu-case:checked~.cadre .barre{transform:none}
  .menu-case:checked~.voile{display:block;position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.4)}
}
main{max-width:44rem;margin:0 auto;padding:1.5rem 1rem 3rem}
h1{font-size:2rem;line-height:1.2;margin:.5rem 0 1rem}
h2{font-size:1.35rem;margin:2rem 0 .6rem}
h3{font-size:1.1rem}
footer{border-top:1px solid var(--ligne);color:var(--doux);font-family:var(--sans);font-size:.85rem;line-height:1.5;padding:1rem;max-width:44rem;margin:0 auto}
.outils{font-family:var(--sans);font-size:.9rem;display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;margin-bottom:1.5rem}
.outils button{font:inherit;background:var(--carte);color:var(--texte);border:1px solid var(--ligne);border-radius:4px;padding:.25rem .6rem;cursor:pointer}
.verset{border-top:1px solid var(--ligne);padding:1rem 0 .8rem;scroll-margin-top:1rem}
.verset:target{background:linear-gradient(var(--surligne),var(--surligne)) left/4px 100% no-repeat;padding-left:.8rem}
.trad{font-size:1.25rem;margin:0}
.num{font-family:var(--sans);font-size:.75rem;font-weight:700;color:var(--doux);text-decoration:none;margin-right:.35rem;vertical-align:.15em}
.reperes{white-space:nowrap}
a.repere{font-family:var(--sans);font-size:.72rem;font-style:italic;vertical-align:super;line-height:0;text-decoration:none;padding:0 .12rem}
.note{display:none;font-size:1rem;background:var(--carte);border-left:3px solid var(--accent);padding:.5rem .8rem;margin:.5rem 0;border-radius:0 4px 4px 0;scroll-margin-top:1rem}
.note:target,.note.ouverte{display:block}
.note .etiquette{font-family:var(--sans);font-size:.85rem;font-weight:600}
details{margin:.4rem 0;font-size:1rem}
summary{font-family:var(--sans);font-size:.85rem;color:var(--doux);cursor:pointer}
.couches{display:flex;flex-wrap:wrap;gap:0 1.2rem}
.couches details{flex:1 1 100%}
button.notes-verset{font-family:var(--sans);font-size:.85rem;color:var(--accent);background:none;border:0;padding:0;margin:.4rem 0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
button.notes-verset::before{content:"✎ ";text-decoration:none;display:inline-block;margin-right:.2rem}
.hebreu{font-family:var(--hebreu);font-size:1.6rem;line-height:1.9;direction:rtl;text-align:right;margin:.2rem 0 .5rem}
@media (max-width:480px){.hebreu{font-size:1.4rem}}
.segond{font-style:italic;color:var(--doux);margin:.3rem 0}
.table{overflow-x:auto}
table{border-collapse:collapse;font-size:.85rem;font-family:var(--sans);min-width:36rem;width:100%}
th,td{border-bottom:1px solid var(--ligne);padding:.3rem .4rem;text-align:left;vertical-align:top}
th{font-weight:600;color:var(--doux)}
td.he{font-family:var(--hebreu);font-size:1.2rem;direction:rtl;text-align:right;white-space:nowrap}
.lecture p{text-indent:0;margin:0 0 1rem}
.lecture sup a{font-family:var(--sans);font-size:.65rem;font-weight:700;color:var(--doux);text-decoration:none;margin:0 .15rem 0 .2rem}
.entree{border-top:1px solid var(--ligne);padding:.8rem 0;scroll-margin-top:1rem}
.entree:target{background:linear-gradient(var(--surligne),var(--surligne)) left/4px 100% no-repeat;padding-left:.8rem}
.entree h2{margin:.2rem 0 .4rem;font-size:1.25rem}
.entree h2 span{font-family:var(--hebreu);font-weight:normal;margin-left:.5rem}
.entree dl{margin:0;font-size:1rem;display:grid;grid-template-columns:9.5rem 1fr;gap:.25rem .8rem}
.entree dt{font-family:var(--sans);font-size:.8rem;color:var(--doux);padding-top:.25rem}
.entree dd{margin:0}
@media (max-width:600px){.entree dl{display:block}.entree dt{margin-top:.4rem}}
.entree dd ul{margin:.2rem 0;padding-left:1.2rem}
.index-gloss{font-family:var(--sans);font-size:.9rem;line-height:1.9}
.chapitres-nav{display:flex;justify-content:space-between;font-family:var(--sans);font-size:.95rem;margin-top:2rem;border-top:1px solid var(--ligne);padding-top:1rem}
@media (max-width:480px){body{font-size:1.05rem}.trad{font-size:1.15rem}h1{font-size:1.6rem}}
@media print{.barre,.barre-mobile,footer,.outils,details,.reperes,button.notes-verset{display:none}.note{display:block}}
