    /* =====================================================
       01 — RESET GLOBAL
    ===================================================== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      min-height: 100vh;
      font-family: Georgia, "Times New Roman", serif;
      background: #050505;
      color: #f4efe5;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      max-width: 100%;
      display: block;
    }

    /* =====================================================
       02 — VARIABLES DE STYLE
    ===================================================== */
    :root {
      --gold: #d9aa54;
      --gold-soft: rgba(217, 170, 84, 0.42);
      --gold-dark: #8f642c;
      --bg: #050505;
      --panel: rgba(5, 9, 12, 0.88);
      --text: #f4efe5;
      --muted: rgba(244, 239, 229, 0.76);
      --border: rgba(217, 170, 84, 0.34);
    }

    /* =====================================================
       03 — HEADER / MENU
    ===================================================== */
    header {
      min-height: 78px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 34px;
      padding: 14px 32px;
      background: rgba(0, 0, 0, 0.94);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(8px);
    }

    .logo {
      width: 70px;
      flex-shrink: 0;
    }

    nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 26px;
      flex-wrap: wrap;
      font-family: Arial, sans-serif;
      font-size: 13px;
      color: #f2f2f2;
    }

    nav a {
      position: relative;
      transition: color 0.25s ease;
    }

    nav a:hover,
    nav a.active {
      color: var(--gold);
    }

    nav a.active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -18px;
      height: 2px;
      background: var(--gold);
    }

    /* =====================================================
       04 — HERO PERSONNAGE
       Section obligatoire pour chaque personnage.
    ===================================================== */
    .hero {
      min-height: 410px;
      display: grid;
      grid-template-columns: 40% 60%;
      border-bottom: 1px solid var(--border);
      background:
        radial-gradient(circle at 22% 45%, rgba(217, 170, 84, 0.22), transparent 31%),
        linear-gradient(90deg, rgba(0,0,0,0.42), rgba(0,0,0,0.92)),
        #050505;
      overflow: hidden;
    }


.hero-portrait{
    background:#050505;
    position: relative;
    overflow: hidden;
}

/* IMAGE — garde la colonne gauche mais déborde très légèrement pour aider le fondu */
.hero-portrait img {
  width: 108%;
  height: 100%;
  min-height: 410px;

  object-fit: cover;
  object-position: center center;

  transform: scale(1.02);

  transition: 0.3s ease;

  filter:
    brightness(1.03)
    contrast(1.08)
    saturate(1.08);
}

/* FONDU VERS LA DROITE — supprime la coupure brutale entre image et texte */
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0) 55%,
      rgba(0,0,0,0.25) 72%,
      rgba(0,0,0,0.65) 88%,
      #050505 100%
    );

  pointer-events: none;
}
.hero-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 54px 8%;
    }

    .hero h1 {
      font-size: clamp(4rem, 8vw, 7.4rem);
      line-height: 0.92;
      letter-spacing: 13px;
      font-weight: 400;
      color: var(--gold);
      text-transform: uppercase;
      text-shadow: 0 0 30px rgba(0,0,0,0.9);
    }

    .subtitle {
      margin-top: 12px;
      color: #f5d48f;
      font-size: clamp(1.2rem, 2vw, 1.9rem);
      font-style: italic;
    }

.quote {
  max-width: 640px;
  margin-top: 28px;
  padding: 20px 0;
  font-size: 1.08rem;
  line-height: 1.7;
  font-style: italic;
  color: rgba(245, 225, 185, 0.95);
  position: relative;
  text-align: center;
}

/* ligne du haut */
.quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ligne du bas */
.quote::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.stats {
  width: min(760px, 100%);
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  border-top: 1px solid rgba(217,170,84,0.25);
  padding-top: 24px;
    }

    .stat {
      display: grid;
      grid-template-columns: 52px 1fr;
      gap: 12px;
      align-items: center;
      text-align: left;
    }

    .stat-icon {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      border: 1px solid var(--gold-soft);
      border-radius: 50%;
      color: var(--gold);
      font-size: 1.45rem;
    }

    .stat strong {
      display: block;
      color: var(--gold);
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 0.82rem;
      margin-bottom: 4px;
    }

    .stat span {
      color: var(--text);
      font-size: 1.05rem;
    }

    .stat small {
      display: block;
      color: var(--muted);
      font-size: 0.8rem;
    }

    .stat-line{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
    color:#ddd;
    font-size:1rem;
}

