@font-face {
  font-family: 'Cinzel-Regular';
  src: url('assets/fonts/Cinzel-Regular.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GoudyStM';
  src: url('assets/fonts/GoudyStM.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

:root {
  --codex-chat-fab-size: 54px;
  --codex-chat-fab-offset: 32px;
  --codex-chat-gap: 14px;
}

body {
  font-family: 'GoudyStM', Georgia, 'Times New Roman', serif;
  background: #0e1a23;
  color: #e8ddc5;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 20%, transparent 80%);
  animation: rippleLight 12s infinite linear;
  z-index: 0;
  pointer-events: none;
}

@keyframes rippleLight {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(2%, -2%) scale(1.02);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.patch-titre,
.classe-nom,
.codex-header h1,
.nav-bar a,
.button,
.btn-lu,
.fixed-header-links,
#backToTop {
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
}


h1 {
  font-size: 3rem;
  margin-bottom: -0.5rem;
  margin-top: 1rem;
}

main.accueil {
  position: relative;
  z-index: 1;
}

.patch-list h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.patch-list.essence h3 {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.patch-list h3 span {
  font-weight: normal;
  font-size: 0.9em;
  margin-left: auto;
}

.patch-list.essence h3 span {
  font-weight: normal;
  font-size: 0.8em;
  margin-left: auto;
}

.patch-list article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  max-width: 800px;
  margin: 1.5rem auto;
  border-radius: 8px;
  transition: background 0.3s;
  position: relative;
}

.patch-list article:hover {
  background: rgba(255, 255, 255, 0.06);
}

.patch-list article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(76, 118, 141, 0.3);
  pointer-events: none;
}

.patch-list.essence article {
  max-width: 820px;
}


a {
  color: #3ae7e7;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: 0 0 4px #98e4f7;
  text-decoration: none;
  transition: all 0.3s ease;
}



#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.codex-header {
  text-align: center;
  margin-bottom: -2rem;
  padding: 1rem 1rem 1rem;
  color: #88c0a9;
  text-shadow: 0 0 10px rgba(136, 192, 169, 0.4);
  position: relative;
}

.sous-titre {
  font-size: 1.2rem;
  color: #aac7b5;
  margin-bottom: 1rem;
}

.nav-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  background: rgba(60, 80, 70, 0.1);
  border-top: 1px solid #4c768d;
  border-bottom: 1px solid #4c768d;
  z-index: 2;
  position: relative;
  margin-top: 1rem;
}

.nav-bar a {
  color: #88c0a9;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.nav-bar a:hover {
  text-shadow: 0 0 6px #88c0a9;
}

.nav-bar a::before {
  content: none;
}

.accueil {
  max-width: 1125px;
  margin: 2rem auto;
  z-index: 2;
  position: relative;
}

.accueil.large {
  max-width: 1265px;
}

.accueil-music {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  z-index: 2;
  position: relative;
}

