/* Raven Ashworth — thème steampunk : laiton, rivets, engrenages, vapeur.
   Aucune ressource externe (RGPD) : polices système, engrenages en SVG inline. */
:root {
  --bg: #0b0908;
  --bg-2: #14100d;
  --panel: #1a1410;
  --panel-2: #231a13;
  --line: #43342a;
  --text: #efe6cd;
  --muted: #b1a48c;
  --brass: #c9a25f;
  --brass-hi: #f2d795;
  --brass-lo: #7d5f2e;
  --blood: #a3283a;
  --blood-hi: #e2566b;
  --brass-grad: linear-gradient(135deg, #f4dc9f 0%, #c9a25f 38%, #8a6a35 62%, #dcb872 100%);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 1.0625rem/1.7 var(--serif);
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(163,40,58,.18), transparent 60%),
    radial-gradient(800px 500px at 0% 30%, rgba(201,162,95,.08), transparent 60%);
}
body { overflow-x: hidden; }
body.has-gate { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: .01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--brass-hi); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: #f6edd3; }
.muted { color: var(--muted); }
.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin: 0 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brass); color: #000; padding: .6rem 1rem; z-index: 300; }
.skip:focus { left: 0; }

/* Engrenages */
.gear { fill: currentColor; color: var(--brass); display: block; }
.gear .cut { fill: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }
.g-spin { animation: spin 38s linear infinite; }
.g-spin-slow { animation: spin 90s linear infinite; }
.g-spin-rev { animation: spin 55s linear infinite reverse; }

/* En-tête : plaque de laiton */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(20,16,13,.97), rgba(11,9,8,.94));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--brass-lo);
  box-shadow: 0 1px 0 rgba(242,215,149,.15) inset, 0 6px 24px rgba(0,0,0,.5);
}
.site-header-in { max-width: var(--max); margin: 0 auto; padding: .8rem 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; display: flex; align-items: center; gap: .75rem; line-height: 1.1; }
.brand-gear { width: 44px; height: 44px; color: var(--brass); filter: drop-shadow(0 0 6px rgba(201,162,95,.4)); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.6rem; letter-spacing: .06em; background: var(--brass-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.brand-sub { font: 700 .66rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: center; font: 600 .92rem var(--sans); }
.site-header nav a { color: var(--text); text-decoration: none; padding: .3rem 0; }
.site-header nav a:hover { color: var(--brass-hi); }
.nav-cta { border: 1px solid var(--brass); padding: .35rem .9rem !important; border-radius: 2px; background: rgba(201,162,95,.1); }
.langs { display: inline-flex; gap: .1rem; margin-left: .4rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.langs a, .gate-langs a { font: 700 .76rem var(--sans); letter-spacing: .08em; padding: .25rem .4rem !important; color: var(--muted) !important; }
.langs a[aria-current], .gate-langs a[aria-current] { color: var(--brass-hi) !important; border-bottom: 1px solid var(--brass); }

main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; position: relative; }
.section-narrow { max-width: 720px; margin: 0 auto; }
.section-lead { color: var(--muted); max-width: 64ch; }
.center.section-lead { margin-left: auto; margin-right: auto; }

/* Boutons : plaques de laiton */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center; border-radius: 3px;
  font: 800 .88rem var(--sans); letter-spacing: .09em; text-transform: uppercase;
  padding: .85rem 1.5rem; color: #1a1108; border: 1px solid #8a6a35;
  background: var(--brass-grad);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 4px 14px rgba(0,0,0,.5);
  transition: transform .15s, filter .2s, box-shadow .2s;
}
.btn:hover { color: #000; filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 8px 22px rgba(201,162,95,.28); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: rgba(11,9,8,.5); color: var(--brass-hi); border-color: var(--brass); box-shadow: none; }
.btn-ghost:hover { background: rgba(201,162,95,.18); color: #fff; box-shadow: none; }
.btn-big { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .6rem 1.1rem; font-size: .78rem; }
.hero .btn:not(.btn-ghost) { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 0 26px rgba(242,215,149,.45); } }
.cta-row, .buy, .buybox { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.badge { font: 700 .75rem var(--sans); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--blood); color: var(--blood-hi); padding: .45rem .8rem; border-radius: 2px; }
.badge-brass { border-color: var(--brass-lo); color: var(--brass-hi); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%); border-bottom: 1px solid var(--brass-lo); }
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: url("../img/hero-gears.jpg") center / cover no-repeat;
  filter: saturate(1.15) contrast(1.05); opacity: .55;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11,9,8,.96) 0%, rgba(11,9,8,.82) 45%, rgba(11,9,8,.45) 100%), linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.25rem 4.5rem; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { text-shadow: 0 2px 30px rgba(0,0,0,.8); }
