/* Éditeur du wiki, page des contributeurs et propositions dans l'admin */
html body.aventure.aventure .ot.wk-page { align-content: start; }
.wk-bouton-page { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 2px solid var(--encre); border-radius: 9px; color: #1d2442; background: linear-gradient(180deg, #4cc6f7, #1a90f2); box-shadow: 0 3px 0 var(--encre); font: 400 .9rem/1.1 var(--bd); text-decoration: none; white-space: nowrap; }
.wk-bouton-page:hover { filter: brightness(1.06); color: var(--encre-texte); }
.wk-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.wk-entete h1 { overflow-wrap: anywhere; }
html body.aventure .ot .wk-retour { color: var(--encre-texte); font-weight: 600; }

.wk-editeur { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.wk-cadre { overflow: hidden; border: 1px solid var(--cadre-bord); border-radius: 20px; background: var(--champ); box-shadow: var(--cadre-ombre); }
.wk-onglets { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 10px 14px; background: #1d2138; }
.wk-onglets button { padding: 9px 18px; border: 0; border-radius: 10px 10px 0 0; color: #cfd6ee; background: transparent; font: 400 1rem/1 var(--bd); cursor: pointer; }
.wk-onglets button:hover { color: #fff; }
.wk-onglets button[aria-selected="true"] { color: var(--encre-texte); background: var(--champ); }
.wk-outils { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 2px solid var(--papier-2); }
.wk-outils button { min-width: 36px; min-height: 34px; padding: 3px 8px; border: 2px solid transparent; border-radius: 8px; color: var(--encre-texte); background: transparent; font: 600 .9rem/1 var(--body); cursor: pointer; }
.wk-outils button:hover, .wk-outils button:focus-visible { border-color: var(--encre); background: var(--papier-2); }
.wk-outils .wk-sep { width: 2px; margin: 4px 3px; background: var(--papier-2); }
html body.aventure .wk-saisie { display: block; box-sizing: border-box; width: 100%; min-height: 560px; padding: 16px 18px; border: 0; border-radius: 0; outline: 0; color: var(--encre-texte); background: var(--champ); font: 500 .96rem/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; resize: vertical; tab-size: 2; }
.wk-apercu { min-height: 560px; box-sizing: border-box; padding: 22px 26px; background: var(--papier); }
.wk-apercu[hidden], .wk-outils[hidden], .wk-saisie[hidden] { display: none; }
.wk-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 8px 14px; border-top: 2px solid var(--papier-2); font-size: .84rem; }
.wk-trop { color: var(--rouge-texte); font-weight: 700; }

.wk-cote { display: grid; gap: 18px; }
.wk-carte { padding: 16px; border: 1px solid var(--cadre-bord); border-radius: 20px; background: var(--papier); box-shadow: var(--cadre-ombre); }
html body.aventure .ot .wk-carte h2 { margin-bottom: 8px; font-size: 1.12rem; }
.wk-carte label { display: grid; gap: 6px; color: var(--encre-texte); font-weight: 600; }
html body.aventure .wk-carte input[type="text"] { box-sizing: border-box; width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--cadre-bord); border-radius: 10px; background: var(--champ); color: var(--encre-texte); font: inherit; font-weight: 400; }
.wk-envoi { width: 100%; margin-top: 12px; }
.wk-envoi:disabled { opacity: .6; cursor: wait; }
.wk-case { display: flex !important; align-items: flex-start; gap: 8px; margin-top: 10px; font-weight: 400 !important; }
.wk-aide { margin: 12px 0 0; font-size: .86rem; line-height: 1.45; }
html body.aventure .ot .wk-memo { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 0; font-size: .84rem; }
.wk-memo code { white-space: nowrap; }
.wk-memo dd { margin: 0; }
html body.aventure .ot .wk-mes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
html body.aventure .ot .wk-mes li { display: grid; gap: 3px; margin: 0; padding: 9px 10px; border: 1px solid var(--cadre-bord); border-radius: 11px; background: var(--champ); }
.wk-mes-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--encre-texte); font-weight: 700; overflow-wrap: anywhere; }
.ot-statut[data-statut="annule"] { color: #fff; background: #66738a; }

.wk-merci { text-align: center; }
.wk-merci-etoile { display: block; margin: 0 auto 10px; font-size: 3rem; line-height: 1; }

.wk-tete-page { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--cadre-bord); border-radius: 20px; color: #e8f4ff; background: linear-gradient(135deg, #1d2138 0%, #3a2a70 62%, #8c3f86 100%); box-shadow: var(--cadre-ombre); }
html body.aventure .ot .wk-tete-page h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); text-shadow: var(--cadre-ombre-douce); }
.wk-tete-page p { max-width: 640px; margin: 6px 0 0; line-height: 1.5; }
html body.aventure .ot .wk-tete-page .wk-bouton-page { margin-top: 16px; }
html body.aventure .ot .wk-contributeurs { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
html body.aventure .ot .wk-contributeurs > li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; margin: 0; padding: 16px; border: 1px solid var(--cadre-bord); border-radius: 20px; background: var(--papier); box-shadow: var(--cadre-ombre); }
.wk-contributeurs li.wk-premier { background: linear-gradient(180deg, #fff0b8, #ffd96b); }
.wk-tete { grid-row: span 2; width: 64px; height: 64px; border: 1px solid var(--cadre-bord); border-radius: 10px; background: #3b3f73; image-rendering: pixelated; box-sizing: border-box; }
.wk-pseudo { align-self: end; color: var(--encre-texte); font: 400 1.2rem/1.15 var(--bd); overflow-wrap: anywhere; }
.wk-nombre { font-size: .92rem; }
.wk-rang { position: absolute; top: 10px; right: 12px; color: var(--encre-texte); font: 400 1.1rem/1 var(--bd); }
.wk-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.wk-chips span { padding: 2px 8px; border: 1px solid rgb(29 36 66 / .35); border-radius: 999px; background: rgb(255 255 255 / .55); font-size: .78rem; }
.wk-depuis { grid-column: 1 / -1; font-size: .8rem; }
.wk-note-contrib { margin: 0; font-size: .9rem; }

.wk-filtres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wk-filtres button { min-height: 32px; padding: 3px 11px; border: 2px solid var(--encre); border-radius: 8px; background: var(--champ); color: var(--encre-texte); font: 400 .88rem/1.2 var(--bd); cursor: pointer; }
.wk-filtres button[aria-pressed="true"] { background: linear-gradient(180deg, #4cc6f7, #1a90f2); }
.wk-pastille { display: inline-block; min-width: 20px; margin-left: 8px; padding: 1px 7px; border-radius: 999px; color: #fff; background: #b23a14; font: 400 .85rem/1.4 var(--bd); text-align: center; vertical-align: middle; }
.wk-avis { margin: 0; padding: 8px 11px; border: 2px solid #e4572e; border-radius: 8px; background: var(--encart); color: #6f220b; font-weight: 600; font-size: .88rem; }
html body.aventure .ot .ad-demandes > li .wk-revue { border: 1px solid var(--cadre-bord); border-radius: 11px; overflow: hidden; }
.wk-revue .wk-onglets { padding: 7px 7px 11px; }
.wk-revue .wk-onglets button { padding: 6px 12px; font-size: .86rem; }
.wk-diff { max-height: 460px; overflow: auto; margin: 0; padding: 6px 0; background: var(--champ); font: 500 .8rem/1.5 ui-monospace, Consolas, monospace; }
.wk-diff div { padding: 0 10px 0 26px; text-indent: -16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wk-diff .plus { color: #114a2c; background: #d3f5df; }
.wk-diff .moins { color: #7a1f0a; background: #ffdcd0; }
.wk-diff .saut { color: #66738a; text-align: center; text-indent: 0; }
.wk-revue .wk-apercu { min-height: 0; max-height: 460px; overflow: auto; padding: 14px 18px; }
html body.aventure .wk-revue .wk-saisie { min-height: 320px; font-size: .84rem; }
html body.aventure .wk-refus { box-sizing: border-box; width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--cadre-bord); border-radius: 10px; background: var(--champ-survol); color: var(--encre-texte); font: inherit; }

@media (max-width: 960px) {
  .wk-editeur { grid-template-columns: minmax(0, 1fr); }
  html body.aventure .wk-saisie, .wk-apercu { min-height: 420px; }
}
.wiki-haut { margin-bottom: 6px; }
.wiki-haut .wiki-fil { margin: 0; }
.wiki-lien-contrib { margin: 14px 0 0; padding-top: 12px; border-top: 2px solid var(--papier-2); font-weight: 600; }
html body.aventure .wiki-lien-contrib a { color: var(--encre-texte); }
.wk-editeur[hidden], .wk-case[hidden], .wk-pastille[hidden] { display: none !important; }

/* Bouton « Proposer une modification » */
html body.aventure .wk-proposer { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; font-size: 1rem; line-height: 1.1; white-space: nowrap; }
.wk-proposer-icone { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #7fdcff; background: var(--encre); transition: transform .12s; }
.wk-proposer:hover .wk-proposer-icone { transform: rotate(-8deg); }
.wiki-haut { margin-bottom: 14px; }
@media (max-width: 620px) {
  html body.aventure .wk-proposer { justify-content: center; box-sizing: border-box; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-proposer:hover .wk-proposer-icone { transition: none; transform: none; }
}
.wk-chips a { padding: 2px 8px; border: 1px solid rgb(29 36 66 / .35); border-radius: 999px; background: rgb(255 255 255 / .55); font-size: .78rem; text-decoration: underline; text-underline-offset: 2px; }
.wk-chips a:hover { filter: brightness(1.15); }
