/* ═══════════════════════════════════════════════════════════════
   Gueux & Donjons — DA « Taverne & Parchemin d'Aventurier »
   Encré à la main, bois de noyer, parchemin vieilli, humour Naheulbeuk
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Caveat Brush';
  src: url('/fonts/caveat-brush-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a110b;
  --wood-dark: #160f0a;
  --wood-mid: #281b13;
  --wood-hi: #3a271b;
  --paper: #f4e7cd;
  --paper-2: #e7d4b0;
  --paper-ink: #271a11;
  --paper-muted: #5f4833;
  --gold: #f2b233;
  --gold-hi: #ffd966;
  --green: #5cd357;
  --green-dark: #389a38;
  --berry: #e0463c;
  --berry-dark: #a62820;

  --r-commun: #b9ab94;
  --r-rare: #5aa3e0;
  --r-epique: #b26be0;
  --r-legendaire: #f2b233;
  --r-mythique: #ff5d6c;

  --title: 'Caveat Brush', Georgia, cursive;
  --ui: 'Fredoka', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;

  --shadow-ink: 0 5px 0 var(--ink);
  --shadow-card: 0 7px 0 var(--ink), 0 18px 34px rgba(0, 0, 0, 0.45);
  --wrap: min(1140px, calc(100vw - 28px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--wood-dark);
  color: var(--paper);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper);
  background:
    radial-gradient(900px 540px at 78% 120px, rgba(242, 178, 51, 0.16), transparent 65%),
    radial-gradient(700px 460px at 14% 280px, rgba(224, 70, 60, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(22, 15, 10, 0.84), rgba(22, 15, 10, 0.94) 55%, rgba(16, 11, 7, 0.98)),
    url('/assets/tex/wood.jpg') 0 0 / 220px 220px repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ───────── Barre de navigation Taverne ───────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 13, 9, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.topbar-in {
  width: var(--wrap);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.brand-ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

.brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-txt strong {
  font-family: var(--title);
  font-size: 24px;
  color: var(--gold-hi);
  text-shadow: 0 2px 0 var(--ink);
  letter-spacing: 0.3px;
}

.brand-txt small {
  font-size: 11px;
  font-weight: 800;
  color: rgba(244, 231, 205, 0.72);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: rgba(244, 231, 205, 0.86);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--gold-hi);
}

.nav-act {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 11px;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  background: var(--wood-hi);
  color: var(--paper);
  font-family: var(--ui);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--ink);
}

.lang-btn:hover {
  background: #4b3324;
}

/* ───────── Boutons BD encrés ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  font-family: var(--ui);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  touch-action: manipulation;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn-play {
  background: linear-gradient(180deg, #7be675, var(--green) 60%, var(--green-dark));
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 70%, #d48c19);
  color: var(--ink);
}

.btn-wood {
  background: linear-gradient(180deg, #4b3526, #322318);
  color: var(--paper);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-width: 2.5px;
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--ink);
}

/* ───────── Hero : Affiche de recrutement & Taverne interactive ───────── */
.hero {
  position: relative;
  padding: 36px 0 46px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 15, 10, 0.62) 0%, rgba(22, 15, 10, 0.84) 75%, var(--wood-dark) 100%),
    url('/assets/rooms/repaire.webp') center 24% / cover no-repeat;
  opacity: 0.42;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 28px;
  align-items: center;
}

.poster {
  position: relative;
  background:
    radial-gradient(110% 70% at 50% 0%, rgba(255, 255, 255, 0.42), transparent 62%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 26px 28px 24px;
  box-shadow: var(--shadow-card);
}

.poster::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(95, 72, 51, 0.35);
  border-radius: 15px;
  pointer-events: none;
}

.seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--berry);
  color: #fff8ea;
  border: 2.5px solid var(--ink);
  font-family: var(--ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(-1.2deg);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--title);
  font-size: clamp(48px, 6.2vw, 76px);
  line-height: 0.92;
  margin: 0 0 12px;
  color: #fff3d6;
  -webkit-text-stroke: 8px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.hero-lead {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.42;
  color: var(--paper-ink);
}