.hero h1::first-line { color: var(--brass-hi); }
.hero-sub { font: 700 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 1.2rem 0 1.4rem; }
.hg { position: absolute; z-index: -1; opacity: .16; color: var(--brass); }
.hg1 { width: 520px; height: 520px; right: -140px; top: -160px; }
.hg2 { width: 320px; height: 320px; left: -110px; bottom: -120px; opacity: .13; }
.hg3 { width: 180px; height: 180px; left: 42%; top: -60px; opacity: .1; }
.steam { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.steam i { position: absolute; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(220,205,180,.16), transparent); filter: blur(30px); animation: steam 16s ease-in-out infinite; }
.steam i:nth-child(1) { left: 5%; }
.steam i:nth-child(2) { left: 45%; animation-delay: -6s; animation-duration: 21s; }
.steam i:nth-child(3) { left: 80%; animation-delay: -11s; animation-duration: 18s; }
@keyframes steam { 0% { transform: translateY(0) scale(.8); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-620px) scale(1.5); opacity: 0; } }

.ribbon {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem;
  font: 800 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  padding: .5rem 1.1rem .5rem .8rem; background: linear-gradient(90deg, var(--blood), #7d1c2b);
  border: 1px solid var(--blood-hi); border-radius: 2px; box-shadow: 0 4px 18px rgba(163,40,58,.45);
}
.rb-gear { width: 20px; height: 20px; color: var(--brass-hi); }
.tropes { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.6rem 0 0; }
.tropes li { font: 700 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brass-hi); border: 1px solid var(--brass-lo); background: rgba(11,9,8,.55); padding: .35rem .75rem; border-radius: 999px; }
.book-body .tropes { margin: 0 0 1.4rem; }

.hero-cover { position: relative; display: block; justify-self: center; max-width: 380px; width: 100%; perspective: 1000px; }
.cover-frame { display: block; padding: 10px; background: var(--brass-grad); border-radius: 4px; box-shadow: 0 30px 70px rgba(0,0,0,.8); transform: rotateY(-8deg) rotateX(2deg); transition: transform .4s; position: relative; z-index: 1; }
.cover-frame img { border-radius: 2px; }
.hero-cover:hover .cover-frame { transform: rotateY(0) rotateX(0) translateY(-6px); }
.cover-glow { position: absolute; inset: -10% -15%; z-index: 0; background: radial-gradient(closest-side, rgba(163,40,58,.55), transparent 70%); filter: blur(20px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; transform: scale(1.05); } }

/* Séparateur */
.divider { display: flex; align-items: center; gap: 1rem; margin: 0 auto 2.5rem; max-width: 420px; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); }
.divider .gear { width: 34px; height: 34px; flex: none; }

