* { box-sizing: border-box; }
body {
  margin: 0; background: #f4f1e9; color: #292929;
  font-family: Georgia, "Times New Roman", serif;
}
a { color: #315b78; }
.bibliotheque { max-width: 850px; margin: 8vh auto; padding: 32px; }
.bibliotheque h1 { font-size: 2rem; font-weight: normal; }
.livres { padding-left: 22px; line-height: 2.2; }
.livres a { font-size: 1.15rem; }
.barre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 18px; background: #292929; color: white;
  font-family: Arial, sans-serif;
}
.barre a { color: white; text-decoration: none; white-space: nowrap; }
.outils { display: flex; flex-wrap: wrap; gap: 8px; }
button, select {
  padding: 8px 11px; border: 1px solid #aaa; border-radius: 4px;
  background: #fff; color: #222; cursor: pointer;
}
.navigation {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; padding: 12px; font-family: Arial, sans-serif;
}
.lecture-layout {
  display: flex; gap: 18px; max-width: 1450px; height: calc(100vh - 115px);
  margin: 0 auto; padding: 0 18px 18px;
}
#sommaire {
  width: 220px; flex: 0 0 220px; overflow: auto;
  padding: 14px; background: #fff; border: 1px solid #ddd;
  font: 14px/1.6 Arial, sans-serif;
}
#sommaire ul { padding-left: 18px; }
#sommaire li { margin: 7px 0; }
#lecteur {
  flex: 1; min-width: 0; height: 100%; background: #f4efdf;
  box-shadow: 0 2px 15px #00000018;
}
.mode-classique .lecture-layout { max-width: 900px; }
.mode-classique #sommaire { display: none; }
.erreur { color: #a22; }
@media (max-width: 700px) {
  .barre { align-items: flex-start; flex-direction: column; }
  .lecture-layout { height: calc(100vh - 155px); padding: 0 8px 8px; }
  #sommaire { display: none; }
  .navigation { gap: 8px; font-size: 13px; }
}
