/* ============================================================================
   Wiki public (Views/Wiki : Index et Page, layout _LayoutHome) : classes préfixées « wkp- ».
   Même langage que l'Histoire (home.css) : panneau sombre, filets cyan, titres gravés (Cinzel), texte de lecture large.
   Le contenu des pages (.wkp-texte) vient de l'éditeur Quill : h2, h3, p, listes, citations, code, liens et images.
   ============================================================================ */
.wkp { background: var(--h-panel); border: 1px solid var(--h-line); padding: 26px clamp(14px, 2.4vw, 34px) 34px; }
.wkp-kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--h-accent-solid); text-shadow: 0 0 8px var(--h-glow); }
.wkp-kicker i { width: 34px; height: 1px; background: var(--h-accent-solid); box-shadow: 0 0 6px var(--h-accent); display: inline-block; }
.home-body .wkp h1 { margin: 10px 0 0; font-size: clamp(26px, 4vw, 44px); line-height: 1.1; letter-spacing: .05em; color: #fff; text-wrap: balance; }

/* ---------- Sommaire ---------- */
.wkp-tete { padding-bottom: 22px; border-bottom: 1px solid var(--h-line); }
.wkp-intro { margin: 14px 0 0; max-width: 68ch; font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--h-text); }
.wkp-vide { margin: 26px 0 0; color: var(--h-muted); font-size: 16px; }
.wkp-espace { margin-top: 30px; }
.home-body .wkp-espace h2 { display: flex; align-items: baseline; gap: 14px; font-size: 20px; color: #fff; }
.wkp-espace h2 small { font-family: var(--font-corps, inherit); font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--h-muted); text-shadow: none; }
.wkp-rubriques { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 6px; }
.wkp-rubrique { padding: 16px 18px; border: 1px solid var(--h-line); border-radius: .25rem; background: linear-gradient(160deg, rgba(14, 208, 255, .08), rgba(9, 13, 17, .5) 60%); }
.home-body .wkp-rubrique h3 { font-size: 14px; letter-spacing: .14em; color: var(--h-accent-solid); text-shadow: 0 0 8px var(--h-glow); margin-bottom: 10px; }
.wkp-rubrique ul { list-style: none !important; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.home-body .wkp-rubrique a { color: #fff; text-decoration: none; text-shadow: none; font-size: 15px; border-bottom: 1px solid transparent; transition: border-color .15s; }
.home-body .wkp-rubrique a:hover { color: #fff !important; border-bottom-color: var(--h-accent); }

/* ---------- Page ---------- */
.wkp-fil { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--h-muted); }
.home-body .wkp-fil a { color: var(--h-accent-solid); text-decoration: none; text-shadow: none; }
.home-body .wkp-fil a:hover { color: #fff !important; }
.wkp-corps { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; margin-top: 22px; align-items: start; }
.wkp-nav { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.wkp-nav-rub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--h-accent-solid); text-shadow: 0 0 5px var(--h-glow); margin: 18px 0 6px; }
.wkp-nav-rub:first-child { margin-top: 0; }
.wkp-nav ul { list-style: none !important; margin: 0; padding: 0; border-left: 1px solid var(--h-line); }
.home-body .wkp-nav a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--h-text); text-decoration: none; text-shadow: none; font-size: 14px; line-height: 1.35; }
.home-body .wkp-nav a:hover { color: #fff !important; border-left-color: var(--h-line); }
.home-body .wkp-nav a.cur { color: #fff; border-left-color: var(--h-accent-solid); text-shadow: 0 0 6px var(--h-glow); }
.wkp-art { min-width: 0; }
.wkp-art .hist-sep { margin-top: 22px; }

/* Contenu de l'éditeur */
.wkp-texte { margin-top: 26px; font-weight: 300; font-size: 17px; line-height: 1.8; color: var(--h-text); }
.wkp-texte p { margin: 0 0 1.1em; text-wrap: pretty; hyphens: auto; }
.home-body .wkp-texte h2 { margin: 1.6em 0 .6em; font-size: 22px; color: #fff; }
.home-body .wkp-texte h3 { margin: 1.4em 0 .5em; font-size: 17px; color: var(--h-accent-solid); text-shadow: 0 0 8px var(--h-glow); }
.wkp-texte > :first-child { margin-top: 0; }
.wkp-texte ul, .wkp-texte ol { margin: 0 0 1.1em; padding-left: 1.4em; }
/* style.css retire les puces de tous les <ul> (list-style-type: none !important) : rétablies pour le contenu du wiki */
.wkp-texte ul { list-style-type: disc !important; }
.wkp-texte ul ul { list-style-type: circle !important; }
.wkp-texte ol { list-style-type: decimal !important; }
.wkp-texte li { margin-bottom: .35em; padding-left: .2em; }
.wkp-texte li::marker { color: var(--h-accent-solid); }
.wkp-texte strong { font-weight: 600; color: #fff; }
.home-body .wkp-texte a { color: var(--h-accent-solid); text-decoration: underline; text-decoration-color: rgba(14, 208, 255, .4); text-underline-offset: 3px; text-shadow: none; }
.home-body .wkp-texte a:hover { color: #fff !important; text-decoration-color: var(--h-accent-solid); }
.wkp-texte blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--h-accent); box-shadow: -4px 0 10px -6px var(--h-accent); color: #fff; font-weight: 400; }
.wkp-texte pre { margin: 0 0 1.1em; padding: 12px 16px; background: rgba(0, 0, 0, .45); border: 1px solid var(--h-line); border-radius: .25rem; color: #aafffc; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
/* Tableaux, dans l'esprit des tableaux du jeu (stn-table) : rangées séparées en « cartes », en-tête gravé, première colonne en
   libellé avec un filet cyan. La première rangée sert d'en-tête (l'éditeur ne produit que des cellules td). */
.wkp-texte table { width: 100%; margin: .4em 0 1.6em; border-collapse: separate; border-spacing: 0 4px; font-size: 15px; line-height: 1.45; font-weight: 400; font-variant-numeric: tabular-nums; }
.wkp-texte td, .wkp-texte th { padding: 10px 16px; vertical-align: middle; text-align: left; background: rgba(255, 255, 255, .035); border: 0; transition: background .15s; }
.wkp-texte td:first-child, .wkp-texte th:first-child { border-radius: 4px 0 0 4px; }
.wkp-texte td:last-child, .wkp-texte th:last-child { border-radius: 0 4px 4px 0; }
/* En-tête */
.wkp-texte tr:first-child td, .wkp-texte th { padding-top: 9px; padding-bottom: 9px; background: linear-gradient(to top, rgba(14, 207, 255, .16), rgba(14, 207, 255, .04)), #0b2a36; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #aafffc; box-shadow: inset 0 -1px 0 rgba(14, 208, 255, .55); }
.wkp-texte tr:first-child td strong, .wkp-texte th strong { color: inherit; font-weight: inherit; }
/* Corps : libellé en première colonne, survol de la rangée */
.wkp-texte tr:not(:first-child) td:first-child { color: #fff; font-weight: 500; box-shadow: inset 2px 0 0 rgba(14, 208, 255, .7); }
.wkp-texte tr:not(:first-child):hover td { background: rgba(14, 208, 255, .08); }
.wkp-texte img { display: block; max-width: 100%; height: auto; margin: 1.2em 0; border: 1px solid var(--h-line); border-radius: .25rem; }
.wkp-maj { margin: 30px 0 0; font-size: 12px; letter-spacing: .08em; color: var(--h-muted); }

@media (max-width: 860px) {
    .wkp-corps { grid-template-columns: 1fr; gap: 24px; }
    .wkp-nav { position: static; max-height: none; order: 2; }
    .wkp-texte { font-size: 16px; }
    .wkp-texte table { display: block; overflow-x: auto; font-size: 14px; }
}
