:root { --fg:#1a1a1a; --bg:#fafafa; --accent:#5b3a8c; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, sans-serif; color:var(--fg); background:var(--bg); }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:.6rem 1rem; background:var(--accent); color:#fff; }
.topbar a, .topbar .user { color:#fff; text-decoration:none; }
.brand { font-weight:700; font-size:1.1rem; }
.container { max-width: 60rem; margin:0 auto; padding:1.5rem 1rem; }
.inline { display:inline; }
.login { display:flex; flex-direction:column; gap:.5rem; max-width:20rem; }
button { cursor:pointer; padding:.4rem .8rem; border:0; border-radius:.3rem; background:var(--accent); color:#fff; }
.messages { list-style:none; padding:0; }
.notice-head { display:flex; gap:1.5rem; align-items:flex-start; flex-wrap:wrap; }
.cover { max-width:160px; height:auto; border-radius:.3rem; box-shadow:0 1px 4px rgba(0,0,0,.2); }
.meta dt { font-weight:600; } .meta dd { margin:0 0 .4rem; }
.exemplaires { border-collapse:collapse; width:100%; } .exemplaires th,.exemplaires td{ text-align:left; padding:.35rem .6rem; border-bottom:1px solid #ddd; }
.search-bar { display:flex; gap:.5rem; margin:1rem 0; } .search-bar input{ flex:1; padding:.5rem; }
.resultats { list-style:none; padding:0; } .resultats li{ padding:.35rem 0; border-bottom:1px solid #eee; }
.muted { color:#777; }
.topbar nav a, .topbar > a { margin-right:.8rem; }
.actions { display:flex; gap:.5rem; align-items:center; margin:.6rem 0; }
.loan { background:#fff3e0; padding:.4rem .6rem; border-radius:.3rem; }
textarea { width:100%; font-family:inherit; }
.messages li.success { color:#1b5e20; } .messages li.error { color:#b71c1c; }
.stats { display:flex; flex-wrap:wrap; gap:.8rem; margin:1rem 0; }
.stat { background:#fff; border:1px solid #e0e0e0; border-radius:.4rem; padding:.6rem 1rem; min-width:6rem; text-align:center; }
.stat b { display:block; font-size:1.6rem; color:var(--accent); } .stat span { font-size:.8rem; color:#666; }
.stat.alert b { color:#b71c1c; }
.retard { color:#b71c1c; font-weight:600; }
.exports { display:flex; gap:.6rem; align-items:center; margin:.6rem 0; flex-wrap:wrap; }
.btn { display:inline-block; padding:.35rem .7rem; border:1px solid var(--accent); border-radius:.3rem; background:#fff; color:var(--accent); text-decoration:none; cursor:pointer; font-size:.9rem; }
.apa7-preview { max-width:40rem; }
