.character-page {
  background: #ffffff;
  color: #111111;
  height: 100vh;
  overflow: hidden;
}

/* =========================
   NAVIGATION HAUTE
========================= */

.top-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
}

.top-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-logo img {
  width: 240px;
  max-width: 60vw;
  height: auto;
  display: block;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top-logo:hover img,
.top-logo:focus-visible img {
  opacity: 0.55;
  transform: scale(1.04);
}

.top-logo:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 6px;
}

/* =========================
   PAGE
========================= */

.character-shell {
  height: 100%;
  width: 100%;
  padding: 150px 24px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.character-viewer {
  width: min(100%, 1320px);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 20px;
  align-items: center;
}

.character-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 46%) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
}

.character-image-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68vh;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  background: #ffffff;
}

.character-info-panel {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100%;
}

.character-info-inner {
  width: 100%;
  border-left: 1px solid #111111;
  padding-left: 28px;
}

.character-name {
  margin: 0 0 20px 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.character-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.character-info-row {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.character-info-row strong {
  font-weight: 700;
}

.character-empty {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.character-nav-button {
  width: 56px;
  height: 56px;
  border: 1px solid #111111;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.character-nav-button:hover,
.character-nav-button:focus-visible {
  opacity: 0.72;
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  outline: none;
}

.character-nav-button:disabled {
  opacity: 0.25;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.character-mobile-pagination {
  display: none;
}

/* =========================
   TABLETTE
========================= */

@media (max-width: 1100px) {
  .top-logo img {
    width: 200px;
    max-width: 58vw;
  }

  .character-shell {
    padding: 138px 20px 28px;
  }

  .character-viewer {
    grid-template-columns: 50px 1fr 50px;
    gap: 14px;
  }

  .character-card {
    grid-template-columns: minmax(240px, 44%) minmax(280px, 1fr);
    gap: 24px;
  }

  .character-image {
    max-height: 62vh;
  }

  .character-info-inner {
    padding-left: 22px;
  }

  .character-name {
    font-size: 1rem;
  }

  .character-info-row {
    font-size: 0.95rem;
  }

  .character-nav-button {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* =========================
   SMARTPHONE
========================= */

@media (max-width: 720px) {
  .character-page {
    height: auto;
    overflow: auto;
  }

  .top-nav {
    top: 10px;
  }

  .top-logo img {
    width: 160px;
    max-width: 72vw;
  }

  .character-shell {
    height: auto;
    padding: 120px 14px 28px;
    justify-content: flex-start;
    gap: 18px;
  }

  .character-viewer {
    display: block;
    width: 100%;
  }

  .character-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .character-image {
    max-width: 100%;
    max-height: 58vh;
  }

  .character-info-panel {
    width: 100%;
  }

  .character-info-inner {
    border-left: none;
    border-top: 1px solid #111111;
    padding-left: 0;
    padding-top: 18px;
  }

  .character-name {
    margin-bottom: 14px;
    font-size: 0.98rem;
    letter-spacing: 0.1em;
  }

  .character-info-list {
    gap: 10px;
  }

  .character-info-row {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .character-nav-button {
    display: none;
  }

  .character-mobile-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
  }

  .character-mobile-button {
    min-width: 132px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #111111;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
  }

  .character-mobile-button:hover,
  .character-mobile-button:focus-visible {
    opacity: 0.72;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    outline: none;
  }

  .character-mobile-button:disabled {
    opacity: 0.25;
    cursor: default;
    box-shadow: none;
  }
}