.stat-line span:first-child{
    font-weight:600;
    color:#f0f0f0;
}

.skill-line{
    display:grid;
    grid-template-columns:1.8fr 1fr 60px;
    gap:15px;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,0.05);
    align-items:center;
    color:#ddd;
}

.skill-line span:first-child{
    font-weight:600;
    color:#f3f3f3;
}

.skill-line span:nth-child(2){
    color:var(--gold);
    opacity:0.8;
}

.skill-line span:last-child{
    text-align:right;
    font-weight:bold;
}

    /* =====================================================
       05 — STRUCTURE PRINCIPALE
    ===================================================== */
    .page-wrap {
      width: min(1460px, calc(100% - 24px));
      margin: 0 auto 24px;
      border-left: 1px solid var(--border);
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      background:
        radial-gradient(circle at 55% 15%, rgba(217,170,84,0.08), transparent 32%),
        linear-gradient(180deg, rgba(5,9,12,0.98), rgba(2,5,7,0.98));
    }

    .section-title {
      color: var(--gold);
      font-size: clamp(1.35rem, 2vw, 1.9rem);
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-bottom: 26px;
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .section-title::after {
      content: "";
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, var(--gold), transparent);
      opacity: 0.6;
    }

    .center-title {
      color: var(--gold);
      font-size: clamp(1.25rem, 2vw, 1.75rem);
      font-weight: 400;
      text-transform: uppercase;
      letter-spacing: 2px;
      text-align: center;
      margin-bottom: 26px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 18px;
    }

    .center-title::before,
    .center-title::after {
      content: "";
      height: 1px;
      width: min(180px, 20%);
      background: linear-gradient(90deg, transparent, var(--gold));
      opacity: 0.65;
    }

    .center-title::after {
      background: linear-gradient(90deg, var(--gold), transparent);
    }

    /* =====================================================
       06 — SECTION HISTOIRE + DATES CLÉS
       Tu peux retirer .timeline-panel si un personnage n’a pas de dates clés.
    ===================================================== */
    .story-timeline-grid {
      display: grid;
      grid-template-columns: 2fr 1.15fr;
      border-bottom: 1px solid var(--border);
    }

.story-panel {
  min-height: 560px;
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(5,9,12,0.96), rgba(5,9,12,0.68)),
    var(--story-image) right center / contain no-repeat;
  border-right: 1px solid var(--border);
    }

.story-text {
  max-width: 820px;
  max-height: 360px;
  overflow: hidden;
  position: relative;
  font-family: Arial, sans-serif;
  color: rgba(244,239,229,0.9);
  line-height: 1.75;
  font-size: 1rem;
  transition: max-height 0.5s ease;
}

.story-text.expanded {
  max-height: 3000px;
}

.story-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom, transparent, #050505);
}

.story-text.expanded::after {
  display: none;
}

    .story-text p {
      margin-bottom: 18px;
    }

.read-more {
  margin-top: 18px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 24px;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 1rem;
}

.read-more:hover {
  background: rgba(217,170,84,0.12);
}

    .timeline-panel {
  padding: 42px 34px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.4));
    
  position: relative;
}

/* CONTENU SCROLLABLE */
.timeline-wrapper{
  max-height: 520px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}

.timeline-wrapper.expanded{
  max-height: 3000px;
}

/* FONDU DU BAS */
.timeline-wrapper::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:120px;

  background:
    linear-gradient(to bottom,
      rgba(5,5,5,0),
      rgba(5,5,5,1));

  pointer-events:none;
}

.timeline-wrapper.expanded::after{
  display:none;
}

