
body {
  margin: 0;
  font-family: 'IM Fell English SC', serif;
  background: #fdfdfd;
  color: #111;
}

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

header#main-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0.5em 0;
  justify-content: center;
  flex-wrap: wrap;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  padding: 0.5em;
  min-width: 200px;
  z-index: 1001;
  top: 100%;
  left: 0;
}

.dropdown-content {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  pointer-events: auto;
}


.dropdown-content li {
  padding: 0.2em 0;
}

main.container {
  max-width: 1200px;
  margin: auto;
  padding: 2em 1em;
}

.category-section {
  margin-bottom: 4em;
}

.category-section h2 {
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 0.5em;
}

.category-section hr {
  border: none;
  height: 3px;
  width: 120px;
  background: #4ec3ff;
  margin: 0 auto 2em auto;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5em;
}

.tile {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.tile-image {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.tile-text {
  padding: 1em;
}

.tile-text h3 {
  font-size: 1.1em;
  margin: 0 0 0.5em 0;
}

.tile-text p {
  font-size: 0.9em;
  line-height: 1.4em;
}

.read-more {
  color: #4ec3ff;
  font-weight: bold;
}

.cta {
  background: #4e6fa8;
  color: white;
  text-align: center;
  padding: 3em 1em;
}

.cta .button {
  margin-top: 1em;
  padding: 0.6em 2em;
  background: white;
  color: #4e6fa8;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 1em;
  font-size: 0.85em;
  color: #555;
}
/* Sticky Nav */
.wiki-nav {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  padding: 0.7em 0;
}

/*  ===Header (non sticky) === */
.wiki-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.wiki-header h1 {
  font-family: 'IM Fell English SC', serif;
  font-size: 2em;
  margin-bottom: 0.3em;
}

.wiki-header p {
  font-size: 1em;
  color: #333;
  opacity: 0.8;
}
/* === Wiki Header with Background and Logo === */
.wiki-header-bg {
  background-image: url('https://call-of-gjallahorn.re/images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 1.2em 0 !important;
  text-align: center;
}


.wiki-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

.wiki-logo {
  height: 100px;
  width: auto;
  display: inline-block;
}

.wiki-title-block h1 {
  font-family: 'IM Fell English SC', serif;
  font-size: 2.2em;
  margin: 0;
  color: #111;
}

.wiki-title-block p {
  font-size: 1em;
  margin-top: 0.6em;
  color: #444;
  opacity: 0.9;
}



/* Menu */
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 2em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  font-family: 'IM Fell English SC', serif;
  font-size: 1em;
  text-decoration: none;
  color: black;
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  padding: 0.5em 1em;
  z-index: 1000;
  white-space: nowrap;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Multi-column class dropdown */
.dropdown-content.columns {
  display: none;
  columns: 2;
  min-width: 320px;
}
/* Hover bleu sur les liens de menu */
nav ul li > a:hover {
  color: #4ec3ff;
}

/* Hover bleu sur les liens des dropdowns */
nav ul ul li a:hover {
  color: #4ec3ff;
}

/* Ajoute un peu de padding à gauche pour l'espace visuel dans les dropdowns */
nav ul ul li {
  padding-left: 0.8em;
}

/* (Facultatif) Transition douce */
nav a {
  transition: color 0.2s ease;
  
  
  
}
/* --- Wiki Menu Style Inspired by Main Site --- */
nav#wiki-nav {
  background-color: #2b2b2b;
  color: #ffffff;
  font-family: 'IM Fell English SC', serif;
  font-size: 1.1em;
  letter-spacing: 0.02em;
  padding: 0.7em 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
/*Menu principal (niveau 1 sans dropdown) */
nav#wiki-nav > ul > li > a {
  font-size: 1.3em;

}



/* Blue underline bar (entire menu) */
nav#wiki-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background-color: #4ec3ff;
}

/* Menu list */
nav#wiki-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2em;
}

/* Menu item */
nav#wiki-nav li {
  position: relative;
}

nav#wiki-nav li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5em 0.7em;
  display: inline-block;
  transition: color 0.3s ease;
}