/* Plaques de laiton */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.plate {
  position: relative; overflow: hidden; padding: 2rem 1.6rem 1.6rem; border-radius: 4px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--brass-lo);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--brass-lo), 0 18px 40px rgba(0,0,0,.5);
}
.plate::before, .plate::after {   /* rivets */
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; top: 10px;
  background: radial-gradient(circle at 35% 30%, #f6e2ac, #8a6a35 70%);
  box-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.plate::before { left: 10px; }
.plate::after { right: 10px; }
.plate h3 { color: var(--brass-hi); margin-top: .4rem; }
.plate p { color: var(--text); margin: 0; }
.plate-gear { position: absolute; width: 130px; height: 130px; right: -34px; bottom: -34px; opacity: .13; }

/* Saga */
.cover-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.2rem; margin-top: 2.4rem; }
.cover-card { display: flex; flex-direction: column; align-items: flex-start; }
.cc-img { position: relative; display: block; padding: 6px; background: var(--brass-grad); border-radius: 3px; margin-bottom: 1rem; box-shadow: 0 14px 34px rgba(0,0,0,.65); transition: transform .3s, box-shadow .3s; overflow: hidden; }
.cover-card:hover .cc-img { transform: translateY(-8px) rotate(-.8deg); box-shadow: 0 24px 46px rgba(0,0,0,.75), 0 0 30px rgba(201,162,95,.2); }
.corner { position: absolute; top: 18px; right: -36px; width: 130px; text-align: center; transform: rotate(40deg); background: var(--blood); color: #fff; font: 800 .7rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; padding: .45rem 0; box-shadow: 0 2px 8px rgba(0,0,0,.6); z-index: 2; }
.card-num { font: 700 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 .3rem; }
.card-title { font-size: 1.35rem; margin: 0 0 .4rem; }
.card-title a { color: var(--brass-hi); text-decoration: none; }
.card-hook { color: var(--muted); font-size: .95rem; line-height: 1.5; flex: 1; }

/* Bloc newsletter "forge" */
.forge-box { position: relative; overflow: hidden; max-width: 780px; margin: 0 auto; padding: 3rem 2rem; text-align: center; border-radius: 4px; background: radial-gradient(600px 300px at 50% 0%, rgba(163,40,58,.25), transparent 70%), linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--brass); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--brass-lo), 0 24px 60px rgba(0,0,0,.6); }
.forge-box > * { position: relative; z-index: 1; }
.forge-box .section-lead { margin: 0 auto 1.6rem; }
.forge-gear { position: absolute !important; z-index: 0 !important; opacity: .1; }
.fgr1 { width: 240px; height: 240px; left: -80px; top: -80px; }
.fgr2 { width: 180px; height: 180px; right: -50px; bottom: -60px; }
.forge-box .nl-form { text-align: left; }

/* Livres */
.book-row { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.book-row img { border: 5px solid var(--brass-lo); border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.book-row h2 a { text-decoration: none; }
.book-page { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 3rem; align-items: start; }
.book-cover { padding: 10px; background: var(--brass-grad); border-radius: 4px; box-shadow: 0 30px 70px rgba(0,0,0,.75); position: sticky; top: 100px; }
.buybox { margin: 1.8rem 0; padding: 1.4rem; background: var(--panel); border: 1px solid var(--brass-lo); border-left: 4px solid var(--brass); }
.warn { margin: 2rem 0; padding: 1.2rem 1.5rem; background: var(--panel); border-left: 3px solid var(--blood); }
.warn h2 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--blood-hi); }
.warn ul { margin: 0 0 1em; padding-left: 1.2rem; }
.sticky-buy { display: none; }

/* Textes */
.prose h2 { margin-top: 2.2rem; }
.lore dt { font-weight: 700; color: var(--brass-hi); margin-top: 1.2rem; }
.lore dd { margin: .2rem 0 0; }
.series-list li { margin-bottom: .6rem; }

/* Formulaire */
.nl-form { background: rgba(11,9,8,.55); border: 1px solid var(--line); padding: 1.6rem; border-radius: 3px; }
.nl-form label { display: block; font: 600 .9rem var(--sans); margin-bottom: .4rem; }
.nl-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nl-row input { flex: 1 1 240px; }
input[type=email] { background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: .85rem 1rem; font: 1rem var(--sans); border-radius: 2px; }
input[type=email]:focus { border-color: var(--brass); }
.consent { display: flex !important; gap: .7rem; align-items: flex-start; font-weight: 400 !important; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: .25rem; accent-color: var(--brass); flex: none; }
.captcha-note { font: .75rem/1.5 var(--sans); color: var(--muted); margin: 1rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-left: 3px solid var(--brass); background: var(--panel); }
.notice-err { border-color: var(--blood); color: #f3b5be; }

/* Vérification d'âge */
.gate { position: fixed; inset: 0; z-index: 400; background: rgba(6,4,3,.97); display: grid; place-items: center; padding: 1.25rem; overflow: auto; }
.gate-box { max-width: 480px; text-align: center; background: var(--panel); border: 1px solid var(--brass); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--brass-lo); padding: 2.5rem 2rem; }
.gate-seal { display: inline-grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%; border: 2px solid var(--blood); color: var(--blood-hi); font: 800 1.3rem var(--sans); margin: 0 0 1rem; }
.gate-box form { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }
.gate-langs { margin: 1.5rem 0 0; }

