/* Page « Règlement du site » : version, essentiel en quatre points, sommaire et articles numérotés.
 * S'appuie sur styles.css (héros de page, .notice, .list-dot, .section-title). */

.rg-wrap { max-width: 900px; }

/* Version et date, dans le héros */
.rg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rg-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; color: var(--muted);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05);
}
.rg-chip b { color: var(--text); }
/* Acceptation du joueur connecté (rempli par reglement.js) */
.rg-mine {
  display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 12px; font-size: 0.9rem;
  color: var(--text); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3);
}
.rg-mine[hidden] { display: none; }
.rg-mine a { color: var(--accent-2); }

.rg-scope { margin-bottom: 36px; }
.rg-scope a { color: var(--accent-2); }

/* L'essentiel en quatre points */
.rg-brief { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 34px; }
.rg-brief-card {
  position: relative; overflow: hidden; padding: 20px 18px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
}
.rg-brief-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.rg-brief-card > span { display: block; font-size: 1.7rem; line-height: 1; margin-bottom: 10px; }
.rg-brief-card h3 { font-family: "Oxanium", sans-serif; font-size: 1.05rem; margin: 0 0 6px; }
.rg-brief-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* Sommaire */
.rg-toc { margin: 0 0 34px; padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.rg-toc-title { margin: 0 0 10px; font-family: "Oxanium", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--muted); }
.rg-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.rg-toc li { break-inside: avoid; padding: 3px 0; color: var(--muted); }
.rg-toc a { color: var(--text); text-decoration: none; }
.rg-toc a:hover, .rg-toc a:focus-visible { color: var(--accent-2); text-decoration: underline; }

/* Articles */
.rg-art {
  position: relative; scroll-margin-top: 110px; margin-bottom: 16px; padding: 24px 26px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
}
.rg-art:target { border-color: color-mix(in srgb, var(--accent-2) 70%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 40%, transparent), 0 10px 30px -12px rgba(34, 211, 238, 0.3); }
.rg-art h2 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin: 0 0 14px; }
.rg-num {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-family: "Oxanium", sans-serif; font-weight: 800; font-size: 0.95rem; color: #12060a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.rg-art p { margin: 0 0 12px; color: var(--muted); }
.rg-art .list-dot { margin: 0; }
.rg-art .list-dot li { line-height: 1.6; }
.rg-art a { color: var(--accent-2); }
.rg-art strong { color: var(--text); }

/* Échelle des sanctions */
.rg-steps { counter-reset: rg-step; list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.rg-steps li {
  counter-increment: rg-step; position: relative; padding: 12px 14px 12px 52px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border); line-height: 1.55;
}
.rg-steps li::before {
  content: counter(rg-step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  font-family: "Oxanium", sans-serif; font-weight: 800; font-size: 0.85rem; color: var(--text);
  background: rgba(255, 90, 31, 0.22); border: 1px solid rgba(255, 90, 31, 0.5);
}
.rg-steps li:nth-child(2)::before { background: rgba(251, 191, 36, 0.2); border-color: rgba(251, 191, 36, 0.55); }
.rg-steps li:nth-child(3)::before { background: rgba(248, 113, 113, 0.22); border-color: rgba(248, 113, 113, 0.6); }
.rg-steps em { font-style: normal; color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .rg-brief { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rg-brief { grid-template-columns: minmax(0, 1fr); }
  .rg-toc ol { columns: 1; }
  .rg-art { padding: 20px 18px; scroll-margin-top: 90px; }
  .rg-art h2 { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
