/* ATLAS RP - feuille de style du site vitrine */
:root {
  --bg: #0a0612;
  --bg-2: #120a1d;
  --panel: #170e24;
  --panel-2: #1e1230;
  --text: #f2eaf8;
  --muted: #a793bd;
  --faint: #6f5d85;
  --accent: #e61e96;
  --accent-2: #ff4fb8;
  --accent-soft: rgba(230, 30, 150, 0.14);
  --ok: #7cf46b;
  --line: rgba(255, 255, 255, 0.07);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, .display { font-family: "Unbounded", "Inter", sans-serif; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- Fond décoratif ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 85% -5%, rgba(230, 30, 150, 0.16), transparent 60%),
    radial-gradient(600px 400px at -10% 30%, rgba(120, 60, 220, 0.12), transparent 60%),
    radial-gradient(500px 380px at 60% 110%, rgba(230, 30, 150, 0.08), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 520px at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 520px at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 6, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 17px; }
.brand .star { filter: drop-shadow(0 0 10px rgba(230, 30, 150, 0.55)); }
img.star { object-fit: contain; }
.brand em { font-style: normal; color: var(--accent-2); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  padding: 9px 15px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform 0.12s, box-shadow 0.2s, background 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #b3157a);
  color: #fff; box-shadow: 0 6px 26px rgba(230, 30, 150, 0.38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(230, 30, 150, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 11px; }
.nav .btn { margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 60px; text-align: center; position: relative; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(230, 30, 150, 0.3);
  color: var(--accent-2); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(44px, 8vw, 84px); font-weight: 900; line-height: 1.04; margin: 26px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent-2), #ff8fd0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); max-width: 620px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.connect-line {
  margin: 26px auto 0; display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px 10px 18px;
  font-family: ui-monospace, "Cascadia Code", monospace; font-size: 14.5px; color: var(--muted);
}
.connect-line b { color: var(--text); font-weight: 600; }
.connect-line button {
  background: var(--accent-soft); color: var(--accent-2); border: 0; border-radius: 9px;
  padding: 7px 13px; font-weight: 700; font-size: 12.5px; cursor: pointer; transition: background 0.15s;
}
.connect-line button:hover { background: rgba(230, 30, 150, 0.28); }

/* ---------- Barre stats ---------- */
.stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 30px; min-width: 170px; text-align: center;
}
.stat .num { font-family: "Unbounded", sans-serif; font-size: 27px; font-weight: 800; color: var(--accent-2); }
.stat .lbl { color: var(--faint); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.dot-live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); margin-right: 7px; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* ---------- Sections ---------- */
section.block { padding: 74px 0; }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head h2 { font-size: clamp(27px, 4.4vw, 40px); font-weight: 800; }
.sec-head h2 em { font-style: normal; color: var(--accent-2); }
.sec-head p { color: var(--muted); max-width: 560px; margin: 12px auto 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform 0.15s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(230, 30, 150, 0.35); }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "Unbounded", sans-serif; font-weight: 900; font-size: 42px;
  background: linear-gradient(135deg, var(--accent), transparent 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step a { color: var(--accent-2); font-weight: 600; }

/* ---------- Page interne (règlement / lexique) ---------- */
.page-head { padding: 66px 0 34px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 5.5vw, 52px); font-weight: 900; }
.page-head h1 em { font-style: normal; color: var(--accent-2); }
.page-head p { color: var(--muted); max-width: 640px; margin: 14px auto 0; }
.page-head .maj { margin-top: 16px; font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

.layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; padding-bottom: 80px; }
.toc {
  position: sticky; top: 92px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 8px;
}
.toc a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; transition: 0.15s; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.toc a.on { color: var(--accent-2); background: var(--accent-soft); }

.rules { min-width: 0; }
.rule-sec {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px; margin-bottom: 22px;
}
.rule-sec h2 { font-size: 21px; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.rule-sec h2 .n {
  font-size: 13px; background: var(--accent-soft); color: var(--accent-2);
  border-radius: 9px; padding: 4px 10px; font-family: "Unbounded", sans-serif;
}
.rule-sec > p.intro { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.rule-sec ul { list-style: none; margin-top: 14px; }
.rule-sec li { padding: 10px 0 10px 30px; position: relative; color: #d9cce6; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.rule-sec li:last-child { border-bottom: 0; }
.rule-sec li::before { content: "◆"; position: absolute; left: 6px; color: var(--accent); font-size: 11px; top: 14px; }
.rule-sec li b { color: var(--text); }
.tag-interdit { display: inline-block; background: rgba(255, 84, 112, 0.14); color: #ff8fa8; font-size: 11.5px; font-weight: 800; padding: 2.5px 9px; border-radius: 7px; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 7px; }
.tag-important { display: inline-block; background: rgba(255, 176, 32, 0.13); color: #ffcf70; font-size: 11.5px; font-weight: 800; padding: 2.5px 9px; border-radius: 7px; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 7px; }
.tag-ok { display: inline-block; background: rgba(124, 244, 107, 0.12); color: #a8f096; font-size: 11.5px; font-weight: 800; padding: 2.5px 9px; border-radius: 7px; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 7px; }
.rule-sec h3.sub { font-size: 15.5px; margin: 20px 0 4px; color: var(--accent-2); }
.callout {
  background: var(--accent-soft); border: 1px solid rgba(230, 30, 150, 0.3); border-radius: 14px;
  padding: 16px 20px; font-size: 14.5px; color: #f4d9ea; margin-top: 16px;
}

/* ---------- Lexique ---------- */
.lex-tools { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.lex-search {
  width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 20px; color: var(--text); font-size: 15px; outline: none; font-family: inherit;
}
.lex-search:focus { border-color: rgba(230, 30, 150, 0.5); }
.lex-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lex-filters button {
  background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 700; font-size: 13px; cursor: pointer; transition: 0.15s;
}
.lex-filters button:hover { color: var(--text); }
.lex-filters button.on { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(230, 30, 150, 0.4); }
.lex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-bottom: 80px; }
.term {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.term:hover { border-color: rgba(230, 30, 150, 0.3); }
.term .t-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.term h3 { font-size: 16.5px; }
.term .cat { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.cat-base { background: rgba(34, 211, 238, 0.13); color: #7fe3f5; }
.cat-faute { background: rgba(255, 84, 112, 0.14); color: #ff8fa8; }
.cat-illegal { background: rgba(255, 176, 32, 0.13); color: #ffcf70; }
.cat-commu { background: rgba(124, 244, 107, 0.12); color: #a8f096; }
.term p { color: var(--muted); font-size: 14px; }
.lex-empty { text-align: center; color: var(--faint); padding: 40px 0 80px; display: none; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 34px; background: rgba(10, 6, 18, 0.6); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .muted { color: var(--faint); font-size: 13.5px; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.foot-links a:hover { color: var(--accent-2); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc a { padding: 8px 12px; font-size: 13px; }
  .nav-links a:not(.keep) { display: none; }
  .hero { padding: 64px 0 40px; }
}
