  :root{
    --bg: #f6f8fb;
    --surface: #eef2f7;
    --surface-2: #ffffff;
    --border: rgba(15,23,42,0.1);
    --text: #0b1220;
    --text-dim: #5b6472;
    --accent-a: #1c5fd9;
    --accent-b: #5ac8ff;
    --radius: 14px;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin:0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1,h2,h3,.display{
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    margin: 0;
  }
  a{ color: inherit; }
  img{ max-width: 100%; }
  .wrap{
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
  }
  .eyebrow{
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 600;
  }

  /* ---------- HERO ---------- */
  .hero{
    position: relative;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(4,5,7,0.25) 0%, rgba(4,5,7,0.55) 45%, #0b0d12 96%),
      url('background.jpg') center 32% / cover no-repeat;
    padding-bottom: 30px;
  }
  .hero-topbar{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 22px 28px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .hero-address-wrap{
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hero-address{
    display:flex;
    align-items:center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  }
  .hero-address .globe{ font-size: 1rem; }
  .hero-address-bedrock{
    display:inline-flex;
    align-items:center;
    padding: 3px 10px;
    margin-left: 26px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
  }
  .hero-discord-btn{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: border-color .2s ease, background .2s ease;
  }
  .hero-discord-btn:hover{ border-color: var(--accent-b); background: rgba(90,200,255,0.12); }

  .hero-center{
    display:flex;
    flex-direction: column;
    align-items:center;
    text-align:center;
    gap: 18px;
    padding: 26px 24px 8px;
  }
  .hero-logo img{
    width: min(250px, 50vw);
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.55));
  }
  .hero-tagline{
    max-width: 520px;
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  }

  /* ---------- CATEGORY NAV ---------- */
  .catnav{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    border-bottom: 1px solid var(--border);
  }
  .catnav .wrap{
    display:flex;
    justify-content:center;
    gap: 40px;
    padding: 18px 24px;
    flex-wrap: wrap;
  }
  .catnav a{
    text-decoration:none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.94rem;
    letter-spacing: 0.01em;
    transition: color .2s ease;
  }
  .catnav a:hover{ color: var(--accent-a); }
  .catnav a.is-discord{ color: var(--accent-a); font-weight: 700; }
  .catnav a.is-current{ color: var(--accent-a); }

  /* ---------- BUTTONS ---------- */
  .btn{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration:none;
    border: 1px solid var(--border);
    cursor:pointer;
    transition: transform .15s ease, border-color .2s ease, background .2s ease;
    font-family: 'Inter', sans-serif;
  }
  .btn:hover{ transform: translateY(-1px); }
  .btn:focus-visible{ outline: 2px solid var(--accent-b); outline-offset: 2px; }
  .btn-primary{
    background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
    color: #04070d;
    border-color: transparent;
    font-weight: 700;
  }
  .btn-primary:hover{ filter: brightness(1.08); }
  .btn-ghost{
    background: transparent;
    color: var(--text);
  }
  .btn-ghost:hover{ border-color: var(--accent-b); }

  /* ---------- SECTIONS ---------- */
  section{ padding: 76px 0; }
  section.alt{ background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .section-head{
    margin-bottom: 40px;
    text-align:center;
  }
  .section-head h2{
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    margin-top: 8px;
  }
  .section-head p{
    color: var(--text-dim);
    max-width: 540px;
    margin: 12px auto 0;
  }

  /* ---------- IP STONE ---------- */
  .stone{
    --mx: 50%;
    --my: 40%;
    width: 100%;
    max-width: 620px;
    margin: 0 auto 44px;
    border-radius: var(--radius);
    background:
      radial-gradient(600px circle at var(--mx) var(--my), rgba(28,95,217,0.1), transparent 45%),
      var(--surface-2);
    border: 1px solid var(--border);
    padding: 28px 32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    transition: border-color .3s ease;
  }
  .stone:hover{ border-color: rgba(28,95,217,0.35); }
  .ip-block{ text-align:left; }
  .ip-block .label{
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-dim);
    margin-bottom: 6px;
  }
  .ip-block .ip{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--accent-a), #0a3fa8 55%, var(--accent-a));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .ip-bedrock{
    display:flex;
    align-items:center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
  }
  .new-badge{
    display:inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent-a), var(--accent-b));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .copy-btn.copied{
    background: var(--accent-b);
    color: #04070d;
    border-color: var(--accent-b);
  }

  /* ---------- CARDS ---------- */
  .cards{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .cards.cols-2{ grid-template-columns: repeat(2, 1fr); }
  .cards.cols-4{ grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 860px){ .cards, .cards.cols-2, .cards.cols-4{ grid-template-columns: 1fr; } }
  .card{
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    display:flex;
    flex-direction:column;
    gap: 10px;
  }
  .card .icon{
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    display:flex; align-items:center; justify-content:center;
    font-size: 1rem;
    color: #04070d;
    font-weight: 700;
  }
  .card h3{ font-size: 1.05rem; }
  .card p{ color: var(--text-dim); font-size: 0.92rem; margin:0; }
  .card a.card-link{
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-a);
    text-decoration: none;
  }
  .card a.card-link:hover{ text-decoration: underline; }

  /* ---------- WIKI ---------- */
  .wiki-value{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
  }

  /* ---------- REGLEMENT ACCORDION ---------- */
  .rules-intro{
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    color: var(--text-dim);
    font-size: 0.94rem;
    margin-bottom: 28px;
  }
  .accordion{ display:flex; flex-direction: column; gap: 10px; }
  details{
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  details[open]{ border-color: rgba(90,200,255,0.35); }
  summary{
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.02rem;
  }
  summary::-webkit-details-marker{ display:none; }
  summary .num{
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.85rem;
    margin-right: 12px;
  }
  summary .chev{
    transition: transform .25s ease;
    color: var(--accent-a);
    flex-shrink: 0;
  }
  details[open] summary .chev{ transform: rotate(45deg); }
  .rule-body{ padding: 0 24px 26px; color: var(--text-dim); font-size: 0.94rem; }
  .rule-body h4{
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 18px 0 8px;
  }
  .rule-body h4:first-child{ margin-top: 0; }
  .rule-body ul{ margin: 6px 0 0; padding-left: 20px; }
  .rule-body li{ margin-bottom: 4px; }
  .rule-body p{ margin: 6px 0; }
  .rule-body strong{ color: var(--text); }
  .rule-body code{
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent-a);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85em;
    padding: 1px 6px;
    border-radius: 6px;
  }
  .rule-body .cmd-pill{
    display: inline-block;
    background: rgba(28,95,217,0.09);
    color: var(--accent-a);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85em;
    padding: 2px 10px;
    border-radius: 999px;
  }
  .rule-body table td .cmd-pill{ margin-right: 2px; }
  .tag-list{ display:flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
  .rule-body table{
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
    font-size: 0.88rem;
  }
  .rule-body th, .rule-body td{
    border: 1px solid var(--border);
    padding: 8px 10px;
    text-align: center;
  }
  .rule-body th:first-child, .rule-body td:first-child{ text-align: left; color: var(--text); }
  .rule-body th{
    background: var(--surface);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text);
  }
  .rule-body td.yes{ color: #1a9e5c; font-weight: 700; }
  .rule-body td.no{ color: #d63a3a; font-weight: 700; }
  .grade-badge{
    display:inline-block;
    padding: 3px 12px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
  }
  .staff-card{ align-items: center; text-align: center; gap: 12px; }
  .staff-avatar{
    width: 64px; height: 64px;
    border-radius: 12px;
    image-rendering: pixelated;
    border: 1px solid var(--border);
  }
  .staff-grade-guide{ background: #6b7280; }
  .staff-grade-modotest{ background: #4a90c4; }
  .staff-grade-modo{ background: #1c6fb3; }
  .staff-grade-hautmodo{ background: #1c5fd9; }
  .staff-grade-responsablemodo{ background: #5a3fd6; }
  .staff-grade-developpeur{ background: #0f9e8e; }
  .staff-grade-administrateur{ background: #b3222c; }
  .staff-grade-fondateur{ background: linear-gradient(120deg, #e0a72e, #f5d76e); color: #1a1400; }
  .staff-grade-default{ background: var(--text-dim); }
  .grade-icon{
    height: 22px;
    width: auto;
    image-rendering: pixelated;
    border-radius: 3px;
  }
  .item-icon{
    height: 28px;
    width: 28px;
    image-rendering: pixelated;
    vertical-align: middle;
  }
  .tag{
    font-size: 0.76rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 3px 10px;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
  }

  /* ---------- CTA BAND ---------- */
  .cta-band{
    text-align:center;
    background: linear-gradient(135deg, rgba(28,95,217,0.16), rgba(90,200,255,0.1));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px 32px;
  }
  .cta-band h2{ font-size: 1.7rem; margin-bottom: 10px; }
  .cta-band p{ color: var(--text-dim); margin-bottom: 22px; }

  /* ---------- FOOTER ---------- */
  footer{ padding: 44px 0 36px; border-top: 1px solid var(--border); }
  footer .wrap{
    display:flex; align-items:center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
  }
  footer .brand{ display:flex; align-items:center; gap: 10px; font-family:'Space Grotesk', sans-serif; font-weight:700; }
  footer .brand img{ width: auto; height: 34px; object-fit: contain; }
  footer .foot-links{ display:flex; gap: 22px; font-size: 0.88rem; color: var(--text-dim); }
  footer .foot-links a{ text-decoration:none; }
  footer .foot-links a:hover{ color: var(--text); }
  footer .copy{ color: var(--text-dim); font-size: 0.82rem; }

  /* ---------- POLISH: top accent line, reveal-on-scroll, richer hovers ---------- */
  body::before{
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b), var(--accent-a));
    z-index: 60;
    opacity: 0.9;
  }
  .reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal-in{ opacity: 1; transform: translateY(0); }

  .card{ transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
  .card:hover{
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15,23,42,0.09);
    border-color: rgba(28,95,217,0.28);
  }
  .btn-primary{ box-shadow: 0 8px 22px rgba(28,95,217,0.22); }
  .btn-primary:hover{ box-shadow: 0 12px 28px rgba(28,95,217,0.3); }
  details{ transition: box-shadow .22s ease; }
  details[open]{ box-shadow: 0 10px 26px rgba(15,23,42,0.06); }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *{ transition: none !important; }
    .reveal{ opacity: 1; transform: none; }
  }

  @media (max-width: 720px){
    .catnav .wrap{ gap: 20px; }
    .stone{ flex-direction: column; align-items: stretch; text-align:center; }
    .ip-block{ text-align:center; }
  }

  /* ---------- WIKI PAGE: compact header ---------- */
  .hero-compact{ padding-bottom: 0; }
  .hero-compact .hero-center{ padding: 18px 24px 34px; gap: 14px; }
  .hero-compact .hero-logo img{ width: min(120px, 30vw); }
  .hero-compact h1{
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  }
  .breadcrumb{
    display:flex; align-items:center; gap: 8px;
    font-size: 0.85rem; color: rgba(255,255,255,0.75);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }
  .breadcrumb a{ color: rgba(255,255,255,0.75); text-decoration: none; }
  .breadcrumb a:hover{ color: #fff; }