/* G6M Règlement officiel — help page (XF 2.3) */
.g6m-rules {
  --pink: #ff2fae;
  --violet: #8b3dff;
  --cyan: #00d4ff;
  --bg: #0a0a10;
  --card: rgba(14, 14, 22, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e8e6f0;
  --muted: #a8a4b8;
  --radius: 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 4px 28px;
}
.g6m-rules * { box-sizing: border-box; }
.g6m-rules a { color: var(--cyan); text-decoration: none; }
.g6m-rules a:hover { color: var(--pink); }

.g6m-rules__hero {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 47, 174, 0.18), transparent 55%),
    radial-gradient(100% 80% at 100% 0%, rgba(0, 212, 255, 0.14), transparent 50%),
    linear-gradient(155deg, #12121a 0%, #0c0c14 55%, #100e18 100%);
  border: 1px solid rgba(255, 47, 174, 0.35);
  box-shadow:
    0 0 0 1px rgba(139, 61, 255, 0.12) inset,
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(255, 47, 174, 0.12);
  margin-bottom: 22px;
}
.g6m-rules__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff9ad4;
  background: rgba(255, 47, 174, 0.12);
  border: 1px solid rgba(255, 47, 174, 0.28);
}
.g6m-rules__title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(105deg, #ff2fae 0%, #c45cff 42%, #00d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.g6m-rules__lead {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 62ch;
}
.g6m-rules__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: #cfc9e0;
  font-size: 13px;
}
.g6m-rules__meta i { color: var(--cyan); margin-right: 6px; }

.g6m-rules__toc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.g6m-rules__toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.g6m-rules__toc a:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
  color: #fff;
}
.g6m-rules__toc i {
  width: 1.1em;
  text-align: center;
  color: var(--pink);
}

.g6m-rules__card {
  margin: 0 0 16px;
  padding: 20px 18px 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(16, 16, 24, 0.95) 0%, rgba(10, 10, 16, 0.88) 100%);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(139, 61, 255, 0.05);
}
.g6m-rules__card--pink { border-color: rgba(255, 47, 174, 0.32); box-shadow: 0 12px 28px rgba(0,0,0,.35), 0 0 22px rgba(255,47,174,.08); }
.g6m-rules__card--cyan { border-color: rgba(0, 212, 255, 0.28); box-shadow: 0 12px 28px rgba(0,0,0,.35), 0 0 22px rgba(0,212,255,.08); }
.g6m-rules__card--violet { border-color: rgba(139, 61, 255, 0.34); box-shadow: 0 12px 28px rgba(0,0,0,.35), 0 0 22px rgba(139,61,255,.1); }
.g6m-rules__card--warn { border-color: rgba(255, 170, 50, 0.35); }

.g6m-rules__h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, #ff2fae, #8b3dff 50%, #00d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.g6m-rules__h2 i {
  flex: 0 0 auto;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 47, 174, 0.45);
}
.g6m-rules__h3 {
  margin: 14px 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}
.g6m-rules__h3 i { margin-right: 7px; color: var(--cyan); }
.g6m-rules__h3--bad i { color: #ff5d7a; }
.g6m-rules p { margin: 0 0 10px; color: var(--muted); }
.g6m-rules p:last-child { margin-bottom: 0; }

.g6m-rules__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.g6m-rules__list li {
  position: relative;
  margin: 0 0 8px;
  padding: 10px 12px 10px 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.g6m-rules__list li:last-child { margin-bottom: 0; }
.g6m-rules__list li::before {
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome", sans-serif;
  font-weight: 900;
  content: "\f058";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
}
.g6m-rules__list--bad li::before {
  content: "\f057";
  color: #ff5d7a;
  text-shadow: 0 0 10px rgba(255, 93, 122, 0.35);
}

.g6m-rules__grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.g6m-rules__mini {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.g6m-rules__mini--ok { border-color: rgba(0, 212, 255, 0.25); }
.g6m-rules__mini--no { border-color: rgba(255, 93, 122, 0.28); }

.g6m-rules__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(255, 47, 174, 0.22);
}
.g6m-rules__table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}
.g6m-rules__table th,
.g6m-rules__table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.g6m-rules__table th {
  background: linear-gradient(90deg, rgba(255, 47, 174, 0.18), rgba(139, 61, 255, 0.14));
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.g6m-rules__table tr:last-child td { border-bottom: 0; }
.g6m-rules__table td { color: var(--text); background: rgba(8, 8, 14, 0.55); }
.g6m-rules__badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.g6m-rules__badge--1 { color: #9fe8ff; background: rgba(0, 212, 255, 0.12); border: 1px solid rgba(0, 212, 255, 0.28); }
.g6m-rules__badge--2 { color: #ffd59a; background: rgba(255, 170, 50, 0.12); border: 1px solid rgba(255, 170, 50, 0.3); }
.g6m-rules__badge--3 { color: #ffb0d8; background: rgba(255, 47, 174, 0.12); border: 1px solid rgba(255, 47, 174, 0.3); }
.g6m-rules__badge--4 { color: #ffb0b8; background: rgba(255, 70, 90, 0.14); border: 1px solid rgba(255, 70, 90, 0.35); }

.g6m-rules__faq details {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.g6m-rules__faq details:last-child { margin-bottom: 0; }
.g6m-rules__faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}
.g6m-rules__faq summary::-webkit-details-marker { display: none; }
.g6m-rules__faq summary::before {
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome", sans-serif;
  font-weight: 900;
  content: "\f059";
  margin-right: 8px;
  color: var(--violet);
}
.g6m-rules__faq details[open] summary { margin-bottom: 8px; color: #ff9ad4; }
.g6m-rules__faq p { margin: 0; }

.g6m-rules__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 22px 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(90% 120% at 100% 50%, rgba(0, 212, 255, 0.12), transparent 55%),
    linear-gradient(120deg, rgba(255, 47, 174, 0.12), rgba(139, 61, 255, 0.1) 50%, rgba(0, 212, 255, 0.08));
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.1);
}
.g6m-rules__cta-text { margin: 0; color: var(--muted); max-width: 42ch; }
.g6m-rules__cta-text strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1.05rem;
}
.g6m-rules__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  color: #0a0a10 !important;
  background: linear-gradient(105deg, #ff2fae, #8b3dff 55%, #00d4ff);
  box-shadow: 0 8px 24px rgba(255, 47, 174, 0.28);
  border: 0;
  white-space: nowrap;
}
.g6m-rules__btn:hover {
  filter: brightness(1.08);
  color: #0a0a10 !important;
}

.g6m-rules__foot {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

@media (max-width: 760px) {
  .g6m-rules__toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g6m-rules__grid2 { grid-template-columns: 1fr; }
  .g6m-rules__hero { padding: 22px 16px; }
  .g6m-rules__card { padding: 16px 14px; }
  .g6m-rules__cta { flex-direction: column; align-items: stretch; text-align: left; }
  .g6m-rules__btn { justify-content: center; }
}
@media (max-width: 480px) {
  .g6m-rules__toc { grid-template-columns: 1fr; }
}