.intro {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border: 2px solid rgba(99, 176, 196, 0.1);
  border-radius: 8px;
  font-style: italic;
  margin-bottom: 2rem;
  text-align: center;
  /* centrage du texte */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.sections-liees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sections-liees.regions {
  display: grid;
  grid-template-columns: auto;
  gap: 1.5rem;
}

.accueil.large .sections-liees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.carte-lien {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  max-width: none;
  background: rgba(20, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.carte-lien::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #63b0c4, transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

.carte-lien::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #63b0c4, transparent);
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateY(-0px);
}

.carte-lien:hover::before,
.carte-lien:hover::after {
  width: 100%;
  left: 0;
}

.carte-lien:hover {
  transform: scale(1.03);
  background: rgba(40, 40, 60, 0.95);
  box-shadow: 0 0 12px rgba(136, 192, 169, 0.1);
}

.banniere {
  display: block;
  max-width: 1200px;
  height: 250px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 10px rgba(136, 192, 169, 0.2);
  border-radius: 8px;
}

.banniere-link {
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
}

.banniere-link img.banniere {
  display: block;
  height: 250px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin: 0.5rem;
  box-shadow: 0 0 10px rgba(136, 192, 169, 0.2);
}

footer {
  font-size: 14px;
  color: #888;
  text-align: center;
  padding: 0rem 2rem 2rem 2rem;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
}

.carte-lien.large {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
  position: relative;
}

.carte-lien.large.patch {
  display: block;
  width: 100%;
  max-width: 750px;
  margin: 1rem auto;
  position: relative;
}

.carte-lien.large.chara {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 865px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: initial;
}

.carte-lien.large.npc {
  display: flex;
  align-items: center;
  gap: 1rem;
  /*padding: 1rem;*/
  margin: 1rem auto;
  max-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: initial;
}

.carte-lien.large.chara h2 {
  width: 150px;
  min-width: 155px;
}

.carte-lien.large.chara p {
  margin-left: 1.5rem;
}

.chara-icon {
  height: 64px;
  width: 64px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(52, 223, 223, 0.418);
  vertical-align: text-top;
}

.patch-nouveau {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  color: #63b0c4;
  animation: pulse 2s infinite ease-in-out;
}

.session-nouveau {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  color: #63b0c4;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.125);
    opacity: 0.85;
  }
}

.btn-lu {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  color: #e8ddc5;
  background-color: rgba(20, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-lu:hover {
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(136, 192, 169, 0.1);
}

.btn-lu img.mark-as-read-btn {
  height: 1.2em;
  vertical-align: middle;
}

#top-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.25rem auto 2rem
}

.patch-section {
  margin: 2rem 0;
}

.patch-section h2 {
  border-bottom: 2px solid #88c0a9;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  color: #88c0a9;
}

.patch-section ul {
  list-style-type: "❖ ";
  padding-left: 1.5rem;
}

.image-list {
  list-style: none;
  padding-left: 0;
}

.image-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.image-list.archivist-summary li {
  display: block;
  align-items: flex-start;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.image-list img.image {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.patch-titre {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid #63b0c4;
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
  color: #88c0a9;
  font-size: 1.8rem;
}

.image-h2 {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.image-texte {
  flex: 1;
}

.classe-subsection {
  margin-top: 2rem;
}

.classe-nom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  color: #a2cfcf;
  margin-bottom: 0.5rem;
  border-left: 4px solid #63b0c4;
  padding-left: 0.5rem;
}

.image-h3 {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.back-to-top {
  text-align: right;
  margin-top: 1.5rem;
}

.back-to-top a {
  font-size: 0.9rem;
  color: #88c0a9;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(136, 192, 169, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.back-to-top a:hover {
  background: rgba(136, 192, 169, 0.1);
  text-shadow: 0 0 4px #88c0a9;
}

.rune {
  display: inline-block;
  font-size: 1.2rem;
  color: #63b0c4;
  text-shadow: 0 0 6px rgba(99, 176, 196, 0.5);
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.carte-lien.large {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.note-expliquee {
  font-size: 1rem;
  color: #c6ebd5;
  margin-top: 0.25rem;
  opacity: 0.9;
  padding-left: 1.5rem;
  position: relative;
  /* font-style: italic; */
}

.note-expliquee::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  background-image: url("assets/images/notes-small.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.patch-nouveau {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  color: #63b0c4;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.codex-silver-scroll-header {
  height: 1.2em;
  vertical-align: text-top;
  margin-top: -0.35rem;
}

.codex-image-header {
  height: 1.2em;
  vertical-align: text-top;
}

.codex-silver-scroll-patch {
  height: 1.2em;
  vertical-align: text-top;
}

.skill-icon {
  width: 48px;
  height: 48px;
  vertical-align: middle;
}

.details-icon {
  vertical-align: top;
  margin-top: 0.05rem;
}

.patchnotes-icon {
  width: 64px;
  height: 64px;
  vertical-align: middle;
}

#backToTop {
  display: none;
  position: fixed;

  /* Alignement par rapport au bouton de chat */
  bottom: calc(var(--codex-chat-fab-offset) + (var(--codex-chat-fab-size) / 2));
  transform: translateY(50%);

  right: calc(var(--codex-chat-fab-offset) + var(--codex-chat-fab-size) + var(--codex-chat-gap));

  text-decoration: none;
  color: #88c0a9;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  font-size: 18px;
  background: rgba(20, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
  min-width: 221.917px;
  z-index: 999998;
}

#backToTop:hover {
  transform: translateY(50%) scale(1.03);
  background: rgba(40, 40, 60, 0.95);
  box-shadow: 0 0 12px rgba(136, 192, 169, 0.1);
  text-shadow: 0 0 4px #8bd1e3;
  text-decoration: none;
  cursor: pointer;
}

#backToTop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #63b0c4, transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

#backToTop::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #63b0c4, transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

#backToTop:hover::before,
#backToTop:focus::before,
#backToTop:hover::after,
#backToTop:focus::after {
  width: 100%;
  left: 0;
}

#backToTop.show {
  display: block;
}

.header-top {
  display: flex;
  justify-content: center;
  /* centre le h1 */
  align-items: center;
  position: relative;
  padding: 1rem 1rem 0.5rem;
}

.header-top h1 {
  margin: 0;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  margin-top: 0.5rem;
}

.header-links {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
}

.header-links a {
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  color: #88c0a9;
  text-decoration: none;
  font-size: 18px;
}

.table-container {
  width: 52vw;
  max-width: auto;
  overflow-x: auto;
  margin-left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  margin-top: 2rem;
  box-shadow: 0 0 15px rgba(173, 216, 230, 0.15);
  /* léger halo */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.01), transparent);
}

.progression-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  color: #d8e9f0;
  background-color: rgba(0, 0, 0, 0.25);
  font-size: 17px;
}

.progression-table.very-large {
  font-size: 14px;
}

.progression-table th,
.progression-table td {
  text-align: center;
  padding: 0.75rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.progression-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: bold;
  text-transform: uppercase;
  color: #ffdca9;
}

.progression-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.table-container thead {
  background-color: rgba(136, 192, 169, 0.15);
}

.illustration-wrapper {
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(136, 192, 169, 0.2);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  width: 444.45px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 auto 2rem;
  height: 250px;
}

.illustration-wrapper img.illustration-race {
  height: 245px;
  /* ou ajuste à la taille souhaitée */
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.illustration-wrapper img.illustration-classe {
  height: 245px;
  /* ou ajuste à la taille souhaitée */
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.illustration-wrapper img.illustration-character {
  height: 245px;
  /* ou ajuste à la taille souhaitée */
  width: auto;
  object-fit: contain;
  cursor: pointer;
}


.collapsible-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.collapsible-content.expanded {
  max-height: 20000px;
  /* assez grand pour couvrir n'importe quelle section */
  opacity: 1;
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-size: 1.8rem;
  background: rgba(0, 0, 0, 0.5);
  color: #e8ddc5;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 2000;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.mobile-nav-toggle.open {
  transform: rotate(90deg);
}

.mobile-nav-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  color: #e8ddc5;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 2000;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow-y: auto;
}

.mobile-nav-overlay.show {
  transform: translateX(0);
  opacity: 1;
}

.mobile-nav-content {
  padding-top: 2.25rem;
}

.mobile-nav-content a {
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  color: #e8ddc5;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0.5rem 0;
  display: block;
}

.mobile-nav-content a:hover {
  color: #57dada;
}

.mobile-nav-content a::before {
  content: none;
}

.intro-collapsible.click {
  position: relative;
  max-height: 100px;
  overflow: hidden;
  padding: 1.5rem;
  background: rgba(232, 221, 197, 0.04);
  margin: 2rem auto;
  max-width: 900px;
  border-left: 4px solid #88c0a9;
  border-right: 4px solid #88c0a9;
  border-radius: 8px;
  transition: max-height 0.4s ease;
}

.intro-collapsible.click::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(14, 14, 14, 0) 0%, rgba(14, 14, 14, 0.95) 100%);
  pointer-events: none;
}


