/* === STATS BANNER === */
.stats-banner {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* === SECTION DIVIDER === */
.section-divider {
  display: block;
  width: 280px;
  height: auto;
  margin: 0 auto;
  opacity: 0.6;
}

/* === CLASSES === */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.class-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.class-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 50px;
  height: 50px;
  background: url('../corner.png') top left / contain no-repeat;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.class-card:hover::before {
  opacity: 0.7;
}

.class-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}

.class-card--vagabond:hover { box-shadow: 0 8px 30px rgba(212, 173, 69, 0.15); }
.class-card--barbare:hover { box-shadow: 0 8px 30px rgba(196, 64, 64, 0.2); }
.class-card--rodeur:hover { box-shadow: 0 8px 30px rgba(74, 154, 90, 0.2); }

.class-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.class-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.class-card--vagabond h3 { color: var(--gold); }
.class-card--barbare h3 { color: var(--red); }
.class-card--rodeur h3 { color: var(--green); }

.class-stats {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.class-desc {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.class-abilities {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.class-abilities span {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.class-abilities span::before {
  content: '\2726';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}

/* === METIERS === */
.metiers-section {
  background: var(--bg-card);
}

.metiers-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.metier-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 200px;
}

.metier-content[hidden] { display: none; }

.metier-content h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.metier-content .metier-stat {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.metier-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.metier-chain {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.8rem 1rem;
  background: rgba(212, 173, 69, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

/* === COMBAT === */
.combat-intro {
  text-align: center;
  max-width: 650px;
  margin: -1.5rem auto 3rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.combat-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.combat-feat {
  text-align: center;
  padding: 1.5rem;
}

.combat-feat-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.combat-feat-icon--sword { filter: grayscale(1) brightness(1.5); }
.combat-feat-icon--fire { filter: none; }
.combat-feat-icon--crit { color: var(--gold); }

.combat-feat h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.combat-feat p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -- Showcase : dégâts flottants animés + barre d'abilités -- */
.combat-showcase {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.combat-demo {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.demo-hit {
  position: absolute;
  font-family: var(--font-title);
  font-weight: 700;
  animation: float-hit 3s infinite ease-out;
  opacity: 0;
}

.demo-hit--miss {
  left: 15%;
  top: 50%;
  font-size: 1rem;
  color: #888;
  animation-delay: 0s;
}

.demo-hit--dmg {
  left: 40%;
  top: 40%;
  font-size: 1.4rem;
  color: #e8c050;
  animation-delay: 0.8s;
}

.demo-hit--crit {
  left: 60%;
  top: 20%;
  font-size: 1.8rem;
  color: #e88030;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 0 16px rgba(232, 128, 48, 0.5);
  animation-delay: 1.6s;
}

.demo-hit--dmg2 {
  left: 80%;
  top: 45%;
  font-size: 1.2rem;
  color: #e8c050;
  animation-delay: 2.4s;
}

@keyframes float-hit {
  0%   { opacity: 0; transform: translateY(0); }
  15%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-60px); }
}

/* -- Barre d'abilities déco -- */
.combat-abilities {
  display: flex;
  gap: 0.5rem;
}

.ability-slot {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  cursor: default;
}

.ability-slot:hover {
  transform: translateY(-3px);
}

.ability-slot--rage:hover {
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(196, 64, 64, 0.4);
}

.ability-slot--mark:hover {
  border-color: var(--green);
  box-shadow: 0 0 14px rgba(74, 154, 90, 0.4);
}

.ability-slot--fire:hover {
  border-color: #e07030;
  box-shadow: 0 0 14px rgba(224, 112, 48, 0.4);
}

.ability-slot--rest:hover {
  border-color: var(--blue);
  box-shadow: 0 0 14px rgba(106, 175, 224, 0.3);
}

/* === BESTIAIRE === */
.bestiary-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.bestiary-text h3 {
  font-family: var(--font-title);
  color: var(--gold);
  margin-bottom: 1rem;
}

.bestiary-text p {
  color: var(--text-muted);
  line-height: 1.7;
}

.mob-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* === BANNER BAS === */
.banner-bottom {
  position: relative;
  height: 350px;
  background: url('../banner.png') center 40% / cover no-repeat;
  overflow: hidden;
}

.banner-bottom::before,
.banner-bottom::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 100px;
  z-index: 1;
}

.banner-bottom::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-deep), transparent);
}

.banner-bottom::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-deep), transparent);
}

/* === ECONOMY === */
.economy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* === CTA === */
.cta-section {
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(212, 173, 69, 0.06) 0%, transparent 70%);
}

.cta-section h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 2rem;
}