.hero-lead em {
  font-style: normal;
  background: rgba(242, 178, 51, 0.38);
  padding: 1px 6px;
  border-radius: 6px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(26, 17, 11, 0.08);
  border: 2px solid rgba(26, 17, 11, 0.25);
  font-size: 13px;
  font-weight: 800;
  color: var(--paper-ink);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-cta .btn-play {
  font-size: 19px;
  padding: 14px 26px;
}

.dm-ticker {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--wood-mid);
  color: var(--paper);
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.dm-ticker b {
  flex: none;
  font-family: var(--ui);
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
}

.dm-ticker span {
  flex: 1;
  min-width: 0;
}

/* ───────── Diorama Taverne Interactive (droite du hero) ───────── */
.diorama {
  position: relative;
  border-radius: 24px;
  border: 4px solid var(--ink);
  background:
    radial-gradient(75% 65% at 50% 42%, rgba(255, 198, 92, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(24, 15, 10, 0.35), rgba(20, 12, 8, 0.88)),
    url('/assets/rooms/salle_cave.webp') center / cover no-repeat;
  box-shadow: var(--shadow-card);
  padding: 20px 18px 18px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.diorama-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 3;
}

.diorama-hint {
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(20, 13, 9, 0.84);
  border: 2px solid rgba(255, 217, 102, 0.45);
  color: var(--gold-hi);
}

.barrel-count {
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(20, 13, 9, 0.84);
  border: 2px solid rgba(255, 236, 200, 0.28);
  color: var(--paper);
}

.speech-stage {
  position: relative;
  z-index: 4;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 4px;
}

.bubble {
  position: relative;
  max-width: 92%;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--paper-ink);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  font-size: 14.5px;
  font-weight: 800;
  text-align: center;
  animation: popIn 0.22s cubic-bezier(0.2, 1.5, 0.5, 1);
}

.bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top: 10px solid var(--ink);
  border-bottom: 0;
}

.bubble small {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--berry-dark);
  text-transform: uppercase;
  margin-bottom: 2px;
}

@keyframes popIn {
  from {
    transform: scale(0.84) translateY(6px);
    opacity: 0;
  }
}

.cast-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 6px;
}

.actor {
  position: relative;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.16s ease;
  touch-action: manipulation;
}

.actor img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.55));
  animation: idleBob 2.6s ease-in-out infinite;
}

.actor:nth-child(2) img { animation-delay: -0.6s; }
.actor:nth-child(3) img { animation-delay: -1.1s; width: 108px; height: 108px; }
.actor:nth-child(4) img { animation-delay: -1.7s; }
.actor:nth-child(5) img { animation-delay: -2.2s; }

.actor span {
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(20, 13, 9, 0.86);
  border: 1.5px solid rgba(255, 236, 200, 0.28);
  color: var(--paper);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.actor:hover {
  transform: translateY(-6px) scale(1.06);
  z-index: 5;
}

.actor.barrel-btn img {
  width: 82px;
  height: 82px;
  animation: barrelWiggle 3.2s ease-in-out infinite;
}

.actor.barrel-btn span {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--ink);
}

.actor.bonk img {
  animation: bonkShake 0.34s ease !important;
}

@keyframes idleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes barrelWiggle {
  0%, 84%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-6deg) scale(1.05); }
  92% { transform: rotate(6deg) scale(1.05); }
  96% { transform: rotate(-3deg); }
}

@keyframes bonkShake {
  0% { transform: scale(1.25) rotate(-14deg); filter: brightness(1.6) drop-shadow(0 6px 0 rgba(0,0,0,0.55)); }
  45% { transform: scale(0.82) rotate(12deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.spark {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-hi);
  text-shadow: 0 2px 0 var(--ink);
  animation: sparkFly 0.75s ease-out forwards;
}

@keyframes sparkFly {
  from { transform: translate(0, 0) scale(0.8); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(1.25); opacity: 0; }
}

/* ───────── Bandeau Chiffres ───────── */
.stats-band {
  padding: 8px 0 38px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: linear-gradient(180deg, var(--wood-hi), var(--wood-mid));
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-ink);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-family: var(--title);
  font-size: 38px;
  line-height: 1;
  color: var(--gold-hi);
  text-shadow: 0 3px 0 var(--ink);
}

.stat-card b {
  display: block;
  font-family: var(--ui);
  font-size: 15px;
  margin-top: 4px;
  color: var(--paper);
}

.stat-card small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: rgba(244, 231, 205, 0.72);
}