.intro-collapsible.click.expanded {
  max-height: 2000px;
}

.intro-collapsible.click.expanded::after {
  display: none;
}

.toggle-intro {
  display: block;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  color: #88c0a9;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: underline;
  z-index: 1;
  font-weight: bold;
}

.skill-icon,
.class-icon,
.chara-icon {
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(52, 223, 223, 0.418);
}

.aptitude-search-container {
  max-width: 800px;
  margin: 1rem auto;
  text-align: center;
}

#search-bar {
  width: 95%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  border-radius: 8px;
  border: 1px solid #88c0a9;
  background: rgba(0, 0, 0, 0.3);
  color: #e8ddc5;
}

#aptitude-search::placeholder {
  color: #aaa;
}

.nom-monstre-container {
  max-width: 800px;
  margin: 5rem auto 2rem;
}

#nom-monstre {
  width: 50%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  border-radius: 8px;
  border: 1px solid #88c0a9;
  background: rgba(0, 0, 0, 0.3);
  color: #e8ddc5;
}

#nom-monstre::placeholder {
  color: #aaa;
}

.action-icon {
  height: 1em;
  vertical-align: middle;
  margin-bottom: 4px;
  margin-right: 0.3rem;
  height: 1.2rem;
}

.toggle-section {
  display: block;
  position: relative;
  justify-content: space-between;
}

.toggle-button {
  background: none;
  border: none;
  color: #88c0a9;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  margin-left: auto;
  padding: 0 0.5rem;
}

.toggle-section h2 {
  display: flex;
}

.header-top+div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.class-nav {
  position: fixed;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  padding: 1rem;
  border-radius: 12px;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  font-size: 0.9rem;
  z-index: 1000;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #88c0a9 transparent;
}

.class-nav a {
  display: block;
  color: #e8ddc5;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.class-nav a:hover {
  color: #57dada;
}

.class-nav a::before {
  content: none;
}

.class-nav a.section-link {
  font-weight: bold;
  font-size: 1rem;
  margin-top: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.3rem;
}

.class-nav a.active {
  color: #57dada;
  font-weight: bold;
}

.class-nav a.sub-link {
  font-size: 0.9rem;
  margin-left: 0.8rem;
  opacity: 0.85;
}

.class-nav::-webkit-scrollbar {
  width: 6px;
}

.class-nav::-webkit-scrollbar-thumb {
  background-color: #88c0a9;
  border-radius: 4px;
}

/* Affiche le bouton toggle seulement sous 768px */
@media screen and (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }

  body.nav-open .mobile-nav-toggle {
    display: none;
  }

  .class-nav {
    display: none;
  }

  .illustration-wrapper {
    flex: 0 1 45%;
    max-width: 45%;
    height: 225px;
  }

  .header-top {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 4rem;
  }

  .header-top h1 {
    font-size: 1.8rem;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .class-icon {
    width: 38px;
    height: 38px;
  }

  .patch-titre {
    font-size: 1.2rem;
  }

  .image-h2 {
    width: 24px;
    height: 24px;
  }

  body {
    font-size: 15px;
  }

  .image-list img.image {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
  }

  #aptitude-search {
    width: 80%;
    font-size: 0.85rem;
  }

  .intro-collapsible.click {
    padding: 1rem;
    margin: 0rem auto;
  }

  .patch-list h3 {
    display: flex;
    flex-direction: column;
  }

  .patch-list h3 span {
    display: flex;
    align-items: center;
    margin-left: 0;
    margin-top: -0.25rem;
  }

  .skill-icon {
    width: 36px;
    height: 36px;
  }

  .action-icon {
    height: 0.8em;
    vertical-align: middle;
    margin-bottom: 1px;
  }

  .patch-list p {
    text-align: justify;
  }
}