.timeline {
  margin-top: 6px;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  padding-left: 34px;
  padding-bottom: 34px;

  border-left: 1px solid rgba(217,170,84,0.45);

  font-family: Arial, sans-serif;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "◇";
  position: absolute;
  top: -3px;
  left: -9px;

  color: var(--gold);
  background: #05090c;

  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.timeline-item h3 {
  color: var(--gold);

  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;

  margin-bottom: 10px;

  font-family: Georgia, serif;
  font-weight: 400;
}

.timeline-item p {
  color: rgba(244,239,229,0.82);

  line-height: 1.7;
  font-size: 0.96rem;
}

    /* =====================================================
       07 — SECTION GALERIE + MULTIVERS
       Tu peux supprimer tout ce bloc si le personnage n’a pas de galerie.
    ===================================================== */
    .gallery-multiverse-grid {
      display: grid;
      grid-template-columns: 1.05fr 1fr;
      border-bottom: 1px solid var(--border);
    }

    .gallery-section,
    .multiverse-section {
      padding: 34px 36px;
    }

    .gallery-section {
      border-right: 1px solid var(--border);
    }

    .gallery-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .gallery-row img {
      height: 240px;
      width: 100%;
      object-fit: cover;
      border: 1px solid rgba(217,170,84,0.62);
      filter: brightness(0.92) contrast(1.05);
      transition: 0.3s ease;
    }

    .gallery-row img:hover {
      transform: translateY(-4px);
      filter: brightness(1.05) contrast(1.08);
      box-shadow: 0 0 22px rgba(217,170,84,0.18);
    }

    .variant-card {
      display: grid;
      grid-template-columns: 245px 1fr;
      gap: 24px;
      align-items: center;
    }

    .variant-card img {
      height: 245px;
      width: 100%;
      object-fit: cover;
      border: 1px solid rgba(217,170,84,0.58);
    }

    .variant-card h3 {
      color: var(--gold);
      font-size: 1.15rem;
      margin-bottom: 12px;
    }

    .variant-card p {
      font-family: Arial, sans-serif;
      color: var(--muted);
      line-height: 1.65;
      margin-bottom: 18px;
    }

    .gold-btn {
      display: inline-block;
      padding: 12px 28px;
      border: 1px solid rgba(217,170,84,0.68);
      color: var(--gold);
      text-transform: uppercase;
      font-size: 0.82rem;
      letter-spacing: 1px;
      transition: 0.25s ease;
    }

    .gold-btn:hover {
      background: rgba(217,170,84,0.12);
      transform: translateY(-2px);
    }

    /* =====================================================
       08 — SECTION PERSONNAGES LIÉS + HISTOIRES LIÉES
       Les deux peuvent être retirées indépendamment.
    ===================================================== */
    .links-grid {
      display: grid;
      grid-template-columns: 1.25fr 0.95fr;
      border-bottom: 1px solid var(--border);
    }

    .related-section,
    .stories-section {
      padding: 34px 36px;
    }

    .related-section {
      border-right: 1px solid var(--border);
    }

.related-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
  padding: 0 20px;
}

.related-carousel {
  display: flex;
  gap: 55px;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 620px;
  padding: 10px 0 18px;
}

.arrow {
  border: none;
  background: transparent;
  color: var(--gold);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  opacity: 0.85;
}

.arrow:hover {
  color: #f5d48f;
}

.mini-card {
  width: 170px;
  min-width: 170px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.mini-card p::before {
  content: "“";
  color: var(--gold);
}

.mini-card p::after {
  content: "”";
  color: var(--gold);
}

.mini-card:hover {
  transform: translateY(-4px);
}

.mini-card:hover p {
  color: var(--gold);
}

.mini-card:hover img {
  filter: brightness(1.15) contrast(1.08);
  box-shadow: 0 0 25px rgba(217,170,84,0.45);
}

.mini-card img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 13px;
  border: 2px solid rgba(217,170,84,0.7);
  box-shadow: 0 0 22px rgba(0,0,0,0.6);
}

.mini-card h3 {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 7px;
}

.mini-card p {
  margin-top: 8px;
  min-height: 76px;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(244,239,229,0.75);
  line-height: 1.5;
  text-align: center;
}

    .story-link-card {
      display: grid;
      grid-template-columns: 1.25fr 0.9fr;
      gap: 20px;
      align-items: center;
    }

    .story-link-card img {
      height: 210px;
      width: 100%;
      object-fit: cover;
      border: 1px solid rgba(217,170,84,0.58);
    }

    .story-link-card h3 {
      color: var(--gold);
      font-size: 1.25rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 12px;
      font-weight: 400;
    }

    .story-link-card p {
      font-family: Arial, sans-serif;
      color: var(--muted);
      line-height: 1.55;
      margin-bottom: 18px;
    }

    /* =====================================================
       09 — SECTION EN JEU
       Tu peux retirer ou enrichir chaque .game-box selon le personnage.
    ===================================================== */
    .game-section {
      padding: 34px 28px 42px;
      border-bottom: 1px solid var(--border);
    }

    .game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.game-box {
  min-height: 260px;
  padding: 28px 26px;
  border: 1px solid rgba(217,170,84,0.38);
  background: rgba(0,0,0,0.28);
  text-align: left;
}

    .game-icon {
      color: var(--gold);
      font-size: 2rem;
      margin-bottom: 14px;
      display: block;
      text-align: center;
    }

    .game-box h3 {
      color: var(--gold);
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 1rem;
      text-align: center;
      margin-bottom: 12px;
      font-weight: 400;
    }

    .game-box p,
  .game-box li {
  color: var(--muted);
  line-height: 1.65;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}

