.site-header { position: sticky; top: 0; z-index: 50; color: #54433f; background: rgba(250,249,247,.96); backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(26,28,27,.06); font-family: Manrope, sans-serif; }
.site-header--home { position: fixed; width: 100%; }
.site-header-main { max-width: 100rem; margin: auto; padding: 16px 24px; display: flex; flex-wrap: nowrap; align-items: center; gap: 20px; }
.site-brand { font-family: Newsreader, serif; font-size: 29px; font-style: italic; color: #883f2e; white-space: nowrap; margin-right: 0; flex-shrink: 0; text-decoration: none; }
.book-picker { position: static; flex-shrink: 0; min-width: 0; }
.book-picker summary { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 5px 0; font-size: 17px; font-weight: 600; color: #883f2e; cursor: pointer; list-style: none; }
.book-picker summary::-webkit-details-marker { display: none; }
.book-picker summary > svg { transition: transform .2s; }
.book-picker[open] summary > svg { transform: rotate(180deg); }
.book-picker-options { position: absolute; top: calc(100% + 8px); left: clamp(16px, 20vw, 280px); width: 390px; max-width: calc(100vw - 32px); max-height: 65vh; overflow-y: auto; padding: 8px; background: #fff; border-radius: 12px; box-shadow: 0 16px 48px rgba(26,28,27,.15); }
.book-picker-option { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 8px; color: #1a1c1b; text-decoration: none; }
.book-picker-option:hover, .book-picker-option[aria-current="true"] { background: #f4f3f1; color: #883f2e; }
.book-picker-option img { width: 38px; height: 54px; object-fit: contain; flex-shrink: 0; }
.book-option-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.4; }
.book-option-description { display: block; margin-top: 5px; font-size: 13px; color: #595f62; }
.book-new { display: inline-block; margin-left: 4px; padding: 2px 6px; background: #ffebe7; color: #883f2e; border-radius: 4px; font-weight: 700; }
.site-buy { display: inline-flex; justify-content: center; align-items: center; padding: 11px 18px; border-radius: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none; color: #fff; background: linear-gradient(45deg,#883f2e,#a65644); }
.site-admin { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; color: #595f62; text-decoration: none; }
.site-admin:hover { color: #883f2e; background: #efeeec; }
.site-admin-menu { position: static; flex-shrink: 0; }
.site-admin-menu summary { cursor: pointer; list-style: none; }
.site-admin-menu summary::-webkit-details-marker { display: none; }
.site-admin-options { position: absolute; right: 24px; top: calc(100% + 8px); width: 270px; max-width: calc(100vw - 32px); padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 16px 48px rgba(26,28,27,.15); }
.site-admin-options a { display: block; padding: 12px; border-radius: 8px; font-size: 16px; color: #54433f; text-decoration: none; }
.site-admin-options a:hover { background: #f4f3f1; color: #883f2e; }
.site-nav-links { position: static; display: flex; flex: 1 0 auto; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 18px; margin: 0; padding: 0; }
.site-nav-links > a { display: flex; align-items: center; flex-shrink: 0; min-height: 40px; padding: 5px 0; color: #595f62; font-size: 17px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.site-nav-links > a:hover { color: #883f2e; }
.site-header a:focus-visible, .site-header summary:focus-visible { outline: 2px solid #883f2e; outline-offset: 4px; }
html { scroll-padding-top: 105px; }
[data-book-audio][hidden] { display: none !important; }
#accueil { padding-top: 155px; }

@media (max-width: 1199px) {
  .site-header-main { overflow-x: auto; scrollbar-width: none; }
  .site-header-main::-webkit-scrollbar { display: none; }
  .site-nav-links { flex: 0 0 auto; }
}
@media (max-width: 767px) {
  .site-header-main { gap: 18px; padding: 12px 16px; }
  .site-brand { font-size: 24px; }
  .site-buy { padding: 10px 12px; font-size: 13px; }
  .site-admin { width: 36px; height: 36px; }
  .book-picker-options { left: 16px; right: 16px; width: auto; }
  .site-admin-options { right: 16px; }
  .book-picker summary, .site-nav-links > a { font-size: 16px; }
  #accueil { padding-top: 140px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