.audio-player-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  max-width: 600px;
  margin: 2rem auto;
  color: #e8ddc5;
  box-shadow: 0 0 15px rgba(99, 176, 196, 0.2);
  font-family: 'GoudyStM', Georgia, 'Times New Roman', serif;
}

#playPauseBtn {
  background: none;
  border: none;
  color: #88c0a9;
  font-size: 1.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

#playPauseBtn:hover {
  transform: scale(1.2);
}

.progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #63b0c4;
  transition: width 0.2s ease;
}

#timeDisplay {
  font-size: 1rem;
  color: #aac7b5;
  min-width: 40px;
  text-align: left;
  position: absolute;
}

#totalTimeDisplay {
  font-size: 1rem;
  color: #aac7b5;
  min-width: 40px;
  text-align: right;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.now-playing img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(136, 192, 169, 0.3);
}

.now-playing h3 {
  margin: 0;
  font-size: 1rem;
  color: #88c0a9;
  text-align: left;
  font-family: 'GoudyStM', Georgia, 'Times New Roman', serif;
}

.now-playing p {
  margin: 0;
  font-size: 0.9rem;
  color: #aac7b5;
  text-align: left;
}

audio {
  width: 100%;
  margin-bottom: 1rem;
  filter: brightness(0.9) contrast(1.2);
}

#playlist {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#playlist.visible {
  opacity: 1;
}

#playlist li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, text-shadow 0.2s ease;
}

#playlist li.playing {
  background: rgba(136, 192, 169, 0.15);
  box-shadow: 0 0 10px #63b0c4;
  text-shadow: 0 0 6px #63b0c4;
}

.playlist-cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 0 6px rgba(136, 192, 169, 0.3);
}

.playlist-info {
  display: flex;
  flex-direction: column;
  color: #e8ddc5;
  font-family: 'GoudyStM', Georgia, 'Times New Roman', serif;
  text-align: left;
}

.playlist-info span {
  font-size: 0.85rem;
  color: #aac7b5;
}

.playlist-info strong {
  font-size: 0.95rem;
  color: #88c0a9;
}

#playlist li:hover {
  background: rgba(136, 192, 169, 0.05);
  text-shadow: 0 0 6px #63b0c4;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.volume-container i {
  display: inline-block;
  width: 1.5em;
  text-align: center;
  cursor: pointer;
  color: #88c0a9;
}

#volumeSlider {
  width: 15%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #63b0c4;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(99, 176, 196, 0.5);
}

#volumeSlider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #63b0c4;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(99, 176, 196, 0.5);
  border: none;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: -0.5rem;
}

.controls button {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #88c0a9;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.controls button:hover {
  transform: scale(1.2);
  border-color: rgba(136, 192, 169, 0.5);
  color: #88c0a9;
  text-shadow: 0 0 10px rgba(99, 176, 196, 0.25);
}

#loopBtn.active {
  color: #88c0a9;
}

#loopBtn {
  color: #4b5a54;
}

.music-player {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border: 2px solid rgba(99, 176, 196, 0.1);
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
  /* centrage du texte */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 15px rgba(76, 118, 141, 0.3);
}

.playlist-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 0.95rem;
  flex-wrap: wrap;
}

.tab-button {
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  color: #e8ddc5;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 4px rgba(136, 192, 169, 0.25);
}

.tab-button:hover {
  background-color: rgba(136, 192, 169, 0.08);
  box-shadow: 0 0 6px rgba(136, 192, 169, 0.15);
  text-shadow: 0 0 6px rgba(136, 192, 169, 0.3);
}

.tab-button.active {
  background-color: rgba(136, 192, 169, 0.15);
  border-color: rgba(136, 192, 169, 0.5);
  color: #88c0a9;
  box-shadow: 0 0 10px rgba(99, 176, 196, 0.25);
}

.volume-container span {
  font-style: italic;
  font-size: 0.85rem;
  color: #aac7b5;
  text-align: right;
  font-weight: normal;
  font-size: 0.9em;
  margin-left: auto;

}

.playlist-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
  gap: 0.5rem;
  width: 100%;
}

.playlist-tabs-container {
  overflow-x: auto;
  flex: 1;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.playlist-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.5rem 1rem;
  width: max-content;
}


.playlist-tabs::-webkit-scrollbar {
  display: none;
  /* cache la scrollbar pour un look clean */
}

.scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8ddc5;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 0 4px rgba(136, 192, 169, 0.25);
  padding: 0.5rem 1.2rem;
}

.scroll-btn:hover {
  background-color: rgba(136, 192, 169, 0.08);
  box-shadow: 0 0 6px rgba(136, 192, 169, 0.15);
  text-shadow: 0 0 6px rgba(136, 192, 169, 0.3);
  transform: scale(1.05);
}

.scroll-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 0 6px rgba(136, 192, 169, 0.3);
}

.fa-gamepad {
  vertical-align: middle;
}

.fixed-header-links {
  font-size: 18px;
  position: fixed;
  right: 1rem;
  top: 3.5rem;
  /* ← à ajuster au pixel près */
  z-index: 1000;
  display: flex;
  gap: 1rem;
}


