:root {
  --red: #d81e2c;
  --red-dark: #a8151f;
  --red-darker: #7d0f17;
  --orange: #ff8c1a;
  --orange-dark: #d9660a;
  --diamond: #4dd8e6;
  --diamond-dark: #1fa8b8;
  --bg: #f4f5f7;
  --panel-border: #e2e2e2;
  --text: #333333;
  --text-dim: #6b6b6b;
  --radius: 4px;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Rubik', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.orange { color: var(--orange); }
a { color: inherit; text-decoration: none; }
code {
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.95em;
}

/* ---------- beveled play button ---------- */
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  border: none;
  border-bottom: 4px solid var(--red-darker);
  border-radius: 3px;
  cursor: pointer;
  transition: transform .1s ease, border-bottom-width .1s ease;
}
.btn-play:hover { filter: brightness(1.08); }
.btn-play:active {
  border-bottom-width: 1px;
  transform: translateY(3px);
}
.btn-play-lg {
  padding: 16px 46px;
  font-size: 1.05rem;
}
.btn-play-outline {
  background: transparent;
  border: 2px solid #fff;
  border-bottom: 4px solid #fff;
  color: #fff;
}
.btn-play-outline:active { border-bottom-width: 2px; }

/* ---------- topbar ---------- */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--red);
  margin-right: auto;
  letter-spacing: 0.5px;
}
.logo .orange { color: var(--orange); }
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); }
.nav-discord { color: var(--diamond-dark) !important; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- banner (hero) ---------- */
.banner {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-bg {
  position: absolute;
  inset: 0;
  background: var(--red-darker);
}
.banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,4,5,0.85), rgba(130,15,20,0.45)),
              linear-gradient(120deg, rgba(216,30,44,0.35), rgba(0,0,0,0.15));
}
.banner-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) sepia(0.55) saturate(4.5) hue-rotate(-32deg) brightness(0.75) contrast(1.05);
}
.banner-bg-flat {
  background: linear-gradient(135deg, var(--red), var(--red-darker));
}
.banner-stripes {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.10) 0 2px, transparent 2px 42px);
}
.banner-overlay {
  position: relative;
  z-index: 2;
  background: rgba(10,5,5,0.72);
  padding: 34px 56px;
  text-align: center;
  border-radius: var(--radius);
  max-width: 90%;
}
.banner-overlay h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.6vw, 2.1rem);
  margin: 0 0 24px;
  text-transform: uppercase;
  line-height: 1.3;
}
.banner-cta { height: 300px; }
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- page banner (sub-pages) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--red), var(--red-darker));
  padding: 56px 0;
  text-align: center;
}
.page-banner h1 {
  font-family: var(--font-display);
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 4vw, 2rem);
  margin: 0 0 12px;
}
.page-banner p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 1rem;
}

/* ---------- placeholder panel ---------- */
.placeholder-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.placeholder-panel .panel-body p { margin: 0 0 16px; }
.placeholder-panel .panel-body p:last-of-type { margin-bottom: 20px; }

/* ---------- pricing (boutique) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--panel-border);
  border-top: 6px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  text-align: center;
  padding-bottom: 28px;
}
.pricing-premium { border-top-color: #3aa8e0; }
.pricing-vip { border-top-color: #e0b13a; }

.pricing-header {
  padding: 26px 20px 18px;
}
.pricing-header h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--text);
}
.pricing-premium .pricing-header h2 { color: #1f7fb8; }
.pricing-vip .pricing-header h2 { color: #b8871f; }

.pricing-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--red);
}

.pricing-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0 24px;
  text-align: left;
}
.pricing-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--panel-border);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.pricing-list li:last-child { border-bottom: none; }

.btn-soon {
  background: #c7c7c7;
  color: #4a4a4a;
  border-bottom-color: #9a9a9a;
  cursor: not-allowed;
}
.btn-soon:hover { filter: none; }
.btn-soon:active { transform: none; border-bottom-width: 4px; }

/* ---------- download (telecharger) ---------- */
.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0 20px;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  padding: 13px 30px;
  border: none;
  border-bottom: 4px solid var(--red-darker);
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .1s ease, border-bottom-width .1s ease;
}
.btn-download:hover { filter: brightness(1.08); }
.btn-download:active {
  border-bottom-width: 1px;
  transform: translateY(3px);
}
.download-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 480px;
  margin: 0 auto;
}

.os-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

/* ---------- intro ---------- */
.intro {
  background: #fff;
  padding: 60px 0;
  border-bottom: 1px solid var(--panel-border);
}
.intro-inner {
  display: flex;
  align-items: center;
  gap: 50px;
}
.intro-text { flex: 1.4; }
.intro-text h2 {
  font-family: var(--font-display);
  color: var(--red);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  margin: 0 0 18px;
  text-transform: uppercase;
}
.intro-text p {
  color: var(--text-dim);
  margin: 0 0 16px;
  font-size: 0.98rem;
}
.intro-character {
  flex: 1;
  display: flex;
  justify-content: center;
}
.intro-character svg {
  width: 100%;
  max-width: 220px;
  height: auto;
}