.game-box p {
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.45;
}

.game-box ul {
  list-style-position: inside;
  text-align: center;
  padding: 0;
  margin: 0 auto;
  line-height: 1.6;
}

    .game-box ul {
      padding-left: 17px;
    }
/* ========================= */
/* BOUTON FICHE */
/* ========================= */

.sheet-toggle-wrapper{
    display:flex;
    justify-content:center;
    padding:0 0 45px;
}

.sheet-toggle{
    background:transparent;
    border:1px solid rgba(217,170,84,0.5);
    color:var(--gold);
    padding:14px 30px;
    cursor:pointer;
    font-size:1rem;
    letter-spacing:1px;
    transition:0.3s;
    font-family:'Cormorant Garamond', serif;
}

.sheet-toggle:hover{
    background:rgba(217,170,84,0.08);
    border-color:rgba(217,170,84,0.8);
}

.sheet-toggle span{
    margin-left:10px;
    transition:0.4s;
}


/* ========================= */
/* FICHE PERSONNAGE — STYLE RPG */
/* ========================= */

.character-sheet-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.8s ease, opacity 0.5s ease, padding 0.5s ease;
}

.character-sheet-section.open {
  max-height: 6500px;
  opacity: 1;
  padding: 0 28px 80px;
}

.rpg-sheet {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(217,170,84,0.45);
  background:
    radial-gradient(circle at 18% 8%, rgba(217,170,84,0.12), transparent 25%),
    linear-gradient(180deg, rgba(5,9,12,0.98), rgba(0,0,0,0.98));
  box-shadow: 0 0 35px rgba(0,0,0,0.8);
}

.rpg-sheet-title {
  text-align: center;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 8px;
  font-weight: 400;
  margin-bottom: 28px;
}

.rpg-sheet-top {
  display: grid;
  grid-template-columns: 330px 1fr 1.35fr;
  gap: 28px;
  align-items: stretch;
}

.rpg-portrait img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid rgba(217,170,84,0.45);
}

.rpg-identity {
  padding: 18px 0;
}

.rpg-identity h3 {
  color: var(--gold);
  font-size: 3.2rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 400;
}

.rpg-identity h4 {
  color: var(--gold);
  font-size: 1.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 28px;
}

.rpg-identity p,
.rpg-equipment p {
  font-family: Georgia, serif;
  color: rgba(244,239,229,0.9);
  margin-bottom: 12px;
  line-height: 1.55;
}

.rpg-equipment {
  border: 1px solid rgba(217,170,84,0.35);
  padding: 24px;
  background: rgba(0,0,0,0.18);
}

.rpg-equipment div {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(217,170,84,0.18);
}

.rpg-equipment div:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rpg-equipment h4,
.rpg-inventory h4 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.rpg-reputation {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(217,170,84,0.35);
  text-align: center;
}