.fixed-header-links .carte-lien {
  max-width: none;
  width: max-content;
  background: rgba(20, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.fixed-header-links .carte-lien:hover {
  transform: scale(1.03);
  background: rgba(40, 40, 60, 0.95);
  box-shadow: 0 0 12px rgba(136, 192, 169, 0.1);
}

.class-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 1000px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.class-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.class-icon {
  height: 64px;
  width: 64px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(52, 223, 223, 0.418);
  vertical-align: text-top;
}

.class-card h2 {
  width: 200px;
  min-width: 250px;
}

.class-card p {
  margin-left: 1.5rem;
}

#search-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0rem auto 2rem;
  flex-wrap: wrap;
}

#search-bar::placeholder {
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
}

.return-link {
  display: inline-block;
  max-width: 300px;
  white-space: nowrap;
}

.spell-data-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
  color: #aaaaaa
}

.spell-info-block {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 18px;
}

.spell-info-icon {
  width: 20px;
  height: 20px;
  cursor: help;
  object-fit: contain;
}

.spell-info-icon.components {
  width: 30px;
}

.spell-info-icon.cast-time {
  width: 30px;
  height: 24px;
}

.tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
  gap: 0.5rem;
  width: 100%;
}

.tab-content {
  border: 1px solid rgba(99, 176, 196, 0.2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 0 12px rgba(136, 192, 169, 0.05);
  margin-bottom: 2rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: none;
}

.tab-content.active {
  display: block;
  opacity: 1;
}

select {
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  background: rgba(0, 0, 0, 0.3);
  color: #e8ddc5;
  border: 1px solid #88c0a9;
  padding: 0.25rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
}

select option {
  background-color: #121c24;
  color: #e8ddc5;
  padding: 0.5rem;
  line-height: 1.8;
}

.centered-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
  gap: 0.5rem;
  width: 100%;
}

.result {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.result.show {
  opacity: 1;
}

.ligne-formulaire {
  margin-bottom: 1rem;
  text-align: center;
}

.class-table-tabs-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 1rem;
  margin-top: 2rem;
  gap: 0.5rem;
  width: 100%;
}

.class-table-tabs-wrapper .tab-button {
  padding: 0.75rem 1.5rem;
}

.article-combat h2 {
  color: #88c0a9;
  border-bottom: 2px solid #88c0a9;
  margin-top: 0.4rem;
}

.article-credits h2 {
  color: #88c0a9;
  border-bottom: 2px solid #88c0a9;
  margin-top: 0.4rem;
}

.inline-icon {
  height: 1.3rem;
  vertical-align: middle;
  margin: 0 0.3rem 0.35rem;
}

.effet-bloc {
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  padding-left: 0.75em;
  margin-bottom: 1.2em;
}

.effet-bloc h4 {
  font-family: "Cinzel-Regular", serif;
  font-size: 0.95rem;
  color: #f9e4b7;
  margin: 0 0 0.4em;
  display: block;
}

.effet-bloc p {
  margin: 0;
  line-height: 1.6;
}

.patch-list.essence .effet-bloc p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px black;
  border: 3px solid #88c0a9;
  border-radius: 8px;
}

.portrait-header {
  max-width: 600px;
  max-height: 350px;
  width: auto;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(136, 192, 169, 0.2);
  cursor: pointer;
}

.inventory {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: flex-start;
  align-items: center;
}

.inventory .item {
  width: 64px;
  height: 64px;
  position: relative;
  flex: 0 0 auto;
  text-align: center;
  background: rgba(25, 25, 35, 0.9);
  border-radius: 8px;
}

.inventory .item:hover {
  background: rgba(255, 255, 255, 0.089);
  transition: background 0.3s ease;
  cursor: pointer;
}

.inventory .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.inventory .tooltip {
  position: absolute;
  bottom: -1.8em;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95rem;
  white-space: nowrap;
  display: none;
  pointer-events: none;
  z-index: 10;
}

.inventory .item:hover .tooltip {
  display: block;
}

.inventory-section {
  margin-bottom: 1rem;
}

.item .quantity {
  position: absolute;
  bottom: 2px;
  right: 4px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0 4px;
  font-size: 0.7rem;
  border-radius: 4px;
  font-family: monospace;
  pointer-events: none;
}

.item.rarity-common img {
  border: 2px solid #aaa;
}

.item.rarity-uncommon img {
  border: 2px solid #3cb371;
}

.item.rarity-rare img {
  border: 2px solid #1e90ff;
}

.item.rarity-epic img {
  border: 2px solid #9932cc;
}

.item.rarity-legendary img {
  border: 2px solid #ffa500;
}

.item.rarity-artifact img {
  border: 2px solid #ff4500;
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.6);
}

.fiche-personnage {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  margin: 0 auto;
  max-width: 1600px;
  justify-content: center;
}

.fiche-lore {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  max-width: 800px;
  flex: 1;
  margin: 1.5rem auto;
  border-radius: 8px;
  transition: background 0.3s;
  box-shadow: 0 0 15px rgba(76, 118, 141, 0.3);
}

.fiche-lore.npc {
  max-width: 1175px;
}

.fiche-lore.session {
  max-width: 1175px;
}

.fiche-lore.bastion {
  max-width: 1000px;
}