/* Pied de page */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--brass-lo); margin-top: 3rem; padding: 3.5rem 1.25rem 2rem; background: var(--bg-2); }
.foot-gear { position: absolute; opacity: .07; }
.fg1 { width: 320px; height: 320px; left: -100px; bottom: -140px; }
.fg2 { width: 200px; height: 200px; right: 4%; top: -70px; }
.foot-grid { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; font: .95rem var(--sans); }
.foot-grid a { display: block; margin-bottom: .4rem; }
.foot-title { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--brass); }
.legal { position: relative; max-width: var(--max); margin: 2rem auto 0; font: .8rem var(--sans); color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 2.5rem 1.25rem 3rem; gap: 2rem; }
  .hero::before { background: linear-gradient(180deg, rgba(11,9,8,.45), rgba(11,9,8,.85) 75%, var(--bg)); }
  .hero-cover { order: -1; max-width: 240px; }
  .cover-frame { transform: none; }
  .hg1 { width: 320px; height: 320px; }
  .book-page { grid-template-columns: 1fr; }
  .book-cover { max-width: 280px; position: static; }
  .book-row { grid-template-columns: 110px 1fr; gap: 1rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .langs { border-left: 0; padding-left: 0; margin-left: 0; }
  .section { padding: 3rem 0; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 1rem; align-items: center; justify-content: space-between; padding: .7rem 1rem; background: rgba(11,9,8,.96); border-top: 1px solid var(--brass); font: 700 .85rem var(--sans); box-shadow: 0 -8px 24px rgba(0,0,0,.6); }
  .site-footer { padding-bottom: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Définitions SVG des engrenages : hors flux, sans style en ligne (CSP) */
.gear-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Bandeau des pages secondaires */
.banner { position: relative; overflow: hidden; isolation: isolate; margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%); border-bottom: 1px solid var(--brass-lo); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11,9,8,.95), rgba(11,9,8,.7)), linear-gradient(180deg, transparent 60%, var(--bg)); }
.banner .hero-bg { opacity: .5; }
.banner-in { max-width: var(--max); margin: 0 auto; padding: 4.6rem 1.25rem 4.2rem; position: relative; z-index: 1; }
.banner h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: .4em; text-shadow: 0 2px 26px rgba(0,0,0,.8); }
.banner .lead { max-width: 62ch; margin: 0; }
.banner .hg1 { width: 380px; height: 380px; right: -90px; top: -110px; }
.banner .hg2 { width: 220px; height: 220px; right: 22%; bottom: -100px; opacity: .1; }

/* Contenus en plaques */
.plate-prose { max-width: 820px; margin: 3rem auto; padding: 2.4rem 2.2rem; }
.plate-prose::before, .plate-prose::after { top: 12px; }
.plate-prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.plate-prose h2:first-child { margin-top: 0; }
.plate-prose ul { padding-left: 1.2rem; }
.plate-prose li { margin-bottom: .45rem; }
.plate-prose p:last-child { margin-bottom: 0; }
.plate-warn { border-color: #6d2430; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px #6d2430, 0 18px 40px rgba(0,0,0,.5); }
.plate-warn h2, .plate-warn h3 { color: var(--blood-hi); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.lore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.lore-grid .plate h3 { font-size: 1.15rem; }
.beings { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: center; padding: 3rem 0; }
.beings h2 { margin: 0; }
.beings p { font-size: 1.15rem; margin: 0; }

/* Cartes séries (page univers) */
.series-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.series-card { display: grid; grid-template-columns: 150px 1fr; gap: 1.4rem; align-items: start; padding: 1.4rem; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--brass-lo); border-radius: 4px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--brass-lo), 0 18px 40px rgba(0,0,0,.5); }
.series-card .cc-img { margin: 0; }
.series-card h3 { margin: 0 0 .4rem; color: var(--brass-hi); }
.series-card .card-num { margin-bottom: .5rem; }
.series-card p { font-size: .98rem; line-height: 1.55; }
.series-card.later .cc-img img { filter: saturate(.85); }

