/* =========================================================
   Team Guérande — characters.css
   Styles des fiches personnages
   ========================================================= */

/* -------- Page personnage (layout 2 colonnes) -------- */
.character-page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  min-height: calc(100vh - 200px);
}

.character-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}

.character-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--accent-soft) 0%, transparent 50%);
  pointer-events: none;
}

.character-portrait img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.character-info h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.character-info .role {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
}

.character-info p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.character-info p:last-of-type {
  margin-bottom: 2rem;
}

.character-info p .highlight {
  color: var(--accent);
  font-weight: 500;
}

.character-info p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}

.character-info p a:hover {
  text-decoration-color: var(--accent);
}

/* -------- GIF drôle affiché sous la description -------- */
.fun-gif {
  display: block;
  margin-top: 2.5rem;
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Variante compacte (GIF très haut) */
.fun-gif--compact {
  max-width: 220px;
  max-height: 260px;
  object-fit: cover;
}

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .character-page {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 1.5rem 4rem;
    min-height: auto;
  }

  .character-portrait {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 1.5rem;
  }

  .character-info {
    text-align: center;
  }

  .character-info .role {
    margin-left: auto;
    margin-right: auto;
  }

  .fun-gif {
    margin: 2.5rem auto 0;
  }
}

@media (max-width: 480px) {
  .character-portrait {
    padding: 1rem;
  }

  .character-info p {
    font-size: 1rem;
  }

  .fun-gif {
    max-width: 100%;
  }
}