.fiche-lore:hover {
  background: rgba(255, 255, 255, 0.06);
}

.fiche-personnage .patch-list {
  flex: 1;
  margin-left: 2rem;
}

.fiche-stats {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 300px;
  margin: 1.5rem auto;
  border-radius: 8px;
  transition: background 0.3s;
  box-shadow: 0 0 15px rgba(76, 118, 141, 0.3);
}

.fiche-skills {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 300px;
  margin: 1.5rem auto;
  border-radius: 8px;
  transition: background 0.3s;
  box-shadow: 0 0 15px rgba(76, 118, 141, 0.3);
}

.fiche-stats:hover, .fiche-skills:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .fiche-personnage {
    flex-direction: column;
    padding: 0 1rem;
  }

  .fiche-abilities {
    width: 100%;
    margin-top: 2rem;
  }
}

.image-list .character-stats {
  margin-bottom: 0.25rem;
  gap: 0.3rem;
}

.image-list.news .character-stats {
  margin-bottom: 1.25rem;
  gap: 0.3rem;
}

.fiche-skills .inventory {
  margin-top: 0.5rem;
}

.fiche-skills .item {
  position: relative;
  width: 64px;
  height: 64px;
}

.fiche-skills .item img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: contain;
}

.fiche-skills .tooltip {
  position: absolute;
  bottom: -1.8em;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95rem;
  white-space: nowrap;
  display: none;
  pointer-events: none;
  z-index: 10;
}

.fiche-skills .item:hover .tooltip {
  display: block;
}