/* ---------- sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: #eef0f2; }

.section-title {
  font-family: var(--font-display);
  color: var(--red);
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  text-align: center;
  margin: 0 0 44px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
}

/* ---------- panels ---------- */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.panel-header {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 0.92rem;
  padding: 12px 18px;
  border-bottom: 3px solid var(--red-darker);
}
.panel-body {
  padding: 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.panel-list {
  list-style: none;
  margin: 0;
  padding: 6px 18px 16px;
}
.panel-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--panel-border);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.panel-list li:last-child { border-bottom: none; }

.mods-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 32px;
}
.mods-note a {
  color: var(--red);
  text-decoration: underline;
}

/* steps */
.step { text-align: center; padding-top: 26px; }
.step-number {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.step h3 { margin: 0 0 8px; color: var(--text); }
.step .panel-body { padding-top: 0; }
.step .panel-body p { margin: 0 0 14px; }
.step .btn-play { font-size: 0.8rem; padding: 10px 22px; }

/* rules */
.rules-intro {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: -20px auto 36px;
  font-size: 0.95rem;
}
.rules-panel .rules-list { padding: 24px; }
.rules-list {
  list-style: none;
  counter-reset: rule;
  margin: 0;
}
.rules-list li {
  counter-increment: rule;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px 14px 50px;
  margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text-dim);
}
.rules-list li:last-child { margin-bottom: 0; }
.rules-list li::before {
  content: counter(rule);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rule-badge {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.rule-badge.forbidden { background: #3a3a3a; color: #fff; }
.rule-badge.allowed { background: #2e9e4f; color: #fff; }
.rule-badge.info { background: var(--diamond); color: #05282c; }

/* staff */
.staff-card { text-align: center; padding-top: 26px; }
.staff-avatar { font-size: 1.8rem; margin-bottom: 8px; }
.staff-card h3 { margin: 0 0 4px; }
.staff-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--red);
  font-size: 0.88rem;
  margin: 0;
  font-weight: 600;
}
.staff-card .panel-body { padding-top: 0; }

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  margin: 0;
  display: flex;
  align-items: flex-end;
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent 55%);
}
.gallery-item figcaption {
  position: relative;
  z-index: 1;
  padding: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.gallery-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 28px;
}
.gallery-note code {
  color: var(--red);
}

/* footer */
.footer {
  background: #1c1c1c;
  color: #ccc;
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid #333;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a, .footer-socials a {
  color: #aaa;
  font-size: 0.88rem;
}
.footer-links a:hover, .footer-socials a:hover { color: var(--red); }
.footer-socials { display: flex; gap: 20px; }
.footer-copy {
  text-align: center;
  color: #777;
  font-size: 0.78rem;
  margin: 20px 0 0;
}

/* ---------- account (compte.html) ---------- */
.account-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.account-forms[hidden] { display: none; }
.account-panel .panel-body { padding: 24px; }
.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.account-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 600;
}
.account-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  color: var(--text);
}
.account-form input:focus {
  outline: none;
  border-color: var(--red);
}
.account-form .btn-play { align-self: flex-start; margin-top: 4px; }
.account-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: -6px 0 0;
}
.form-message {
  margin: 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-message-error { color: var(--red); font-weight: 600; }
.form-message-ok { color: #2e9e4f; font-weight: 600; }

.account-profile {
  max-width: 340px;
  margin: 0 auto;
}
.account-profile-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px 24px;
}
.profile-head {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  image-rendering: pixelated;
}
.account-uuid {
  color: var(--text-dim);
  font-size: 0.78rem;
  word-break: break-all;
  margin: 0 0 8px;
}

/* ---------- forum (forum.html) ---------- */
.forum-container { max-width: 720px; }
.forum-publish textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  resize: vertical;
  color: var(--text);
  margin-bottom: 12px;
}
.forum-publish textarea:focus { outline: none; border-color: var(--red); }

.billets-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.billet-card .panel-body { padding: 20px; }
.billet-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.billet-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  image-rendering: pixelated;
}
.billet-author-name { font-weight: 700; color: var(--text); }
.billet-date { color: var(--text-dim); font-size: 0.8rem; margin-left: auto; }
.billet-content {
  color: var(--text);
  font-size: 0.98rem;
  white-space: pre-wrap;
  margin: 0 0 4px;
}
.billet-reponses {
  margin-top: 14px;
  padding-left: 18px;
  border-left: 2px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.billet-reponse .billet-avatar { width: 26px; height: 26px; }
.billet-reply-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.billet-reply-form input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 8px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
}
.billet-reply-form input:focus { outline: none; border-color: var(--red); }
.billet-reply-form .btn-play {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .topbar .btn-play { display: none; }
  .burger { display: flex; }

  .topbar.open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--panel-border);
    gap: 16px;
  }
  .topbar.open .btn-play {
    display: inline-flex;
    margin-top: 4px;
  }

  .intro-inner { flex-direction: column; }
  .intro-character { order: -1; }
}
