:root {
  --bg: #0f0b1f;
  --bg-2: #171233;
  --card: rgba(30, 22, 62, .78);
  --line: rgba(255, 255, 255, .09);
  --text: #f2eefc;
  --muted: #a9a1c7;
  --gold: #ffb627;
  --orange: #ff7a2f;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92%); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 11, 31, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span b { color: var(--gold); }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); padding: 8px 14px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; transition: .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 42px; height: 42px; border-radius: 10px; font-size: 1.3rem; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  color: #1a1030; background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 6px 24px rgba(255, 140, 40, .35);
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 10px 30px rgba(255, 140, 40, .5); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 6px 24px rgba(88, 101, 242, .4); }
.btn-discord:hover { box-shadow: 0 10px 30px rgba(88, 101, 242, .6); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }

/* Hero */
.hero {
  position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center;
  background: url('../assets/BuildLand_Fond.1.png') center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(15, 11, 31, .35), rgba(15, 11, 31, .55) 60%, var(--bg));
}
.hero-inner { padding: 60px 0 100px; }
.hero-logo { width: min(260px, 55vw); margin: 0 auto 10px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.1; text-shadow: 0 4px 20px rgba(0, 0, 0, .6); }
.hero h1 span { color: var(--gold); }
.hero p.lead { max-width: 640px; margin: 16px auto 28px; font-size: 1.2rem; color: #e6defa; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.ip-box {
  margin: 28px auto 0; display: inline-flex; align-items: center; gap: 14px;
  background: rgba(15, 11, 31, .75); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 10px 10px 20px; backdrop-filter: blur(8px);
}
.ip-box code { font-size: 1.15rem; font-weight: 700; color: var(--gold); font-family: Consolas, monospace; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #666; }
.dot.on { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.dot.off { background: #ef4444; }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 42px; }
.section-title h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-title h2 span { color: var(--gold); }
.section-title p { color: var(--muted); margin-top: 8px; }

.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 182, 39, .5); }
.card .icon { font-size: 2.2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.card p { color: var(--muted); }
.card img.thumb { border-radius: 10px; margin-bottom: 14px; }

.alt { background: var(--bg-2); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; text-align: center; }
.stat b { display: block; font-size: 2.2rem; color: var(--gold); }
.stat span { color: var(--muted); font-weight: 600; }

.cta {
  text-align: center; border-radius: 24px; padding: 56px 24px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(255, 122, 47, .3)), url('../assets/BuildLand_Fond.3.png') center / cover;
  border: 1px solid var(--line);
}
.cta h2 { font-size: 2rem; margin-bottom: 10px; }
.cta p { margin-bottom: 24px; color: #e6defa; }

/* Pages internes */
.page-head {
  padding: 70px 0 50px; text-align: center; position: relative; isolation: isolate;
  background: url('../assets/BuildLand_Baniere.png') center / cover;
}
.page-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(15, 11, 31, .6), var(--bg)); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head h1 span { color: var(--gold); }
.page-head p { color: #d9d0f2; margin-top: 8px; }

.prose { max-width: 800px; margin-inline: auto; }
.prose h2 { margin: 36px 0 12px; font-size: 1.5rem; }
.prose p, .prose li { color: #d9d3ee; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose code { background: rgba(255, 255, 255, .08); padding: 2px 8px; border-radius: 6px; color: var(--gold); font-family: Consolas, monospace; }

.steps { counter-reset: step; display: grid; gap: 18px; max-width: 800px; margin: 0 auto; }
.step { position: relative; padding-left: 74px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #1a1030;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin-bottom: 10px; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700;
  background: rgba(255, 182, 39, .15); color: var(--gold); border: 1px solid rgba(255, 182, 39, .35);
}
.badge.soon { background: rgba(139, 92, 246, .18); color: #c4b0ff; border-color: rgba(139, 92, 246, .4); }

.mod-list { list-style: none; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.mod-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .92rem;
}
.mod-list a { color: var(--text); word-break: break-all; }
.mod-list small { color: var(--muted); white-space: nowrap; }
.search {
  width: 100%; margin-bottom: 18px; padding: 12px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 1rem; font-family: inherit;
}
.search:focus { outline: 2px solid var(--gold); }

.timeline { max-width: 800px; margin: 0 auto; display: grid; gap: 18px; }
.timeline article time { color: var(--gold); font-weight: 700; font-size: .85rem; }
.timeline article h3 { margin: 4px 0 8px; }

.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { font-size: clamp(5rem, 18vw, 10rem); line-height: 1; background: linear-gradient(135deg, var(--gold), var(--orange), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer */
.site-footer { background: #0a0716; border-top: 1px solid var(--line); padding: 44px 0 24px; margin-top: auto; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr; }
.footer-grid h4 { margin-bottom: 10px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--gold); }
.footer-grid p { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.copy { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px); opacity: 0;
  background: #1f1842; border: 1px solid var(--gold); padding: 12px 22px; border-radius: 12px;
  font-weight: 600; transition: .3s; z-index: 100;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 12px 4%; border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .mod-list { grid-template-columns: 1fr; }
  .ip-box { flex-direction: column; padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