.timestamp {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.feature-icon {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 2px;
}

.feature-race {
  border: 2px solid #FFFC66;
}

.feature-class {
  border: 2px solid #5F9DFE
}

.feature-generic {
  border: 2px solid #D14848;
}

.purple-bg {
  background: radial-gradient(circle at center, #303950 0%, #0f121b 80%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body.purple-bg::after {
  background: none !important;
}

.blue-bg {
  background: radial-gradient(circle at center, #1e3552 0%, #0e1720 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body.blue-bg::after {
  background: none !important;
}

.green-bg {
  background: radial-gradient(circle at center, #22422d 0%, #09150e 75%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body.green-bg::after {
  background: none !important;
}

.red-bg {
  background: radial-gradient(circle at center, #441212 0%, #180707 75%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body.red-bg::after {
  background: none !important;
}

.dark-green-bg {
  background: radial-gradient(circle at center, #11282b 0%, #051012 75%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}


body.dark-green-bg::after {
  background: none !important;
}

.disabled-icon {
  cursor: not-allowed;
}

.xp-bar-container {
  width: 100%;
  background-color: #111;
  height: 8px;
  border: 1px solid #aaa;
  margin: 0.3rem 0 0;
  border-radius: 4px;
}

.xp-bar-ithil {
  height: 100%;
  background-color: #d34670;
  border-radius: 4px;
}

.xp-bar-feril {
  height: 100%;
  background-color: #46d346;
  border-radius: 4px;
}

.xp-bar-oktar {
  height: 100%;
  background-color: #5E6F9E;
  border-radius: 4px;
}

.xp-bar-kay {
  height: 100%;
  background-color: #7c85ff;
  border-radius: 4px;
}

.xp-bar-elsa {
  height: 100%;
  background-color: #008c9e;
  border-radius: 4px;
}

.stat-block {
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.inspiration-glow {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 150, 0.7));
  transition: filter 0.3s ease;
  margin-right: -0.3rem;
}

.inspiration-off {
  width: 32px;
  height: 32px;
  opacity: 0.5;
  margin-right: -0.3rem;
}

.image-list h3 {
  margin-top: -0.15rem;
  margin-bottom: 0.5rem;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper .tooltip {
  position: absolute;
  bottom: -1.8em;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95rem;
  white-space: nowrap;
  display: none;
  pointer-events: none;
  z-index: 10;
}

.tooltip-wrapper:hover .tooltip {
  display: block;
}

.image-list .level-block {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.backToTop-static-button {
  display: flex;
  justify-content: center;
  margin: -0.25rem auto 0;
  padding-top: 1rem;
}

#backToTop-static {
  text-decoration: none;
  color: #88c0a9;
  overflow: hidden;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  font-size: 18px;
  background: rgba(20, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
  min-width: 221.917px;
  /* ajustable pour matcher la largeur du bouton Codex */
}

#backToTop-static:hover {
  transform: scale(1.03);
  background: rgba(40, 40, 60, 0.95);
  box-shadow: 0 0 12px rgba(136, 192, 169, 0.1);
  text-shadow: 0 0 4px #8bd1e3;
  text-decoration: none;
  cursor: pointer;
}

#backToTop-static::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #63b0c4, transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

#backToTop-static::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #63b0c4, transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

#backToTop-static:hover::before,
#backToTop-static:focus::before,
#backToTop-static:hover::after,
#backToTop-static:focus::after {
  width: 100%;
  left: 0;
}

.fiche-lore-header,
.fiche-lore-footer {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.fiche-lore-header .btn-lu,
.fiche-lore-footer button {
  min-width: 260px;
  text-align: center;
}

.header-links-center {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: -1.25rem;
}

.header-links-center a {
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  color: #88c0a9;
  text-decoration: none;
  font-size: 18px;
}

.fiche-centrale {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.ental-glow {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 2px rgba(255, 255, 150, 0.7));
  transition: filter 0.3s ease;
  margin-right: -0.3rem;
  border-radius: 7px;
}

#map {
  height: 750px;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(136, 192, 169, 0.5);
  border: 2px solid #88c0a9;
  background-color: transparent;
}

.leaflet-container {
  background: #000;
}

.custom-marker {
  background-color: #92fccc;
  border: 2px solid #154f4d;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 10px #92fccc88;
}

.leaflet-tooltip.codex-tooltip {
  background: #222;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 1.2rem;
  white-space: nowrap;
  font-family: 'GoudyStM', Georgia, 'Times New Roman', serif;
  border: none;
}

.popup-codex {
  font-family: 'GoudyStM', serif;
  font-size: 0.95rem;
  color: #e8ddc5;
  max-width: 260px;
}

.popup-codex h3 {
  font-family: 'Cinzel-Regular', serif;
  font-size: 1.1rem;
  color: #88c0a9;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.popup-codex p {
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.popup-codex a {
  font-family: 'Cinzel-Regular', serif;
  font-size: 0.9rem;
  color: #88c0a9;
  text-decoration: none;
}

.popup-codex a:hover {
  text-decoration: underline;
}

.leaflet-popup-content-wrapper.codex-popup-wrapper,
.leaflet-popup-tip.codex-popup-wrapper+.leaflet-popup-tip {
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(136, 192, 169, 0.3);
  box-shadow: 0 0 10px rgba(136, 192, 169, 0.2);
}

.main-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 2rem 0 2rem;
  margin: 0 auto;
}

.carte-sidebar {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex: 0 0 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: absolute;
  width: 200px;
  margin: 1.5rem auto;
  border-radius: 8px;
  transition: background 0.3s;
  box-shadow: 0 0 15px rgba(76, 118, 141, 0.3);
}

.carte-sidebar:hover {
  background: rgba(255, 255, 255, 0.06);
}

#carte-sidebar h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #88c0a9;
}

#carte-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#carte-sidebar li {
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#carte-sidebar li:hover {
  color: #88c0a9;
}

.map-with-sidebar {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  max-width: 800px;
  margin: 1.5rem auto;
  border-radius: 8px;
}

.patch-nav {
  position: fixed;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 1rem;
  border-radius: 12px;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  font-size: 0.9rem;
  z-index: 1000;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #88c0a9 transparent;
  width: 237.833px;
}

.patch-nav a {
  display: block;
  color: #e8ddc5;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.patch-nav a:hover {
  color: #57dada;
}

.patch-nav a::before {
  content: none;
}

.patch-nav a.section-link {
  font-weight: bold;
  font-size: 1rem;
  margin-top: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.3rem;
}

.patch-nav a.active {
  color: #57dada;
  font-weight: bold;
}

.patch-nav a.sub-link {
  font-size: 0.9rem;
  margin-left: 0.8rem;
  opacity: 0.85;
}

.patch-nav::-webkit-scrollbar {
  width: 6px;
}

.patch-nav::-webkit-scrollbar-thumb {
  background-color: #88c0a9;
  border-radius: 4px;
}

.carte-large {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-image: url("/assets/images/maps/carte-voarmur-thumb.png");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  padding: 2rem 2rem;
  grid-column: span 2;
  /* sur deux colonnes */
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  border: 1px solid #4c768d;
}

.carte-lien.carte-large::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  width: auto;
  height: auto;
}

.carte-large-contenu {
  position: relative;
  z-index: 2;
}

.carte-large:hover {
  background-image: url("/assets/images/maps/carte-voarmur-thumb.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  box-shadow: 0 0 20px rgba(136, 192, 169, 0.5);
}

.fiche-pnj {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  margin: 0 auto;
  max-width: 1600px;
  justify-content: center;
}

.image-list .description {
  margin-top: 1.75rem;
}

.patchnotes-icon.tutorial-image {
  width: auto;
  height: 90px;
  margin: 0;
  display: initial;
  border: 2px solid #88c0a9;
}

.tutorial-image {
  display: flex;
  width: auto;
  height: auto;
  margin: 2rem auto;
  max-width: 800px;
}

.intro.note-expliquee::before {
  background-image: none;
}

.mini-index {
  list-style: none;
}

.mini-table-container {
  max-width: auto;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(173, 216, 230, 0.15);
  /* léger halo */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.01), transparent);
  width: fit-content;
  margin: 0 auto;
}

.mini-table {
  border-collapse: collapse;
  color: #d8e9f0;
  background-color: rgba(0, 0, 0, 0.25);
  font-size: 18px;
  width: fit-content;
}

.mini-table th,
.mini-table td {
  text-align: center;
  padding: 0.75rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.mini-table th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: bold;
  text-transform: uppercase;
  color: #ffdca9;
}

.mini-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.mini-table-container thead {
  background-color: rgba(136, 192, 169, 0.15);
}

.index-sidebar {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex: 0 0 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: absolute;
  width: 375px;
  margin: 1.5rem auto;
  border-radius: 8px;
  transition: background 0.3s;
  box-shadow: 0 0 15px rgba(76, 118, 141, 0.3);
}

.index-sidebar:hover {
  background: rgba(255, 255, 255, 0.06);
}

#index-sidebar h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #88c0a9;
}

#index-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#index-sidebar li {
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#index-sidebar li:hover {
  color: #88c0a9;
}

