/* Solar : style "Dofus d'epoque" (bois sombre, parchemin, or, lave). Police Cinzel (OFL, fonts/OFL.txt). */
@font-face { font-family: 'Cinzel'; src: url('../fonts/Cinzel.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }

:root {
  --bois: #1c120b; --bois2: #2a1a10; --bois3: #3a2617; --or: #f2c55a; --or2: #c98a2a; --orfonce: #7a4a14;
  --parchemin: #f1e3bf; --parchemin2: #e6d2a3; --encre: #3b2414; --encre2: #6b4a2c; --lave: #e8641c; --lave2: #b8360c;
  --vert: #4f8a2a; --rouge: #a8321e; --ombre: 0 6px 18px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
html { background: var(--bois); }
body {
  margin: 0; min-height: 100vh; color: var(--encre); font: 16px/1.55 Georgia, 'Times New Roman', serif;
  background: linear-gradient(180deg, rgba(28, 18, 11, .15) 0, rgba(28, 18, 11, .85) 520px, var(--bois) 900px),
              url('../img/fond.jpg') center top / cover no-repeat fixed, var(--bois);
}
a { color: var(--lave2); }
a:hover { color: var(--lave); }
h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 800; color: var(--orfonce); margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
img { max-width: 100%; }

/* header */
.top { max-width: 1180px; margin: 0 auto; padding: 18px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top .logo img { height: 92px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.status-pill { font-family: 'Cinzel', serif; font-weight: 700; color: var(--parchemin); background: rgba(20, 12, 7, .75); border: 1px solid var(--or2); border-radius: 30px; padding: 6px 14px; white-space: nowrap; }
.status-pill .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: #888; vertical-align: 1px; }
.status-pill .dot.on { background: #6bd84a; box-shadow: 0 0 8px #6bd84a; }
.status-pill .dot.off { background: #d8483a; }
.langs { display: flex; gap: 6px; }
.langs a { font: 700 .8rem 'Cinzel', serif; color: var(--parchemin2); text-decoration: none; padding: 3px 7px; border: 1px solid transparent; border-radius: 4px; }
.langs a.on, .langs a:hover { border-color: var(--or2); color: var(--or); }

nav.main { max-width: 1180px; margin: 14px auto 0; padding: 0 16px; }
nav.main ul { list-style: none; margin: 0; padding: 6px; display: flex; flex-wrap: wrap; gap: 4px;
  background: linear-gradient(180deg, var(--bois3), var(--bois2)); border: 2px solid var(--orfonce); border-radius: 10px; box-shadow: var(--ombre); }
nav.main li a, nav.main li button { display: block; font: 700 .95rem 'Cinzel', serif; color: var(--parchemin); text-decoration: none; padding: 8px 14px; border-radius: 6px; background: none; border: 0; cursor: pointer; }
nav.main li a:hover, nav.main li a.on, nav.main li button:hover { background: rgba(242, 197, 90, .14); color: var(--or); }
nav.main li.sep { flex: 1; }
nav.main form { margin: 0; }

/* content */
main { max-width: 1180px; margin: 22px auto 40px; padding: 0 16px; }
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.panel { background: linear-gradient(180deg, var(--parchemin), var(--parchemin2)); border: 2px solid var(--orfonce); border-radius: 10px;
  box-shadow: var(--ombre), inset 0 0 40px rgba(122, 74, 20, .18); padding: 22px 24px; margin-bottom: 20px; }
.panel.dark { background: linear-gradient(180deg, var(--bois3), var(--bois2)); color: var(--parchemin); }
.panel.dark h2, .panel.dark h3 { color: var(--or); }
.muted { color: var(--encre2); font-size: .92rem; }
.panel.dark .muted { color: var(--parchemin2); opacity: .8; }
.big { font: 800 2.2rem 'Cinzel', serif; color: var(--or); line-height: 1; }

/* forms */
label { display: block; font-weight: 700; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=email], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--encre); background: #fffaf0; border: 1px solid var(--encre2); border-radius: 6px; padding: 9px 11px; }
textarea { min-height: 260px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--or2); border-color: var(--or2); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.check input { width: auto; }
.btn { display: inline-block; font: 800 1rem 'Cinzel', serif; letter-spacing: .03em; color: #fff7e0; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, var(--lave), var(--lave2)); border: 1px solid #6e1e05; border-radius: 8px; padding: 10px 20px;
  box-shadow: 0 3px 0 #6e1e05, 0 6px 12px rgba(0, 0, 0, .3); margin-top: 14px; }
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn.small { font-size: .82rem; padding: 6px 12px; margin-top: 0; box-shadow: 0 2px 0 #6e1e05; }
.btn.gris { background: linear-gradient(180deg, #8a7a66, #5f5242); border-color: #3c3328; box-shadow: 0 2px 0 #3c3328; }
.hp { position: absolute; left: -5000px; }
.errors { background: #f8d9cf; border: 1px solid var(--rouge); color: #6a1a0a; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; }
.errors ul { margin: 0; padding-left: 18px; }
.flash { border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; box-shadow: var(--ombre); }
.flash.ok { background: #e2f2cf; border: 2px solid var(--vert); color: #26450f; }
.flash.error { background: #f8d9cf; border: 2px solid var(--rouge); color: #6a1a0a; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { font: 700 .85rem 'Cinzel', serif; text-align: left; color: var(--orfonce); border-bottom: 2px solid var(--orfonce); padding: 8px 6px; }
td { padding: 8px 6px; border-bottom: 1px solid rgba(107, 74, 44, .25); vertical-align: middle; }
tr:hover td { background: rgba(242, 197, 90, .12); }
.rank { font: 800 1rem 'Cinzel', serif; color: var(--orfonce); width: 48px; }
.rank.r1 { color: #c9961a; } .rank.r2 { color: #8c8c8c; } .rank.r3 { color: #a0612a; }
.badge { display: inline-block; min-width: 30px; text-align: center; font: 700 .72rem Georgia, serif; color: #fff; border-radius: 4px; padding: 2px 5px; margin-right: 6px; }
.tag { display: inline-block; font: 700 .72rem 'Cinzel', serif; color: #fff7e0; background: var(--orfonce); border-radius: 4px; padding: 2px 7px; }
.tag.maj { background: var(--lave2); } .tag.event { background: var(--vert); }
/* 29/10 : a quest fight without heroic death (Encyclopedia::nonMortalBadge) */
.badge-nonmortal { display: inline-block; font: 700 .72rem Georgia, serif; letter-spacing: 0; color: #fff; background: var(--vert); border-radius: 4px; padding: 2px 7px; vertical-align: middle; white-space: nowrap; }
.nonmortal-note { margin: .4em 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { font: 700 .85rem 'Cinzel', serif; text-decoration: none; color: var(--encre); background: rgba(122, 74, 20, .12); border: 1px solid rgba(122, 74, 20, .35); border-radius: 6px; padding: 6px 11px; }
.tabs a.on { background: var(--orfonce); color: var(--parchemin); }
.table-wrap { overflow-x: auto; }

/* shop */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.item { background: #fbf2da; border: 1px solid rgba(122, 74, 20, .45); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.item .name { font-weight: 700; }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.item-icon { width: 60px; height: 60px; border-radius: 8px; background: radial-gradient(circle, #fff7e0 0, #e9d6a8 70%); border: 1px solid rgba(122, 74, 20, .35); }
.item-icon.empty { display: inline-block; }
.item-stats { list-style: none; margin: 0; padding: 6px 8px; font-size: .82rem; line-height: 1.35; color: #24410f; background: rgba(79, 138, 42, .08); border-radius: 6px; }
.item .price { font: 800 1.05rem 'Cinzel', serif; color: var(--lave2); }
.item form { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.item form select { flex: 1 1 100%; }
.item form input[type=number] { width: 70px; }
.promo { color: var(--vert); font-weight: 700; font-size: .8rem; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pager a, .pager span { padding: 5px 10px; border-radius: 5px; border: 1px solid rgba(122, 74, 20, .4); text-decoration: none; color: var(--encre); }
.pager .on { background: var(--orfonce); color: var(--parchemin); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.filters input, .filters select { width: auto; flex: 1 1 200px; }
.filters .btn { margin-top: 0; }

/* news */
.news-item { border-bottom: 1px dashed rgba(122, 74, 20, .4); padding: 0 0 14px; margin-bottom: 14px; }
.news-item:last-child { border: 0; margin: 0; }
.news-body { white-space: pre-line; }
.events li { margin-bottom: 6px; }

/* game accounts */
.game-account { border: 1px solid rgba(122, 74, 20, .4); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; background: rgba(255, 250, 235, .5); }
.ga-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
details { margin-top: 8px; }
details summary { cursor: pointer; font-weight: 700; color: var(--lave2); }
details form { max-width: 420px; }

/* guides */
.guide-list { columns: 2 260px; padding-left: 20px; }
.guide-list li { margin-bottom: 6px; }
.guide-body h2 { margin-top: 1.2em; }
.guide-body h3 { margin-top: 1em; }
.guide-body code { background: rgba(122, 74, 20, .14); border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.guide-body blockquote { margin: 1em 0; padding: 8px 14px; border-left: 4px solid var(--lave); background: rgba(232, 100, 28, .08); }
.guide-body table { margin: 1em 0; }

footer { text-align: center; color: var(--parchemin2); font-size: .85rem; padding: 20px 16px 40px; opacity: .8; }
footer a { color: var(--or); }

@media (max-width: 640px) {
  .top .logo img { height: 64px; }
  nav.main li a, nav.main li button { padding: 7px 9px; font-size: .85rem; }
  .panel { padding: 16px; }
}
