/* comics.css */

:root { color-scheme: light; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
  background: #fff;
  color: #111;
}

header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 10;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 16px;
}

.topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.lang {
  display: inline-flex;
  border: 1px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.lang button[aria-pressed="true"] {
  background: #111;
  color: #fff;
}

.hint {
  color: #666;
  font-size: 14px;
}

.error { color: #b00020; }

/* Menu linéaire */
.menu {
  padding: 10px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu-inner {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  padding-bottom: 10px;
}

.menu a {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.menu a[aria-current="true"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

main { padding: 16px; }

.viewer {
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
}

.viewer h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.nav a {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.pages {
  display: grid;
  gap: 10px;
}

.pages img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #f6f6f6;
}

.cta {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  font-size: 14px;
}

.cta a {
  font-weight: 700;
  text-decoration: none;
}

footer { padding: 0 16px 20px; }
