/* ===== BESTIAIRE DE L'ENTRECARTE ===== */

/* ── Override gold pour le bestiaire ── */
.bestiaire-hero,
.bestiaire-section {
  --gold: #a78a7f;
}

/* ── Hero ── */
.bestiaire-hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 7rem 2rem 3rem;
  text-align: center;
  background: #120000;
  overflow: hidden;
}

.bestiaire-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/mapmonde.png') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}

.bestiaire-hero .bestiaire-title,
.bestiaire-hero .bestiaire-subtitle,
.bestiaire-hero .bestiaire-intro {
  position: relative;
  z-index: 1;
}

.bestiaire-hero .bestiaire-intro {
  max-width: 800px;
  margin: 0 auto;
}

.bestiaire-title {
  font-family: var(--font-body);
  font-size: 2.8rem;
  color: #a78a7f;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
}

.bestiaire-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: #c9b89a;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.bestiaire-intro {
  text-align: left;
  background: linear-gradient(160deg, #432d34, #370617);
  border: 1px solid rgba(107, 66, 38, 0.2);
  border-radius: 8px;
  padding: 1.8rem 2rem;
}

.bestiaire-intro p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #e7d7c1;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.bestiaire-intro p:last-child {
  margin-bottom: 0;
}

/* ── Section ── */
.bestiaire-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* ── Boss Card ── */
.boss-card {
  background: linear-gradient(160deg, #432d34, #370617);
  border: 1px solid rgba(107, 66, 38, 0.2);
  border-radius: 10px;
  margin-bottom: 3rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.boss-card:hover {
  border-color: var(--gold);
}

.boss-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 2rem 1rem;
}

.boss-sprite {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.boss-identity {
  flex: 1;
}

.boss-name {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: #d68b57;
  margin-bottom: 0.2rem;
}

.boss-title {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #a78a7f;
  font-style: italic;
}

.boss-card-body {
  padding: 0 2rem 2rem;
}

.boss-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #e7d7c1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(107, 66, 38, 0.15);
}

/* ── Details Grid ── */
.boss-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.boss-stat-block,
.boss-effect-block,
.boss-loot-block {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(107, 66, 38, 0.1);
}

.boss-loot-block {
  grid-column: 1 / -1;
}

.boss-stat-block h3,
.boss-effect-block h3,
.boss-loot-block h3 {
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

/* ── Stat Table ── */
.boss-stat-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.boss-stat-table td {
  padding: 0.25rem 0;
  color: #e7d7c1;
}

.boss-stat-table td:first-child {
  opacity: 0.75;
}

.boss-stat-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--gold);
}

/* ── Effect Tags ── */
.boss-effect {
  margin-bottom: 0.8rem;
}

.boss-effect:last-child {
  margin-bottom: 0;
}

.effect-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.3rem;
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.25);
}

.effect-tag.distortion {
  background: rgba(212, 56, 75, 0.15);
  color: #d4384b;
  border-color: rgba(212, 56, 75, 0.25);
}

.effect-tag.cursed {
  background: rgba(139, 37, 0, 0.2);
  color: #c94040;
  border-color: rgba(139, 37, 0, 0.3);
}

.effect-tag.altered {
  background: rgba(30, 50, 100, 0.25);
  color: #6688cc;
  border-color: rgba(30, 50, 100, 0.35);
}

.effect-tag.fred {
  background: rgba(180, 120, 40, 0.15);
  color: #d4a84b;
  border-color: rgba(180, 120, 40, 0.25);
}

.boss-effect p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #c4b49a;
  line-height: 1.5;
  margin: 0;
}

.boss-loot-block p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #e7d7c1;
  line-height: 1.6;
  margin: 0;
}

/* ── Mechanics Section ── */
.bestiaire-mechanics h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: #a78a7f;
  text-align: center;
  margin-bottom: 2rem;
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.mechanic-card {
  background: linear-gradient(160deg, #432d34, #370617);
  border: 1px solid rgba(107, 66, 38, 0.15);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.3s ease;
}

.mechanic-card:hover {
  border-color: var(--gold);
}

.mechanic-card h3 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: #689096;
  margin-bottom: 0.5rem;
}

.mechanic-card p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #e7d7c1;
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .bestiaire-title {
    font-size: 1.8rem;
  }

  .boss-card-header {
    flex-direction: column;
    text-align: center;
  }

  .boss-sprite {
    width: 100px;
    height: 100px;
  }

  .boss-details-grid {
    grid-template-columns: 1fr;
  }

  .boss-loot-block {
    grid-column: 1;
  }

  .mechanics-grid {
    grid-template-columns: 1fr;
  }
}