/* Avertissements : vignette + liste */
.warn-book { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; align-items: start; }
.warn-book img { border: 3px solid #6d2430; border-radius: 2px; }
.warn-book h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.warn-book ul { margin: 0; padding-left: 1.1rem; }

/* Page newsletter / messages */
.center-panel { max-width: 640px; margin: 3rem auto; }
.center-panel .forge-box { margin: 0; }
.center-panel .notice { margin-bottom: 1.4rem; text-align: left; }

@media (max-width: 860px) {
  .beings { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
  .series-card { grid-template-columns: 110px 1fr; gap: 1rem; }
  .plate-prose { padding: 2rem 1.3rem; margin: 2rem auto; }
  .banner-in { padding: 2.4rem 1.25rem 2.2rem; }
}
.note-end { margin-top: 2rem; }

/* Décor des bandeaux : la ville de Valoria (silhouette en étages, cheminées, dirigeable, engrenages) */
.banner .hero-bg { background: url("../img/valoria-skyline.svg") center bottom / cover no-repeat; opacity: 1; filter: none; }
.banner::before { background: linear-gradient(90deg, rgba(11,9,8,.82) 0%, rgba(11,9,8,.35) 45%, rgba(11,9,8,0) 100%), linear-gradient(180deg, transparent 88%, var(--bg) 100%); }
@media (max-width: 860px) { .banner::before { background: linear-gradient(180deg, rgba(11,9,8,.75), rgba(11,9,8,.45) 60%, var(--bg)); } }

/* Page Livres : découpage par série */
.series-head { text-align: center; max-width: 720px; margin: 0 auto 1.5rem; }
.series-head .eyebrow { margin-bottom: .6rem; }
.series-head h2 { margin-bottom: .4em; }
.series-head p { color: var(--muted); }
.series-block { padding: 3.5rem 0 1rem; }
.series-block + .series-block { border-top: 1px solid var(--brass-lo); margin-top: 2rem; }
.book-row.soon img { filter: saturate(.85); }

/* ===== Direction artistique : visuels réels (tampon, plaque de laiton, mécanique) ===== */
.brand-seal { width: 46px; height: auto; flex: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.7)); transform: rotate(-6deg); transition: transform .3s; }
.brand:hover .brand-seal { transform: rotate(4deg) scale(1.06); }

/* Bandeau : salle des machines en fond, titre gravé sur plaque */
.banner .hero-bg { background: url("../img/ui/banner-tex.jpg") center / cover no-repeat; opacity: .85; filter: none; }
.banner::before { background: radial-gradient(ellipse at 50% 55%, rgba(11,9,8,.15), rgba(11,9,8,.82) 90%), linear-gradient(180deg, rgba(11,9,8,.35), transparent 30%, transparent 78%, var(--bg) 100%); }
.banner-in { padding: 4.2rem 1.25rem 3.4rem; text-align: center; }
.title-plate {
  position: relative; width: min(880px, 100%); margin: 0 auto; aspect-ratio: 1500 / 442;
  background: url("../img/ui/plate-title.png") center / 100% 100% no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 13%;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.75));
}
.title-plate .eyebrow { color: #ecd7a0; margin: 0 0 .55rem; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.title-plate h1 { margin: 0; font-size: clamp(1.35rem, 3.6vw, 2.7rem); color: #f6ecc9; text-shadow: 0 2px 2px rgba(0,0,0,.75), 0 0 22px rgba(0,0,0,.5); text-wrap: balance; }
.tp-seal { position: absolute; left: -3%; top: -25%; width: 15%; min-width: 64px; height: auto; transform: rotate(-9deg); filter: drop-shadow(0 10px 14px rgba(0,0,0,.75)); }
.banner .lead { max-width: 62ch; margin: 1.8rem auto 0; text-align: center; color: #f6edd3; text-shadow: 0 2px 14px rgba(0,0,0,.95), 0 0 3px rgba(0,0,0,.9); }
@media (max-width: 600px) { .title-plate .eyebrow { display: none; } .banner-in { padding: 2.6rem 1rem 2.2rem; } }

/* Tampon sur la couverture d'accueil, comme sur les livres */
.cover-seal { position: absolute; z-index: 3; left: -26px; top: -22px; width: 92px; height: auto; transform: rotate(-10deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.75)); pointer-events: none; }
@media (max-width: 860px) { .cover-seal { width: 70px; left: -14px; top: -14px; } }
.foot-seal { width: 84px; height: auto; margin-bottom: .8rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }

/* Emblèmes des tomes */
.emblem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.6rem; margin-top: 1rem; }
.emblem { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--text); padding: 1.6rem 1rem 1.3rem; border-radius: 4px;
  background: radial-gradient(closest-side at 50% 42%, rgba(163,40,58,.22), transparent 78%), linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--brass-lo); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--brass-lo), 0 18px 40px rgba(0,0,0,.5); transition: transform .3s; }
