/* 🌙 Mode sombre par défaut */
body {
  background: #121212;
  color: #f0f0f0;
  transition: background 0.3s, color 0.3s;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  position: relative;
  z-index: 0;
}

/* Image de fond avec superposition */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("/botc-fr-bambi/images/banner.png") no-repeat center center/cover;
  opacity: 0.6; /* voile sombre pour mode sombre */
  z-index: -1;
}

/* ☀️ Mode clair */
body.light-mode {
  background: #ffffff;
  color: #000000;
}

body.light-mode::before {
  background: url("/botc-fr-bambi/images/banner.png") no-repeat center center/cover;
  opacity: 0.3; /* voile plus léger pour mode clair */
}

/* Images classiques */
img {
  max-width: 100%;
  height: auto;
}

/* Bannière */
.banner {
  display: block;
  margin: 0 auto 16px;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

/* Bouton thème */
#theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #444;
  color: #fff;
  font-size: 14px;
  z-index: 999;
}

/* Rouge pour la page Trouble Brewing */
.page-tb {
  /* si vous voulez TOUT le texte rouge, décommentez la ligne suivante : */
  /* color: #e63946; */
}

.page-tb h1,
.page-tb h2,
.page-tb h3 {
  color: #e63946; /* titres en rouge */
}

.page-tb a {
  color: #ff6b6b; /* liens rouges doux */
  font-weight: 600;
}
.page-tb a:hover { color: #ff4d4d; }

/* 🎭 Mise en page des rôles (icônes + noms) */
.role-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 30px 0;
}

.role-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 140px; /* largeur fixe pour un alignement parfait */
  transition: transform 0.2s ease, filter 0.2s ease;
}

.role-grid a:hover {
  transform: scale(1.07);
  filter: brightness(1.2);
}

.role-grid img {
  width: 120px; /* taille des icônes */
  height: auto;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

/* 🩵 Villageois */
.role-grid a.villageois:hover img {
  border-color: #007bff;
}

/* 🟣 Étrangers */
.role-grid a.etranger:hover img {
  border-color: #a259ff;
}

/* 🔴 Sbires et Démons */
.role-grid a.sbire:hover img,
.role-grid a.demon:hover img {
  border-color: #ff3b3b;
}

.role-grid span {
  margin-top: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 1.05rem;
  color: #f0f0f0;
}

/* Adaptation au mode clair */
body.light-mode .role-grid span {
  color: #000;
}

/* 🎨 Accents doré-brun (n'impacte pas les couleurs des rôles) */
.marron {
  color: #b58b52; /* doré-brun lisible sur fond sombre et clair */
}

.cuivre {
  color: #d4a76a; /* cuivré un peu plus clair */
}

.phrase-ambiance {
  color: #b58b52;
  font-size: 18px;
  font-style: italic;
  text-align: center;
  margin: 0.5rem 0;
}