/* ───────── Sections & Titres Banderoles ───────── */
.sec {
  padding: 46px 0;
}

.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.kicker {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 99px;
  background: rgba(242, 178, 51, 0.16);
  border: 2px solid rgba(242, 178, 51, 0.45);
  color: var(--gold-hi);
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.sec-head h2 {
  font-family: var(--title);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 0.98;
  margin: 0 0 10px;
  color: #fff3d6;
  text-shadow: 0 4px 0 var(--ink);
}

.sec-head p {
  margin: 0;
  font-size: 16.5px;
  color: rgba(244, 231, 205, 0.82);
}

/* ───────── 3 Piliers de Gameplay (Cartes Parchemin) ───────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
  border: 3.5px solid var(--ink);
  border-radius: 20px;
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-art {
  height: 112px;
  border-radius: 14px;
  background: linear-gradient(180deg, #32241a, #1d140e);
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
  position: relative;
}

.pillar-art img {
  max-height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
}

.pillar-art .op {
  font-family: var(--title);
  font-size: 30px;
  color: var(--gold-hi);
  text-shadow: 0 2px 0 var(--ink);
}

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  border: 2.5px solid var(--ink);
  font-family: var(--ui);
  font-weight: 700;
  font-size: 15px;
  margin-right: 6px;
}

.pillar h3 {
  font-family: var(--title);
  font-size: 28px;
  line-height: 1.05;
  margin: 2px 0 0;
  display: flex;
  align-items: center;
}

.pillar p {
  margin: 0;
  font-size: 15px;
  color: var(--paper-muted);
  font-weight: 600;
}

/* ───────── Onglets & Filtres ───────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: var(--wood-hi);
  color: var(--paper);
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.1s, background 0.12s;
  touch-action: manipulation;
}

.pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.pill:hover {
  background: #4d3525;
}

.pill.on {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ───────── Taverne des 23 Héros ───────── */
.tavern-box {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: start;
}

.hero-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(18, 12, 8, 0.72);
  border: 3px solid var(--ink);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45);
}

.h-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 5px 7px;
  border-radius: 13px;
  background: var(--wood-mid);
  border: 2.5px solid var(--rc, var(--r-commun));
  box-shadow: 0 3px 0 var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
  touch-action: manipulation;
}

.h-tile:hover {
  transform: translateY(-2px);
  background: var(--wood-hi);
}

.h-tile.on {
  background: #4d3523;
  box-shadow: 0 0 0 3px var(--gold-hi), 0 4px 0 var(--ink);
  transform: translateY(-2px);
}

.h-tile img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55));
}

.h-tile span {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.hero-sheet {
  background: linear-gradient(180deg, #2d2118, #1d140e);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 80px;
}

.hs-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.hs-fig {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 18px;
  border: 3px solid var(--rc, var(--gold));
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--rc, var(--gold)) 34%, transparent), rgba(15, 10, 7, 0.85));
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hs-fig img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.55));
}

.hs-meta {
  flex: 1;
  min-width: 0;
}

.hs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 8px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--ink);
}

.tag-rar {
  background: var(--rc, var(--r-commun));
  color: var(--ink);
}

.tag-kind {
  background: rgba(255, 236, 200, 0.14);
  color: var(--paper);
}

.hs-meta h3 {
  font-family: var(--title);
  font-size: 34px;
  line-height: 0.98;
  margin: 0;
  color: #fff3d6;
}

.hs-meta p {
  margin: 3px 0 0;
  font-size: 14px;
  color: rgba(244, 231, 205, 0.78);
  font-style: italic;
}