nav#wiki-nav li a:hover {
  color: #4ec3ff;
}

/* Triangle SOUS le menu principal actif SEULEMENT */
nav#wiki-nav > ul > li.current > a::after {
  content: '';
  position: absolute;
  bottom: -8px; /* Positionne le triangle SOUS le texte */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid #4ec3ff;
  z-index: 2;
}



/* Dropdown styles */
nav#wiki-nav li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  color: #000;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 0.7em 1em 0.7em 1.4em;
  z-index: 1000;
}

nav#wiki-nav li:hover .dropdown {
  display: block;
}

nav#wiki-nav li .dropdown a {
  color: #222;
  display: block;
  padding: 0.3em 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav#wiki-nav li .dropdown a:hover {
  color: #4ec3ff;
}

/* --- Multi-column dropdown for large menus (Classes) --- */
nav#wiki-nav li .dropdown.columns {
  display: none;                /* hide by default (keeps same hover behavior) */
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 360px;            /* plus large pour tenir 2 colonnes */
  max-width: 720px;
  padding: 0.6em 0.9em;
  background: #fff;
  color: #111;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  z-index: 1200;

  /* colonne */
  column-count: 2;             /* 2 colonnes */
  column-gap: 1.1rem;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  break-inside: avoid;

  /* scroll si trop long (évite coupure hors écran) */
  max-height: calc(80vh);      /* s'adapte à la hauteur de l'écran */
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* conserve le comportement hover (affiche le dropdown) */
nav#wiki-nav li:hover > .dropdown.columns,
nav#wiki-nav li:focus-within > .dropdown.columns {
  display: block;
}

/* style des liens à l'intérieur */
nav#wiki-nav li .dropdown.columns a {
  display: inline-block;      /* s'affichent en flux pour les colonnes */
  padding: 0.25em 0;
  margin: 0;
  width: 100%;                /* occupe la largeur de la colonne */
  color: #222;
  text-decoration: none;
}

/* hover des liens */
nav#wiki-nav li .dropdown.columns a:hover {
  color: #4ec3ff;
}

/* amélioration du scroll sur mobile / petites résolutions */
@media (max-width: 700px) {
  nav#wiki-nav li .dropdown.columns {
    left: 0;
    right: 0;
    min-width: auto;
    width: calc(100vw - 2rem);
    column-count: 1;           /* une colonne sur petit écran */
    max-height: calc(60vh);
  }
}



/* Remove default bullets and spacing */
nav#wiki-nav li .dropdown ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

/* --- CTA section --- */
.wiki-cta {
  background: linear-gradient(to bottom, #3d5ea6, #2b4378);
  padding: 3em 1em;
  font-family: 'Source Sans Pro', sans-serif;
}

.cta-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5em;
  color: white;
}

.cta-container h2 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 600;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 1em;
}

/* --- Download button --- */
.cta-button {
  padding: 0.6em 2em;
  background: white;
  color: #2b4378;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  font-family: 'Source Sans Pro', sans-serif;
  transition: background 0.2s ease;
}
.cta-button:hover {
  background: #e0e0e0;
}

/* --- Discord icon --- */
.cta-discord img {
  height: 42px;
  width: 42px;
  display: block;
  transition: transform 0.2s ease;
}
.cta-discord:hover img {
  transform: scale(1.1);
}

/* --- Footer copyright --- */
.wiki-footer {
  margin: 0;
  padding: 0.6em 0;
  background: #fdfdfd;
  text-align: center;
}

.wiki-footer p {
  font-family: Arial, sans-serif;
  font-size: 0.85em;
  color: #555;
  margin: 0;
  padding: 0;
}


/* --- Tile Image --- */

.tile {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  height: 260px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.tile a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Fond noir en dégradé au hover */
.tile-darken {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.tile:hover .tile-darken {
  opacity: 1;
}

/* Texte affiché au survol */
.tile-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.85));
  color: white;
  padding: 1em;
  font-size: 0.9em;
  font-family: 'Source Sans Pro', sans-serif;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.tile:hover .tile-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tile-overlay p {
  margin: 0.5em 0 0;
  line-height: 1.4em;
}

