/* MORWEN, le site (déc. 2026)
   Plusieurs pages, une seule feuille de style.
   COULEUR  fond d'encre, rouge sang pour l'action, violet nécrose pour la veine ; chaque illustration
            garde sa propre lueur (couleur dominante de l'image).
   TYPE     Morwen Titre (titres, dérivée de Cinzel avec le O du logo), Morwen Titre aussi pour le menu et les boutons, Alegreya pour tout le texte.
   MOTIF    la lame du O : un trait vertical qui s'ouvre en losange, utilisé comme seul ornement.
   Pas de cadres empilés : les images portent la page, les objets reposent sur des aplats. */

/* Polices hébergées sur le site (aucun appel à Google) : Alegreya pour le texte,
   Tinos et Cinzel Decorative pour la liseuse (fidèle au PDF), Morwen Titre pour les titres. Toutes sous licence OFL. */
@font-face { font-family: "Morwen Titre"; src: url("../fonts/morwen-titre.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("../fonts/cinzel-decorative-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("../fonts/tinos-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("../fonts/tinos-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Tinos"; src: url("../fonts/tinos-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0709; --surface: #130e12; --surface-2: #1b1419; --ink: #ece5dd; --muted: #a69ea6; --faint: #6f666f;
  --line: rgba(236, 229, 221, .12);
  --crimson: #9a1219; --crimson-hi: #b5161f; --blood: #e0242f; --necro: #9c6be2; --necro-hi: #c9a6ff;
  --f-title: "Morwen Titre", "Cinzel", Georgia, serif;
  --f-display: "Cinzel", Georgia, serif;
  --f-ui: "Alegreya", Georgia, serif;
  --f-read: "Alegreya", Georgia, serif;
  --nav-h: 68px;
  --steel: #2b2630; --steel-hi: #8f8799; --bone: var(--ink); --c-muted: var(--muted); --c-line: var(--line);
  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-ui); font-size: 1.06rem; line-height: 1.6; background: var(--bg); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--crimson); color: #fff; }
:focus-visible { outline: 2px solid var(--crimson-hi); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Ornement : la lame du O ---------- */
.blade { display: inline-block; width: 10px; height: 34px; color: var(--crimson-hi); flex: none; }
.blade svg { width: 100%; height: 100%; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: 0 1.35rem; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font: 600 .98rem/1 var(--f-ui); letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.btn:active { transform: translateY(1px); }
.btn-primary, .buy-btn, .btn-ember, .btn-buy { background: var(--crimson); color: #fff; }
.btn-primary:hover, .buy-btn:hover:not(:disabled), .btn-ember:hover, .btn-buy:hover:not(:disabled) { background: var(--crimson-hi); }
.btn-ghost, .btn-stone { background: transparent; color: var(--ink); border-color: rgba(236, 229, 221, .32); }
.btn-ghost:hover, .btn-stone:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 1rem; font-size: .92rem; }
.buy-btn, .btn-ember, .btn-buy { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.35rem; border: 0; border-radius: 2px; font: 600 .98rem/1 var(--f-ui); cursor: pointer; text-decoration: none; transition: background .25s; width: auto; }
.buy-btn:disabled { background: var(--surface-2); color: var(--muted); cursor: default; }
.link-more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--crimson-hi); padding-bottom: 2px; transition: color .25s; }
.link-more:hover { color: #fff; border-color: #fff; }

/* ---------- Barre de navigation ---------- */
.nav { position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: var(--nav-h); transition: background .4s, box-shadow .4s, transform .4s; }
.nav.is-solid, .nav.is-open { background: rgba(10, 7, 9, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 2rem; max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: .3rem; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a { position: relative; display: block; padding: .5rem .8rem; font-size: .98rem; font-weight: 500; color: #c9c1c8; text-decoration: none; transition: color .25s; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--crimson-hi); box-shadow: 0 0 8px var(--crimson-hi); }
.nav-tools { display: flex; align-items: center; gap: .4rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .25s; }
.icon-btn:hover { background: rgba(236, 229, 221, .08); }
.icon-btn svg { width: 22px; height: 22px; }
.nav .cart-fab { position: relative; inset: auto; width: 42px; height: 42px; min-height: 0; padding: 0; border: 0; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; box-shadow: none; clip-path: none; color: var(--ink); }
.nav .cart-fab:hover { background: rgba(236, 229, 221, .08); }
.nav .cart-fab .bag { width: 22px; height: 22px; display: block; }
.nav .cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font: 700 .7rem/18px var(--f-ui); text-align: center; background: var(--crimson-hi); color: #fff; }
.nav .cart-count[hidden] { display: none; }
.nav-read { margin-left: .4rem; }
.nav-burger { display: none; }
.scroll-ico { --wob: 0deg; transform: rotate(var(--wob)); transform-origin: 50% 60%; }
.nav-drawer { position: fixed; z-index: 79; inset: var(--nav-h) 0 0 0; display: flex; flex-direction: column; gap: .2rem; padding: 1.6rem var(--pad); background: rgba(10, 7, 9, .97); }
.nav-drawer[hidden] { display: none; }
.nav-drawer a { padding: .7rem 0; font-family: var(--f-title); font-size: 1.8rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-drawer a[aria-current="page"] { color: var(--crimson-hi); }
.nav-drawer .btn { margin-top: 1.4rem; align-self: flex-start; }
@media (max-width: 980px) {
  .nav-links, .nav-read { display: none; }
  .nav-burger { display: inline-grid; }
  .nav-tools { margin-left: auto; }
  :root { --nav-h: 60px; }
}
.reading .nav, .map-open .nav, .reading .vein, .map-open .vein, .lore-open .vein { visibility: hidden; }

/* ---------- Accueil : une seule image, tout l'écran ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 1rem) var(--pad) 2.2rem; overflow: hidden; isolation: isolate; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; opacity: .34; animation: hero-drift 30s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1.03); } to { transform: scale(1.09) translateY(-1%); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 7, 9, .25); pointer-events: none; }
.hero-stack { display: grid; justify-items: center; gap: .55rem; max-width: 680px; }
.book-stage { position: relative; display: grid; justify-items: center; gap: .55rem; isolation: isolate; }
.book-stage .embers { position: absolute; inset: -18% -40% -6%; width: 180%; height: 124%; z-index: -1; pointer-events: none; }
.book-stage::before { content: ""; position: absolute; z-index: -2; left: 50%; top: 38%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 36, 47, .3), rgba(138, 11, 18, .1) 55%, transparent); }
.book-stage .book3d { --bw: min(190px, 21vh); --bh: min(285px, 31.5vh); --bd: 58px; width: calc(var(--bw) + 140px); height: calc(var(--bh) + 34px); }
.legendary { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .8rem; border: 1px solid rgba(255, 138, 36, .55); border-radius: 2px; font: 700 .74rem/1 var(--f-display); letter-spacing: .2em; color: #ffc896; background: rgba(255, 106, 31, .08); }
.legendary::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: #ff8a24; box-shadow: 0 0 8px #ff8a24; }
.book-name { font: 700 1.05rem/1.3 var(--f-display); color: #ffb08a; }
.book-sub { font-size: .92rem; color: #cbc2c9; }
.book-sub a { color: #fff; }
.hero-logo { margin-top: .9rem; }
.hero-logo img { width: min(430px, 80vw); margin: 0 auto; filter: drop-shadow(0 6px 22px rgba(0,0,0,.8)); }
.hero-pitch { font: italic 400 clamp(1.2rem, 2.2vw, 1.55rem)/1.4 var(--f-read); color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: .6rem; }
.hero-release { margin-top: .3rem; font-size: .95rem; color: #d6cdd3; }
.hero-release b { color: #fff; font-variant-numeric: tabular-nums; }
.hero-scroll { position: absolute; left: 50%; bottom: 1rem; width: 1px; height: 42px; background: linear-gradient(var(--ink), transparent); opacity: .4; }
@media (max-width: 760px) { .book-stage .book3d { --bw: 140px; --bh: 210px; --bd: 42px; } .hero-logo img { width: min(320px, 78vw); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--surface); }
.section-alt + .section { padding-top: clamp(4.5rem, 10vw, 8rem); }
.head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: .4rem 1.4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head .blade { align-self: center; }
.head h2 { font-family: var(--f-title); font-size: clamp(2.1rem, 4.6vw, 3.6rem); color: #fff; }
.head p { grid-column: 2; max-width: 60ch; color: var(--muted); }
.head .link-more { grid-column: 3; grid-row: 1; }
@media (max-width: 700px) { .head { grid-template-columns: auto 1fr; } .head .link-more { grid-column: 2; grid-row: auto; justify-self: start; } }

/* En-tête des pages intérieures */
.page-top { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 6vw, 4rem); position: relative; isolation: isolate; overflow: hidden; }
.page-top .wrap { display: grid; gap: 1.2rem; }
.page-top h1 { font-family: var(--f-title); font-size: clamp(3rem, 8vw, 6.2rem); color: #fff; }
.page-top .lead { max-width: 62ch; font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.6 var(--f-read); color: #d6cdd3; }
.page-top-bg { position: absolute; inset: 0; z-index: -1; }
.page-top-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.page-top::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--line); }

/* ---------- Lire gratuitement ---------- */
.free { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.free-cover { width: 170px; box-shadow: 0 30px 60px -24px #000; transform: rotate(-3deg); cursor: pointer; transition: transform .6s var(--ease-out-expo); }
.free-cover:hover { transform: rotate(0) translateY(-4px); }
.free h2 { font-family: var(--f-title); font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: #fff; margin-bottom: .6rem; }
.free p { color: var(--muted); max-width: 52ch; }
.free .btn { margin-top: 1.2rem; }
.bonus { padding-left: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.bonus h3 { font-family: var(--f-display); font-size: 1.15rem; color: #fff; margin-bottom: .3rem; }
.bonus > p { font-size: .97rem; }
.bonus-form { display: grid; gap: .6rem; margin-top: 1rem; }
.bonus-form input, .dedicace input { width: 100%; min-height: 46px; padding: 0 .9rem; border: 1px solid rgba(236, 229, 221, .22); border-radius: 2px; background: rgba(0,0,0,.25); color: var(--ink); font: 400 1rem var(--f-ui); }
.bonus-form input:focus, .dedicace input:focus { outline: none; border-color: var(--crimson-hi); }
.bonus-msg { min-height: 1.2em; font-size: .92rem; color: var(--necro-hi); }
.bonus-msg.is-error { color: #ff8a8a; }
.bonus-form.is-done input, .bonus-form.is-done button { display: none; }
@media (max-width: 900px) { .free { grid-template-columns: 1fr; } .free-cover { width: 140px; } .bonus { padding-left: 0; border-left: 0; padding-top: 1.6rem; border-top: 1px solid var(--line); } }

/* ---------- Images à lueur (tomes, personnages, créatures) ---------- */
.plate-card { all: unset; box-sizing: border-box; display: grid; gap: .9rem; cursor: pointer; text-align: left; --glow: #e0242f; }
.plate-card .holo { border-radius: 3px; box-shadow: 0 calc(14px + var(--o) * 14px) calc(34px + var(--o) * 26px) -18px #000, 0 0 calc(22px + var(--o) * 46px) calc(-16px + var(--o) * 8px) color-mix(in srgb, var(--glow) 80%, transparent); transition: box-shadow .5s var(--ease-out-quart); }
.plate-card:focus-visible .holo { outline: 2px solid var(--glow); outline-offset: 4px; }
.plate-card .holo-shine { z-index: 4; opacity: calc(var(--o) * .55); mix-blend-mode: overlay; background: repeating-linear-gradient(115deg, #08040a 0%, color-mix(in srgb, var(--glow) 45%, #000) 7%, var(--glow) 12%, color-mix(in srgb, var(--glow) 55%, #fff) 15%, color-mix(in srgb, var(--glow) 45%, #000) 21%, #08040a 28%); background-size: 300% 300%; background-position: calc(var(--px) * 1.4) calc(var(--py) * 1.4); mask-image: radial-gradient(farthest-corner at var(--px) var(--py), #000, rgba(0,0,0,.25) 55%, transparent); -webkit-mask-image: radial-gradient(farthest-corner at var(--px) var(--py), #000, rgba(0,0,0,.25) 55%, transparent); }
.plate-card .holo-glare { z-index: 5; opacity: calc(var(--o) * .5); mix-blend-mode: soft-light; background: radial-gradient(farthest-corner circle at var(--px) var(--py), color-mix(in srgb, var(--glow) 45%, #fff), transparent 55%); }
.plate-cap { display: grid; gap: .1rem; }
.plate-cap b { font-family: var(--f-title); font-size: 1.45rem; font-weight: 700; color: #fff; line-height: 1.15; }
.plate-cap i { font-style: normal; font-size: .92rem; color: color-mix(in srgb, var(--glow) 55%, #fff); }
.plate-cap span { font-size: .95rem; color: var(--muted); }
.beast-card .holo-shine { mix-blend-mode: color-dodge; filter: brightness(.75) contrast(1.3); opacity: calc(var(--o) * .65); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.6rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.6rem); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; } .grid-3 .plate-cap b { font-size: 1rem; } .grid-3 .plate-cap span { display: none; } .grid-2 { grid-template-columns: 1fr; } }
.tome-future { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1rem; background: radial-gradient(60% 45% at 50% 42%, rgba(120, 60, 220, .3), transparent 70%), #0e0a13; }
.tome-future svg { width: 22%; color: var(--necro-hi); filter: drop-shadow(0 0 16px rgba(156, 107, 226, .8)); }
.tome-future span { font-size: .9rem; color: #cbb8ea; }

/* Page personnages : grandes cartes avec texte */
.char-row .plate-cap b { font-size: 2rem; }
.char-row .plate-cap p { margin-top: .4rem; color: #d6cdd3; font-family: var(--f-read); font-size: 1.08rem; line-height: 1.6; max-width: 54ch; }
.char-row .holo { aspect-ratio: 4 / 5; }

/* Page l'histoire : un tome par rangée */
.tome-row { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 4.5rem); align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); --glow: #e0242f; }
.tome-row:first-of-type { border-top: 0; }
.tome-row:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
.tome-row:nth-of-type(even) .tome-art { order: 2; }
.tome-art .holo { border-radius: 3px; box-shadow: 0 30px 60px -24px #000, 0 0 calc(30px + var(--o) * 40px) calc(-14px + var(--o) * 6px) color-mix(in srgb, var(--glow) 80%, transparent); }
.tome-info { display: grid; gap: 1rem; }
.tome-info .k { font-size: .95rem; color: color-mix(in srgb, var(--glow) 60%, #fff); }
.tome-info h2 { font-family: var(--f-title); font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: #fff; }
.tome-info p.t { font: 400 1.15rem/1.7 var(--f-read); color: #ddd4da; max-width: 58ch; }
.facts { list-style: none; padding: 0; display: grid; gap: .35rem; color: var(--muted); }
.facts li { display: flex; gap: .7rem; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 5px; height: 5px; transform: rotate(45deg) translateY(-2px); background: var(--glow, var(--crimson-hi)); }
.tome-info .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
@media (max-width: 800px) { .tome-row, .tome-row:nth-of-type(even) { grid-template-columns: 1fr; } .tome-row:nth-of-type(even) .tome-art { order: 0; } .tome-art { max-width: 300px; } }
.saga { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1rem; }
.saga div { padding-top: 1rem; border-top: 2px solid var(--line); }
.saga div.is-now { border-top-color: var(--crimson-hi); }
.saga b { display: block; font-family: var(--f-display); color: #fff; }
.saga span { font-size: .95rem; color: var(--muted); }
@media (max-width: 700px) { .saga { grid-template-columns: 1fr; } }

/* ---------- Boutique ---------- */
.rarities { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .92rem; }
.rarities span, .rar { display: inline-flex; align-items: center; gap: .45rem; color: var(--rc); font-weight: 600; }
.rarities span::before, .rar::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 8px color-mix(in srgb, var(--rc) 70%, transparent); }
.rar { font-size: .85rem; letter-spacing: .04em; }
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; overflow: hidden; }
.feature-text { display: grid; gap: .7rem; justify-items: start; }
.feature-text h3 { font-family: var(--f-title); font-size: clamp(2rem, 3.6vw, 2.8rem); color: #fff; }
.feature-text p { color: #d6cdd3; max-width: 46ch; }
.price { font: 700 1.5rem/1 var(--f-ui); color: #fff; }
.price small { font-size: .9rem; font-weight: 400; color: var(--muted); margin-left: .5rem; text-decoration: line-through; }
.contents { list-style: none; padding: 0; display: grid; gap: .25rem; color: #d6cdd3; }
.contents li::before { content: "+ "; color: var(--crimson-hi); font-weight: 700; }
.buy-form { display: grid; gap: .6rem; width: 100%; max-width: 380px; }
.dedicace { display: grid; gap: .3rem; font-size: .9rem; color: var(--muted); }
.dedicace i { color: var(--faint); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2.4vw, 1.8rem); }
.item { display: grid; grid-template-rows: auto 1fr; gap: 1rem; }
.item-slot { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 3px; background: radial-gradient(55% 50% at 50% 55%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 75%), var(--surface); transition: background .5s; }
.item-slot img { height: 74%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 22px 34px -14px #000; }
.item.is-goodie .item-slot img { aspect-ratio: auto; height: 78%; max-width: 86%; object-fit: contain; box-shadow: none; filter: drop-shadow(0 18px 22px rgba(0,0,0,.8)); }
.item-body { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.item-name { font-family: var(--f-display); font-size: 1.25rem; color: #fff; }
.item-type { font-size: .92rem; color: var(--muted); }
.item-desc { font-size: .97rem; color: #cfc6cc; }
.item-note { font-size: .9rem; color: #ffb0a8; }
.item .contents { font-size: .93rem; }
.item .price { font-size: 1.2rem; margin-top: .3rem; }
.item .buy-form { margin-top: .4rem; }
.shop-group { margin-top: clamp(3.5rem, 7vw, 5rem); }
.shop-group > h2 { font-family: var(--f-title); font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; margin-bottom: 1.6rem; }
.infos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.infos div { padding-top: 1rem; border-top: 1px solid var(--line); }
.infos b { display: block; color: #fff; margin-bottom: .3rem; }
.infos p { font-size: .96rem; color: var(--muted); }
@media (max-width: 900px) { .infos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .infos { grid-template-columns: 1fr; } }

/* Coffret qui s'ouvre */
.explode { position: relative; height: 440px; }
.ex { position: absolute; left: 50%; top: 50%; transition: transform 1.4s var(--ease-out-back); box-shadow: 0 24px 50px -20px #000; }
.ex-map { width: 320px; aspect-ratio: 1.32; object-fit: cover; transform: translate(-50%, -50%) rotate(-4deg); filter: sepia(.35); }
.ex-print { width: 180px; aspect-ratio: 2 / 3; object-fit: cover; transform: translate(-50%, -50%) rotate(3deg); }
.ex-mark { z-index: 3; width: 52px; height: 220px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, #1b1210, #080505); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 60%, transparent), 0 20px 40px -14px #000; transform: translate(-50%, -50%) rotate(-2deg); }
.ex-mark img { width: 190px; max-width: none; transform: rotate(-90deg); }
.ex-book { width: 200px; aspect-ratio: 2 / 3; object-fit: cover; transform: translate(-50%, -50%); box-shadow: 0 30px 60px -20px #000; }
.ex-book2 { width: 190px; aspect-ratio: 2 / 3; object-fit: cover; transform: translate(-50%, -50%); box-shadow: 0 30px 60px -20px #000; }
.ex-mark { box-shadow: inset 0 0 0 1px rgba(255, 138, 36, .6), 0 20px 40px -14px #000; }
.ex-map { filter: none; }.ex-map { filter: none; }
.ex-mark { box-shadow: inset 0 0 0 1px rgba(255, 138, 36, .5), 0 20px 40px -14px #000; }
.explode.is-driven .ex { transition: filter .6s var(--ease-out-quart); will-change: transform; }
.explode.is-driven:hover .ex { filter: drop-shadow(0 0 16px rgba(255, 138, 36, .14)); }
@media (max-width: 900px) { .explode.is-driven { transform: scale(.85); } }
@media (max-width: 560px) { .explode { height: 300px; } .explode.is-driven { transform: scale(.62); } }

/* ---------- Rencontres ---------- */
.events { list-style: none; padding: 0; }
.events li { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: .3rem 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.events li:last-child { border-bottom: 1px solid var(--line); }
.ev-dates { font-family: var(--f-display); font-weight: 700; color: var(--crimson-hi); }
.ev-name { font-size: 1.25rem; color: #fff; font-weight: 600; }
.ev-place { grid-column: 2; color: var(--muted); }
.ev-none { color: var(--muted); }
@media (max-width: 640px) { .events li { grid-template-columns: 1fr; } .ev-place { grid-column: 1; } }
.socials { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Pied de page ---------- */
.foot { padding: 3.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.foot .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem 3rem; align-items: start; }
.foot img { height: 22px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot small { grid-column: 1 / -1; color: var(--faint); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ---------- Fiche (personnage, créature, tome) ---------- */
.lore { width: min(1000px, 94vw); max-height: 92dvh; padding: 0; border: 0; border-radius: 3px; color: var(--ink); background: var(--surface); box-shadow: 0 40px 120px -20px #000, 0 0 140px -50px var(--glow, #e0242f); overflow: visible; }
.lore::backdrop { background: rgba(4, 2, 4, .82); backdrop-filter: blur(4px); }
.lore[open] { animation: lore-in .5s var(--ease-out-expo); }
@keyframes lore-in { from { opacity: 0; transform: translateY(14px); } }
.lore-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-height: 92dvh; }
.lore-art { position: relative; background: #050305; overflow: hidden; border-radius: 3px 0 0 3px; min-height: 360px; }
.lore-art img { width: 100%; height: 100%; max-height: 92dvh; object-fit: contain; }
.lore-art.is-cover img { object-fit: cover; }
.lore-body { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.6rem, 4vw, 3rem); overflow-y: auto; }
.lore-kicker { font-size: .95rem; color: color-mix(in srgb, var(--glow, #e0242f) 60%, #fff); }
.lore-body h2 { font-family: var(--f-title); font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.lore-text { font: 400 1.15rem/1.65 var(--f-read); color: #ddd4da; }
.lore-facts { list-style: none; padding: 0; display: grid; gap: .35rem; color: var(--muted); }
.lore-facts li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: .7rem; transform: rotate(45deg) translateY(-2px); background: var(--glow, var(--crimson-hi)); }
.lore-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; padding-top: .6rem; }
.lore-nav { display: flex; gap: .4rem; }
.lore-nav button, .lore-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(236, 229, 221, .25); background: transparent; color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.lore-nav button:hover, .lore-close:hover { border-color: var(--ink); }
.lore-close { position: absolute; z-index: 3; top: 12px; right: 12px; background: rgba(10, 7, 9, .7); }
@media (max-width: 760px) { .lore-in { grid-template-columns: 1fr; overflow-y: auto; } .lore-art { max-height: 46dvh; min-height: 0; border-radius: 3px 3px 0 0; } .lore-art img { max-height: 46dvh; } }

/* ---------- Inventaire, notifications ---------- */
.cart { background: var(--surface); color: var(--ink); box-shadow: -30px 0 80px -20px #000; border: 0; }
.cart-top h2 { font-family: var(--f-title); color: #fff; }
.cart-pay { background: var(--crimson); color: #fff; border: 0; border-radius: 2px; clip-path: none; font: 600 1rem var(--f-ui); }
.cart-pay:hover { background: var(--crimson-hi); }
.cart-line { border-color: var(--line); }
.toast { background: var(--surface-2); color: var(--ink); border-radius: 3px; box-shadow: 0 20px 40px -10px #000; clip-path: none; }
.toast button { color: #fff; }

/* ---------- Parchemin (icône) et apparition ---------- */
.js [data-reveal] { transition-duration: .9s; }
.intro-1, .intro-2, .intro-3 { animation: intro 1.1s var(--ease-out-expo) both; }
.intro-2 { animation-delay: .12s; } .intro-3 { animation-delay: .24s; }
@keyframes intro { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .intro-1, .intro-2, .intro-3 { animation: none; } }

/* ---------- Effet gommé puis redessiné ---------- */
.redraw { background: #141012; }
.redraw .rd-base, .redraw .rd-frame { position: absolute; inset: 0; background-size: cover; background-position: center; }
.redraw .rd-base { filter: blur(14px) grayscale(1) brightness(1.15) contrast(.55); opacity: .5; transform: scale(1.06); }
.redraw .rd-frame { -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 8% 8% 19%; box-sizing: border-box; }
.redraw .rd-sketch, .redraw .holo-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(100deg, #000 0 40%, rgba(0,0,0,.6) 45%, #000 48%, rgba(0,0,0,.25) 53%, transparent 60% 100%);
  mask-image: linear-gradient(100deg, #000 0 40%, rgba(0,0,0,.6) 45%, #000 48%, rgba(0,0,0,.25) 53%, transparent 60% 100%);
  -webkit-mask-size: 280% 100%; mask-size: 280% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 0; mask-position: 0 0; }
.redraw .rd-sketch { filter: grayscale(1) contrast(2.6) brightness(1.25); opacity: 0; }
.redraw.is-drawn .holo-art { animation: rd-color 2.8s var(--ease-in-out-cubic) var(--rd, 0ms) both; }
.redraw.is-drawn .rd-sketch { animation: rd-sketch 2.8s linear var(--rd, 0ms) both; }
@keyframes rd-color {
  0% { -webkit-mask-position: 0 0; mask-position: 0 0; }
  24% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  52% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  100% { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes rd-sketch {
  0%, 26% { opacity: 0; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  27% { opacity: .8; }
  52% { opacity: .8; -webkit-mask-position: 0 0; mask-position: 0 0; }
  78% { opacity: .55; }
  100% { opacity: 0; -webkit-mask-position: 0 0; mask-position: 0 0; }
}
.redraw.is-static .rd-sketch { display: none; }
/* ---------- Veine de nécrose ---------- */
.vein { position: fixed; z-index: 40; right: 0; top: var(--nav-h); bottom: 0; width: 72px; pointer-events: none; }
.vein svg { display: block; width: 100%; height: 100%; overflow: visible; }
.vein path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v-dead { stroke: rgba(46, 18, 70, .75); stroke-width: 2.4; filter: drop-shadow(0 0 2px rgba(0,0,0,.9)); }
.v-dead.v-br { stroke-width: 1.4; }
.v-glow { filter: drop-shadow(0 0 3px rgba(180, 139, 255, .95)) drop-shadow(0 0 10px rgba(120, 60, 220, .6)); animation: v-pulse 3.2s var(--ease-in-out-cubic) infinite alternate; }
.v-lit { stroke: #c9a6ff; stroke-width: 2; }
.v-lit.v-br { stroke-width: 1.2; transition: stroke-dashoffset 1.6s var(--ease-out-quart); }
.v-tip { fill: #f1e6ff; }
.v-tip-halo { fill: rgba(156, 107, 226, .35); }
@keyframes v-pulse { from { opacity: .78; } to { opacity: 1; } }
@media (max-width: 760px) { .vein { width: 40px; opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .v-glow { animation: none; } }
/* ---------- Carte : la carte entière, déroulée comme un parchemin ---------- */
.mapsheet { position: fixed; inset: 0; z-index: 120; }
.mapsheet[hidden] { display: none; }
.ms-backdrop { position: absolute; inset: 0; background: radial-gradient(70% 70% at 45% 50%, rgba(40, 6, 12, .6), rgba(3, 2, 4, .95)); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease-out-expo); }
.mapsheet.is-open .ms-backdrop { opacity: 1; }
.ms-wrap { position: absolute; inset: 0; display: grid; grid-template-columns: auto 230px; align-items: center; justify-content: center; gap: 34px; padding: 30px 44px; pointer-events: none; }
.ms-wrap > * { pointer-events: auto; }
.ms-sheet { --half: 500px; position: relative; width: min(calc(100vw - 230px - 34px - 140px), calc((100dvh - 70px) * 1.3245)); aspect-ratio: 3412 / 2576; transition: transform .55s var(--ease-out-expo); }
.ms-paper { position: absolute; inset: 0; overflow: hidden; background: #e9e7e2; clip-path: inset(0 50% 0 50%); transition: clip-path .95s var(--ease-in-out-quint); box-shadow: 0 40px 100px -30px #000; }
.ms-sheet.is-unrolled .ms-paper { clip-path: inset(0 0 0 0); }
.ms-paper > img { width: 100%; height: 100%; object-fit: fill; }
.ms-paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 50px rgba(0,0,0,.55), inset 0 0 6px rgba(0,0,0,.8); }
.ms-roller { position: absolute; z-index: 3; top: -18px; bottom: -18px; width: 28px; border-radius: 14px; background: linear-gradient(90deg, #120c0f, #3b2f36 30%, #6a5c64 48%, #33282e 70%, #100a0d); box-shadow: 0 10px 30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.06); transition: transform .95s var(--ease-in-out-quint); }
.ms-roller::before, .ms-roller::after { content: ""; position: absolute; left: -5px; right: -5px; height: 16px; border-radius: 6px; background: radial-gradient(circle at 40% 35%, #ff5a62, #8a0b12 60%, #2a0306); box-shadow: 0 0 10px rgba(224, 36, 47, .6); }
.ms-roller::before { top: -6px; } .ms-roller::after { bottom: -6px; }
.ms-roller.left { left: -14px; transform: translateX(calc(var(--half) - 14px)); }
.ms-roller.right { right: -14px; transform: translateX(calc(var(--half) * -1 + 14px)); }
.ms-sheet.is-unrolled .ms-roller { transform: none; }
.ms-pin { position: absolute; z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 0; cursor: pointer; background: none; opacity: 0; transition: opacity .5s .9s; }
.ms-sheet.is-unrolled .ms-pin { opacity: 1; }
.ms-pin::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff5a62, #a3121c 60%, #3a0408); box-shadow: 0 0 0 2px #120507, 0 0 12px 3px rgba(224, 36, 47, .6); transition: transform .4s var(--ease-out-back); }
.ms-pin:hover::before, .ms-pin.is-on::before { transform: scale(1.45); }
.ms-pin.is-on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--crimson-hi); animation: pin-ring 1.6s var(--ease-out-expo) infinite; }
@keyframes pin-ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.ms-tags { display: grid; gap: .45rem; align-content: center; max-height: calc(100dvh - 60px); overflow-y: auto; padding: 6px 6px 6px 18px; opacity: 0; transform: translateX(16px); transition: opacity .6s .5s, transform .8s .5s var(--ease-out-expo); }
.mapsheet.is-open .ms-tags { opacity: 1; transform: none; }
.ms-tags h2 { font-family: "Morwen Titre", var(--f-display); font-size: 1.9rem; color: #fff; margin-bottom: .2rem; }
.ms-tags p { font-size: .9rem; color: var(--c-muted); margin-bottom: .6rem; }
.ms-tag { position: relative; display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 40px; padding: 0 .9rem 0 1.4rem; border: 0; cursor: pointer; text-align: left; font-family: var(--f-display); font-weight: 700; font-size: .86rem; letter-spacing: .04em; color: var(--bone);
  background: linear-gradient(90deg, #1d161e, #110d12); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); box-shadow: inset 0 0 0 1px var(--steel); transition: transform .5s var(--ease-out-expo), background .4s, color .4s; }
.ms-tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #0a070b; box-shadow: 0 0 0 1px var(--steel-hi); }
.ms-tag:hover { transform: translateX(-6px); color: #fff; }
.ms-tag.is-on { transform: translateX(-14px); color: #fff; background: linear-gradient(90deg, #a3121c, #4a050b); }
.ms-tab { position: absolute; z-index: 5; width: min(380px, 42vw); display: grid; background: #120d13; box-shadow: 0 0 0 1px var(--steel), 0 0 0 4px #0a070b, 0 0 0 5px rgba(224, 36, 47, .45), 0 40px 80px -20px #000; opacity: 0; transform: translateX(24px); transition: opacity .4s, transform .6s var(--ease-out-expo); pointer-events: none; }
.ms-tab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ms-tab::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, transparent, var(--crimson-hi), transparent); }
.ms-tab img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: contrast(1.05); }
.ms-tab-body { display: grid; gap: .5rem; padding: 1.1rem 1.3rem 1.3rem; }
.ms-tab-body p.k { font-family: var(--f-display); font-size: .72rem; letter-spacing: .22em; color: var(--crimson-hi); }
.ms-tab-body h3 { font-family: "Morwen Titre", var(--f-display); font-size: 1.7rem; color: #fff; }
.ms-tab-body p { color: #d6cdd3; }
.ms-tab-close { position: absolute; z-index: 3; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: rgba(10, 6, 8, .75); box-shadow: inset 0 0 0 1px var(--steel-hi); font-size: 1.1rem; }
.ms-close { position: absolute; z-index: 6; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.6rem; color: #fff; background: #1a1219; box-shadow: inset 0 0 0 1px var(--crimson-hi), 0 6px 18px rgba(0,0,0,.6); opacity: 0; transition: opacity .4s .6s; }
.mapsheet.is-open .ms-close { opacity: 1; }
@media (max-width: 900px) {
  .ms-wrap { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 14px; padding: 64px 12px 16px; }
  .ms-sheet { width: min(calc(100vw - 52px), calc((100dvh - 260px) * 1.3245)); justify-self: center; }
  .ms-tags { display: flex; overflow-x: auto; max-height: none; padding: 4px 2px 8px; gap: .4rem; transform: translateY(10px); }
  .ms-tags h2, .ms-tags p { display: none; }
  .ms-tag { flex: none; width: auto; white-space: nowrap; }
  .ms-tag:hover, .ms-tag.is-on { transform: none; }
  .ms-tab { position: fixed; left: 10px; right: 10px; bottom: 10px; width: auto; grid-template-columns: 40% 1fr; transform: translateY(24px); }
  .ms-tab img { height: 100%; aspect-ratio: auto; }
  .ms-tab-body h3 { font-size: 1.3rem; } .ms-tab-body p { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) { .ms-sheet, .ms-paper, .ms-roller { transition: none; } }
/* ---------- Le livre à feuilleter ---------- */
.fb { --pw: 400px; --ph: 600px; --fs: 16px; width: 100vw; max-width: 100vw; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: var(--bone); background: radial-gradient(70% 70% at 50% 45%, #2a0a10, #0a0608 70%); overflow: hidden; }
.fb::backdrop { background: #000; }
.fb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: reader-in .7s var(--ease-out-expo); }
.fb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem clamp(.8rem, 3vw, 1.6rem); }
.fb-chapters { display: flex; gap: .3rem; overflow-x: auto; }
.fb-chapters button, .fb-tools button { min-height: 40px; padding: 0 .9rem; border: 0; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: #cfc6cc; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(143, 135, 153, .35); white-space: nowrap; transition: color .3s, background .3s, box-shadow .3s; }
.fb-chapters button.is-on { color: #fff; background: rgba(224, 36, 47, .2); box-shadow: inset 0 0 0 1px var(--crimson-hi); }
.fb-tools { display: flex; gap: .3rem; }
.fb-tools button:hover, .fb-chapters button:hover { color: #fff; background: rgba(255,255,255,.09); }
.fb-stage { position: relative; display: grid; place-items: center; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.fb-book { position: relative; width: calc(var(--pw) * 2); height: var(--ph); perspective: 4200px; }
.fb.is-single .fb-book { width: var(--pw); }
.fb-book::before { content: ""; position: absolute; inset: -10px -12px; border-radius: 6px; background: linear-gradient(90deg, #2b0a10, #4a1018 50%, #2b0a10); box-shadow: 0 50px 90px -30px #000, 0 0 0 1px rgba(0,0,0,.6); }
.fb.is-single .fb-book::before { inset: -10px -10px -10px -4px; }
.fb-page, .fb-face { position: absolute; top: 0; width: var(--pw); height: var(--ph); overflow: hidden; color: #1e1716;
  background: linear-gradient(90deg, rgba(0,0,0,.08), transparent 7%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .25  0 0 0 0 .2  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23p)'/%3E%3C/svg%3E"), #efe8dc; }
.fb-left { left: 0; background: linear-gradient(270deg, rgba(0,0,0,.18), transparent 9%), #efe8dc; }
.fb-right { left: var(--pw); background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 9%), #efe8dc; }
.fb.is-single .fb-right { left: 0; }
.fb.is-single .fb-left { display: none; }
.fb-page.is-void, .fb-face.is-void { background: transparent; box-shadow: none; }
.fb-spine { position: absolute; left: calc(var(--pw) - 14px); width: 28px; top: 0; bottom: 0; z-index: 4; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(0,0,0,.22) 45%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.22) 55%, transparent); }
.fb.is-single .fb-spine { display: none; }
.fb-leaf { position: absolute; z-index: 5; top: 0; left: var(--pw); width: var(--pw); height: var(--ph); transform-origin: 0 50%; transform-style: preserve-3d; transform: rotateY(var(--ang, 0deg)); }
.fb.is-single .fb-leaf { left: 0; }
.fb-leaf[hidden] { display: none; }
.fb-face { left: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fb-back { transform: rotateY(180deg); }
.fb-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0); }
.fb-front::after { background: linear-gradient(270deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 60%, rgba(255,255,255,.06)); }
.fb-back::after { background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 60%, rgba(255,255,255,.06)); }
.fb-under-shadow { position: absolute; z-index: 4; top: 0; height: var(--ph); width: var(--pw); left: var(--pw); pointer-events: none; opacity: var(--us, 0); background: linear-gradient(90deg, rgba(0,0,0,.4), transparent 40%); }
.fb.is-single .fb-under-shadow { left: 0; }
/* Coin qui se soulève au survol */
.fb-right::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; background: linear-gradient(315deg, #3a0a10 0 48%, #d9d0c2 50%, #fbf6ee 70%); box-shadow: -4px -4px 10px rgba(0,0,0,.25); transition: width .35s var(--ease-out-quart), height .35s var(--ease-out-quart); }
.fb-stage:not(.is-turning) .fb-right.can-turn:hover::after { width: 46px; height: 46px; }
.fb-right.can-turn { cursor: grab; } .fb-left.can-turn { cursor: grab; }
.fb-stage.is-turning { cursor: grabbing; }

/* Mise en page d'une page */
.pg { position: absolute; inset: 0; display: flex; flex-direction: column; padding: calc(var(--ph) * .07) calc(var(--pw) * .11) calc(var(--ph) * .05); font-family: var(--f-read); font-size: var(--fs); line-height: 1.55; hyphens: auto; -webkit-hyphens: auto; }
.pg-head { flex: none; height: 1.6em; font-family: var(--f-display); font-size: .7em; letter-spacing: .18em; color: #8b7d78; text-align: center; }
.pg-flow { flex: 1; min-height: 0; overflow: hidden; }
.pg-folio { flex: none; height: 1.8em; padding-top: .5em; font-size: .78em; color: #8b7d78; text-align: center; }
.pg-flow p { margin: 0; text-indent: 1.4em; text-align: justify; }
.pg-flow p.cont { text-indent: 0; }
.pg-flow p.first, .pg-flow hr + p { text-indent: 0; }
.pg-flow hr { border: 0; height: 1.6em; margin: .4em 0; text-align: center; }
.pg-flow hr::after { content: "❖"; color: #9a1a22; font-size: .8em; }
.pg-flow h2 { display: grid; gap: .3em; margin: 18% 0 .6em; text-align: center; font-family: "Morwen Titre", var(--f-display); font-weight: 700; font-size: 1.7em; color: #1a1212; line-height: 1.15; }
.pg-flow h2 span { font-family: var(--f-display); font-size: .45em; letter-spacing: .28em; color: #9a1a22; }
.pg-flow h2::after { content: "—— ❖ ——"; font-family: var(--f-display); font-size: .4em; color: #9a1a22; }
.pg-flow p.music { text-indent: 0; text-align: center; margin: 0 0 1.4em; font-size: .78em; font-style: italic; }
.pg-flow p.music a { color: #7a6c67; text-decoration: none; }
.pg-flow p.music a::before { content: "♪ "; color: #9a1a22; }
.pg-flow p.music a:hover { color: #9a1a22; }
.pg-flow .placeholder { text-indent: 0; font-style: italic; color: #7a6c67; }
.pg.is-illu { padding: 0; }
.pg.is-illu img { width: 100%; height: 100%; object-fit: cover; }
.pg.is-title { justify-content: center; align-items: center; text-align: center; gap: 1em; }
.pg.is-title img { width: 78%; filter: invert(1) brightness(.15) sepia(.3); }
.pg.is-title .t1 { font-family: var(--f-display); font-weight: 700; letter-spacing: .12em; color: #9a1a22; }
.pg.is-title .t2 { font-family: var(--f-display); font-size: .9em; color: #4a3f3c; }
.pg.is-title .t3 { font-size: .8em; color: #7a6c67; margin-top: 2em; }
.pg.is-warn { justify-content: center; text-align: center; gap: 1em; color: #3a302d; }
.pg.is-warn b { font-family: var(--f-display); color: #9a1a22; letter-spacing: .06em; }
.pg.is-end { justify-content: center; text-align: center; gap: .8em; color: #2a201f; }
.pg.is-end .e1 { font-family: var(--f-read); font-style: italic; font-size: 1.15em; }
.pg.is-end h3 { font-family: "Morwen Titre", var(--f-display); font-size: 1.5em; color: #1a1212; margin-top: .6em; }
.pg.is-end .bonus-form { grid-template-columns: 1fr; font-size: .85rem; text-align: left; }
.pg.is-end .bonus-form input { background: #fffaf2; color: #1e1716; border-color: #c9bcae; min-height: 40px; }
.pg.is-end .bonus-msg { color: #5a2f9c; } .pg.is-end .bonus-msg.is-error { color: #9a1a22; }
.pg.is-end .btn-ember { min-height: 44px; font-size: .82rem; }
.pg.is-end .e-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em 1.2em; font-size: .85em; }
.pg.is-end .e-links a { color: #9a1a22; }
.fb-measure { position: fixed; left: -10000px; top: 0; visibility: hidden; }
.fb-foot { display: flex; align-items: center; justify-content: center; gap: 1.4rem; padding: .5rem 1rem 1rem; font-size: .9rem; color: var(--c-muted); }
.fb-foot .fb-nav { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--steel-hi); font-size: 1.2rem; }
.fb-foot .fb-nav:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--crimson-hi); }
.fb-foot .fb-nav:disabled { opacity: .3; cursor: default; }
.fb-count { min-width: 9ch; text-align: center; font-variant-numeric: tabular-nums; }
.fb-hint { font-style: italic; }
@media (max-width: 820px) { .fb-hint { display: none; } .fb-bar { flex-wrap: wrap; } }
/* ---------- Carte : étiquettes et onglet, version épurée ---------- */
.ms-tag { clip-path: none; background: transparent; box-shadow: none; padding: 0 .4rem 0 1.2rem; min-height: 38px; font: 600 .98rem var(--f-ui); letter-spacing: 0; color: #cfc6cc; border-left: 1px solid var(--line); }
.ms-tag::before { left: -4px; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 0; transform: rotate(45deg); background: var(--bg); box-shadow: 0 0 0 1px var(--faint); }
.ms-tag:hover { transform: none; color: #fff; }
.ms-tag.is-on { transform: none; background: transparent; color: #fff; border-left-color: var(--crimson-hi); }
.ms-tag.is-on::before { background: var(--crimson-hi); box-shadow: 0 0 10px var(--crimson-hi); }
.ms-tags { gap: 0; }
.ms-tags h2 { font-family: var(--f-title); }
.ms-tab { border-radius: 3px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 90px -20px #000; }
.ms-tab::before { display: none; }
.ms-tab-body p.k { font: 400 .92rem var(--f-ui); letter-spacing: 0; color: color-mix(in srgb, var(--crimson-hi) 60%, #fff); }
.ms-tab-body h3 { font-family: var(--f-title); }
.ms-close { background: rgba(10, 7, 9, .7); box-shadow: none; border: 1px solid rgba(236, 229, 221, .25); }
@media (max-width: 900px) { .ms-tag { border-left: 0; padding: 0 .8rem; border-bottom: 1px solid var(--line); } .ms-tag.is-on { border-bottom-color: var(--crimson-hi); } .ms-tag::before { display: none; } }

/* ---------- Livre : barre d'outils simplifiée ---------- */
.fb-chapters button, .fb-tools button { border-radius: 2px; box-shadow: none; border: 1px solid rgba(236, 229, 221, .2); background: transparent; font: 600 .9rem var(--f-ui); letter-spacing: 0; }
.fb-chapters button.is-on { background: var(--crimson); border-color: var(--crimson); color: #fff; box-shadow: none; }
.fb-foot .fb-nav { box-shadow: none; border: 1px solid rgba(236, 229, 221, .25); }
.pg.is-end .btn-ember { width: 100%; }
@media (max-width: 760px) { .vein { width: 22px; opacity: .75; } }

/* =====================================================================
   Retouches du 3 décembre
   ===================================================================== */

/* Accueil : l'illustration se fond dans le noir, sans coupure, vers la lecture offerte */
.hero-bg { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.55) 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.55) 74%, transparent 100%); }
.hero::after { background: linear-gradient(180deg, rgba(10, 7, 9, .25), rgba(10, 7, 9, .1) 50%, var(--bg) 100%); }

/* Portraits : simples, avec la lueur de l'illustration */
.portrait { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 3px; background: #111;
  box-shadow: 0 24px 50px -24px #000, 0 0 34px -18px color-mix(in srgb, var(--glow) 80%, transparent); transition: box-shadow .7s var(--ease-out-quart), transform .7s var(--ease-out-quart); }
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out-expo); }
.plate-card.char:hover .portrait, .plate-card.char:focus-visible .portrait { transform: translateY(-4px); box-shadow: 0 30px 60px -24px #000, 0 0 60px -12px color-mix(in srgb, var(--glow) 85%, transparent); }
.plate-card.char:hover .portrait img { scale: 1.04; }
.char-row .portrait { aspect-ratio: 4 / 5; }
/* Pas de contour carré au retour d'une fiche : la lueur suffit à montrer le focus */
.plate-card:focus-visible .holo, .plate-card:focus-visible .portrait { outline: none; }
.plate-card:focus-visible .holo { --o: .6; }

/* Boutique : toutes les fiches ont la même structure, les boutons tombent sur la même ligne */
.items { align-items: stretch; }
.item { display: flex; flex-direction: column; }
.item-body { flex: 1; }
.item-name { min-height: 2.5em; display: flex; align-items: flex-end; line-height: 1.2; }
.item-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.8em; }
.item-buy { margin-top: auto; padding-top: .8rem; display: grid; gap: .55rem; width: 100%; }
.item-buy .price { margin: 0; }
.item-buy .buy-form { max-width: none; }
.item-buy .dedicace { height: 78px; align-content: end; }
.buy-note { height: 78px; display: flex; align-items: flex-end; padding-bottom: .9rem; font-size: .9rem; color: var(--muted); }
.item-buy .btn, .item-buy .buy-btn { width: 100%; }

/* Réseaux : une petite colonne discrète sur le côté */
.social-rail { position: fixed; z-index: 60; left: clamp(.6rem, 1.4vw, 1.2rem); bottom: 1.4rem; display: grid; gap: .25rem; justify-items: center; }
.social-rail::before { content: ""; width: 1px; height: 46px; margin-bottom: .4rem; background: linear-gradient(transparent, rgba(236, 229, 221, .35)); }
.social-rail a { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #bdb4bb; transition: color .25s, background .25s; }
.social-rail a:hover, .social-rail a:focus-visible { color: #fff; background: rgba(236, 229, 221, .08); }
.social-rail svg { width: 19px; height: 19px; }
.social-rail a::after { content: attr(data-label); position: absolute; left: calc(100% + 6px); top: 50%; padding: .25rem .55rem; border-radius: 2px; white-space: nowrap; font-size: .82rem; color: #fff; background: var(--surface-2); opacity: 0; transform: translate(-4px, -50%); pointer-events: none; transition: opacity .25s, transform .25s; }
.social-rail a:hover::after, .social-rail a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.reading .social-rail, .map-open .social-rail { visibility: hidden; }
.drawer-socials { display: flex; gap: 1.2rem; margin-top: auto; padding-top: 1.4rem; }
.drawer-socials a { font: 600 1rem var(--f-ui); border: 0; padding: 0; color: var(--muted); }
@media (max-width: 980px) { .social-rail { display: none; } }

/* Livre : les pages du PDF, ligne pour ligne */
.pg.pdf { padding: 0; font-family: "Tinos", "Times New Roman", serif; color: #111; background: #fff; }
.fb-page, .fb-face { background: #fff; }
.fb-left { background: linear-gradient(270deg, rgba(0,0,0,.14), transparent 8%), #fff; }
.fb-right { background: linear-gradient(90deg, rgba(0,0,0,.14), transparent 8%), #fff; }
.pg.pdf .ln { position: absolute; white-space: nowrap; line-height: 1; }
.pg.pdf .ln.h { font-family: "Cinzel Decorative", "Cinzel", serif; font-weight: 900; }
.pg.pdf .ln a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.pg.pdf.is-image img { width: 100%; height: 100%; object-fit: cover; }
.pg.is-end { background: #fff; font-family: "Tinos", "Times New Roman", serif; font-size: calc(12 * var(--s, 1px)); }
.pg.is-end h3 { font-family: "Cinzel Decorative", "Cinzel", serif; }

/* =====================================================================
   Retouches du 3 décembre (2)
   ===================================================================== */
.nav-links a[aria-current="page"]::after, .ms-pin::before { background: var(--blood); }
.nav-logo img { height: 40px; width: auto; filter: drop-shadow(0 0 10px rgba(224, 36, 47, .35)); }
@media (max-width: 980px) { .nav-logo img { height: 34px; } }
.nav-links { gap: 0; }
.nav-links a { padding: .5rem .7rem; }

/* Titres argentés, comme le logo */
.head h2, .page-top h1, .tome-info h2, .feature-text h3, .shop-group > h2, .lore-body h2, .ms-tags h2, .ms-tab-body h3, .bonus-page h2, .plate-cap b, .char-row .plate-cap b, .sc-info h2 {
  background: linear-gradient(180deg, #ffffff 0%, #e6e8ee 32%, #9ea2af 56%, #eceef3 78%, #8b8e9a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(255,255,255,.06));
}
.nav-drawer a { background: linear-gradient(180deg, #fff, #e6e8ee 32%, #9ea2af 56%, #eceef3 78%, #8b8e9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-drawer a[aria-current="page"] { -webkit-text-fill-color: initial; color: var(--blood); background: none; }

/* Accueil : les trois tomes en 3D */
.hero { padding-top: calc(var(--nav-h) + .2rem); }
.hero-stack { gap: .45rem; max-width: 980px; }
.shelf { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(.4rem, 2.4vw, 2.2rem); isolation: isolate; margin-bottom: .4rem; }
.shelf .embers { position: absolute; inset: -20% -20% -10%; width: 140%; height: 130%; z-index: -1; pointer-events: none; }
.shelf::before { content: ""; position: absolute; z-index: -2; left: 50%; top: 42%; width: 90%; aspect-ratio: 2 / 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 36, 47, .22), transparent); }
.shelf-book { display: grid; justify-items: center; gap: .3rem; }
.shelf-book .book3d { --bw: min(176px, 22vh); --bh: calc(var(--bw) * 1.5); --bd: calc(var(--bw) * var(--depth)); width: calc(var(--bw) + var(--bd) + 50px); height: calc(var(--bh) + 30px); perspective: 1400px; cursor: grab; touch-action: pan-y; }
.shelf-book .book3d:active { cursor: grabbing; }
.shelf-book .book3d { isolation: isolate; }
/* l'ombre au sol reste sous le livre, se resserre et s'efface quand on le voit par la tranche */
.shelf-book .book-shadow { bottom: 0; z-index: -1; transition: background .5s; transform: translateX(-50%) scaleX(calc(.3 + .7 * var(--face, 1))); opacity: calc(.35 + .65 * var(--face, 1)); }
.shelf-book .book3d:hover .book-shadow { background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 70%, transparent), transparent); }
.shelf-book .b-front { box-shadow: 0 0 40px -14px color-mix(in srgb, var(--glow) calc(var(--so-f, 1) * 60%), transparent); }
.shelf-book .b-back { box-shadow: 0 0 40px -14px color-mix(in srgb, var(--glow) calc(var(--so-b, 0) * 60%), transparent); }
.shelf-book .b-front, .shelf-book .b-back { background-size: 100% 100%; border-radius: 1px 3px 3px 1px; }
.shelf-book .b-back { display: block; }
.shelf-book .b-front::after { background: linear-gradient(100deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.12) 48%, rgba(255,255,255,0) 60%); }
.shelf-book .b-spine { background-size: 100% 100%; background-color: #0d0a10; }
.shelf-book .b-spine::before { display: none; }
/* Broché : tranche de pages crème, pas de jaspage */
/* Tranche des pages : des feuilles fines, pas un bloc blanc */
.shelf-book .b-edge {
  background:
    linear-gradient(90deg, rgba(40, 26, 12, .55), rgba(40, 26, 12, .08) 14%, transparent 30%, transparent 72%, rgba(40, 26, 12, .1) 88%, rgba(40, 26, 12, .5)),
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 6%, transparent 94%, rgba(0,0,0,.22)),
    repeating-linear-gradient(90deg, rgba(92, 70, 44, .34) 0 .6px, transparent .6px 1.7px, rgba(92, 70, 44, .16) 1.7px 2.2px, transparent 2.2px 3.1px),
    linear-gradient(90deg, #d8c9a8, #e6d9bc 40%, #e3d5b6 60%, #d4c4a1);
}
.shelf-book .b-top, .shelf-book .b-bottom {
  background:
    linear-gradient(0deg, rgba(40, 26, 12, .5), transparent 22%, transparent 78%, rgba(40, 26, 12, .45)),
    repeating-linear-gradient(0deg, rgba(92, 70, 44, .3) 0 .6px, transparent .6px 1.7px, rgba(92, 70, 44, .14) 1.7px 2.2px, transparent 2.2px 3.1px),
    linear-gradient(0deg, #d6c7a5, #e4d6b8 50%, #d6c7a5);
}
.shelf-cap { all: unset; display: grid; gap: 0; text-align: center; cursor: pointer; padding: .2rem .6rem; border-radius: 2px; }
.shelf-cap:focus-visible { outline: 2px solid var(--glow); }
.shelf-cap i { font-style: normal; font-size: .82rem; color: color-mix(in srgb, var(--glow) 55%, #fff); }
.shelf-cap b { font-family: var(--f-display); font-size: .95rem; color: #fff; transition: color .25s; }
.shelf-cap:hover b { color: color-mix(in srgb, var(--glow) 45%, #fff); }
.shelf-cap span { font-size: .8rem; color: var(--muted); }
.shelf-book.is-ghost .book3d { opacity: .45; }
.shelf-book.is-ghost .b-front { display: grid; place-items: center; background: radial-gradient(70% 50% at 50% 45%, rgba(58, 109, 240, .38), transparent 70%), linear-gradient(160deg, #12204a, #070b18); }
.shelf-book.is-ghost .b-back, .shelf-book.is-ghost .b-spine { background: linear-gradient(160deg, #0d1529, #06080f); }
.shelf-book.is-ghost .b-front img { width: 46%; }
.shelf-book.is-ghost .book3d:hover { opacity: .75; }
.o-blue { filter: hue-rotate(220deg) saturate(2.1) brightness(1.08); }
.tome-future .o-blue { filter: hue-rotate(220deg) saturate(2.1) brightness(1.08) drop-shadow(0 0 16px rgba(58, 109, 240, .8)); }
.tome-future { background: radial-gradient(60% 45% at 50% 42%, rgba(58, 109, 240, .36), transparent 70%), #080d1c; }
.tome-future img { width: 30%; }
.tome-future span { color: #a9c0f0; }
@media (max-width: 760px) {
  .shelf { gap: 0; }
  .hero-stack { width: 100%; }
  .shelf { width: 100%; justify-content: space-between; }
  .shelf-book { min-width: 0; flex: 1; }
  .shelf-book .book3d { --bw: 78px; width: calc(var(--bw) + var(--bd) + 10px); }
  .shelf-cap { padding: .1rem .2rem; max-width: 112px; } .shelf-cap i { font-size: .72rem; }
  .shelf-cap b { font-size: .8rem; } .shelf-cap span { display: none; }
}

/* Boutique : quatre illustrations et un marque-page */
.ex-print { width: 150px; aspect-ratio: 2 / 3; object-fit: cover; }
.explode { height: 460px; }

/* Page du chapitre bonus */
.bonus-page { display: grid; grid-template-columns: auto minmax(0, 560px); gap: clamp(1.6rem, 5vw, 4rem); align-items: center; justify-content: center; }
.bonus-page .bonus { padding: 0; border: 0; }
.bonus-page h2 { font-family: var(--f-title); font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .5rem; }
.bonus-page .free-cover { width: 230px; }
.bonus-aside { margin-top: 1.4rem; color: var(--muted); }
.bonus-aside .link-more { background: none; border-width: 0 0 1px; cursor: pointer; font: inherit; font-weight: 600; }
@media (max-width: 760px) { .bonus-page { grid-template-columns: 1fr; } .bonus-page .free-cover { width: 150px; } }

/* Réseaux : plus gros, au milieu du bord gauche */
.social-rail { top: 50%; bottom: auto; transform: translateY(-50%); gap: .55rem; }
.social-rail::before { display: none; }
.social-rail a { width: 50px; height: 50px; color: #e6dfe5; background: rgba(19, 14, 18, .78); border: 1px solid rgba(236, 229, 221, .22); backdrop-filter: blur(6px); box-shadow: 0 10px 24px -12px #000; transition: color .25s, background .25s, border-color .25s, transform .25s; }
.social-rail a:hover, .social-rail a:focus-visible { color: #fff; background: var(--crimson); border-color: var(--crimson); transform: translateX(3px); }
.social-rail svg { width: 23px; height: 23px; }
.social-rail a::after { left: calc(100% + 10px); font-size: .9rem; }

/* Boutons de chaque tome dans sa couleur (page L'histoire et fiches) */
.tome-row .btn-primary, .lore .btn-primary { background: color-mix(in srgb, var(--glow) 88%, #000); }
.tome-row .btn-primary:hover, .lore .btn-primary:hover { background: var(--glow); }
.tome-row .btn-ghost, .lore .btn-ghost { border-color: color-mix(in srgb, var(--glow) 60%, transparent); }
.tome-row .btn-ghost:hover, .lore .btn-ghost:hover { border-color: var(--glow); background: color-mix(in srgb, var(--glow) 14%, transparent); }

/* Réseaux : logo officiel si le fichier est fourni (img/reseaux/<réseau>.svg) */
.social-rail img { width: 23px; height: 23px; object-fit: contain; }

/* Musique d'ambiance des chapitres, jouée sur place */
.pg.pdf .ln a.yt { position: relative; text-decoration: none; border-bottom: 1px solid currentColor; cursor: pointer; }
.pg.pdf .ln a.yt::before { content: ""; position: absolute; right: calc(100% + .45em); top: 50%; width: 1.35em; height: 1.35em; transform: translateY(-50%); border-radius: 50%; background: #9a1219 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.6 2.4v5.2L7.8 5z' fill='%23fff'/%3E%3C/svg%3E") center / 62% no-repeat; }
.pg.pdf .ln a.yt.is-playing::before { background-color: #3a1d5e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 2.5h1.4v5H3zM5.6 2.5H7v5H5.6z' fill='%23fff'/%3E%3C/svg%3E"); }
.music { position: fixed; z-index: 90; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .7rem; padding: .5rem .8rem .5rem .55rem; border-radius: 40px; background: rgba(19, 14, 18, .94); border: 1px solid rgba(236, 229, 221, .18); box-shadow: 0 16px 40px -14px #000; color: var(--ink); font-size: .9rem; }
.music[hidden] { display: none; }
.fb .music { position: absolute; right: 1rem; bottom: .7rem; }
.music button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--crimson); }
.music button:hover { background: var(--crimson-hi); }
.music button svg { width: 16px; height: 16px; }
.music .m-title { max-width: 210px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.music .m-title small { display: block; font-size: .75rem; color: var(--muted); }
.music input[type=range] { width: 90px; accent-color: var(--crimson-hi); }
.music .m-close { width: 28px; height: 28px; background: transparent; color: var(--muted); font-size: 1.1rem; }
.music .m-close:hover { background: rgba(236, 229, 221, .08); color: #fff; }
.music-frame { position: fixed; left: -10px; bottom: -10px; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
@media (max-width: 820px) { .music input[type=range] { display: none; } .music .m-title { max-width: 140px; } .fb .music { bottom: auto; top: .6rem; right: auto; left: 50%; transform: translateX(-50%); } }

/* ---------- Vitrine d'un tome (clic ou rotation sur l'étagère) ---------- */
.showcase { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; opacity: 0; transition: opacity .35s ease; }
.showcase.is-open { opacity: 1; }
.showcase[hidden] { display: none; }
.sc-backdrop { position: absolute; inset: 0; background: radial-gradient(60% 55% at 38% 50%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 70%), rgba(6, 4, 6, .93); backdrop-filter: blur(6px); }
.sc-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sc-stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 30rem); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding: 2rem; max-width: 1180px; }
.sc-book .book3d { --bw: min(330px, 40vh, 42vw); --bh: calc(var(--bw) * 1.5); width: calc(var(--bw) + var(--bd) + 120px); height: calc(var(--bh) + 60px); perspective: 1800px; }
.sc-book .b-front { box-shadow: 0 0 90px -20px color-mix(in srgb, var(--glow) calc(var(--so-f, 1) * 75%), transparent); }
.sc-book .b-back { box-shadow: 0 0 90px -20px color-mix(in srgb, var(--glow) calc(var(--so-b, 0) * 75%), transparent); }
.showcase .shelf-book.is-ghost .book3d { opacity: 1; }
.sc-info i { font-style: normal; color: color-mix(in srgb, var(--glow) 55%, #fff); font-size: .95rem; }
.sc-info h2 { margin: .3rem 0 .9rem; font-family: var(--f-title, var(--f-display)); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.1; }
.sc-info p { color: #d6cdd3; font-family: var(--f-read); font-size: 1.1rem; line-height: 1.65; }
.sc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.sc-actions .btn-primary { background: color-mix(in srgb, var(--glow) 82%, #000); border-color: transparent; }
.sc-actions .btn-primary:hover { background: color-mix(in srgb, var(--glow) 95%, #000); }
.sc-info .sc-hint { margin-top: 1.2rem; font-family: inherit; font-size: .85rem; color: var(--faint); }
.sc-close, .sc-nav { position: absolute; display: grid; place-items: center; border: 1px solid rgba(236, 229, 221, .2); border-radius: 50%; background: rgba(19, 14, 18, .7); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s; }
.sc-close { top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; font-size: 1.6rem; }
.sc-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 1.8rem; line-height: 1; }
.sc-prev { left: 1.2rem; } .sc-next { right: 1.2rem; }
.sc-close:hover, .sc-nav:hover { background: color-mix(in srgb, var(--glow) 40%, #130e12); border-color: color-mix(in srgb, var(--glow) 70%, transparent); }
@media (max-width: 860px) {
  .sc-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .5rem; padding: 4rem 1.2rem 5.5rem; max-height: 100dvh; overflow-y: auto; }
  .sc-book .book3d { --bw: min(200px, 30vh, 52vw); }
  .sc-actions { justify-content: center; }
  .sc-nav { top: auto; bottom: 1rem; margin: 0; width: 44px; height: 44px; }
}

/* ---------- Personnages sur une ligne, avec flèches ---------- */
.char-rail { position: relative; }
.char-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 21vw, 250px); gap: clamp(1rem, 2vw, 1.6rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: .6rem .2rem 1.2rem; overscroll-behavior-x: contain; }
.char-track::-webkit-scrollbar { display: none; }
.char-track > * { scroll-snap-align: start; }
.char-track .portrait { aspect-ratio: 3 / 4; }
.char-rail.is-detail .char-track { grid-auto-columns: clamp(230px, 27vw, 310px); }
.char-rail .plate-cap p { margin-top: .35rem; color: #cfc5cc; font-family: var(--f-read); font-size: .98rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rail-arrows { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .4rem; }
.rail-arrows[hidden] { display: none; }
.rail-arrows button { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(236, 229, 221, .22); background: transparent; color: var(--ink); font-size: 1.5rem; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; }
.rail-arrows button:hover:not(:disabled) { background: var(--crimson); border-color: var(--crimson); }
.rail-arrows button:disabled { opacity: .3; cursor: default; }
.char-rail::after { content: ""; position: absolute; top: 0; right: 0; bottom: 3.6rem; width: 130px; background: linear-gradient(to left, var(--bg) 10%, transparent); pointer-events: none; opacity: var(--more, 0); transition: opacity .3s; }

/* ---------- Bestiaire vers boutique : fondu au lieu d'une coupure nette ---------- */
.section-alt { background: linear-gradient(to bottom, var(--bg), var(--surface) clamp(6rem, 14vw, 11rem), var(--surface) calc(100% - clamp(6rem, 14vw, 11rem)), var(--bg)); padding-block: clamp(7rem, 14vw, 11rem); }
.section-alt + .section { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.char-track .plate-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; height: 100%; }
.char-rail::after { z-index: 1; }
.char-rail:not(.is-detail) .char-track { grid-auto-columns: clamp(180px, 19vw, 230px); }
.char-track.is-auto { scroll-snap-type: none; scroll-behavior: auto; }
.char-track > [hidden] { display: none; }
/* Personnage sans illustration : une carte à sa couleur, avec son initiale */
.char-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .6rem; background: radial-gradient(110% 80% at 50% 40%, color-mix(in srgb, var(--glow) 30%, transparent) 0%, color-mix(in srgb, var(--glow) 20%, transparent) 22%, color-mix(in srgb, var(--glow) 11%, transparent) 45%, color-mix(in srgb, var(--glow) 4%, transparent) 68%, transparent 92%), linear-gradient(175deg, color-mix(in srgb, var(--glow) 12%, #120d12), #08060b 80%); }
.char-ph b { font-family: var(--f-title); font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; background: linear-gradient(180deg, #fff 0%, #e6e8ee 32%, #9ea2af 56%, #eceef3 78%, #8b8e9a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 34px color-mix(in srgb, var(--glow) 38%, transparent)); }
.char-ph small { font-size: .8rem; color: color-mix(in srgb, var(--glow) 45%, #d8d0d6); }
.lore-art .char-ph b { font-size: clamp(6rem, 14vw, 10rem); }
.lore-art:has(.char-ph) { min-height: min(420px, 46dvh); }
/* Reflet des mock-ups : il suit l'angle du livre (variables posées par le script) */
.shelf-book .b-front::after, .shelf-book .b-back::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(100deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.16) 50%, rgba(255,255,255,0) 58%); background-size: 300% 100%; }
.shelf-book .b-front::after { background-position: var(--sx-f, 50%) 0; opacity: var(--so-f, 0); }
.shelf-book .b-back::after { background-position: var(--sx-b, 50%) 0; opacity: var(--so-b, 0); }
/* Alegreya a des chiffres « elzéviriens » (bas de casse) : on garde des chiffres droits pour les prix, boutons et dates */
* { font-feature-settings: "lnum" 1; }
.pg, .pg * { font-feature-settings: normal; }

/* ---------- En-tête : logo au centre exact, liens répartis de part et d'autre ---------- */
.nav-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(.8rem, 2vw, 2rem); }
.nav-side { display: flex; align-items: center; min-width: 0; }
.nav-left { justify-content: space-between; }
.nav-right { justify-content: space-between; }
.nav-side .nav-links { margin: 0; }
.nav-left .nav-links { margin-left: auto; }
.nav-right .nav-links { margin-right: auto; }
.nav-tools { margin-left: 1rem; }
.nav-logo { display: grid; place-items: center; }
.nav-logo img { height: 58px; transition: filter .3s, transform .3s; }
.nav-logo:hover img { filter: drop-shadow(0 0 14px rgba(224, 36, 47, .6)); transform: scale(1.04); }
@media (max-width: 1240px) {
  .nav-links a { padding: .5rem .45rem; }
  .nav-read { display: none; }
}
@media (max-width: 980px) {
  .nav-side .nav-links { display: none; }
  .nav-logo img { height: 44px; }
  .nav-tools { margin-left: auto; }
}

/* ---------- Feuille souple : bandes articulées (voir flipbook.js) ---------- */
.fb-leaf { --sw: calc(var(--pw) / 24); transform: none; }
.fb-strip { position: absolute; top: 0; left: 0; width: var(--sw); height: var(--ph); transform-origin: 0 50%; transform-style: preserve-3d; }
.fb-strip .fb-strip { left: var(--sw); }
.fb-slice { position: absolute; top: 0; left: 0; width: calc(var(--sw) + 1px); height: 100%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fb-slice.is-b { transform: rotateY(180deg); }
.fb-slice.is-void { visibility: hidden; }
.fb-sin { position: absolute; top: 0; width: var(--pw); height: var(--ph); background: #fff; color: #1e1716; }
.fb-slice.is-f .fb-sin { left: calc(var(--k) * var(--sw) * -1); }
.fb-slice.is-b .fb-sin { left: calc((var(--k) + 1) * var(--sw) - var(--pw)); }
.fb-slice::after { content: ""; position: absolute; inset: 0 -1px 0 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,var(--sa, 0)), rgba(0,0,0,var(--sb, 0))); }
.fb.is-single .fb-slice.is-b .fb-sin { background: #f4f1ec; }


/* ---------- Typographie : deux familles seulement ----------
   Morwen Titre (ta police) : titres et menu. Cinzel (sa base) : boutons et raretés.
   Alegreya : tout le texte ; son italique sert aux petites mentions (Tome I, disponible…). */
.nav-links a { font-family: var(--f-title); font-size: .86rem; font-weight: 700; letter-spacing: .035em; white-space: nowrap; padding: .5rem .55rem; }
.nav-read { white-space: nowrap; }
@media (max-width: 1380px) { .nav-read { display: none; } }
@media (max-width: 1120px) { .nav-links a { font-size: .8rem; padding: .5rem .4rem; letter-spacing: .02em; } }
/* boutons et raretés en Cinzel : la base de Morwen Titre, sans les pointes du O qui chargeraient chaque bouton */
.btn, .buy-btn, .btn-ember, .btn-buy { font-family: var(--f-display); font-weight: 700; font-size: .86rem; letter-spacing: .05em; }
.rar, .rarities span { font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .07em; }
.tome-info .k, .lore-kicker, .plate-cap i, .shelf-cap i, .shelf-cap span, .sc-info i {
  font-family: var(--f-read); font-style: italic; font-size: 1.05rem; letter-spacing: .01em;
}
.shelf-cap i, .shelf-cap span { font-size: .98rem; }
.facts, .lore-facts { font-family: var(--f-read); font-size: 1.05rem; }
.price { font-family: var(--f-read); font-weight: 700; }

/* ---------- Bannières des pages : l'illustration à droite, cadrée sur les visages, fondue vers le texte ---------- */
.page-top-bg { inset: 0 0 0 auto; width: min(64%, 920px); }
.page-top-bg img { opacity: .5; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%), linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to right, transparent 0%, #000 42%); }
.page-top-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); pointer-events: none; }
@media (max-width: 760px) {
  .page-top-bg { width: 100%; }
  .page-top-bg img { opacity: .28; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Coffret : les deux brochés en 3D devant les quatre tirages ---------- */
.explode { height: 500px; }
.ex-print { width: 150px; top: 46%; }
.ex-mark { width: 60px; height: auto; aspect-ratio: 480 / 1688; top: 58%; z-index: 4; padding: 0; background: none; box-shadow: 0 22px 40px -12px #000, 0 0 0 1px rgba(255, 255, 255, .06); border-radius: 2px; }
.bx-books { position: absolute; z-index: 3; left: 50%; bottom: 0; width: 470px; height: 380px; transform: translateX(-56%); }
.bx-books .shelf-book { position: absolute; bottom: 0; }
.bx-books .book3d { --bw: 176px; --bh: calc(var(--bw) * 1.5); --bd: calc(var(--bw) * var(--depth)); width: calc(var(--bw) + var(--bd) + 60px); height: calc(var(--bh) + 40px); perspective: 1500px; cursor: grab; }
.bx-b2 { left: 18px; }
.bx-b1 { left: 190px; bottom: -12px !important; }
.bx-b1 .book3d { --bw: 188px; }
@media (max-width: 900px) {
  .explode { height: 360px; }
  .bx-books { transform: translateX(-50%) scale(.72); transform-origin: 50% 100%; }
  .ex-print { width: 112px; }
  .ex-mark { width: 44px; }
}

/* ---------- Les livres : une fiche par tome, formats au choix ---------- */
.tome-shops { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.tome-shop { position: relative; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding: clamp(1.5rem, 3.5vw, 2.8rem); border-radius: 4px;
  background: radial-gradient(60% 80% at 22% 50%, color-mix(in srgb, var(--glow) 16%, transparent), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .07); }
.ts-visual { display: grid; place-items: center; min-height: 380px; }
.ts-book .book3d { --bw: min(230px, 46vw); --bh: calc(var(--bw) * 1.5); --bd: calc(var(--bw) * var(--depth)); width: calc(var(--bw) + var(--bd) + 90px); height: calc(var(--bh) + 50px); perspective: 1500px; }
.ts-body { display: grid; gap: 1rem; align-content: center; }
.ts-k { font-family: var(--f-read); font-style: italic; font-size: 1.05rem; color: color-mix(in srgb, var(--glow) 55%, #fff); }
.ts-body h3 { margin-top: -.6rem; font-family: var(--f-title); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05;
  background: linear-gradient(180deg, #fff 0%, #e6e8ee 32%, #9ea2af 56%, #eceef3 78%, #8b8e9a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ts-variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: .4rem; }
.ts-v { all: unset; box-sizing: border-box; position: relative; display: grid; gap: .2rem; align-content: start; padding: .85rem 1rem .9rem; border-radius: 3px; cursor: pointer;
  background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .14); transition: box-shadow .25s, background .25s; }
.ts-v:hover { box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .32); }
.ts-v:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.ts-v.is-on { background: color-mix(in srgb, var(--glow) 12%, rgba(0,0,0,.25)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--glow) 80%, #fff), 0 10px 30px -14px color-mix(in srgb, var(--glow) 70%, transparent); }
.ts-v-name { font-family: var(--f-display); font-weight: 700; font-size: .92rem; letter-spacing: .03em; color: #fff; }
.ts-v-line { font-family: var(--f-read); font-style: italic; font-size: .92rem; line-height: 1.35; color: var(--muted); }
.ts-v-price { margin-top: .3rem; font-family: var(--f-read); font-weight: 700; font-size: 1.05rem; color: #fff; }
.ts-v::after { content: ""; position: absolute; top: .9rem; right: .9rem; width: 6px; height: 6px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 8px color-mix(in srgb, var(--rc) 70%, transparent); }
.ts-panel { display: grid; gap: .9rem; padding-top: .3rem; }
.ts-panel[hidden] { display: none; }
.ts-desc { font-family: var(--f-read); font-size: 1.1rem; line-height: 1.6; color: #ddd4da; max-width: 52ch; }
.ts-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem 1.4rem; align-items: end; padding-top: 1rem; border-top: 1px solid var(--line); }
.ts-buy .price { margin: 0; font-size: 1.9rem; line-height: 1; padding-bottom: .55rem; }
.ts-buy .buy-form { display: grid; gap: .6rem; max-width: 420px; }
.ts-buy .buy-btn, .ts-buy .btn { width: 100%; }
@media (max-width: 860px) {
  .tome-shop { grid-template-columns: 1fr; }
  .ts-visual { min-height: 320px; }
  .ts-buy { grid-template-columns: 1fr; }
}

/* ---------- Coffret, v3 : tout se voit, rien ne se manipule ---------- */
.explode { height: 560px; }
.ex-print { width: 128px; top: 25%; }
.ex-mark { width: 52px; top: 74%; }
.bx-books { width: 420px; height: 300px; bottom: 6px; transform: translateX(-54%); }
.bx-books .book3d { --bw: 150px; cursor: default; }
.bx-b1 .book3d { --bw: 158px; }
.bx-b2 { left: 30px; }
.bx-b1 { left: 168px; bottom: -6px !important; }
[data-shop-book] { cursor: default !important; }
@media (max-width: 900px) {
  .explode { height: 470px; }
  .ex-print { width: 96px; top: 24%; }
  .ex-mark { width: 40px; top: 76%; }
  .bx-books { transform: translateX(-54%) scale(.8); transform-origin: 50% 100%; }
}
@media (max-width: 420px) {
  .ex-print { width: 78px; }
  .bx-books { transform: translateX(-56%) scale(.68); }
}

/* Formats : panneaux superposés, la fiche ne change pas de hauteur */
.ts-panels { display: grid; }
.ts-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .3s; }
.ts-panel.is-on { visibility: visible; opacity: 1; }
.ts-panel[hidden] { display: grid; }
/* La box en premier, avec son étiquette */
.ts-v.is-reco { padding-top: 1.35rem; }
.ts-reco { position: absolute; top: -.62rem; left: .85rem; padding: .22rem .6rem; border-radius: 2px; font-family: var(--f-display); font-weight: 700; font-size: .68rem; letter-spacing: .08em; color: #1a0f05; background: linear-gradient(180deg, #ffd88a, #e9a73b); box-shadow: 0 6px 16px -6px rgba(233, 167, 59, .7); }
.ts-variants { margin-top: 1rem; align-items: stretch; }
.explode { height: 520px; }
.ex-print { width: 138px; top: 27%; }
.ex-mark { top: 73%; }
@media (max-width: 900px) {
  .explode { height: 420px; }
  .ex-print { width: 100px; top: 24%; }
}
@media (max-width: 420px) {
  .explode { height: 370px; }
  .ex-print { width: 80px; top: 22%; }
  .ex-mark { width: 36px; top: 72%; }
}

/* Coffret : rien ne réagit au survol, tout flotte doucement */
.explode.is-driven:hover .ex { filter: none; }
.bx-books .book3d:hover .book-shadow { background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); }

/* Fiche de tome : quand la box est choisie, ses illustrations s'ouvrent derrière le livre */
.ts-visual { position: relative; isolation: isolate; }
.ts-print { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(150px, 30vw); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px;
  box-shadow: 0 24px 40px -16px #000; opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.9);
  transition: opacity .5s ease, transform .8s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.ts-visual.show-box .ts-print { opacity: 1; }
.ts-visual.show-box .ts-print-0 { transform: translate(-128%, -58%) rotate(-9deg); }
.ts-visual.show-box .ts-print-1 { transform: translate(28%, -54%) rotate(8deg); }
@media (prefers-reduced-motion: no-preference) {
  .ts-visual.show-box .ts-print-0 { animation: tsFloatA 7s ease-in-out .8s infinite; }
  .ts-visual.show-box .ts-print-1 { animation: tsFloatB 8s ease-in-out .8s infinite; }
}
@keyframes tsFloatA { 0%, 100% { transform: translate(-128%, -58%) rotate(-9deg); } 50% { transform: translate(-130%, -61%) rotate(-10.5deg); } }
@keyframes tsFloatB { 0%, 100% { transform: translate(28%, -54%) rotate(8deg); } 50% { transform: translate(30%, -57%) rotate(9.5deg); } }

/* ---------- Le coffret, mis en avant : grande scène, livres bien lisibles ---------- */
.feature { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(1.5rem, 4vw, 3.5rem); overflow: visible; position: relative; }
.feature::before { content: ""; position: absolute; z-index: -1; left: -6%; top: -8%; width: 75%; height: 116%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 55%, rgba(255, 138, 36, .10), rgba(154, 18, 25, .08) 45%, transparent 75%); }
.explode { height: 640px; }
.ex-print { width: 150px; top: 21%; }
.bx-books { width: 560px; height: 420px; bottom: 0; transform: translateX(-52%); }
.bx-books .book3d { --bw: 205px; width: calc(var(--bw) + var(--bd) + 70px); height: calc(var(--bh) + 46px); perspective: 1700px; }
.bx-b1 .book3d { --bw: 215px; }
.bx-b2 { left: 22px; }
.bx-b1 { left: 228px; bottom: -10px !important; }
.ex-mark { width: 62px; top: 74%; }
/* pas de halo ni de reflet sur les livres du coffret : ils sont posés, la lumière ne bouge pas */
.bx-books .b-front, .bx-books .b-back { box-shadow: inset 4px 0 8px rgba(0,0,0,.55) !important; }
.bx-books .b-front::after, .bx-books .b-back::after { display: none; }
.bx-books .book-shadow { width: calc(var(--bw) * 1.5); height: 50px; background: radial-gradient(closest-side, rgba(0,0,0,.85), transparent) !important; }
.feature-text h3 { font-size: clamp(2.4rem, 4.2vw, 3.4rem); }
.feature .price { font-size: 2.6rem; margin: .3rem 0 .2rem; }
.feature .buy-form { width: 100%; max-width: 420px; display: grid; gap: .6rem; }
.feature .buy-btn, .feature .btn { width: 100%; min-height: 54px; font-size: .95rem; }
@media (max-width: 1100px) {
  .feature { grid-template-columns: 1fr; }
  .explode { height: 600px; }
}
@media (max-width: 900px) {
  .explode { height: 470px; }
  .ex-print { width: 104px; top: 20%; }
  .bx-books { transform: translateX(-52%) scale(.7); transform-origin: 50% 100%; }
  .ex-mark { width: 44px; top: 76%; }
}
@media (max-width: 420px) {
  .explode { height: 400px; }
  .ex-print { width: 80px; top: 19%; }
  .bx-books { transform: translateX(-53%) scale(.56); }
  .ex-mark { width: 34px; top: 75%; }
}

/* ---------- Les fiches de tome passent au second plan : plus de cadre ---------- */
.tome-shop { background: none; box-shadow: none; border-radius: 0; padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--line); }
.tome-shop:first-child { border-top: 0; padding-top: 0; }
/* aucune lueur au survol des livres des fiches */
.ts-book .book3d:hover .book-shadow { background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); }

/* Ebook : une liseuse à la place du livre */
.ts-book { transition: opacity .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
.ts-visual.show-ebook .ts-book { opacity: 0; transform: scale(.92); pointer-events: none; }
.ts-reader { position: absolute; left: 50%; top: 50%; width: min(230px, 50vw); aspect-ratio: 0.69; padding: 7% 7% 13%; border-radius: 18px;
  background: linear-gradient(160deg, #26272b, #0d0d10 60%, #151619); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.08), inset 0 2px 1px rgba(255,255,255,.06), 0 34px 60px -24px #000, 0 10px 24px -12px rgba(0,0,0,.8);
  opacity: 0; transform: translate(-50%, -46%) perspective(1200px) rotateY(-16deg) rotateX(4deg) scale(.94); transition: opacity .45s ease, transform .7s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.ts-reader::after { content: ""; position: absolute; left: 50%; bottom: 5.2%; width: 18%; height: 2px; margin-left: -9%; border-radius: 2px; background: rgba(255,255,255,.12); }
.ts-reader-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 3px; background: #111; box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.ts-reader-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-visual.show-ebook .ts-reader { opacity: 1; transform: translate(-50%, -50%) perspective(1200px) rotateY(-16deg) rotateX(4deg); }
@media (prefers-reduced-motion: no-preference) {
  .ts-visual.show-ebook .ts-reader { animation: tsReader 7s ease-in-out .7s infinite; }
}
@keyframes tsReader {
  0%, 100% { transform: translate(-50%, -50%) perspective(1200px) rotateY(-16deg) rotateX(4deg); }
  50% { transform: translate(-50%, -53%) perspective(1200px) rotateY(-11deg) rotateX(5deg); }
}

/* Le coffret retrouve un cadre, et c'est le seul */
.feature { padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: 4px;
  background: radial-gradient(55% 70% at 30% 55%, rgba(255, 138, 36, .10), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 36, .22), 0 40px 80px -50px rgba(255, 138, 36, .35); }
.feature::before { display: none; }
.ts-panel { display: flex; flex-direction: column; gap: .9rem; }
.ts-panel .ts-buy { margin-top: auto; }

/* ---------- Livraison dans l'inventaire : Point Relais ou domicile ---------- */
.ship { border: 0; margin: 0 0 1rem; padding: 0 0 1rem; display: grid; gap: .45rem; border-bottom: 1px solid var(--line); }
.ship legend { padding: 0; margin-bottom: .5rem; font-family: var(--f-display); font-weight: 700; font-size: .9rem; letter-spacing: .04em; color: #fff; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 3px; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .16); transition: box-shadow .2s, background .2s; }
.ship-opt:hover { box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .32); }
.ship-opt.is-on { background: rgba(154, 18, 25, .14); box-shadow: inset 0 0 0 1.5px var(--crimson-hi); }
.ship-opt input { accent-color: var(--crimson-hi); margin: 0; }
.ship-opt span { font-size: 1rem; color: var(--ink); }
.ship-opt b { font-family: var(--f-read); color: #fff; }
.relay-pick { all: unset; box-sizing: border-box; text-align: center; padding: .75rem; border-radius: 3px; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .05em; color: #fff; box-shadow: inset 0 0 0 1px var(--crimson-hi); }
.relay-pick:hover { background: rgba(154, 18, 25, .25); }
.relay-chosen { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: start; padding: .7rem .85rem; border-radius: 3px; background: rgba(0,0,0,.25); }
.relay-chosen p { font-size: .95rem; line-height: 1.45; color: var(--muted); }
.relay-chosen b { color: #fff; font-weight: 700; }
.relay-change { all: unset; cursor: pointer; font-size: .9rem; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cart-pay:disabled { opacity: .55; cursor: not-allowed; }
.relay-dlg { width: min(940px, 96vw); max-height: 92dvh; padding: 1.2rem 1.4rem 1.4rem; border: 0; border-radius: 4px; background: #f6f2ec; color: #1d1416; overflow: auto; }
.relay-dlg::backdrop { background: rgba(6, 4, 6, .8); backdrop-filter: blur(4px); }
.relay-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.relay-top h2 { font-family: var(--f-title); font-size: 1.6rem; color: #1d1416; }
.relay-top .cart-close { color: #1d1416; }
.relay-help { margin: .3rem 0 1rem; color: #5a4c4f; font-family: var(--f-read); }
.relay-zone { min-height: 420px; }
.relay-wait { padding: 3rem 1rem; text-align: center; color: #5a4c4f; }

/* ---------- Personnages : bande fluide, lueur jamais coupée ---------- */
.char-track { display: block; overflow-x: clip; overflow-y: visible; overflow-clip-margin: 0; padding: 2.5rem 0 1.2rem; margin: -2.5rem 0 0; touch-action: pan-y; cursor: grab; scroll-snap-type: none; }
.char-track:active { cursor: grabbing; }
.char-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(180px, 19vw, 230px); gap: clamp(1rem, 2vw, 1.6rem); will-change: transform; user-select: none; -webkit-user-select: none; }
.char-rail.is-detail .char-strip { grid-auto-columns: clamp(230px, 27vw, 310px); }
.char-strip img { -webkit-user-drag: none; pointer-events: none; }
.char-rail::after { display: none; }
.rail-arrows { position: relative; z-index: 2; }

/* Coffret : cadre sobre, sans halo orange, poussières dorées très légères */
.feature { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--surface); box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .1); }
.feature-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; border-radius: inherit; }
.feature > .explode, .feature > .feature-text { position: relative; z-index: 1; }

/* Formats : la box plus grande, broché et ebook plus discrets */
.ts-variants { grid-template-columns: 1.4fr 1fr 1fr; align-items: end; }
.ts-v.is-reco { padding: 1.05rem 1.15rem 1.1rem; }
.ts-v:not(.is-reco) { padding: .65rem .8rem .7rem; }
.ts-v:not(.is-reco) .ts-v-name { font-size: .8rem; }
.ts-v:not(.is-reco) .ts-v-line { font-size: .82rem; }
.ts-v:not(.is-reco) .ts-v-price { font-size: .95rem; }
.ts-v.is-reco .ts-v-name { font-size: 1rem; }
.ts-v.is-reco .ts-v-price { font-size: 1.2rem; }
@media (max-width: 560px) { .ts-variants { grid-template-columns: 1fr 1fr; } .ts-v.is-reco { grid-column: 1 / -1; } }

/* ---------- Page de paiement ---------- */
.page-plain, .co-page { padding-top: calc(var(--nav-h, 68px) + clamp(2.5rem, 6vw, 4.5rem)); }
.prose { max-width: 72ch; }
.prose h1 { font-family: var(--f-title); font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.prose h2 { font-family: var(--f-display); font-size: 1.25rem; margin: 2.2rem 0 .6rem; color: #fff; }
.prose p, .prose li { font-family: var(--f-read); font-size: 1.08rem; line-height: 1.7; color: #d8cfd5; }
.prose .todo { background: rgba(224, 36, 47, .18); color: #fff; padding: 0 .2em; }
.co-title { font-family: var(--f-title); font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 2rem;
  background: linear-gradient(180deg, #fff 0%, #e6e8ee 32%, #9ea2af 56%, #eceef3 78%, #8b8e9a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.co-main { display: grid; gap: 1rem; }
.co-step { padding: clamp(1.2rem, 2.6vw, 1.8rem); border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .09); }
.co-step[hidden] { display: none; }
.co-step.is-locked { opacity: .5; }
.co-step-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.co-step h2 { display: flex; align-items: center; gap: .7rem; font-family: var(--f-display); font-size: 1.15rem; letter-spacing: .03em; color: #fff; }
.co-step h2 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .85rem; background: var(--crimson); color: #fff; }
.co-step.is-done h2 span { background: #2f7a4f; }
.co-link { all: unset; cursor: pointer; font-size: .95rem; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.co-done { margin-top: .8rem; font-family: var(--f-read); font-size: 1.02rem; color: var(--muted); line-height: 1.5; }
.co-done b { color: #fff; }
.co-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.2rem; }
.co-mode { all: unset; box-sizing: border-box; position: relative; display: grid; gap: .25rem; padding: 1rem 1.1rem; border-radius: 3px; cursor: pointer; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .15); transition: box-shadow .2s, background .2s; }
.co-mode:hover { box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .35); }
.co-mode:focus-visible { outline: 2px solid var(--crimson-hi); outline-offset: 2px; }
.co-mode.is-on { background: rgba(154, 18, 25, .14); box-shadow: inset 0 0 0 1.5px var(--crimson-hi); }
.co-mode b { font-family: var(--f-display); font-size: .95rem; color: #fff; padding-right: 4rem; }
.co-mode span { font-size: .92rem; color: var(--muted); line-height: 1.4; }
.co-mode em { position: absolute; top: 1rem; right: 1.1rem; font-style: normal; font-weight: 700; color: #fff; }
.relay { margin-top: 1.4rem; }
.relay-search { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.relay-search label { width: 100%; font-size: .95rem; color: var(--muted); }
.relay-search input { width: 9rem; height: 46px; padding: 0 .9rem; font: inherit; font-size: 1.1rem; letter-spacing: .08em; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(236, 229, 221, .22); border-radius: 3px; }
.relay-search input:focus { outline: none; border-color: var(--crimson-hi); }
.relay-search .btn { height: 46px; }
.relay-geo { margin-left: .4rem; }
.relay-msg { margin: .9rem 0 .2rem; font-size: .95rem; color: var(--muted); min-height: 1.4em; }
.relay-msg.is-demo { color: #e9b44c; }
.relay-msg.is-error, .co-error { color: #ff7a7a; }
.co-error:empty { display: none; }
.relay-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; margin-top: .6rem; height: 440px; }
.relay-body[hidden] { display: none; }
.relay-list { list-style: none; margin: 0; padding: 0 .3rem 0 0; overflow-y: auto; display: grid; gap: .5rem; align-content: start; scrollbar-width: thin; }
.relay-pt { border-radius: 3px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .1); transition: box-shadow .2s, background .2s; }
.relay-pt.is-on { background: rgba(154, 18, 25, .14); box-shadow: inset 0 0 0 1.5px var(--crimson-hi); }
.relay-pt-main { all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: start; width: 100%; padding: .8rem .85rem .5rem; cursor: pointer; }
.relay-pt-main:focus-visible { outline: 2px solid var(--crimson-hi); outline-offset: -2px; }
.relay-pt-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8rem; font-weight: 700; background: #2a2226; color: #fff; }
.relay-pt.is-on .relay-pt-num { background: var(--crimson-hi); }
.relay-pt-txt { display: grid; gap: .15rem; }
.relay-pt-txt b { font-size: .95rem; color: #fff; text-transform: capitalize; }
.relay-pt-txt span { font-size: .88rem; color: var(--muted); line-height: 1.35; text-transform: capitalize; }
.relay-pt-txt .relay-pt-meta { text-transform: none; color: #b9aeb4; }
.relay-pt-pick { font-family: var(--f-display); font-weight: 700; font-size: .72rem; letter-spacing: .06em; color: #fff; padding: .35rem .6rem; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .3); }
.relay-pt.is-on .relay-pt-pick { background: var(--crimson-hi); box-shadow: none; }
.relay-hours { padding: 0 .85rem .6rem 3.05rem; font-size: .85rem; color: var(--muted); }
.relay-hours summary { cursor: pointer; width: max-content; text-decoration: underline; text-underline-offset: 2px; }
.relay-hours table { margin-top: .4rem; border-collapse: collapse; }
.relay-hours th { text-align: left; font-weight: 400; padding: .1rem 1rem .1rem 0; }
.relay-hours tr.is-today { color: #fff; font-weight: 700; }
.relay-map { border-radius: 3px; overflow: hidden; background: #1a1418; min-height: 300px; }
.relay-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #2a2226; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.45); }
.relay-pin.is-on { background: var(--crimson-hi); transform: rotate(-45deg) scale(1.15); }
.relay-pin { color: #fff; font: 700 12px/1 system-ui, sans-serif; }
.relay-pin::before { content: ""; }
.relay-pin { text-indent: 0; }
.relay-current { margin-top: .9rem; font-size: .98rem; color: var(--muted); }
.relay-current b { color: #fff; text-transform: capitalize; }
.co-next { margin-top: 1.3rem; min-height: 50px; padding-inline: 2rem; }
.co-next:disabled { opacity: .45; cursor: not-allowed; }
.co-stripe { margin-top: 1.2rem; border-radius: 6px; overflow: hidden; background: #fff; min-height: 120px; }
.co-wait { padding: 2.5rem 1.5rem; text-align: center; color: #5a4c4f; font-family: var(--f-read); }
.co-summary { position: sticky; top: calc(var(--nav-h, 68px) + 1.5rem); padding: 1.4rem 1.4rem 1.2rem; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .09); }
.co-summary h2 { font-family: var(--f-display); font-size: 1.05rem; color: #fff; margin-bottom: 1rem; }
.co-lines { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; }
.co-lines li { display: grid; grid-template-columns: 42px 1fr auto; gap: .8rem; align-items: start; }
.co-lines img { width: 42px; height: 58px; object-fit: cover; border-radius: 2px; }
.co-l-title { font-size: .98rem; color: #fff; line-height: 1.3; }
.co-l-title span { color: var(--muted); }
.co-l-ded { font-family: var(--f-read); font-style: italic; font-size: .88rem; color: var(--muted); }
.co-l-price { font-weight: 700; color: #fff; }
.co-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); color: #ddd4da; }
.co-total { font-family: var(--f-display); font-size: 1.25rem; color: #fff; padding-top: .8rem; }
.co-note { margin-top: .6rem; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.co-note a { color: #fff; }
.co-empty { padding: 3rem 0; display: grid; gap: 1.2rem; justify-items: start; font-family: var(--f-read); font-size: 1.15rem; }
@media (max-width: 960px) {
  .co { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .relay-body { grid-template-columns: 1fr; height: auto; }
  .relay-map { height: 260px; order: -1; }
  .relay-list { max-height: 420px; }
}
@media (max-width: 560px) { .co-modes { grid-template-columns: 1fr; } }
a.cart-pay { display: grid; place-items: center; text-decoration: none; color: #fff; }

/* ---------- Paiement et inventaire : une police nette et moderne (Manrope) pour les infos pratiques ---------- */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --f-ui-modern: "Manrope", system-ui, sans-serif; }
.co, .co *:not(h1):not(h2):not(h2 *):not(.co-mode b):not(.relay-pt-pick):not(.btn),
.cart-body, .cart-body *, .cart-foot, .cart-foot *:not(.cart-pay) { font-family: var(--f-ui-modern); font-style: normal; }
.co, .cart-body, .cart-foot { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.co-mode span, .relay-pt-txt span, .relay-hours, .relay-msg, .relay-current, .co-done, .co-note, .co-l-ded { font-size: .86rem; letter-spacing: 0; }
.relay-search label { font-size: .85rem; font-weight: 500; }
.relay-search input { font-size: 1rem; font-weight: 600; letter-spacing: .12em; }
.relay-pt-txt b { font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.relay-pt-txt span { text-transform: none; }
.relay-pt-num, .relay-pin { font-weight: 700; }
.co-l-title { font-size: .9rem; font-weight: 600; }
.co-l-price { font-size: .92rem; font-weight: 700; }
.co-row { font-size: .92rem; }
.co-total { font-family: var(--f-ui-modern) !important; font-size: 1.15rem; font-weight: 700; }
.co-mode em { font-size: .95rem; font-weight: 700; }
.co-done b, .relay-current b { text-transform: none; font-weight: 700; }
.cart-line-title { font-weight: 600; font-size: .95rem; }
.cart-line-ded, .cart-hint, .cart-legal { font-size: .85rem; }
.cart-row { font-size: .95rem; }
.cart-total { font-weight: 700; }

/* Coffret : cadre doré Légendaire sans lueur ; les braises vivent autour */
.feature { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc, #e9a73b) 60%, transparent); }
.feature-dust { inset: -90px; width: calc(100% + 180px); height: calc(100% + 180px); border-radius: 0; z-index: 2; }
html, body { overflow-x: clip; }

/* Titres d'en-tête sans lame rouge */
.head .blade { display: none; }
/* Logo du tome en écriture : halo très doux, sans cercle */
.tome-future { background: radial-gradient(70% 55% at 50% 42%, rgba(58, 109, 240, .12), transparent 75%), #080d1c; }
.tome-future .o-blue { filter: hue-rotate(220deg) saturate(2.1) brightness(1.08) drop-shadow(0 0 30px rgba(58, 109, 240, .16)); }
/* Livraison : une seule ligne Point Relais */
.co-ship-line { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: .2rem; margin: 1.2rem 0 0; padding: 1rem 1.1rem; border-radius: 3px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .15); }
.co-ship-line b { font-family: var(--f-title, var(--f-display)); font-weight: 400; color: #fff; }
.co-ship-line span { grid-column: 1; font-size: .9rem; color: var(--ink-dim, #b9b0a6); }
.co-ship-line em { grid-column: 2; grid-row: 1; font-style: normal; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

/* Page Histoire : chaque tome en livre 3D, avec son halo */
.tome-art { position: relative; display: grid; place-items: center; isolation: isolate; }
.tome-art::before { content: ""; position: absolute; inset: 6% 4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 34%, transparent), transparent 75%); filter: blur(28px); pointer-events: none; }
.tome-book .book3d { --bw: min(250px, 30vh); }
.tome-book .b-front { box-shadow: 0 0 70px -12px color-mix(in srgb, var(--glow) calc(var(--so-f, 1) * 85%), transparent); }
.tome-book .b-back { box-shadow: 0 0 70px -12px color-mix(in srgb, var(--glow) calc(var(--so-b, 0) * 85%), transparent); }
.tome-book.is-ghost .book3d { opacity: 1; }
.tome-book.is-ghost .b-front img { filter: hue-rotate(220deg) saturate(2.1) brightness(1.08) drop-shadow(0 0 22px rgba(58, 109, 240, .2)); }
@media (max-width: 800px) { .tome-book .book3d { --bw: min(200px, 52vw); } }
.shelf { align-items: flex-start; }
.rail-arrows { justify-content: center; }

/* Barre : la carte collée aux liens, à la même distance que le panier de l'autre côté */
.nav-left { justify-content: flex-end; }
.nav-left .nav-links { margin-left: 0; }
.nav-left > [data-open-map] { margin-right: 1rem; }
.nav-right { justify-content: flex-start; }
@media (max-width: 1100px) { .nav-left { justify-content: flex-start; } .nav-left > [data-open-map] { margin-right: 0; } .nav-right { justify-content: flex-end; } }

/* Fiches personnages : fond sombre, la couleur ne sort que de la lettre */
.char-ph { background: radial-gradient(42% 30% at 50% 42%, color-mix(in srgb, var(--glow) 16%, transparent), transparent 72%), linear-gradient(175deg, #151116, #09070b 85%); }
.char-ph b { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--glow) 60%, transparent)) drop-shadow(0 0 2px color-mix(in srgb, var(--glow) 40%, transparent)); }
.char-ph small { color: #8f868d; }

/* Carte : du vrai parchemin */
.ms-paper { background: #e8dcc2; transition: none; }
.ms-paper::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(120% 90% at 50% 50%, rgba(236, 214, 170, .35) 40%, rgba(170, 128, 72, .45) 85%, rgba(110, 74, 34, .65) 100%), linear-gradient(90deg, rgba(120, 84, 40, .18), transparent 6%, transparent 94%, rgba(120, 84, 40, .18)); }
.ms-paper::after { z-index: 1; box-shadow: inset 0 0 40px rgba(92, 58, 22, .45), inset 0 0 4px rgba(70, 42, 14, .7); }
.ms-roller { top: -12px; bottom: -12px; width: 30px; border-radius: 15px / 8px; transition: none;
  background: linear-gradient(90deg, #4a3319 0%, #8b6a3e 14%, #c9a874 32%, #ecd9b0 48%, #d8bd8a 60%, #a07c4a 80%, #4d351b 100%);
  box-shadow: 0 14px 30px -6px rgba(0,0,0,.75), 0 0 0 1px rgba(60, 38, 14, .5); }
.ms-roller::before, .ms-roller::after { left: 0; right: 0; height: 12px; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.5);
  background: repeating-radial-gradient(circle at 50% 50%, #d9bf8e 0 1.5px, #8e6c3e 1.5px 2.5px), #b8955f; }
.ms-roller::before { top: -5px; } .ms-roller::after { bottom: -5px; }
.ms-roller.left, .ms-roller.right { transform: none; }
.nav-right .nav-links { margin-right: 0; }
.nav-right .nav-tools { margin-left: 1rem; }
@media (max-width: 1100px) { .nav-right .nav-tools { margin-left: auto; } }

/* En-têtes de page : un reflet très doux de la couleur de la bannière, fondu vers le noir */
.page-top { background:
  radial-gradient(60% 95% at 82% 30%, color-mix(in srgb, var(--tint, transparent) 15%, transparent), transparent 72%); }


/* Lettres des fiches : lumière plus diluée */
.char-ph { background: radial-gradient(50% 36% at 50% 42%, color-mix(in srgb, var(--glow) 9%, transparent), transparent 75%), linear-gradient(175deg, #151116, #09070b 85%); }
.char-ph b { filter: drop-shadow(0 0 34px color-mix(in srgb, var(--glow) 34%, transparent)); }

/* Lecteur : notre police pour les titres de chapitre et les boutons */
.pdf-page .ln.h { left: 0 !important; right: 0; text-align: center; font-family: var(--f-title); font-weight: 400; letter-spacing: .02em; }
.fb-chapters button, .fb-tools button { font-family: var(--f-title); font-weight: 400; font-size: .95rem; letter-spacing: .03em; }

/* Barre du haut : texte plus grand */
.nav-links a { font-size: 1.02rem; padding: .5rem .65rem; }
@media (max-width: 1280px) { .nav-links a { font-size: .92rem; padding: .5rem .45rem; } }
@media (max-width: 1120px) { .nav-links a { font-size: .84rem; padding: .5rem .35rem; } }

/* Accueil : les trois tomes plus grands */
.shelf-book .book3d { --bw: min(214px, 26vh); }
.shelf-cap i { font-size: .92rem; }
.shelf-cap b { font-size: 1.08rem; }
@media (max-width: 760px) { .shelf-book .book3d { --bw: 92px; } .shelf-cap b { font-size: .9rem; } }

/* Carte : les rouleaux de Thandya, et les bords haut et bas du parchemin effilochés */
.ms-roller { top: -16%; bottom: -16%; width: auto; aspect-ratio: 131 / 1500; border-radius: 0; box-shadow: none;
  background: url(../img/rouleau.webp) center / 100% 100% no-repeat; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .65)); }
.ms-roller::before, .ms-roller::after { content: none; }
.ms-paper { background: #d9d7d3;
  -webkit-mask-image: url(../img/bord-haut.png), url(../img/bord-bas.png), linear-gradient(#000, #000);
  -webkit-mask-size: 100% 28px, 100% 28px, 100% calc(100% - 54px);
  -webkit-mask-position: top, bottom, center; -webkit-mask-repeat: no-repeat;
  mask-image: url(../img/bord-haut.png), url(../img/bord-bas.png), linear-gradient(#000, #000);
  mask-size: 100% 28px, 100% 28px, 100% calc(100% - 54px); mask-position: top, bottom, center; mask-repeat: no-repeat; }
.ms-paper::before { mix-blend-mode: multiply;
  background: radial-gradient(120% 95% at 50% 50%, transparent 55%, rgba(60, 60, 60, .28) 88%, rgba(30, 30, 30, .45) 100%); }
.ms-paper::after { box-shadow: inset 0 0 36px rgba(20, 20, 20, .4), inset 0 0 3px rgba(0, 0, 0, .5); }
/* La carte un peu plus petite pour que les rouleaux tiennent en entier, poignées comprises */
.ms-sheet { width: min(calc(100vw - 230px - 34px - 200px), calc((100dvh - 50px) / 1.34 * 1.3245)); }
@media (max-width: 900px) { .ms-sheet { width: min(calc(100vw - 90px), calc((100dvh - 280px) / 1.34 * 1.3245)); } }
@media (max-width: 900px) { .ms-sheet { margin-block: 13vw; } }

/* ---- 3 déc. soir ---- */
/* Accueil : un peu d'air sous la barre du haut, tomes et logo descendus */
.hero { padding-top: calc(var(--nav-h) + clamp(2rem, 7.5vh, 5rem)); }
.hero-logo { margin-top: clamp(1rem, 3.2vh, 2.2rem); }
@media (max-width: 760px) { .hero { padding-top: calc(var(--nav-h) + 1.2rem); } }

/* Carte : les rouleaux ne mordent plus sur la liste des lieux.
   --sw = largeur de la carte ; chaque rouleau dépasse d'environ 5,8 % de cette largeur de chaque côté. */
.ms-wrap { gap: 26px; padding: 30px 40px; }
.ms-sheet { --sw: min(calc((100vw - 230px - 26px - 80px - 40px) / 1.13), calc((100dvh - 60px) / 1.34 * 1.3245));
  width: var(--sw); margin-inline: calc(var(--sw) * .065); }
@media (max-width: 900px) {
  .ms-sheet { --sw: min(calc((100vw - 34px) / 1.13), calc((100dvh - 290px) / 1.34 * 1.3245));
    margin-block: calc(var(--sw) / 1.3245 * .17); }
}
/* Rouleaux : volume du cylindre, et leur ombre portée sur le parchemin */
.ms-roller { filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .75)) drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.ms-roller::before { content: ""; position: absolute; inset: 0; height: auto; border-radius: 0; box-shadow: none; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.22) 22%, rgba(255,255,255,.06) 40%, rgba(0,0,0,0) 52%, rgba(0,0,0,.3) 72%, rgba(0,0,0,.72) 100%);
  -webkit-mask: url(../img/rouleau.webp) center / 100% 100% no-repeat; mask: url(../img/rouleau.webp) center / 100% 100% no-repeat; }
/* Parchemin : plus d'ombre, le papier se creuse vers les rouleaux */
.ms-paper::before { background:
  linear-gradient(90deg, rgba(30,30,30,.5), rgba(40,40,40,.18) 40%, transparent) left var(--edge, 0px) top 0 / 9% 100% no-repeat,
  linear-gradient(270deg, rgba(30,30,30,.5), rgba(40,40,40,.18) 40%, transparent) right var(--edge, 0px) top 0 / 9% 100% no-repeat,
  radial-gradient(120% 95% at 50% 50%, transparent 50%, rgba(60,60,60,.32) 86%, rgba(25,25,25,.55) 100%); }
.ms-paper::after { box-shadow: inset 0 0 46px rgba(15, 15, 15, .5), inset 0 10px 18px -10px rgba(0,0,0,.45), inset 0 -10px 18px -10px rgba(0,0,0,.45), inset 0 0 3px rgba(0, 0, 0, .5); }

/* Cartes de personnage (cadre argenté de Thandya) */
.portrait:has(> .cc) { background: transparent; overflow: visible; box-shadow: none; border-radius: 0; }
.plate-card.char:hover .portrait:has(> .cc), .plate-card.char:focus-visible .portrait:has(> .cc) { box-shadow: none; }
.cc { position: absolute; inset: 0; display: block; --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .7s var(--ease-out-expo); }
.cc.is-on { transition: transform .12s linear; }
.cc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: none !important; scale: 1 !important;
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.75)) drop-shadow(0 0 22px color-mix(in srgb, var(--glow) 30%, transparent));
  transition: filter .5s var(--ease-out-quart); }
.plate-card.char:hover .cc img, .cc.is-on img { filter: drop-shadow(0 26px 30px rgba(0,0,0,.8)) drop-shadow(0 0 34px color-mix(in srgb, var(--glow) 55%, transparent)); }
.cc-holo, .cc-sweep, .cc-glare { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* reflet holographique, seulement sous le pointeur */
.cc-holo { opacity: 0; mix-blend-mode: overlay; transition: opacity .5s;
  background: repeating-linear-gradient(115deg, transparent 0%, color-mix(in srgb, var(--glow) 35%, transparent) 6%, rgba(255,255,255,.22) 9%, rgba(150,170,255,.18) 12%, transparent 18%);
  background-size: 260% 260%; background-position: var(--px) var(--py); }
.cc.is-on .cc-holo { opacity: .35; }
/* lueur qui glisse de temps en temps sur le cadre */
.cc-sweep { mix-blend-mode: overlay; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 48%, rgba(255,255,255,.1) 54%, transparent 62%);
  background-size: 300% 100%; background-position: 130% 0; animation: cc-sweep 7s var(--ease-in-out-quint, ease-in-out) infinite; }
.char-strip .plate-card:nth-child(2n) .cc-sweep { animation-delay: -3.5s; }
@keyframes cc-sweep { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }
/* éclat à l'endroit du pointeur */
.cc-glare { opacity: 0; mix-blend-mode: soft-light; transition: opacity .4s;
  background: radial-gradient(farthest-corner circle at var(--px) var(--py), rgba(255,255,255,.75), transparent 45%); }
.cc.is-on .cc-glare { opacity: .8; }
/* La carte dans sa fiche */
.lore-art.has-card { background: radial-gradient(60% 50% at 50% 45%, color-mix(in srgb, var(--glow, #e0352b) 14%, transparent), transparent 75%), #050305; min-height: min(620px, 84dvh); overflow: visible; }
.lore-art.has-card .cc { inset: 1.4rem 1.2rem; }
.lore-art.has-card .cc img { object-fit: contain; max-height: none; }
@media (max-width: 760px) { .lore-art.has-card { min-height: 46dvh; } .lore-art.has-card .cc { inset: .8rem; } }
@media (prefers-reduced-motion: reduce) { .cc-sweep { animation: none; opacity: 0; } }

/* Carte : à la fermeture, la liste des lieux et la croix partent tout de suite */
.mapsheet.is-closing .ms-tags, .mapsheet.is-closing .ms-close { opacity: 0; transition: opacity .16s linear; }

/* Carte de Malthor à la même taille que les autres fiches : son cadre argenté recouvre l'emplacement */
.portrait > .cc { transform-origin: 50% 97.5%; scale: 1.13; }
.lore-art .cc { scale: 1; }
/* Nom et texte centrés sous les fiches de personnages */
.plate-card.char .plate-cap { text-align: center; justify-items: center; }

/* ---- Textes du 3 déc. : synopsis en blocs, tropes en étiquettes ---- */
.tropes { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.tropes li { padding: .28rem .75rem; border-radius: 999px; font: 500 .82rem/1.2 var(--f-ui); letter-spacing: .02em; color: #fff;
  background: color-mix(in srgb, var(--glow, #e0242f) 20%, #120d12); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glow, #e0242f) 55%, transparent); }
.syn p + p, .sc-syn p + p { margin-top: .85rem; }
.sc-syn p { font-size: 1.02rem; line-height: 1.6; }
.sc-info { max-height: calc(100dvh - 4rem); overflow-y: auto; padding-right: .4rem; scrollbar-width: thin; }
.sc-stage { grid-template-columns: auto minmax(0, 34rem); }
.tome-info .tropes { margin: -.2rem 0 .2rem; }
.tome-info .syn { font: 400 1.12rem/1.7 var(--f-read); color: #ddd4da; max-width: 60ch; }
.lore-body .tropes { margin: -.2rem 0 0; }
.lore-body .syn p { font-size: 1.05rem; line-height: 1.6; }
@media (max-width: 860px) { .sc-info { max-height: none; overflow: visible; } .sc-info .tropes { justify-content: center; } }

/* Fiches personnage et créature : plus de halo autour de la fenêtre */
.lore[data-kind="char"], .lore[data-kind="beast"] { box-shadow: 0 40px 120px -20px #000; }
.lore[data-kind="char"] .lore-close, .lore[data-kind="beast"] .lore-close { box-shadow: none; }
.lore-art.has-card { background: #050305; }
.lore-art.has-card .cc img { filter: drop-shadow(0 22px 26px rgba(0,0,0,.75)); }

/* Pied de page : crédit du site tout en bas */
.foot .foot-credit { margin-top: -.6rem; font-size: .85rem; }

/* ---- Boutique sans raretés, au bleu spectral de Vitalya ---- */
.rar, .rarities, .ts-v::after { display: none; }
.tome-shop .contents li::before { color: var(--glow); }

/* Packs : clic sur le visuel pour le voir en grand */
button.item-slot { all: unset; box-sizing: border-box; position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 3px; cursor: zoom-in;
  background: radial-gradient(55% 50% at 50% 55%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 75%), var(--surface); }
button.item-slot:focus-visible { outline: 2px solid var(--rc); outline-offset: 2px; }
button.item-slot img { transition: transform .6s var(--ease-out-expo); }
button.item-slot:hover img { transform: scale(1.04); }
.gal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.gal[hidden] { display: none; }
.gal.is-open { opacity: 1; }
.gal-backdrop { position: absolute; inset: 0; background: rgba(4, 3, 5, .94); backdrop-filter: blur(6px); }
.gal-img { position: relative; max-width: min(92vw, 1500px); max-height: 88dvh; width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 100px -30px #000;
  opacity: 0; transform: scale(.98); transition: opacity .35s, transform .5s var(--ease-out-expo); }
.gal-img.is-in { opacity: 1; transform: none; }
.gal-nav, .gal-close { position: absolute; display: grid; place-items: center; border: 1px solid rgba(236, 229, 221, .2); border-radius: 50%; background: rgba(19, 14, 18, .7); color: var(--ink); cursor: pointer; }
.gal-nav { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 1.8rem; line-height: 1; }
.gal-prev { left: 1.2rem; } .gal-next { right: 1.2rem; }
.gal-close { top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; font-size: 1.6rem; }
.gal-nav:hover, .gal-close:hover { background: #1d1620; border-color: rgba(236, 229, 221, .45); }
.gal.is-single .gal-nav { display: none; }
.gal-count { position: absolute; bottom: 1.1rem; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .gal-nav { top: auto; bottom: .8rem; margin: 0; width: 44px; height: 44px; } .gal-img { max-height: 78dvh; } }

/* ---- 3 déc., minuit ---- */
/* Liens « Tous les personnages », « Lire les 3 premiers chapitres »… : en gras, sans trait rouge */
.link-more, .bonus-aside .link-more { border: 0; padding-bottom: 0; font-weight: 700; color: #fff; text-decoration: none; }
.link-more:hover { color: color-mix(in srgb, var(--crimson-hi) 40%, #fff); }

/* Contenu des box : des tirets à la place des « + » */
.contents li::before { content: "– "; font-weight: 400; }

/* Boutique : l'or des yeux de Vitalya pour le cadre du coffret et ses braises */
.feature { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 70%, transparent), 0 30px 80px -50px color-mix(in srgb, var(--rc) 45%, transparent); }

/* Réseaux : à droite, un peu plus grands */
.social-rail { left: auto; right: clamp(.6rem, 1.4vw, 1.2rem); gap: .65rem; }
.social-rail a { width: 58px; height: 58px; }
.social-rail svg, .social-rail img { width: 26px; height: 26px; }
.social-rail a::after { left: auto; right: calc(100% + 10px); transform: translate(4px, -50%); }
.social-rail a:hover::after, .social-rail a:focus-visible::after { transform: translate(0, -50%); }
.social-rail a:hover, .social-rail a:focus-visible { transform: translateX(-3px); }

/* Prochaines dates : une carte par salon, avec un petit calendrier */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
.events li.ev { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.4rem; padding: 1.2rem 1.4rem; border: 0; border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)), var(--surface); box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .1); }
.events li.ev:last-child { border: 0; }
.ev-cal { display: grid; justify-items: center; align-content: center; min-width: 104px; padding: .8rem .9rem .75rem; border-radius: 3px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--crimson) 30%, #120d12), #0d090d); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crimson-hi) 45%, transparent); }
.ev-cal b { font-family: var(--f-title); font-weight: 400; font-size: 1.55rem; line-height: 1.05; color: #fff; white-space: nowrap; }
.ev-cal span { margin-top: .25rem; font-size: .85rem; letter-spacing: .04em; color: color-mix(in srgb, var(--crimson-hi) 50%, #fff); }
.ev-body { display: grid; gap: .2rem; }
.events .ev-name { font-family: var(--f-title); font-weight: 400; font-size: 1.4rem; line-height: 1.15; }
.events .ev-place { grid-column: auto; display: inline-flex; align-items: center; gap: .35rem; color: #d6cdd3; }
.ev-place svg { width: 16px; height: 16px; color: var(--crimson-hi); }
.ev-when { font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .events li.ev { grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem; } .ev-cal { min-width: 84px; } .ev-cal b { font-size: 1.25rem; } }

/* ---- Carte, version épurée : la carte au centre, les lieux en une ligne dessous, des points discrets ---- */
.ms-wrap { grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: center; align-content: center; gap: 18px; padding: 24px 40px; }
.ms-sheet { --sw: min(calc((100vw - 80px) / 1.13), calc((100dvh - 48px - 18px - 46px) / 1.34 * 1.3245)); }
.ms-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 1.3rem; max-height: none; overflow: visible; padding: 0; max-width: min(1100px, 92vw); transform: translateY(8px); }
.mapsheet.is-open .ms-tags { transform: none; }
.ms-tags h2, .ms-tags p { display: none; }
.ms-tag, .ms-tag:hover, .ms-tag.is-on { all: unset; cursor: pointer; padding: .3rem 0; font: 500 .95rem var(--f-ui); letter-spacing: .01em; color: #9b9399; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.ms-tag::before { display: none; }
.ms-tag:hover { color: #e8e2e6; }
.ms-tag.is-on { color: #fff; border-bottom-color: rgba(255, 255, 255, .6); }
.ms-tag:focus-visible { outline: 1px solid rgba(255,255,255,.6); outline-offset: 3px; }

/* points : une goutte d'encre cerclée de blanc, posée sur la ville */
.ms-pin { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.ms-pin::before { inset: 9px; background: #17121a; box-shadow: 0 0 0 2px #f2efe9, 0 2px 6px rgba(0, 0, 0, .55); transition: transform .3s var(--ease-out-quart), background .2s; }
.ms-pin:hover::before { transform: scale(1.3); }
.ms-pin.is-on::before { transform: scale(1.35); background: #f2efe9; box-shadow: 0 0 0 2px #17121a, 0 2px 8px rgba(0, 0, 0, .6); }
.ms-pin.is-on::after { inset: 3px; border: 1.5px solid rgba(23, 18, 26, .7); animation: pin-ring 2s var(--ease-out-expo) infinite; }

/* fiche du lieu : sobre, sans liseré rouge */
.ms-tab { width: min(340px, 30vw); border-radius: 4px; overflow: hidden; background: #141016; box-shadow: 0 0 0 1px rgba(236, 229, 221, .12), 0 30px 70px -20px rgba(0,0,0,.9); }
.ms-tab::before { display: none; }
.ms-tab-body { padding: 1rem 1.15rem 1.15rem; gap: .35rem; }
.ms-tab-body h3 { font-size: 1.45rem; }
.ms-tab-body p { color: #cfc7cc; font-size: .98rem; line-height: 1.5; }
.ms-tab-close { box-shadow: none; background: rgba(10, 7, 9, .6); }
.ms-close { box-shadow: 0 0 0 1px rgba(236, 229, 221, .2), 0 6px 18px rgba(0,0,0,.6); background: #141016; }
.ms-close:hover { box-shadow: 0 0 0 1px rgba(236, 229, 221, .5); }
@media (max-width: 900px) {
  .ms-wrap { padding: 64px 12px 16px; }
  .ms-sheet { --sw: min(calc((100vw - 34px) / 1.13), calc((100dvh - 300px) / 1.34 * 1.3245)); }
  .ms-tags { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; gap: 1.1rem; padding: 0 4px 6px; }
  .ms-tag { white-space: nowrap; }
  .ms-tab { width: auto; }
}

/* Accueil : l'accroche sur deux lignes, et de l'air avant les boutons */
.hero-pitch { line-height: 1.5; }
.hero-actions { margin-top: 1.6rem; }

/* Personnages : flèches dessinées (bien centrées), survol gris */
.rail-arrows button { font-size: 0; }
.rail-arrows button svg { width: 20px; height: 20px; }
.rail-arrows button:hover:not(:disabled) { background: rgba(236, 229, 221, .1); border-color: rgba(236, 229, 221, .45); }

/* Prochaines dates : très simple, sans cadre */
.events { display: grid; grid-template-columns: 1fr; gap: 2.2rem; }
.events li.ev { display: grid; grid-template-columns: 1fr; gap: .25rem; padding: 0; background: none; box-shadow: none; border: 0; border-radius: 0; }
.events .ev-when { font-size: .95rem; color: var(--muted); }
.events .ev-name { font-family: var(--f-title); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; color: #fff; }
.events .ev-place { grid-column: auto; color: #cfc7cc; font-size: 1.02rem; }
/* les rouleaux dépassent en haut et en bas : on leur garde la place, la liste des lieux passe dessous */
.ms-sheet { margin-block: calc(var(--sw) / 1.3245 * .165); }
.ms-wrap { gap: 10px; }
.ms-sheet { --sw: min(calc((100vw - 80px) / 1.13), calc((100dvh - 48px - 10px - 40px) / 1.34 * 1.3245)); }
.ms-tags { gap: .1rem 1.05rem; }
.ms-tag, .ms-tag:hover, .ms-tag.is-on { font-size: .9rem; }
@media (max-width: 900px) { .ms-sheet { --sw: min(calc((100vw - 34px) / 1.13), calc((100dvh - 300px) / 1.34 * 1.3245)); } }
/* accueil : tout tient dans l'écran, boutons compris */
.hero { padding-top: calc(var(--nav-h) + clamp(1.6rem, 6vh, 4.5rem)); }
.shelf-book .book3d { --bw: min(214px, 24vh); }
@media (max-width: 760px) { .shelf-book .book3d { --bw: 92px; } .hero-actions { width: 100%; } .hero-actions .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; } }
@media (max-width: 760px) { .shelf-book .book3d { --bw: min(86px, 22vw); } .shelf { gap: .2rem; } }

/* Prochaines dates : la date en avant et en couleur, le nom du salon plus léger */
.events .ev-when { order: -1; font: 700 1.22rem/1.3 var(--f-ui); letter-spacing: .02em; color: #d4706f; }
.events .ev-name { font: 400 1.35rem/1.3 var(--f-read); color: #fff; }
.events .ev-place { font-size: .98rem; color: var(--muted); }

/* Carte : points rouge brique, pâle plutôt que vif, bien visibles sur le noir comme sur le blanc */
.ms-pin::before { background: #a8433f; box-shadow: 0 0 0 2px #f4ece4, 0 2px 6px rgba(0, 0, 0, .5); }
.ms-pin.is-on::before { background: #c8625c; box-shadow: 0 0 0 2px #f4ece4, 0 0 0 5px rgba(168, 67, 63, .35), 0 2px 8px rgba(0, 0, 0, .55); }
.ms-pin.is-on::after { border-color: rgba(200, 98, 92, .75); }

/* Carte : les points sont là dès l'ouverture (le papier les dévoile en se déroulant) */
.ms-pin, .ms-sheet.is-unrolled .ms-pin { opacity: 1; transition: none; }
/* Fiche d'un lieu : juste le nom et le texte, sans image pour l'instant */
.ms-tab { width: min(300px, 30vw); grid-template-columns: 1fr; }
.ms-tab-body { padding: 1rem 2.8rem 1.05rem 1.15rem; }
.ms-tab-close { top: 10px; right: 10px; width: 30px; height: 30px; font-size: 1rem; background: transparent; box-shadow: inset 0 0 0 1px rgba(236, 229, 221, .2); }
@media (max-width: 900px) { .ms-tab { width: auto; } }
@media (max-width: 900px) { .ms-pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; } .ms-pin::before { inset: 6.5px; box-shadow: 0 0 0 1.5px #f4ece4, 0 1px 4px rgba(0,0,0,.5); } }

/* =================== Passe téléphone (4 déc.) =================== */
@media (max-width: 760px) {
  /* les boutons longs passent à la ligne au lieu de déborder */
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: .7rem; max-width: 100%; }
  /* titres de section : le lien passe sous le titre */
  .head { grid-template-columns: 1fr; gap: .5rem; }
  .head .link-more { grid-column: 1; grid-row: auto; justify-self: start; }
  .page-top h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); line-height: 1.05; }

  /* L'histoire : le texte reste dans l'écran, les livres sont plus grands */
  .tome-info { min-width: 0; }
  .tome-art { max-width: none; width: 100%; }
  .tome-book .book3d { --bw: min(190px, 48vw); }
  .tome-info .actions { flex-direction: column; align-items: stretch; }
  .tropes li { font-size: .78rem; }

  /* Coffret : une rangée d'illustrations, puis les deux livres et le marque-page */
  .feature { padding: 1.1rem; gap: 1.4rem; }
  .explode, .explode.is-driven { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 8px; height: auto; transform: none !important; }
  .explode .ex { position: relative !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; transform: none !important; margin: 0 !important; }
  .explode .ex-print { grid-row: 1; width: 100% !important; aspect-ratio: 2 / 3; border-radius: 2px; box-shadow: 0 14px 24px -12px #000; }
  .explode .ex-p1 { rotate: -3deg; } .explode .ex-p2 { rotate: -1deg; } .explode .ex-p3 { rotate: 1deg; } .explode .ex-p4 { rotate: 3deg; }
  .explode .bx-books { position: relative; grid-row: 2; grid-column: 1 / 4; left: auto; right: auto; bottom: auto; width: 100%; height: min(62vw, 250px); transform: none !important; }
  .explode .bx-books .book3d { --bw: min(30vw, 120px); }
  .explode .bx-b1 .book3d { --bw: min(32vw, 128px); }
  .explode .bx-b2 { left: -6%; }
  .explode .bx-b1 { left: 30%; bottom: -4px !important; }
  .explode .ex-mark { grid-row: 2; grid-column: 4; justify-self: center; align-self: center; width: min(9vw, 40px) !important; rotate: 4deg; }
  .feature-text h3 { font-size: 2rem; }
  .feature .price { font-size: 2.1rem; }

  /* Fiches livres de la boutique */
  .tome-shop { gap: 1rem; }

  /* Personnages : cartes un peu plus larges */
  .char-strip, .char-rail.is-detail .char-strip { grid-auto-columns: 62vw; }
}
@media (max-width: 760px) {
  /* fiches livres : le livre reste grand, les deux illustrations derrière lui de chaque côté */
  .ts-book .book3d { --bw: min(170px, 42vw); }
  .ts-visual { min-height: min(92vw, 360px); }
  .ts-print { width: min(120px, 29vw); }
  .ts-visual.show-box .ts-print-0 { transform: translate(-118%, -56%) rotate(-9deg); }
  .ts-visual.show-box .ts-print-1 { transform: translate(18%, -52%) rotate(8deg); }
}
@media (max-width: 860px) {
  /* tome en grand : le livre en haut, le texte en pleine largeur dessous */
  .sc-stage { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: left; gap: .4rem; padding: 3.8rem 1.25rem 2.5rem; max-height: 100dvh; overflow-y: auto; }
  .sc-book .book3d { --bw: min(170px, 26vh, 46vw); }
  .sc-info { width: 100%; max-height: none; overflow: visible; padding: 0; text-align: left; }
  .sc-info .tropes { justify-content: flex-start; }
  .sc-actions { justify-content: stretch; }
  .sc-actions .btn { width: 100%; }
}
@media (max-width: 760px) {
  .toast { width: calc(100vw - 2rem); justify-content: space-between; }
  .nav-drawer { background: #0a0709; }
}