.hs-bark {
  margin: 0 0 14px;
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--paper-ink);
  border: 2.5px solid var(--ink);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hs-bark button {
  flex: none;
  border: 2px solid var(--ink);
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 9px;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.hs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}

.hs-stats div {
  background: rgba(14, 9, 6, 0.55);
  border: 1.5px solid rgba(244, 231, 205, 0.16);
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
}

.hs-stats small {
  display: block;
  font-size: 11px;
  opacity: 0.72;
}

.hs-stats b {
  font-family: var(--ui);
  font-size: 16px;
  color: var(--gold-hi);
}

.passive-box {
  background: rgba(242, 178, 51, 0.12);
  border: 1.5px solid rgba(242, 178, 51, 0.3);
  border-left: 4px solid var(--rc, var(--gold));
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.passive-box b {
  display: block;
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--gold-hi);
  margin-bottom: 3px;
}

.passive-box p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
}

.perks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perk-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(14, 9, 6, 0.45);
  font-size: 12.5px;
  line-height: 1.35;
}

.perk-row em {
  flex: none;
  font-style: normal;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(242, 178, 51, 0.2);
  color: var(--gold-hi);
}

/* ───────── Bestiaire & Combinaisons interdites ───────── */
.mode-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mode-tab {
  padding: 10px 20px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  background: var(--wood-hi);
  color: var(--paper);
  font-family: var(--ui);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
}

.mode-tab.on {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
}

.fam-banner {
  max-width: 780px;
  margin: 0 auto 18px;
  padding: 10px 16px;
  border-radius: 13px;
  background: rgba(24, 16, 11, 0.82);
  border: 2px solid var(--fc, rgba(255, 236, 200, 0.25));
  text-align: center;
  font-size: 13.5px;
  display: none;
}

.fam-banner.show {
  display: block;
}

.fam-banner strong {
  color: var(--fc, var(--gold-hi));
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.c-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 15px;
  background: linear-gradient(180deg, #322419, #221710);
  border: 2.5px solid var(--rc, var(--r-commun));
  box-shadow: 0 4px 0 var(--ink);
  color: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s;
  touch-action: manipulation;
}

.c-card:hover {
  transform: translateY(-3px);
}

.c-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
}

.c-card strong {
  font-family: var(--ui);
  font-size: 13.5px;
  line-height: 1.15;
}

.c-card small {
  font-size: 11.5px;
  color: rgba(244, 231, 205, 0.72);
  line-height: 1.2;
}

.c-card .c-rar {
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--rc, var(--r-commun));
  color: var(--ink);
  margin-top: 2px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.recipe-card {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
  border: 3.5px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rc-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 13px;
  background: linear-gradient(180deg, #2d2118, #1b130d);
  border: 2.5px solid var(--ink);
}

.rc-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 78px;
  text-align: center;
}

.rc-unit img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.rc-unit.out img {
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 0 10px rgba(255, 93, 108, 0.6));
}

.rc-unit small {
  font-family: var(--ui);
  font-size: 10.5px;
  color: var(--paper);
  line-height: 1.05;
}

.rc-unit i {
  font-style: normal;
  font-size: 10px;
  color: var(--gold-hi);
}

.rc-op {
  font-family: var(--title);
  font-size: 28px;
  color: var(--gold-hi);
}

.recipe-card h3 {
  font-family: var(--title);
  font-size: 26px;
  line-height: 1;
  margin: 0;
  color: #a61e2c;
}

.recipe-card .rc-sub {
  font-size: 13px;
  font-weight: 800;
  color: var(--paper-muted);
  margin: -6px 0 0;
}

.recipe-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
}

/* ───────── Guide des 10 Donjons & 10 Boss ───────── */
.zone-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.zone-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: stretch;
}

.zone-art-card {
  position: relative;
  border-radius: 20px;
  border: 4px solid var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 360px;
  background: #140e0a;
}

.zone-art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zone-art-cap {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(20, 13, 9, 0.9);
  border: 2.5px solid var(--gold);
}

