@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  --bg:        hsl(240 10% 4%);
  --bg-card:   hsl(240 10% 8%);
  --bg-muted:  hsl(240 10% 13%);
  --fg:        hsl(0 0% 96%);
  --fg-muted:  hsl(240 5% 60%);
  --primary:   hsl(270 30% 65%);
  --primary-d: hsl(270 25% 50%);
  --border:    hsl(240 10% 18%);
  --green:     hsl(142 60% 45%);
  --red:       hsl(0 72% 58%);
  --radius:    0.75rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -20%, color-mix(in hsl, var(--primary), transparent 85%), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 60%,   color-mix(in hsl, var(--primary), transparent 92%), transparent 50%);
  background-attachment: fixed;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 4rem; display: flex; align-items: center;
  background: color-mix(in hsl, var(--bg), transparent 10%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem; display: flex; align-items: center; gap: 2rem;
}
.nav__logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__links a { font-size: 0.85rem; color: var(--fg-muted); transition: color .2s; }
.nav__links a:hover,
.nav__links a.active { color: var(--fg); }
.nav__mdt {
  font-size: 0.78rem; padding: 0.3rem 0.8rem;
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--fg-muted); transition: all .2s;
  display: flex; align-items: center; gap: 5px; margin-left: 1rem;
}
.nav__mdt:hover { color: var(--fg); border-color: var(--primary); }

/* ── HERO ── */
.hero {
  padding: 7.5rem 1.5rem 3rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in hsl, var(--primary), transparent 88%);
  border: 1px solid color-mix(in hsl, var(--primary), transparent 70%);
  padding: 0.28rem 0.75rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero__title {
  font-family: Outfit, sans-serif; font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 0.85rem;
}
.hero__title span {
  background: linear-gradient(130deg, var(--primary), hsl(270 20% 80%));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__sub {
  font-size: 0.9rem; color: var(--fg-muted); line-height: 1.65;
}

/* ── SHORTCUTS ── */
.shortcuts {
  max-width: 860px; margin: 0 auto 2rem;
  padding: 0 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.shortcut {
  font-size: 0.75rem; font-weight: 500;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--fg-muted); background: var(--bg-card);
  transition: all .2s; cursor: pointer;
  display: flex; align-items: center; gap: 0.4rem;
}
.shortcut:hover { color: var(--fg); border-color: var(--primary); }
.shortcut svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }

/* ── MAIN ── */
.main {
  max-width: 860px; margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

/* ── SECTION CARD ── */
.section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color .25s;
}
.section:hover { border-color: color-mix(in hsl, var(--accent, var(--primary)), transparent 50%); }

.section__header {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer; user-select: none;
  list-style: none;
}
.section__header::-webkit-details-marker { display: none; }

.section__icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in hsl, var(--accent, var(--primary)), transparent 82%);
  color: var(--accent, var(--primary));
}
.section__icon svg { width: 18px; height: 18px; fill: currentColor; }

.section__title {
  font-family: Outfit, sans-serif; font-size: 1rem; font-weight: 700; flex: 1;
}
.section__tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent, var(--primary)); opacity: .8;
  background: color-mix(in hsl, var(--accent, var(--primary)), transparent 88%);
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.section__chevron {
  width: 16px; height: 16px; color: var(--fg-muted);
  transition: transform .25s; flex-shrink: 0;
}
details[open] > .section__header .section__chevron { transform: rotate(180deg); }
details[open] > .section__header { border-bottom: 1px solid var(--border); }

/* ── RULES ── */
.section__body {
  padding: 0.75rem 1.4rem 1.25rem;
}
.rule {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid color-mix(in hsl, var(--border), transparent 55%);
  font-size: 0.875rem; line-height: 1.65; color: var(--fg-muted);
}
.rule:last-child { border-bottom: none; }
.rule__dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent, var(--primary)); margin-top: 0.56rem; opacity: .65;
}
.rule--ok { color: var(--fg); }
.rule--ok .rule__dot { background: var(--green); opacity: 1; }
.rule--bad { color: var(--fg); }
.rule--bad .rule__dot { background: var(--red); opacity: 1; }
.rule--title {
  font-weight: 700; color: var(--fg); font-size: 0.8rem;
  letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--border) !important;
  padding-top: 0.9rem; padding-bottom: 0.45rem; margin-top: 0.2rem;
  opacity: .85;
}
.rule--title .rule__dot { display: none; }

/* ── ACCENT COLORS ── */
.s-parcours  { --accent: hsl(270 30% 65%); }
.s-discord   { --accent: hsl(235 75% 68%); }
.s-streamers { --accent: hsl(32 90% 60%);  }
.s-graphique { --accent: hsl(180 55% 52%); }
.s-donnees   { --accent: hsl(150 55% 50%); }
.s-illegal   { --accent: hsl(12 78% 58%);  }

/* ── FOOTER ── */
footer {
  text-align: center; padding: 2.5rem 1rem;
  font-size: 0.75rem; color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav__links { gap: 0.9rem; font-size: 0.78rem; }
  .section__tag { display: none; }
  .shortcuts { display: none; }
}