.index-with-sidebar {
  max-width: 800px;
  margin: 0 auto;
}

.index-with-sidebar article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  max-width: 800px;
  margin: 1.5rem auto;
  border-radius: 8px;
  transition: background 0.3s;
  position: relative;
}

.dispo-wrapper {
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.6);
  border-radius: 12px;
  max-width: fit-content;
}

.dispo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1rem;
  max-width: 100%;
}

.dispo-date {
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #88c0a9;
  background: rgba(20, 20, 20, 0.4);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
  width: 30px;
  font-size: 0.95rem;
}

.dispo-date:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(136, 192, 169, 0.5);
}

.dispo-date.selected {
  background: #88c0a9;
  color: #000;
  box-shadow: 0 0 20px rgba(136, 192, 169, 0.5);
}

.dispo-actions {
  margin-top: 2rem;
  text-align: center;
}

.dispo-actions input {
  padding: 0.3rem 0.5rem;
  margin: 0.5rem;
  border-radius: 6px;
  font-family: GoudyStM;
}

#note {
  width: 400px;
}

.animated-button {
  text-decoration: none;
  color: #88c0a9;
  overflow: hidden;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  font-size: 18px;
  background: rgba(20, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
  min-width: 221.917px;
  /* ajustable pour matcher la largeur du bouton Codex */
}

.animated-button.small {
  text-decoration: none;
  color: #88c0a9;
  overflow: hidden;
  font-family: 'Cinzel-Regular', 'Trajan Pro', 'Copperplate', 'Georgia', serif;
  font-size: 18px;
  background: rgba(20, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
  min-width: 145px;
  vertical-align: middle;
}

.animated-button:hover {
  transform: scale(1.03);
  background: rgba(40, 40, 60, 0.95);
  box-shadow: 0 0 12px rgba(136, 192, 169, 0.1);
  text-shadow: 0 0 4px #8bd1e3;
  text-decoration: none;
  cursor: pointer;
}

.animated-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #63b0c4, transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

.animated-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #63b0c4, transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

.animated-button:hover::before,
.animated-button:focus::before,
.animated-button:hover::after,
.animated-button:focus::after {
  width: 100%;
  left: 0;
}

.accueil.dispo-joueurs {
  max-width: none;
}

.dispo-date .jour,
.dispo-table .jour {
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.1;
}

.dispo-date .mois,
.dispo-table .mois {
  font-size: 0.75rem;
  opacity: 0.9;
  text-transform: lowercase;
}

.dispo-date .jour-semaine,
.dispo-table .jour-semaine {
  font-size: 0.75rem;
  opacity: 0.9;
  text-transform: lowercase;
}

.lightbox-image {
  cursor: pointer;
}

.image-list .character-stats.spaced {
  margin-bottom: 1.1em;
}

.article-credits li.in-article {
  margin-left: 1rem;
}

.patch-list.bastion h3 {
  justify-content: initial;
}

.illustration-character.background {
  position: absolute;
  z-index: 0;
}

.item-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.item-modal.hidden {
  display: none;
}

.item-modal-content {
  position: relative;
  /* 👈 Ajoute cette ligne */
  background: #1d1d1d;
  border: 2px solid #aaa;
  padding: 1.5rem;
  width: 500px;
  color: #fff;
  border-radius: 12px;
  max-height: 75%;
  overflow-y: scroll;
}

.close-button {
  position: absolute;
  top: 0.5rem;
  /* plus près du bord du contenu */
  right: 0.75rem;
  cursor: pointer;
  font-size: 2rem;
}

.item-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.item-modal-header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid #888;
  border-radius: 6px;
  flex-shrink: 0;
}

.modal-header-texts {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.item-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
}

.item-modal-price {
  background-color: #222;
  color: #f0c060;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-right: 0.5rem;
  font-family: "Inter";
}

.wikilink {
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
}

.wikilink-missing {
  opacity: 0.7;
  font-style: italic;
}

.refresh-moments,
.moments-mode,
.moments-pagination-button {
  border: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 0;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  display: flex;
  background-color: transparent;
}

.refresh-moments:hover,
.moments-mode:hover,
.moments-pagination-button:hover {
  cursor: pointer;
  border: none;
  transform: scale(1.25);
}

.moments-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

/* Le titre peut respirer */
.moments-head h2 {
  grid-column: 1 / 3;
}

/* Les controls restent centrés dans la ligne */
.moments-controls {
  grid-column: 2 / 3;
  /* ancré dans la colonne centrale */
  justify-self: center;
}

.moments-controls>* {
  margin-left: 10px;
}

.moments-controls>*:first-child {
  margin-left: 0;
}

#moments-session {
  width: 30em;
}

.moments-pagination {
  text-align: center;
  font-size: 26px;
}

.moments-pagination-button {
  padding: 30px;
}

.patch-list.xl article {
  max-width: 1200px;
}

.accueil.xl {
  max-width: 1200px;
}

#tab-pnj {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}