.emblem:hover { transform: translateY(-6px); }
.emblem-art { display: grid; place-items: center; height: 200px; margin-bottom: .8rem; }
.emblem-art img { max-height: 200px; width: auto; max-width: 100%; filter: drop-shadow(0 12px 18px rgba(0,0,0,.75)); transition: transform .4s; }
.emblem:hover .emblem-art img { transform: scale(1.06) rotate(-1.5deg); }
.emblem-cap { font: 700 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.emblem strong { color: var(--brass-hi); font-size: 1.1rem; margin-top: .2rem; }

/* Décor des bandeaux : la salle des machines de Valoria */
.banner .hero-bg { background: url("../img/ui/banner-engine.jpg") center 35% / cover no-repeat; opacity: 1; }
.banner::before { background: radial-gradient(ellipse at 50% 52%, rgba(11,9,8,.05), rgba(11,9,8,.6) 95%), linear-gradient(180deg, rgba(11,9,8,.45), transparent 28%, transparent 80%, var(--bg) 100%); }

/* Plaque à rouages (bords propres) pour les titres de bandeau */
.title-plate { width: min(900px, 100%); aspect-ratio: 1500 / 567; background: url("../img/ui/plate-gears.png") center / 100% 100% no-repeat; padding: 6.5% 12% 12%; }
.tp-seal { left: -1.5%; top: -12%; width: 14%; }
@media (max-width: 600px) { .title-plate { padding: 7% 11% 12%; } .tp-seal { top: -8%; left: 0; } }

/* Fond de bandeau assombri (la plaque et le tampon restent à pleine luminosité) */
.banner .hero-bg { filter: brightness(.55) saturate(1.05); }

/* Onglets par série (page Livres) */
.tablist { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin: 2.4rem 0 0; }
.tab {
  cursor: pointer; text-align: center; min-width: 260px; padding: .9rem 1.6rem 1rem; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--muted);
  border: 1px solid var(--brass-lo); border-bottom-color: var(--brass-lo);
  font: inherit; display: flex; flex-direction: column; gap: .25rem; transition: color .2s, background .2s, transform .15s;
}
.tab:hover { color: var(--text); transform: translateY(-2px); }
.tab-genre { font: 700 .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.tab-name { font-size: 1.25rem; font-weight: 700; }
.tab[aria-selected="true"] { color: #1a1108; background: var(--brass-grad); border-color: #8a6a35; box-shadow: 0 -4px 18px rgba(201,162,95,.25); }
.tab[aria-selected="true"] .tab-genre { color: #5b4116; }
.tabs .tabpanel { border-top: 1px solid var(--brass); }
.js .tabpanel[hidden] { display: none; }
.tabs .series-block { padding-top: 2.4rem; }
.tabs .series-head { margin-bottom: 1rem; }
.tabs .series-head p { font-size: 1.1rem; }
@media (max-width: 600px) { .tab { min-width: 0; flex: 1 1 100%; } }

/* Administration */
body.admin { background: var(--bg); }
.admin-main { max-width: 1000px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-head h1 { font-size: 1.8rem; margin: 0; }
.admin-login { max-width: 420px; margin: 4rem auto; }
.admin-input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: .8rem 1rem; font: 1rem var(--sans); border-radius: 2px; margin: .3rem 0 1rem; }
.admin-input:focus { border-color: var(--brass); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.admin-stats .plate { text-align: center; padding: 1.4rem 1rem; }
.admin-stats .plate p { margin: 0; color: var(--muted); font: .85rem var(--sans); }
.admin-stats .plate .stat { font: 800 2.6rem/1 var(--serif); color: var(--brass-hi); margin-bottom: .4rem; }
.admin-stats .plate .stat-new { color: var(--blood-hi); }
.admin-table-wrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font: .9rem var(--sans); }
.admin-table th { text-align: left; padding: .7rem; color: var(--brass); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--brass-lo); white-space: nowrap; }
.admin-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr.row-new td { background: rgba(163,40,58,.15); }
.admin-table form { margin: 0; }