/* Badge Titre */
.tile-label-top {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2em 0.7em;
  background: linear-gradient(to top, #643e05, #83550e);
  border-radius: 10px;
  border: 2px solid #fab62d;
  box-shadow: 0 0 0 1px #16110d;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.95em;
  text-align: center;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
  text-transform: uppercase;
  font-family: 'IM Fell English SC', serif;
  letter-spacing: 0.02em;
}

.tile-label-top .big {
  display: inline-block;
  transform: scale(1.3);
  transform-origin: bottom;
  vertical-align: baseline;
  line-height: 1;
}

/* === TILE COLOR THEMES === */

/* === RED === */
.tile.red-theme .tile-label-top {
  background: linear-gradient(to top, #7e1e1e, #a83232);
  border: 2px solid #f38080;
  box-shadow: 0 0 0 1px #2c0000;
}

/* === BLUE === */
.tile.blue-theme .tile-label-top {
  background: linear-gradient(to top, #1c2a50, #28487e);
  border: 2px solid #7aa9f9;
  box-shadow: 0 0 0 1px #0d1a33;
}

/* === GREEN === */
.tile.green-theme .tile-label-top {
  background: linear-gradient(to top, #23502b, #3b8d49);
  border: 2px solid #95e1a3;
  box-shadow: 0 0 0 1px #0f2b19;
}

/* === PURPLE === */
.tile.purple-theme .tile-label-top {
  background: linear-gradient(to top, #4a2960, #7a4ba3);
  border: 2px solid #d0aaff;
  box-shadow: 0 0 0 1px #2b1740;
}

/* === ORANGE === */
.tile.orange-theme .tile-label-top {
  background: linear-gradient(to top, #7a3e05, #d88d1d);
  border: 2px solid #f7c576;
  box-shadow: 0 0 0 1px #4a2301;
}

/* === YELLOW === */
.tile.yellow-theme .tile-label-top {
  background: linear-gradient(to top, #8a7500, #d8c81d);
  border: 2px solid #fff799;
  box-shadow: 0 0 0 1px #4d4200;
}

/* === BROWN === */
.tile.brown-theme .tile-label-top {
  background: linear-gradient(to top, #4b2e14, #7b5630);
  border: 2px solid #d4aa7d;
  box-shadow: 0 0 0 1px #2a180c;
}
/* === TURQUOISE === */
.tile.turquoise-theme .tile-label-top {
  background: linear-gradient(to top, #05625f, #1dbeb6);
  border: 2px solid #8ff7f0;
  box-shadow: 0 0 0 1px #033d3b;
}


/* === Wiki Article Page Styles === */
body {
  font-family: 'Source Sans Pro', sans-serif;
  margin: 0;
  line-height: 1.6;
}

header.sticky-header {
  background: #0b0b0b;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header.sticky-header a {
  color: white;
  text-decoration: none;
  margin-left: 2em;
  font-weight: bold;
}

.hero {
  background: url('../images/100-free-to-play.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 3em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

main {
  max-width: 960px;
  margin: auto;
  padding: 2em 1em;
}

section {
  margin-bottom: 3em;
}

img.full-width {
  max-width: 100%;
  border-radius: 10px;
  margin: 1em 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

th {
  background: #eee;
}

.note {
  font-style: italic;
  color: #555;
}
/* === MENU ACTIF === */
#wiki-nav li.current > a {
  color: #4ec3ff; /* bleu pour la catégorie active */
}

#wiki-nav .dropdown a.active {
  color: #1e90ff;
  font-weight: bold;
  position: relative;
}

#wiki-nav .dropdown a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1e90ff;
}

/* --- PAGE ARTICLE: TITRE, SECTIONS --- */

/* TITRE PRINCIPAL DES ARTICLES*/
.category-section > h2 {
  font-family: 'IM Fell English SC', serif;
  font-size: 2.6em;         /* plus grand */
  font-weight: normal;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 0.1em;
  letter-spacing: 0.5px;
  line-height: 1.3;
}


/* Style pour la ligne secondaire .subhead */
.subhead {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.5em;
  color: #555;
  text-align: center;
  margin-bottom: 2em;
}


/* --- STAT LIST --- */
.stat-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 1em;
}
.stat-list li {
  margin: 0.8em 0;
}

/* --- BADGES / CHIPS --- */
.chip {
  display: inline-block;
  background-color: #ddd;
  color: #333;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 0.5em;
}
.chip-red { background-color: #c0392b; color: white; }
.chip-green { background-color: #27ae60; color: white; }
.chip-blue { background-color: #2980b9; color: white; }
.chip-white { background-color: #ecf0f1; color: #2c3e50; }

/* --- NOTE --- */
.note {
  display: block;
  font-size: 0.9em;
  color: #777;
  margin-top: 0.3em;
  font-style: italic;
}

/* --- CENTERED & MUTED --- */
.centered {
  text-align: center;
}
.muted {
  color: #666;
  font-size: 0.95em;
}

/* --- LEGEND COLOR BLOCK --- */
.legend {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  margin: 1em 0;
}

/* --- TABLE STYLES --- */
.sp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
}
.sp-table th, .sp-table td {
  border: 1px solid #ccc;
  padding: 0.6em 1em;
  text-align: left;
}
.sp-table th {
  background-color: #f0f0f0;
  color: #333;
}
.sp-table tr:nth-child(even) {
  background-color: #fafafa;
}

/* --- Menu automatique, page "fantome" --- */

#header-placeholder {
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
  min-height: 180px;
}

#header-placeholder.loaded {
  display: block;
  opacity: 1;
}

<style>
  body.js-loading {
    visibility: hidden;
  }
</style>

/* --- Discord Join Us banner --- */
.wiki-cta .cta-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wiki-cta .cta-discord {
  background: transparent;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.wiki-cta .cta-discord img {
  height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .wiki-cta .cta-discord img {
    height: 36px;
  }
}
/* Bloc du titre et bouton */
.section-header-wrapper {
  position: relative;
  text-align: center;
  margin-bottom: 1em;
}

/* Titre Classes (même style que Faction) */
.section-header-wrapper .wiki-title {
  font-family: 'IM Fell English SC', serif;
  font-size: 2.3em;
  font-weight: normal;
  text-align: center;
  margin: 0 auto 0.1em; /* ↓ espace réduit sous "Classes" */
  position: relative;
  display: inline-block;
}


/* Bouton Job Tree à droite du titre */
.full-job-tree-btn {
  position: absolute;
  right: 22%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'IM Fell English SC', serif;
  font-size: 1.5em; /* ↑ taille augmentée */
  color: #4ec3ff;
  border: 2px solid #4ec3ff; /* bord plus épais */
  border-radius: 8px;
  padding: 0.35em 1em;
  text-decoration: none;
  transition: 0.25s ease;
  line-height: 1.5;
}

.full-job-tree-btn:hover {
  background-color: #4ec3ff;
  color: #fff;
}

/* Responsive : bouton centré sous le titre */
@media (max-width: 900px) {
  .full-job-tree-btn {
    position: static;
    display: inline-block;
    margin-top: 0.5em;
    transform: none;
  }
}
.faction-card h4 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: 'IM Fell English SC', serif;
  font-size: 1.3em;
}
.faction-card p {
  text-align: center;
}

/* Espacement vertical entre sections du contenu */
main.container h3.subtitle {
  margin-top: 3em;
  margin-bottom: 1em;
}

main.container p,
main.container ul,
main.container table {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/* Ajoute aussi un peu d’espace entre les listes d’attributs */
.stat-list li {
  margin-bottom: 0.7em;
}

/* Optionnel : espace visuel entre les grands blocs */
hr {
  margin: 2.5em auto;
  width: 60%;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* =========================
   MOBILE ONLY: Classes = simple link
   ========================= */
@media (max-width: 700px) {

  /* Désactive totalement le dropdown Classes sur mobile */
  nav#wiki-nav li.menu-classes .dropdown {
    display: none !important;
  }

  /* Le lien Classes se comporte comme un lien normal */
  nav#wiki-nav li.menu-classes > a {
    cursor: pointer;
  }
}