.rpg-reputation span {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.rpg-reputation strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.rpg-reputation em {
  display: block;
  color: #d34242;
  font-style: normal;
  font-size: 1.2rem;
  margin-top: 8px;
}

.rpg-passive {
  margin: 26px 0;
  padding: 18px 24px;
  border: 1px solid rgba(217,170,84,0.35);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rpg-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.rpg-panel {
  border: 1px solid rgba(217,170,84,0.35);
  padding: 28px;
  margin-bottom: 24px;
  background: rgba(0,0,0,0.22);
}

.rpg-panel h3 {
  color: var(--gold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: 400;
  margin-bottom: 24px;
}

.rpg-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.rpg-stats-grid div,
.rpg-special-grid div {
  min-height: 150px;
  border: 1px solid rgba(217,170,84,0.35);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rpg-stats-grid span {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: bold;
}

.rpg-stats-grid small {
  color: var(--muted);
  margin: 6px 0 18px;
}

.rpg-stats-grid strong {
  color: var(--text);
  font-size: 2rem;
  font-weight: 400;
}

.rpg-special-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.rpg-special-grid span {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 10px;
}

.rpg-special-grid p {
  font-family: Georgia, serif;
  color: var(--text);
  line-height: 1.35;
  min-height: 52px;
}

.rpg-special-grid strong {
  color: var(--gold);
  font-size: 1.7rem;
}

.rpg-special-grid small {
  color: var(--muted);
}

.rpg-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Georgia, serif;
}

.rpg-table th,
.rpg-table td {
  padding: 12px;
  border: 1px solid rgba(217,170,84,0.18);
  color: var(--text);
}

.rpg-table th {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.rpg-table td:nth-child(2),
.rpg-table td:nth-child(3) {
  text-align: center;
}

.rpg-inventory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rpg-inventory div {
  border: 1px solid rgba(217,170,84,0.25);
  padding: 24px;
}

.rpg-inventory ul {
  padding-left: 22px;
  color: var(--text);
  line-height: 1.9;
}

.rpg-final-quote {
  text-align: center;
  color: #f5d48f;
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 26px;
}

@media(max-width:1100px) {
  .rpg-sheet-top,
  .rpg-main-grid,
  .rpg-inventory {
    grid-template-columns: 1fr;
  }

  .rpg-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rpg-special-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:700px) {
  .character-sheet-section.open {
    padding: 0 14px 50px;
  }

  .rpg-sheet {
    padding: 20px;
  }

  .rpg-stats-grid,
  .rpg-special-grid {
    grid-template-columns: 1fr;
  }

  .rpg-identity h3 {
    font-size: 2.8rem;
  }
}


/* ========================= */
/* BOUTON ÉVOLUTION */
/* ========================= */

.evolution-toggle-wrapper{
    display:flex;
    justify-content:center;
    padding:0 0 45px;
}

.evolution-toggle{
    background:transparent;
    border:1px solid rgba(217,170,84,0.5);
    color:var(--gold);
    padding:14px 30px;
    cursor:pointer;
    font-size:1rem;
    letter-spacing:1px;
    transition:0.3s;
    font-family:Georgia, serif;
}

.evolution-toggle:hover{
    background:rgba(217,170,84,0.08);
    border-color:rgba(217,170,84,0.8);
}

.evolution-toggle span{
    margin-left:10px;
    display:inline-block;
    transition:0.4s;
}


/* ========================= */
/* ÉVOLUTION PERSONNAGE */
/* ========================= */

.evolution-section{
    max-height:0;
    overflow:hidden;
    opacity:0;
    padding:0 28px;
    border-top:1px solid rgba(217,170,84,0.2);
    border-bottom:1px solid transparent;
    transition:max-height 0.8s ease, opacity 0.5s ease, padding 0.5s ease;
}

.evolution-section.open{
    max-height:7000px;
    opacity:1;
    padding:0 28px 80px;
    border-bottom:1px solid var(--border);
}

.evolution-section .center-title{
    margin-top:20px;
}

.evolution-tabs{
    display:flex;
    justify-content:center;
    gap:18px;
    margin-bottom:40px;
    flex-wrap:wrap;
}

.evo-tab{
    background:transparent;
    border:1px solid rgba(217,170,84,0.45);
    color:var(--gold);
    padding:14px 26px;
    cursor:pointer;
    transition:0.3s;
    font-family:Georgia, serif;
    text-transform:uppercase;
    letter-spacing:1px;
}

.evo-tab.active,
.evo-tab:hover{
    background:rgba(217,170,84,0.12);
    border-color:var(--gold);
}

.evolution-card{
    display:none;
    grid-template-columns:minmax(320px, 440px) 1fr;
    gap:34px;
    border:1px solid rgba(217,170,84,0.3);
    padding:28px;
    background:
      radial-gradient(circle at 20% 20%, rgba(217,170,84,0.08), transparent 32%),
      rgba(0,0,0,0.2);
}

.evolution-card.active{
    display:grid;
}

.evolution-images{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.evolution-images h3{
    color:var(--gold);
    margin-bottom:10px;
    font-weight:400;
    text-align:center;
    text-transform:uppercase;
    letter-spacing:1px;
    font-size:1rem;
}

.evolution-images img{
    width:100%;
    height:520px;
    object-fit:cover;
    object-position:center top;
    border:1px solid rgba(217,170,84,0.4);
    background:#050505;
}

.evolution-card.multi-endings {
  grid-template-columns: 1fr;
}

.evolution-card.multi-endings .evolution-images {
  grid-template-columns: repeat(4, 1fr);
}

.evolution-card.multi-endings .evolution-images img {
  height: 430px;
}

.evolution-content h3{
    color:var(--gold);
    font-size:2rem;
    margin-bottom:12px;
    font-weight:400;
    text-transform:uppercase;
    letter-spacing:2px;
}

.evo-period{
    color:#f5d48f;
    margin-bottom:24px;
    font-style:italic;
}

.evo-compare{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin-bottom:26px;
}

.evo-compare p{
    padding:12px;
    border:1px solid rgba(217,170,84,0.2);
    background:rgba(255,255,255,0.02);
}

.evolution-content h4{
    color:var(--gold);
    margin:26px 0 10px;
    font-weight:400;
    text-transform:uppercase;
    letter-spacing:1px;
}

.evolution-content p,
.evolution-content li{
    color:rgba(244,239,229,0.88);
    line-height:1.7;
    font-family:Arial, sans-serif;
}

.evolution-content ul{
    padding-left:20px;
}

@media(max-width:1100px){
  .evolution-card,
  .evolution-card.active{
      grid-template-columns:1fr;
  }
}

@media(max-width:700px){
  .evolution-section.open{
      padding:0 14px 50px;
  }

  .evo-compare{
      grid-template-columns:1fr;
  }

  .evolution-images{
      grid-template-columns:1fr;
  }

  .evolution-images img{
      height:440px;
  }
}

.endings-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.endings-gallery > div {
  display: flex;
  flex-direction: column;
}

.endings-gallery h3 {
  color: var(--gold);
  font-family: "Cinzel", serif;

  text-align: center;
  line-height: 1.15;

  padding: 0 8px;
  margin: 0 0 18px 0;

  min-height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.endings-gallery img {
  width: 100%;
  height: 520px;

  object-fit: cover;
  object-position: center top;

  display: block;

  border: 1px solid rgba(217, 170, 84, 0.35);
}

    /* =====================================================
       10 — FOOTER
    ===================================================== */
    footer {
      padding: 16px;
      text-align: center;
      color: rgba(244,239,229,0.72);
      font-size: 0.95rem;
    }

    /* =====================================================
       10.5 — HISTOIRE LIÉE INACTIVE
    ===================================================== */
    .inactive-story-visual {
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 24px;
    }

    .inactive-story-visual img {
      width: 100%;
      max-width: 700px;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      object-position: center;
      border: 1px solid rgba(217,170,84,0.45);
      filter: brightness(0.72) saturate(0.85);
      transition: 0.3s ease;
    }

    .inactive-story-visual img:hover {
      filter: brightness(0.86) saturate(1);
    }

    /* =====================================================
       11 — RESPONSIVE
    ===================================================== */

    @media (max-width: 1180px) {
      .hero,
      .story-timeline-grid,
      .gallery-multiverse-grid,
      .links-grid {
        grid-template-columns: 1fr;
      }

      .hero-portrait {
        min-height: 520px;
      }

      .story-panel,
      .gallery-section,
      .related-section {
        border-right: none;
      }

      .story-panel,
      .gallery-section,
      .multiverse-section,
      .related-section,
      .stories-section {
        border-bottom: 1px solid var(--border);
      }

      .game-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 760px) {
      header {
        flex-direction: column;
      }

      nav {
        gap: 14px;
        font-size: 12px;
      }

      .hero-content {
        padding: 36px 22px;
      }

      .hero h1 {
        letter-spacing: 6px;
      }

      .stats,
      .variant-card,
      .story-link-card {
        grid-template-columns: 1fr;
      }

      .story-panel,
      .timeline-panel,
      .gallery-section,
      .multiverse-section,
      .related-section,
      .stories-section {
        padding: 28px 20px;
      }

      .gallery-row {
        grid-template-columns: repeat(2, 1fr);
      }

      .related-row {
        grid-template-columns: repeat(2, 1fr);
      }

      .arrow {
        display: none;
      }

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