/* ==========================================================================
   PhenixScan — feuille de style principale (site public)
   Thème sombre, accent orange phénix. Mobile-first, pleine largeur en desktop.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Oswald:wght@500;600;700&display=swap');

:root {
  --bg: #0b0c0f;
  --bg-elevated: #0f1115;
  --panel: #13151a;
  --panel-soft: #181a20;
  --line: #262931;
  --text: #f5f5f6;
  --text-soft: #c6c8ce;
  --muted: #91959f;
  --accent: #ff4b16;
  --accent-soft: rgba(255, 75, 22, .14);
  --gold: #ffc34d;
  --success: #34d399;
  --danger: #fb7185;
  --radius: 10px;
  --container: 1360px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --topbar-h: 68px;
  --bottom-nav-h: 0px;
  --font-display: 'Oswald', 'Inter', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.desktop-only { display: none !important; }
.mobile-only { display: inline-flex; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Le site occupe TOUTE la largeur de l'écran ; seul le contenu est centré dans .container */
.page-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); overflow-x: clip; padding-bottom: var(--bottom-nav-h); }
.page-shell > main { flex: 1 0 auto; width: 100%; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: filter .15s, background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; border-color: #4a4e58; color: var(--text); }
.btn-ghost:hover { background: var(--panel-soft); border-color: #6a6e79; }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn[aria-disabled='true'], .btn.is-disabled { opacity: .45; pointer-events: none; }

.announcement {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background-color: color-mix(in srgb, var(--accent) 8%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-button {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  transition: border-color .15s, color .15s, background .15s;
}
.icon-button .icon { width: 19px; height: 19px; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(11, 12, 15, .92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo-square {
  width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center;
  background: #4b5563; border: 2px solid #6b7280; border-radius: 6px;
}
.brand-logo-square::after { content: 'PS'; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #d1d5db; letter-spacing: -.04em; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1; letter-spacing: .02em; }
.brand-name span { color: var(--accent); }
.brand-kicker { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; display: none; }

.main-nav { display: none; align-items: center; gap: 4px; margin-left: 10px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 8px;
  color: var(--text-soft); font-size: 14px; font-weight: 600; transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.is-active { color: #fff; background: var(--panel-soft); }
.nav-link.accent { color: var(--accent); }
.nav-link .icon { width: 17px; height: 17px; }

/* Barre de recherche */
.search-box { position: relative; display: flex; flex: 1 1 auto; max-width: 560px; margin-left: auto; }
.search-field {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 42px; padding: 0 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
.search-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 14.5px; color: var(--text); }
.search-field input::placeholder { color: var(--muted); }
.search-field button { display: grid; place-items: center; background: none; border: 0; padding: 0; color: inherit; }
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70; display: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.is-active { background: var(--panel-soft); }
.suggest-cover { width: 36px; height: 50px; border-radius: 4px; object-fit: cover; background: var(--panel-soft); flex-shrink: 0; }
.suggest-title { font-weight: 700; font-size: 14px; }
.suggest-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.suggest-empty { padding: 14px; color: var(--muted); font-size: 13.5px; }
.suggest-all { display: block; padding: 11px 14px; text-align: center; color: var(--accent); font-weight: 700; font-size: 13.5px; background: var(--bg-elevated); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

/* Bouton Burger & Drawer Mobile */
.burger-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s ease;
  margin-left: 10px;
}
.burger-btn:hover { border-color: var(--accent); color: var(--accent); }

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #111318;
  border-left: 1px solid var(--line);
  z-index: 101;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .7);
}
.mobile-drawer.is-open {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 600;
  transition: all .15s;
}
.drawer-link:hover, .drawer-link.is-active {
  color: #fff;
  background: var(--panel-soft);
}
.drawer-link.accent { color: var(--accent); }
.drawer-link.danger { color: var(--danger); }
.drawer-user {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Menu utilisateur */
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, #ff4b16, #a82500); border: 2px solid #ff8863;
  font-size: 15px; font-weight: 800; color: #fff; text-transform: uppercase;
}
.user-name { display: none; font-size: 14px; font-weight: 600; }
.user-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}
.user-panel-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-panel-head b { display: block; font-size: 14px; }
.user-panel-head span { color: var(--muted); font-size: 12px; word-break: break-all; }
.menu-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.menu-item:hover { background: var(--panel-soft); color: #fff; }
.menu-item.accent { color: var(--accent); }
.menu-item.accent:hover { color: #fff; background: rgba(255, 92, 0, 0.15); }
.menu-item.danger:hover { color: var(--danger); }
.menu-item .icon { width: 17px; height: 17px; }

/* Messages flash */
.flash-stack { padding-top: 16px; }
.flash-stack:empty { display: none !important; padding: 0 !important; margin: 0 !important; }
.flash {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 13px 16px; border-radius: 10px;
  border: 1px solid; font-size: 14px;
}
.flash .icon { width: 19px; height: 19px; }
.flash span { flex: 1; }
.flash button { background: none; border: 0; color: inherit; opacity: .7; display: grid; place-items: center; padding: 2px; }
.flash button:hover { opacity: 1; }
.flash-success { background: rgba(6, 78, 59, .45); border-color: rgba(52, 211, 153, .45); color: #a7f3d0; }
.flash-error { background: rgba(127, 29, 29, .45); border-color: rgba(251, 113, 133, .45); color: #fecdd3; }
.flash-info { background: rgba(30, 58, 138, .4); border-color: rgba(96, 165, 250, .4); color: #bfdbfe; }

/* ---------- Couvertures (image réelle ou visuel typographique de repli) ---------- */
.cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #13151a 25%, #222631 50%, #13151a 75%);
  background-size: 200% 100%;
  animation: phenix-shimmer 1.8s ease-in-out infinite;
}
.cover.is-loaded, .cover:has(.cover-fallback) {
  animation: none;
  background: var(--panel-soft);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}
.cover.is-loaded img, .cover img.is-loaded {
  opacity: 1;
}
.cover-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; text-align: center; background: linear-gradient(150deg, #1b2540, #5a2154);
}
.cover-fallback b { font-family: var(--font-display); font-size: 54px; line-height: 1; color: rgba(255, 255, 255, .85); }
.cover-fallback span { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tone-1 .cover-fallback, .cover-fallback.tone-1 { background: linear-gradient(150deg, #1b2540, #5a2154); }
.tone-2 .cover-fallback, .cover-fallback.tone-2 { background: linear-gradient(150deg, #4b5a22, #12181a 80%); }
.tone-3 .cover-fallback, .cover-fallback.tone-3 { background: linear-gradient(150deg, #8f1520, #141024 80%); }
.tone-4 .cover-fallback, .cover-fallback.tone-4 { background: linear-gradient(150deg, #154d79, #171124 80%); }
.tone-5 .cover-fallback, .cover-fallback.tone-5 { background: linear-gradient(150deg, #7c321c, #140d0d 80%); }
.tone-6 .cover-fallback, .cover-fallback.tone-6 { background: linear-gradient(150deg, #7d1754, #1c1231 80%); }
.tone-7 .cover-fallback, .cover-fallback.tone-7 { background: linear-gradient(150deg, #152451, #6e267f 70%); }
.tone-8 .cover-fallback, .cover-fallback.tone-8 { background: linear-gradient(150deg, #20163c, #81398b 60%, #263f75); }

/* ---------- Bouton favori (étoile) ---------- */
.fav-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; background: rgba(11, 12, 15, .7); border: 1px solid var(--line); color: var(--text);
  transition: color .15s, border-color .15s, background .15s, transform .15s;
  backdrop-filter: blur(6px);
}
.fav-btn .icon { width: 20px; height: 20px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), fill .15s; }
.fav-btn:hover { border-color: var(--gold); color: var(--gold); }
.fav-btn[aria-pressed='true'] { color: var(--gold); border-color: rgba(255, 195, 77, .6); background: rgba(255, 195, 77, .12); }
.fav-btn[aria-pressed='true'] .icon { fill: var(--gold); }
.fav-btn.is-pop .icon { transform: scale(1.35) rotate(18deg); }
.fav-btn.fav-btn--lg { width: 48px; height: 48px; border-radius: 10px; }
.fav-btn.fav-btn--lg .icon { width: 23px; height: 23px; }

/* Bouton de partage : icône puis coche de confirmation (aucune alerte) */
[data-share] { position: relative; }
[data-share] .icon-check { display: none; }
[data-share].is-done { color: var(--success); border-color: var(--success); }
[data-share].is-done .icon-share { display: none; }
[data-share].is-done .icon-check { display: block; }
.tip {
  position: absolute; top: calc(100% + 8px); right: 0; padding: 5px 10px; border-radius: 6px; background: var(--success); color: #04201a;
  font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .2s, transform .2s;
}
[data-share].is-done .tip { opacity: 1; transform: none; }

/* ---------- Titres de section ---------- */
.section { padding-top: clamp(26px, 4vw, 48px); padding-bottom: 6px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.section-subtitle { margin-top: 5px; color: var(--muted); font-size: 14px; }
.see-all { color: var(--accent); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.see-all:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(125deg, #20163c, #81398b 50%, #263f75); }
.hero-backdrop { position: absolute; inset: 0; }
.hero-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.5) saturate(1.2); transform: scale(1.2); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 8, 12, .94) 12%, rgba(7, 8, 12, .55) 58%, rgba(7, 8, 12, .15)), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: clamp(40px, 7vw, 92px); padding-bottom: clamp(40px, 7vw, 92px); }
.hero-content { max-width: 620px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.4vw, 66px); line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; }
.hero-copy { margin-top: 16px; color: var(--text-soft); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-cover { display: none; width: 230px; aspect-ratio: 2 / 3; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); transform: rotate(3deg); flex-shrink: 0; transition: transform .25s; }
.hero-cover:hover { transform: rotate(0) scale(1.03); }

/* ---------- Grille de mangas ---------- */
.manga-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.manga-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, transform .2s; }
.manga-card:hover { border-color: rgba(255, 75, 22, .6); transform: translateY(-3px); }
.manga-card .card-link { display: block; }
.manga-card .cover { aspect-ratio: 2 / 3; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 8, .96) 12%, rgba(5, 6, 8, .35) 52%, transparent 78%); pointer-events: none; }
.card-content { position: absolute; left: 12px; right: 12px; bottom: 12px; pointer-events: none; }
.card-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; text-transform: uppercase; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 5px; color: #b4b7bf; font-size: 12.5px; }
.manga-card .fav-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; z-index: 2; }
.manga-card .fav-btn .icon { width: 18px; height: 18px; }
.badge-new { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 8px; border-radius: 4px; background: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Dernières sorties ---------- */
.filter-box { display: flex; align-items: center; gap: 8px; padding: 0 13px; height: 40px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; color: var(--muted); }
.filter-box:focus-within { border-color: var(--accent); }
.filter-box input { width: 120px; outline: 0; background: transparent; border: 0; font-size: 14px; color: var(--text); }
.chapter-list { display: grid; grid-template-columns: 1fr; gap: 0 36px; border-top: 1px solid var(--line); }
.chapter-row { position: relative; display: grid; grid-template-columns: 62px 1fr 34px; gap: 14px; align-items: center; padding: 13px 8px; border-bottom: 1px solid var(--line); transition: background .15s; }
.chapter-row:hover { background: rgba(255, 255, 255, .025); }
.chapter-cover { width: 62px; height: 86px; border-radius: 5px; }
.chapter-cover .cover-fallback b { font-size: 26px; }
.chapter-cover .cover-fallback span { display: none; }
.chapter-title { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.chapter-number { color: var(--text-soft); font-size: 14px; margin-bottom: 4px; }
.chapter-time { color: var(--muted); font-size: 13px; }
.chapter-read { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: all .15s; }
.chapter-row:hover .chapter-read { border-color: var(--accent); color: #fff; background: var(--accent); }
.new-dot { position: absolute; left: 6px; top: 6px; z-index: 10; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 10px var(--accent); }

/* ---------- Mise en avant ---------- */
.spotlight { position: relative; overflow: hidden; margin-top: clamp(30px, 5vw, 60px); border-top: 1px solid var(--line); background: var(--panel); }
.spotlight .hero-backdrop img { filter: blur(26px) brightness(.45); }
.spotlight-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(24px, 5vw, 64px); padding-top: clamp(36px, 5vw, 70px); padding-bottom: clamp(36px, 5vw, 70px); }
.spotlight-cover { width: clamp(120px, 20vw, 220px); aspect-ratio: 2 / 3; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); flex-shrink: 0; }
.spotlight-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 48px); line-height: 1.05; text-transform: uppercase; }
.spotlight-meta { margin-top: 12px; color: var(--text-soft); font-size: 14.5px; }
.spotlight-copy { margin-top: 12px; color: var(--text-soft); font-size: 15px; line-height: 1.65; max-width: 620px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- États vides ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(36px, 6vw, 70px) 20px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; background: rgba(19, 21, 26, .5); }
.empty-state .icon { width: 42px; height: 42px; color: var(--muted); }
.empty-state h3 { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.empty-state p { color: var(--muted); max-width: 440px; }

/* ---------- Pied de page allégé ---------- */
.site-footer { margin-top: clamp(60px, 8vw, 100px); border-top: 1px solid var(--line); background: #08090c; color: var(--text-soft); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.footer-brand .brand-logo-square { width: 32px; height: 32px; }
.footer-brand .brand-logo-square::after { font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.3fr 1.1fr; gap: clamp(24px, 4vw, 48px); padding: clamp(40px, 6vw, 64px) 0 36px; }
.footer-col-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-col-links a { color: var(--muted); transition: color .15s ease; }
.footer-col-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 12.5px; color: #656974; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Fiche manga
   ========================================================================== */
.detail-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(150deg, #1b2540, #5a2154); }
.detail-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #13151a 25%, #222631 50%, #13151a 75%);
  background-size: 200% 100%;
  animation: phenix-shimmer 1.8s ease-in-out infinite;
}
.detail-backdrop.is-loaded {
  animation: none;
  background: transparent;
}
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) brightness(.4) saturate(1.2);
  transform: scale(1.15);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.detail-backdrop.is-loaded img, .detail-backdrop img.is-loaded {
  opacity: 1;
}
.detail-gradient { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 1%, rgba(11, 12, 15, .5) 55%, rgba(11, 12, 15, .75)); }
.detail-hero-inner { position: relative; z-index: 2; padding-top: 18px; padding-bottom: clamp(24px, 4vw, 44px); }
.detail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(22px, 5vw, 56px); }
.back-action { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(11, 12, 15, .55); border: 1px solid var(--line); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.back-action:hover { border-color: var(--accent); }
.detail-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.detail-cover { width: clamp(128px, 36vw, 190px); aspect-ratio: 2 / 3; flex-shrink: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .24); box-shadow: 0 18px 44px rgba(0, 0, 0, .6); }
.detail-heading { min-width: 0; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.status-pill.completed { background: #059669; }
.status-pill.hiatus { background: #b45309; }
.detail-title { margin-top: 14px; font-family: var(--font-display); font-size: clamp(32px, 6vw, 62px); font-weight: 700; line-height: 1.02; text-transform: uppercase; overflow-wrap: anywhere; }
.detail-byline { margin-top: 12px; color: var(--text-soft); font-size: clamp(14.5px, 1.5vw, 17px); }
.detail-byline b { color: #fff; font-weight: 600; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.detail-actions .btn { padding: 13px 22px; font-size: 14.5px; }

.detail-main { padding-top: 10px; padding-bottom: 20px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; margin: 24px 0 8px; }
.stat-strip > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border-right: 1px solid var(--line); text-align: center; }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip b { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; line-height: 1.1; }
.stat-strip span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.detail-columns { display: grid; grid-template-columns: 1fr; gap: 0 56px; }
.info-section { padding: 28px 0; border-top: 1px solid var(--line); }
.detail-columns > div > .info-section:first-child, .detail-main > .info-section:first-of-type { border-top: 0; }
.info-section .section-title { font-size: clamp(22px, 2.4vw, 27px); }
.synopsis { margin-top: 16px; color: #d2d4da; font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.75; white-space: pre-line; }
.synopsis.is-empty { color: var(--muted); font-style: italic; }
.genre-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.genre-list a, .genre-list span, .sort-pill { padding: 7px 14px; border-radius: 999px; background: var(--panel-soft); border: 1px solid var(--line); color: #d5d7dd; font-size: 13.5px; font-weight: 600; }
.genre-list a:hover { border-color: var(--accent); color: #fff; }
.facts { margin-top: 12px; }
.facts div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; text-align: right; }

.detail-chapter { display: grid; grid-template-columns: 56px 1fr 36px; align-items: center; gap: 14px; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 6px; transition: background .15s; }
.detail-chapter:hover { background: var(--panel); }
.detail-chapter b, .detail-chapter span { display: block; }
.detail-chapter b { font-size: 15.5px; font-weight: 700; }
.detail-chapter span { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.chapter-index { color: #6a6e78; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.chapter-play { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .15s; }
.detail-chapter:hover .chapter-play { transform: scale(1.1); }
.chapters-scroll { max-height: 720px; overflow-y: auto; margin-right: -6px; padding-right: 6px; }
.chapters-scroll::-webkit-scrollbar { width: 6px; }

/* ==========================================================================
   Lecteur
   ========================================================================== */
body.is-reader .page-shell { padding-bottom: 0; }
.reader-page { min-height: 100vh; background: #08090b; }
.reader-header { position: sticky; top: 0; z-index: 50; height: 60px; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: rgba(9, 10, 12, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.reader-header .back-action { justify-self: start; padding: 7px 14px 7px 8px; }
.reader-header .icon-button { justify-self: end; }
.reader-heading { text-align: center; min-width: 0; max-width: 56vw; }
.reader-heading b, .reader-heading span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-heading b { font-family: var(--font-display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.reader-heading span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.reader-toolbar { position: sticky; top: 60px; z-index: 45; height: 54px; display: flex; justify-content: center; align-items: center; gap: 10px; background: rgba(16, 17, 21, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.chapter-step { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); transition: border-color .15s, color .15s; }
.chapter-step:hover:not(.disabled) { border-color: var(--accent); color: var(--accent); }
.chapter-step.disabled { opacity: .35; cursor: not-allowed; }
.chapter-select { min-width: 170px; padding: 7px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.chapter-select span { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }
.chapter-select select { background: transparent; outline: 0; border: 0; color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; max-width: 150px; }
.chapter-select option { background: var(--panel); color: var(--text); }
.reader-intro { padding: 54px 20px 38px; text-align: center; background: radial-gradient(circle at 50% 0, #25163b, transparent 66%); }
.reader-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); text-transform: uppercase; }
.scan-stream { width: min(100%, 820px); margin: 0 auto; box-shadow: 0 0 80px rgba(0, 0, 0, .85); line-height: 0; font-size: 0; display: block; }
.scan-page-real {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  font-size: 0;
  display: block;
}
.scan-page-real:not(.is-loaded) {
  min-height: 75vh;
  background: linear-gradient(90deg, #0e1014 25%, #1c202a 50%, #0e1014 75%);
  background-size: 200% 100%;
  animation: phenix-shimmer 1.8s ease-in-out infinite;
}
.scan-page-real.is-loaded {
  min-height: 0;
  animation: none;
  background: #000;
}
.scan-page-real img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  vertical-align: bottom;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}
.scan-page-real.is-loaded img, .scan-page-real img.is-loaded {
  opacity: 1;
}
.reader-end { padding: 70px 20px 100px; text-align: center; background: radial-gradient(circle at 50% 0, #221532, transparent 58%); }
.end-mark { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; margin-bottom: 12px; }
.reader-end-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.back-to-detail { display: inline-block; margin-top: 26px; color: var(--muted); font-size: 14px; text-decoration: underline; }
.back-to-detail:hover { color: var(--text); }

/* ==========================================================================
   Recherche & Ma liste
   ========================================================================== */
.page-head { padding: clamp(28px, 5vw, 52px) 0 10px; }
.page-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.page-lead { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.page-search { margin-top: 20px; max-width: 640px; }
.page-search .search-field { height: 50px; font-size: 16px; }

/* ==========================================================================
   Pages d'authentification
   ========================================================================== */
.auth-wrap { display: grid; place-items: center; padding: clamp(28px, 6vw, 72px) var(--gutter); }
.auth-card { width: 100%; max-width: 460px; padding: clamp(22px, 4vw, 38px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .brand-logo-square { margin: 0 auto 16px; width: 54px; height: 54px; }
.auth-head h1 { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; }
.auth-head p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.field { display: block; margin-bottom: 16px; }
.field > label, .field > .label { display: block; margin-bottom: 7px; color: var(--text-soft); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.input {
  width: 100%; height: 46px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; color: var(--text); outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 12px 14px; line-height: 1.55; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2391959f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
select.input[size]:not([size="1"]), select.input[multiple] { appearance: auto; background-image: none !important; padding-right: 14px !important; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.form-errors { margin-bottom: 18px; padding: 13px 16px; border-radius: 10px; background: rgba(127, 29, 29, .4); border: 1px solid rgba(251, 113, 133, .45); color: #fecdd3; font-size: 14px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.auth-foot a { color: var(--accent); font-weight: 700; }
.btn-block { width: 100%; padding: 14px; font-size: 15px; }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.pw-meter i { height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; }
.pw-meter[data-level='1'] i:nth-child(-n+1) { background: #ef4444; }
.pw-meter[data-level='2'] i:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-level='3'] i:nth-child(-n+3) { background: #84cc16; }
.pw-meter[data-level='4'] i { background: #22c55e; }
.pw-rules { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 7px; }
.pw-rules li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #565a65; flex-shrink: 0; }
.pw-rules li.ok { color: #86efac; }
.pw-rules li.ok::before { background: #22c55e; border-color: #22c55e; }

/* ==========================================================================
   Tablette / Desktop
   ========================================================================== */
@media (min-width: 560px) {
  .manga-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .detail-identity { flex-direction: row; align-items: flex-end; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-strip > div { border-bottom: 0 !important; border-right: 1px solid var(--line) !important; }
  .stat-strip > div:last-child { border-right: 0 !important; }
}

@media (min-width: 900px) {
  :root { --bottom-nav-h: 0px; --topbar-h: 72px; }
  .desktop-only { display: inline-flex !important; }
  .main-nav { display: flex; }
  .search-box { display: flex; max-width: 560px; }
  .burger-btn, .bottom-nav, .mobile-search { display: none !important; }
  .user-name { display: block; }
  .manga-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
  .chapter-list { grid-template-columns: repeat(2, 1fr); }
  .hero-cover { display: block; }
  .detail-columns { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .detail-columns > div > .info-section:first-child { border-top: 0; padding-top: 12px; }
}

@media (min-width: 1280px) {
  .chapter-list { grid-template-columns: repeat(3, 1fr); }
  .manga-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
}

@media (max-width: 899px) {
  :root { --gutter: clamp(16px, 4.5vw, 24px); }
  .topbar-inner { gap: 10px; }
  .brand-name { font-size: 19px; }
  .brand-logo-square { width: 36px; height: 36px; }
  .search-box { display: flex; max-width: 250px; height: 38px; }
  .search-field { height: 38px; padding: 0 10px; }
  .search-field input { font-size: 13px; }
  .desktop-only { display: none !important; }
  .burger-btn { display: inline-flex; }
  .detail-actions .btn { flex: 1 1 auto; }
  .reader-header .back-action span { display: none; }
  .reader-header .back-action { padding: 7px; }
  .hero-inner { gap: 0; }
  .chapter-select { min-width: 140px; }
  .spotlight-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  /* En mobile, le nom du site disparait pour ne laisser que le logo carré PS */
  .topbar .brand-name { display: none !important; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .brand-logo-square { width: 34px; height: 34px; }
  .search-box { max-width: 150px; }
  .detail-title { font-size: 28px; }
  .chapter-row { grid-template-columns: 54px 1fr 32px; gap: 12px; }
  .chapter-cover { width: 54px; height: 76px; }
  .section-heading { flex-wrap: wrap; align-items: flex-start; }
  .filter-box { width: 100%; }
  .filter-box input { width: 100%; }
  .detail-chapter { grid-template-columns: 44px 1fr 34px; gap: 10px; padding: 13px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Composants Skeleton de Chargement Progressif
   ========================================================================== */
@keyframes phenix-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #13151a 25%, #222631 50%, #13151a 75%);
  background-size: 200% 100%;
  animation: phenix-shimmer 1.8s ease-in-out infinite;
  border-radius: 6px;
}
.skeleton-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.skeleton-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px 8px 0 0;
}
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}
.skeleton-text.title { height: 18px; width: 75%; }
.skeleton-text.short { width: 45%; }
.skeleton-row {
  height: 52px;
  margin-bottom: 8px;
  border-radius: 8px;
}
.suggest-skeleton-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

/* ==========================================================================
   Admin & Scantrad Layout & Composants
   Reprend exactement la palette sombre et l'accent orange phénix
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.admin-sidebar-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.admin-nav-group {
  margin-top: 18px;
  margin-bottom: 6px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s ease;
}
.admin-nav-item > span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-nav-item:hover {
  background: var(--panel-soft);
  color: #fff;
}
.admin-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(255, 75, 22, 0.3);
}
.admin-nav-item .badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text-soft);
}
.admin-nav-item.active .badge {
  background: var(--accent);
  color: #fff;
}
.admin-sidebar-foot {
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-content {
  padding: 28px;
  flex: 1;
}

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.stat-card:hover {
  border-color: rgba(255, 75, 22, 0.4);
  transform: translateY(-2px);
}
.stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.stat-card-desc {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Data Table Card */
.table-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 28px;
}
.table-card-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.table-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.data-table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.data-table th {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
.badge-role {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.badge-role.admin { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.badge-role.cleaner { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); color: #93c5fd; }
.badge-role.translator { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.4); color: #d8b4fe; }
.badge-role.letterer { background: rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.4); color: #fde047; }
.badge-role.checker { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); color: #86efac; }

/* Progress bar */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff8863);
  border-radius: 999px;
  transition: width .3s ease;
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-layout .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .admin-layout .admin-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 4px;
  }
  .admin-nav-group {
    grid-column: 1 / -1;
  }
}

/* Mobile : un peu plus d'air sur les côtés et contenu légèrement réduit */
@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .manga-grid { gap: 12px; }
  .card-title { font-size: 14px; }
  .chapter-row { padding: 12px 0; }
  .section-heading .section-title { font-size: 22px; }
}
