/* ============================================================
   DimentionalCraft — thème du site (mêmes couleurs que le pack de textures)
   ============================================================ */
/* Polices hébergées sur le site (pas de Google Fonts : plus rapide et conforme RGPD) */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jersey 10"; font-weight: 400; font-display: swap; src: url("/fonts/jersey-10-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #0c0619;
  --bg-2: #140a2a;
  --panel: rgba(27, 13, 53, .78);
  --panel-solid: #1b0d35;
  --edge: #7b4dff;
  --magenta: #e04cff;
  --cyan: #35e0ff;
  --gold: #facc15;
  --text: #ece6ff;
  --muted: #b9a7f5;
  --dim: #8676b8;
  --radius: 14px;
  --grad: linear-gradient(90deg, var(--magenta), var(--cyan));
  --font-title: "Jersey 10", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #0c0619; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(224, 76, 255, .18), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(53, 224, 255, .12), transparent 60%),
              linear-gradient(180deg, #1b0d35 0%, var(--bg) 45%, #07030f 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- en-tête */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(12, 6, 25, .72);
  border-bottom: 1px solid rgba(123, 77, 255, .35);
}
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: .7; }
.nav .container { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-title); font-size: 1.7rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 10px rgba(123, 77, 255, .6)); }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  color: var(--muted); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(123, 77, 255, .22); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--edge); color: var(--text); border-radius: 10px; padding: 6px 10px; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px; background: rgba(12, 6, 25, .96); border-bottom: 1px solid var(--edge); }
  .nav-links.open { display: flex; }
}

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; cursor: pointer; color: #fff;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  box-shadow: 0 8px 30px rgba(168, 85, 247, .35);
  transition: transform .15s, box-shadow .2s, filter .2s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(53, 224, 255, .35); text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: rgba(123, 77, 255, .12); border-color: rgba(123, 77, 255, .6); box-shadow: none; }
.btn.gold { background: linear-gradient(90deg, #f59e0b, #facc15); color: #1b0d35; box-shadow: 0 8px 30px rgba(250, 204, 21, .3); }

/* ---------------------------------------------------------------- panneaux */
.panel {
  position: relative; background: var(--panel); border: 1px solid rgba(123, 77, 255, .45);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.panel::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; background: var(--grad); border-radius: 2px; opacity: .8; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .02em; }
h3 { font-size: 1.6rem; }
h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.1rem; }
.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------------------------------------------------------------- accueil */
.hero { padding: 70px 0 40px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.5vw, 5.2rem); margin-bottom: .25em; }
.hero .logo-wrap { position: relative; }
.hero .logo-wrap img { width: min(420px, 100%); margin-inline: auto; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 60px rgba(123, 77, 255, .55)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; text-align: center; } .hero .actions { justify-content: center; } .ip-box { margin-inline: auto; } }

.ip-box {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%;
  margin: 28px 0 18px; padding: 8px 8px 8px 18px; border-radius: 14px;
  background: rgba(12, 6, 25, .8); border: 1px solid var(--edge);
  box-shadow: 0 0 0 4px rgba(123, 77, 255, .12);
}
.ip-box code { font-family: var(--font-title); font-size: clamp(1.3rem, 3.4vw, 1.8rem); color: #fff; letter-spacing: .02em; }
.ip-box button { border: none; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; background: var(--grad); color: #140a2a; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.status { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; box-shadow: 0 0 0 4px rgba(107, 114, 128, .2); }
.status.online .dot { background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2), 0 0 14px #34d399; }
.status.offline .dot { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .2); }

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.feature { transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--cyan); }
.feature .icon { font-size: 1.8rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 14px; background: linear-gradient(135deg, rgba(224, 76, 255, .3), rgba(53, 224, 255, .25)); border: 1px solid rgba(123, 77, 255, .6); }
.feature h3 { font-size: 1.7rem; }
.feature p { color: var(--muted); margin: 0; }

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step::before { counter-increment: step; content: counter(step); flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-title); font-size: 1.5rem; background: var(--grad); color: #140a2a; }
.step p { margin: 0; color: var(--muted); }
.step strong { color: var(--text); }

/* ---------------------------------------------------------------- vote */
.vote-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vote-card .num { font-family: var(--font-title); font-size: 4rem; line-height: 1; }
.vote-card p { color: var(--muted); margin: 0; }
.vote-card .soon { font-size: .85rem; color: var(--dim); }
.progress { height: 18px; border-radius: 999px; background: rgba(12, 6, 25, .8); border: 1px solid var(--edge); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1s ease; }

/* ---------------------------------------------------------------- wiki */
.wiki { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 40px 0 70px; }
@media (max-width: 860px) { .wiki { grid-template-columns: 1fr; } }
.wiki-side { position: sticky; top: 90px; align-self: start; padding: 18px; }
.wiki-side input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(12, 6, 25, .8); color: var(--text); font-size: .95rem; margin-bottom: 14px; }
.wiki-side h4 { font-family: var(--font-title); font-weight: 400; color: var(--muted); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 6px; }
.wiki-side a { display: block; color: var(--text); padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
.wiki-side a:hover, .wiki-side a.active { background: rgba(123, 77, 255, .25); text-decoration: none; }
.wiki-content { min-height: 400px; }
.wiki-content h1 { font-size: 2.6rem; }
.wiki-content h2 { font-size: 1.9rem; margin-top: 1.4em; }
.wiki-content p, .wiki-content li { color: #d9cff5; }
.wiki-content code { background: rgba(123, 77, 255, .2); padding: 2px 6px; border-radius: 6px; }
.wiki-content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.wiki-content th, .wiki-content td { border: 1px solid rgba(123, 77, 255, .4); padding: 8px 12px; text-align: left; }
.wiki-content th { background: rgba(123, 77, 255, .2); }
.wiki-content blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--cyan); background: rgba(53, 224, 255, .07); border-radius: 0 10px 10px 0; }

/* ---------------------------------------------------------------- pied de page */
.footer { border-top: 1px solid rgba(123, 77, 255, .35); padding: 30px 0; color: var(--dim); font-size: .9rem; }
.footer .container { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); opacity: 0; visibility: hidden; background: var(--panel-solid); border: 1px solid var(--cyan); padding: 12px 20px; border-radius: 12px; transition: transform .3s; z-index: 50; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.page-head { padding: 60px 0 10px; text-align: center; }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4rem); }

/* ---------------------------------------------------------------- boutique */
.shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 30px 0 40px; }
.pack { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .2s, border-color .2s; }
.pack:hover { transform: translateY(-5px); border-color: var(--cyan); }
.pack.popular { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(250, 204, 21, .15), 0 14px 50px rgba(250, 204, 21, .15); }
.pack .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, #f59e0b, #facc15); color: #1b0d35; font-weight: 700; font-size: .8rem; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.pack .gem { font-size: 2.6rem; filter: drop-shadow(0 0 12px rgba(53, 224, 255, .6)); }
.pack .amount { font-family: var(--font-title); font-size: 2.6rem; line-height: 1; }
.pack .bonus { color: #34d399; font-weight: 700; font-size: .95rem; min-height: 1.5em; }
.pack .price { font-size: 1.4rem; font-weight: 700; }
.pack .btn { width: 100%; }
.note { color: var(--dim); font-size: .9rem; text-align: center; }