.zone-art-cap small {
  display: block;
  font-family: var(--ui);
  font-size: 11.5px;
  color: var(--gold-hi);
  text-transform: uppercase;
}

.zone-art-cap strong {
  display: block;
  font-family: var(--title);
  font-size: 30px;
  line-height: 1;
  color: #fff3d6;
}

.zone-art-cap p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: rgba(244, 231, 205, 0.85);
}

.boss-card {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zone-tips {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(26, 17, 11, 0.08);
  border-left: 4px solid var(--berry);
  font-size: 14px;
  font-weight: 700;
}

.zone-tips small {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--berry-dark);
  margin-bottom: 2px;
}

.boss-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.boss-fig {
  flex: none;
  width: 116px;
  height: 116px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(224, 70, 60, 0.25), #221710);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
}

.boss-fig img {
  width: 102px;
  height: 102px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45));
}

.boss-head h3 {
  font-family: var(--title);
  font-size: 34px;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}

.boss-head p {
  margin: 3px 0 0;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--paper-muted);
}

.boss-quotes {
  background: var(--wood-mid);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
}

.bq-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.bq-tab {
  border: 2px solid var(--ink);
  background: var(--wood-hi);
  color: var(--paper);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bq-tab.on {
  background: var(--gold);
  color: var(--ink);
}

.bq-text {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #fff3d6;
}

.boss-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boss-skills span {
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(26, 17, 11, 0.1);
  border: 2px solid rgba(26, 17, 11, 0.24);
  font-size: 13px;
  font-weight: 800;
}

/* ───────── Avis 1 étoile des Boss ───────── */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink);
  border: 3.5px solid var(--ink);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.review img {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--wood-mid);
  border: 2.5px solid var(--ink);
  padding: 4px;
  object-fit: contain;
}

.review .stars {
  color: var(--berry);
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 800;
}

.review blockquote {
  margin: 4px 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.38;
}

.review cite {
  font-style: normal;
  font-family: var(--ui);
  font-size: 12.5px;
  color: var(--paper-muted);
}

/* ───────── CTA final & Pied de page Praxeon ───────── */
.final-cta {
  padding: 20px 0 56px;
}

.signboard {
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(242, 178, 51, 0.22), transparent 65%),
    linear-gradient(180deg, #362519, #21160f);
  border: 4px solid var(--ink);
  border-radius: 26px;
  padding: 36px 26px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.signboard h2 {
  font-family: var(--title);
  font-size: clamp(38px, 5.5vw, 58px);
  line-height: 0.98;
  margin: 0 0 10px;
  color: var(--gold-hi);
  text-shadow: 0 4px 0 var(--ink);
}

.signboard p {
  max-width: 620px;
  margin: 0 auto 22px;
  font-size: 17px;
  color: rgba(244, 231, 205, 0.88);
}

.signboard-act {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer {
  border-top: 3px solid var(--ink);
  background: #120c08;
  padding: 28px 0 36px;
  font-size: 14px;
  color: rgba(244, 231, 205, 0.72);
}

.footer-in {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}

.studio-badge img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.studio-badge strong {
  font-family: var(--ui);
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--ui);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-hi);
}

/* ───────── Modale fiche compagnon (style .rd du jeu) ───────── */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 7, 5, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-bg.open {
  display: flex;
}

.comp-modal {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #2d2118, #1b130d);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  animation: popIn 0.2s cubic-bezier(0.2, 1.5, 0.5, 1);
}

.cm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--berry);
  color: #fff;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .hero-grid,
  .tavern-box,
  .zone-stage {
    grid-template-columns: 1fr;
  }
  .hero-sheet {
    position: static;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reviews {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 540px) {
  .poster {
    padding: 20px 18px;
  }
  .actor img {
    width: 68px;
    height: 68px;
  }
  .actor:nth-child(3) img {
    width: 78px;
    height: 78px;
  }
  .actor.barrel-btn img {
    width: 62px;
    height: 62px;
  }
  .diorama {
    min-height: 350px;
  }
  .comp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .actor img,
  .actor.barrel-btn img {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
