/* =============================================
   OVERWATCH HEROES — heros.php (styles scoped)
   À inclure EN PLUS de ton style.css existant.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&display=swap');

/* ─── Conteneur principal ────────────────────── */
#contenu {
  max-width: 960px;
  margin: 0 auto;
  background-color: rgba(34, 34, 34, 0.92);
  border: 1px solid rgba(238, 99, 20, 0.25);
  border-radius: 18px;
  padding: 36px 40px 48px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Titre nom héros ────────────────────────── */
#contenu .nom {
  font-family: 'Rajdhani', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  color: #ee6314;
  margin: 0;
}

#contenu .nom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

#contenu .nom a:hover { color: #fff; }

#contenu .nom::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #ee6314;
  margin: 0.5rem auto 0;
  box-shadow: 0 0 12px rgba(238, 99, 20, 0.6);
}

/* ─── Bloc haut : illustration + caractéristiques ── */
.bloc-haut {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* ─── Illustration ───────────────────────────── */
.illustration {
  display: flex;
  justify-content: center;
}

.illustration img {
  width: 100%;
  max-width: 380px;
  border-radius: 14px;
  border: 2px solid rgba(238, 99, 20, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(238, 99, 20, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.illustration img:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(238, 99, 20, 0.2);
}

/* ─── Caractéristiques & habilités ──────────── */
div.heros {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  text-align: left;
  width: auto;
}

div.heros h3 {
  font-family: 'Rajdhani', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ee6314;
  text-align: left;
  margin: 1.4rem 0 0.5rem;
  padding-left: 10px;
  border-left: 3px solid #ee6314;
  box-shadow: -3px 0 12px rgba(238, 99, 20, 0.3);
}

div.heros h3:first-child { margin-top: 0; }

div.heros .classe {
  display: inline-block;
  padding: 0.2rem 0.85rem;
  border-radius: 3px;
  background: rgba(238, 99, 20, 0.12);
  border: 1px solid rgba(238, 99, 20, 0.4);
  color: #ee6314;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

div.heros .pv {
  display: block;
  font-size: 0.85rem;
  color: #aaa;
  letter-spacing: 1px;
  margin-top: 4px;
  margin-bottom: 16px;
}

div.heros .pv::before {
  content: '❤ ';
  color: #ee6314;
  font-size: 0.8rem;
}

div.heros h4 {
  font-family: 'Rajdhani', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  margin: 1.2rem 0 0.3rem;
  position: relative;
  padding-left: 14px;
}

div.heros h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #ee6314;
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(238, 99, 20, 0.8);
}

div.heros .ultimate { color: #ee6314; }

div.heros .ultimate::before {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 10px rgba(238, 99, 20, 1);
}

div.heros p {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.65;
  padding-left: 14px;
}

/* ─── Bloc histoire — pleine largeur ─────────── */
.bloc-histoire {
  border-top: 1px solid rgba(238, 99, 20, 0.2);
  padding-top: 18px;
}

.bloc-histoire h3 {
  font-family: 'Rajdhani', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ee6314;
  text-align: left;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 3px solid #ee6314;
  box-shadow: -3px 0 12px rgba(238, 99, 20, 0.3);
}

.bloc-histoire .description_longue {
  font-family: system-ui, sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  color: #bbb;
  line-height: 1.85;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid rgba(238, 99, 20, 0.3);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  width: 100%;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  #contenu {
    padding: 24px 18px 36px;
  }

  .bloc-haut {
    grid-template-columns: 1fr;
  }

  .illustration img {
    max-width: 100%;
  }
}
