/* ==========================================================================
   Astra Nova — feuille de style
   Palette, typographie et composition inspirées du blason du serveur.
   ========================================================================== */

:root {
  --bg: #06070f;
  --bg-deep: #05060c;
  --bg-raised: #0b0d19;
  --line: rgba(164, 186, 240, 0.13);
  --line-strong: rgba(164, 186, 240, 0.28);
  --text: #eef2ff;
  --text-soft: #a9b1cc;
  --text-dim: #858fae;
  --cyan: #58e2ff;
  --cyan-soft: rgba(88, 226, 255, 0.12);
  --violet: #9b6cff;
  --green: #7ce8b0;
  --red: #ff859d;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--cyan);
  color: #031018;
}

img {
  display: block;
  max-width: 100%;
}

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

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--cyan);
  color: #031018;
  font-weight: 600;
  border-radius: 3px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: none;
  vertical-align: -0.12em;
}

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 7, 15, 0.82);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(6, 7, 15, 0.95);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(98, 141, 255, 0.35));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.brand:hover .brand-name {
  color: #dff8ff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.site-nav ul a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav ul a:hover {
  color: var(--text);
}

.site-nav ul a:hover::after {
  transform: scaleX(1);
}

.site-nav .nav-discord {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: rgba(88, 226, 255, 0.5);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.site-header.is-open .nav-toggle-bars span:first-child {
  transform: translateY(5.25px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bars span:last-child {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Boutons et liens
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  color: #031018;
  background: linear-gradient(180deg, #a4f4ff 0%, #59e0ff 38%, #2fc5ea 100%);
  border-color: rgba(174, 245, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 30px -16px rgba(72, 215, 255, 0.85);
}

.btn-primary:hover {
  color: #020e14;
  background: linear-gradient(180deg, #c1f8ff 0%, #78ebff 42%, #48d6f7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 34px -14px rgba(72, 215, 255, 0.95);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  color: var(--text);
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(164, 186, 240, 0.28);
}

.btn-outline:hover {
  color: #eafcff;
  background: rgba(88, 226, 255, 0.07);
  border-color: rgba(88, 226, 255, 0.55);
}

.btn-sm {
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.82rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(88, 226, 255, 0.35);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cyan);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.text-link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  color: #b7f4ff;
  border-bottom-color: var(--cyan);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 90% at 80% 18%, rgba(86, 49, 158, 0.25), transparent 58%),
    linear-gradient(180deg, #070812 0%, #06070f 76%);
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/starfield.svg") center top / cover no-repeat;
  opacity: 0.62;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}

.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88, 226, 255, 0.45) 35%, rgba(155, 108, 255, 0.45) 65%, transparent);
  box-shadow: 0 0 44px 10px rgba(78, 119, 255, 0.16);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3.5rem, 7vw, 6rem);
}

.hero-copy {
  animation: hero-in 0.9s var(--ease) both;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  color: #b7c2df;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker-star {
  width: 12px;
  height: 12px;
  flex: none;
  fill: var(--cyan);
  filter: drop-shadow(0 0 7px rgba(88, 226, 255, 0.7));
}

h1 {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6.4vw, 6rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 47ch;
  margin-top: 1.6rem;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.emblem {
  position: relative;
  justify-self: end;
  width: min(100%, 540px);
  margin: 0;
  aspect-ratio: 1;
  animation: emblem-in 1.1s var(--ease) 0.08s both;
}

.emblem-glow {
  position: absolute;
  inset: -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 54%, rgba(118, 70, 255, 0.42), rgba(25, 118, 200, 0.16) 48%, transparent 70%);
  filter: blur(46px);
}

.emblem-ring {
  position: absolute;
  inset: -7.5%;
  border: 1px solid rgba(157, 193, 255, 0.18);
  border-radius: 50%;
  animation: orbit 140s linear infinite;
}

.emblem-ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 2px rgba(88, 226, 255, 0.65);
}

.emblem-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(190, 210, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.018),
    0 40px 90px -36px rgba(82, 49, 173, 0.85);
}

.emblem-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.emblem-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Bandeau d'état
   -------------------------------------------------------------------------- */

.telemetry {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 1.1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(10, 12, 23, 0.72), rgba(12, 15, 28, 0.38));
}

.telemetry-cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 1.15rem 1.5rem;
  border-left: 1px solid var(--line);
}

.telemetry-cell:first-child {
  padding-left: 0;
  border-left: 0;
}

.telemetry-cell:last-child {
  padding-right: 0;
}

.telemetry-label {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.telemetry-value {
  min-height: 1.6em;
  color: #e6ebff;
  font-size: 0.96rem;
  line-height: 1.6;
}

.telemetry-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.telemetry-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #6f7a99;
  box-shadow: 0 0 0 3px rgba(111, 122, 153, 0.1);
}

.status-dot[data-state="online"] {
  background: var(--green);
  box-shadow: 0 0 10px rgba(124, 232, 176, 0.65), 0 0 0 3px rgba(124, 232, 176, 0.1);
}

.status-dot[data-state="offline"] {
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 133, 157, 0.5), 0 0 0 3px rgba(255, 133, 157, 0.1);
}

.telemetry-value a {
  border-bottom: 1px solid rgba(88, 226, 255, 0.3);
  color: var(--cyan);
}

.telemetry-value a:hover {
  border-bottom-color: var(--cyan);
  color: #bdf6ff;
}

.copy-address {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted rgba(169, 177, 204, 0.45);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
}

.copy-address:hover {
  border-bottom-color: var(--cyan);
  color: var(--cyan);
}

.copy-address .icon {
  width: 13px;
  height: 13px;
  flex: none;
}

.copy-address span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

h2 {
  max-width: 19ch;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 4.6vw, 4.1rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.section-lead {
  max-width: 58ch;
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.72;
}

.micro-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  color: #96a1bf;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.micro-star {
  width: 11px;
  height: 11px;
  flex: none;
  fill: var(--cyan);
}

/* Le serveur */

.server-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.server-copy {
  display: grid;
  gap: 1.1rem;
  max-width: 56ch;
  margin-top: 2rem;
  color: var(--text-soft);
}

.server-copy p {
  line-height: 1.75;
}

.server-facts {
  position: sticky;
  top: 7rem;
  padding: 1.5rem 1.75rem 0.6rem;
  border: 1px solid var(--line);
  border-top-color: rgba(150, 200, 255, 0.32);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(13, 16, 30, 0.92), rgba(9, 11, 20, 0.55));
}

.fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.fact-row dt {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.fact-row dd {
  color: #e8edfb;
  font-size: 0.93rem;
  line-height: 1.5;
  text-align: right;
}

/* Déclaration */

.statement {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 130% at 18% 50%, rgba(88, 55, 178, 0.17), transparent 62%),
    #080a13;
}

.statement-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.statement-star {
  width: 26px;
  height: 26px;
  fill: var(--cyan);
  filter: drop-shadow(0 0 16px rgba(88, 226, 255, 0.45));
}

.statement-text {
  max-width: 23ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.005em;
}

.statement-note {
  max-width: 24ch;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.9;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

/* Rejoindre */

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.checklist-block {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.checklist {
  display: grid;
  gap: 0.8rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.check {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 0.28em;
  color: var(--cyan);
}

.steps {
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}

.steps li:first-child {
  padding-top: 0.25rem;
  border-top: 0;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  padding-top: 0.5rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.step-body h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.step-body p {
  max-width: 52ch;
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.connect-line {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
}

.connect-line span {
  color: var(--text-soft);
}

/* Règlement */

.section-rules {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 60% at 100% 0%, rgba(106, 70, 200, 0.11), transparent 65%),
    #080a13;
}

.rules-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
}

.rules-head .section-lead {
  margin-top: 0;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 3.5rem;
  counter-reset: rule;
}

.rules-list li {
  padding: 1.5rem 0 1.7rem;
  border-top: 1px solid var(--line);
}

.rules-list h3 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.004em;
}

.rules-list h3::before {
  content: counter(rule, decimal-leading-zero);
  counter-increment: rule;
  flex: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.rules-list p {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.rules-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.fine-print {
  max-width: 44ch;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: right;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.faq-intro {
  position: sticky;
  top: 7rem;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.004em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: #ffffff;
}

.faq-icon {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--text-dim);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.faq-item summary:hover .faq-icon,
.faq-item[open] .faq-icon {
  color: var(--cyan);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 3rem 1.45rem 0;
}

.faq-answer p {
  max-width: 64ch;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* Appel final */

.section-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
  background: radial-gradient(50% 80% at 50% 100%, rgba(82, 46, 164, 0.32), transparent 70%),
    var(--bg);
}

.cta-sky {
  position: absolute;
  inset: 0;
  background: url("../img/starfield.svg") center / cover no-repeat;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 76%);
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 1.75rem;
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(94, 160, 255, 0.45));
}

.cta-inner h2 {
  max-width: 18ch;
}

.cta-inner > p {
  max-width: 52ch;
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 0.8fr);
  gap: 3rem;
}

.footer-brand p {
  max-width: 38ch;
  margin: 1.2rem 0 1.35rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-nav ul {
  display: grid;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.7;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p:last-child {
  max-width: 72ch;
}

/* --------------------------------------------------------------------------
   Page 404
   -------------------------------------------------------------------------- */

.error-page {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(72vh, 760px);
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: radial-gradient(80% 100% at 15% 50%, rgba(88, 55, 178, 0.18), transparent 62%);
}

.error-sky {
  position: absolute;
  inset: 0;
  background: url("../img/starfield.svg") center / cover no-repeat;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.error-inner {
  position: relative;
  max-width: 780px;
}

.error-code {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.error-code::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

.error-inner h1 {
  max-width: 15ch;
  margin-top: 1.2rem;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.error-inner > p:not(.error-code) {
  max-width: 48ch;
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.72;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

/* --------------------------------------------------------------------------
   Notification
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  max-width: min(390px, calc(100vw - 2.5rem));
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(88, 226, 255, 0.28);
  border-left: 2px solid var(--cyan);
  border-radius: 3px;
  background: #0c0f1d;
  box-shadow: 0 24px 60px -22px #000;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.65;
  animation: toast-in 0.25s var(--ease) both;
}

.toast[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes emblem-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .site-nav {
    gap: 1.2rem;
  }

  .site-nav ul {
    gap: 1.3rem;
  }

  .header-inner {
    gap: 1.25rem;
  }
}

@media (max-width: 920px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin: 0;
    padding: 1.1rem var(--gutter) 1.75rem;
    background: #070812;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 40px 50px -34px #000;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }

  .site-nav ul a::after {
    display: none;
  }

  .site-nav ul li:last-child a {
    border-bottom: 0;
  }

  .site-nav .nav-discord {
    display: inline-flex;
    align-self: flex-start;
  }

  .header-discord {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-header {
    background: rgba(6, 7, 15, 0.92);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 3.5rem);
    padding-block: 1.5rem 3.5rem;
  }

  .hero-copy,
  .emblem {
    min-width: 0;
  }

  h1 {
    max-width: 17ch;
    font-size: clamp(3.2rem, 9.5vw, 5.4rem);
  }

  .emblem {
    justify-self: center;
    width: min(74vw, 390px);
  }

  .server-grid,
  .join-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .server-facts,
  .faq-intro {
    position: static;
  }

  .server-facts {
    max-width: 520px;
  }

  .rules-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .rules-head .section-lead {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .section {
    padding-block: clamp(3.75rem, 10vw, 5.5rem);
  }

  h2 {
    font-size: clamp(2.25rem, 8vw, 3.2rem);
  }

  .telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telemetry-cell {
    padding: 1rem 1.1rem;
    border-top: 1px solid var(--line);
  }

  .telemetry-cell:nth-child(1),
  .telemetry-cell:nth-child(2) {
    border-top: 0;
  }

  .telemetry-cell:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .telemetry-cell:nth-child(even) {
    padding-right: 0;
  }

  .rules-list {
    grid-template-columns: 1fr;
    margin-top: 2.75rem;
  }

  .statement-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
  }

  .statement-note {
    grid-column: 2;
    max-width: 36ch;
    text-align: left;
  }

  .rules-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .fine-print {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 68px;
    gap: 0.75rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.08rem;
    letter-spacing: 0.11em;
  }

  .header-discord {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .header-discord span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .header-discord .icon {
    width: 18px;
    height: 18px;
  }

  .site-nav {
    max-height: calc(100vh - 68px);
  }

  .hero-grid {
    padding-top: 1rem;
  }

  h1 {
    font-size: clamp(2.9rem, 12.4vw, 4.3rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions,
  .cta-actions,
  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .steps li {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.9rem;
  }

  .step-body h3 {
    font-size: 1.45rem;
  }

  .connect-line {
    overflow-wrap: anywhere;
  }

  .faq-item summary {
    gap: 1.25rem;
    font-size: 1.2rem;
  }

  .faq-answer {
    padding-right: 1rem;
  }

  .statement-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .statement-star {
    width: 22px;
    height: 22px;
  }

  .statement-note {
    grid-column: 1;
    max-width: 40ch;
  }

  .cta-mark {
    width: 72px;
    height: 72px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 560px) {
  .server-facts {
    padding: 1.35rem 1.25rem 0.45rem;
  }

  .fact-row {
    gap: 1rem;
  }

  .fact-row dd {
    font-size: 0.88rem;
  }
}

@media (max-width: 380px) {
  .telemetry {
    grid-template-columns: 1fr;
  }

  .telemetry-cell {
    padding: 0.9rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .telemetry-cell:nth-child(1) {
    border-top: 0;
  }

  .telemetry-cell:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .telemetry-cell:last-child {
    padding-bottom: 1rem;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 0.55rem;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.4rem);
  }

  .kicker {
    font-size: 0.63rem;
    letter-spacing: 0.12em;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .emblem-ring {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Espace membre
   -------------------------------------------------------------------------- */

.auth-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7rem);
  background: radial-gradient(70% 80% at 84% 0%, rgba(78, 47, 156, 0.22), transparent 62%),
    radial-gradient(48% 60% at 4% 24%, rgba(28, 95, 156, 0.12), transparent 72%),
    var(--bg);
}

.auth-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/starfield.svg") center top / cover no-repeat;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 58%, transparent 100%);
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.auth-intro {
  min-width: 0;
  animation: hero-in 0.7s var(--ease) both;
}

.auth-intro h1 {
  max-width: 13ch;
  overflow-wrap: break-word;
}

.auth-intro .section-lead {
  max-width: 47ch;
}

.auth-panel {
  min-width: 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(139, 199, 255, 0.38);
  animation: hero-in 0.7s 0.08s var(--ease) both;
}

.auth-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
}

.auth-panel-title {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel-meta {
  flex: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.auth-form {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.42rem;
}

.field label {
  color: #aeb8d4;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 47px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(7, 9, 18, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.field input:hover {
  border-color: rgba(164, 186, 240, 0.45);
}

.field input:focus {
  border-color: rgba(88, 226, 255, 0.75);
  outline: none;
  background: rgba(9, 13, 25, 0.9);
  box-shadow: 0 0 0 3px rgba(88, 226, 255, 0.09);
}

.field input[aria-invalid="true"] {
  border-color: rgba(255, 133, 157, 0.7);
}

.field-hint {
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.45;
}

.field-error {
  color: var(--red);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-check-group {
  display: grid;
  gap: 0.45rem;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.auth-check label {
  cursor: pointer;
}

.auth-check input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 0.18rem 0 0;
  accent-color: var(--cyan);
}

.auth-check a {
  border-bottom: 1px solid rgba(88, 226, 255, 0.3);
  color: var(--cyan);
}

.auth-check a:hover {
  border-bottom-color: var(--cyan);
  color: #bdf6ff;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-submit {
  width: 100%;
  margin-top: 0.3rem;
}

.auth-alt {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

.auth-alt a {
  border-bottom: 1px solid rgba(88, 226, 255, 0.3);
  color: var(--cyan);
}

.auth-alt a:hover {
  border-bottom-color: var(--cyan);
  color: #bdf6ff;
}

.form-alert {
  margin-bottom: 1.3rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(88, 226, 255, 0.22);
  border-left: 2px solid var(--cyan);
  border-radius: 3px;
  background: rgba(88, 226, 255, 0.06);
  color: #c9f6ff;
  font-size: 0.84rem;
  line-height: 1.55;
}

.form-alert[data-tone="success"] {
  border-color: rgba(124, 232, 176, 0.25);
  border-left-color: var(--green);
  background: rgba(124, 232, 176, 0.07);
  color: #c8f7dd;
}

.form-alert[data-tone="error"] {
  border-color: rgba(255, 133, 157, 0.25);
  border-left-color: var(--red);
  background: rgba(255, 133, 157, 0.07);
  color: #ffcbd5;
}

.auth-note {
  display: flex;
  gap: 0.7rem;
  max-width: 46ch;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
}

.auth-note-star {
  width: 13px;
  height: 13px;
  flex: none;
  margin-top: 0.4rem;
  fill: var(--cyan);
  opacity: 0.9;
}

.auth-note strong {
  color: var(--text-soft);
  font-weight: 600;
}

.auth-note a {
  border-bottom: 1px solid rgba(88, 226, 255, 0.3);
  color: var(--cyan);
}

.auth-note a:hover {
  border-bottom-color: var(--cyan);
  color: #bdf6ff;
}

.auth-header .header-inner {
  justify-content: space-between;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  transition: color 0.2s var(--ease);
}

.auth-back .icon {
  width: 15px;
  height: 15px;
}

.auth-back:hover {
  color: var(--cyan);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.account-facts {
  padding: 0.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(13, 16, 30, 0.75), rgba(9, 11, 20, 0.35));
}

.account-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.account-row:first-child {
  border-top: 0;
}

.account-row dt {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  line-height: 1.6;
  text-transform: uppercase;
}

.account-row dd {
  margin: 0;
  color: #e8edfb;
  font-size: 0.93rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: right;
}

.logout-form {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.auth-footer {
  padding-block: 1.75rem;
}

.auth-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.auth-footer p {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.6;
}

.auth-footer p span {
  color: #6f7a99;
}

.auth-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.auth-footer a {
  color: var(--text-soft);
  font-size: 0.8rem;
  transition: color 0.2s var(--ease);
}

.auth-footer a:hover {
  color: var(--cyan);
}

@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }

  .auth-intro h1 {
    max-width: 15ch;
  }

  .auth-note {
    max-width: 55ch;
  }

  .account-panel {
    max-width: 560px;
  }
}

@media (max-width: 600px) {
  .auth-main {
    padding-block: 2.5rem 3.5rem;
  }

  .auth-grid {
    gap: 2.25rem;
  }

  .auth-panel-title {
    font-size: 1.35rem;
  }

  .account-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-actions .btn {
    width: 100%;
  }

  .auth-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Les pages de compte occupent au moins la hauteur de l'écran. */
.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-header {
  flex: none;
  background: rgba(6, 7, 15, 0.95);
  border-bottom-color: var(--line);
}

.auth-main {
  flex: 1 0 auto;
}

.auth-footer {
  flex: none;
}

/* Badges de rôle réutilisés par le compte et l'administration. */
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.role-badge[data-role="admin"] {
  border-color: rgba(88, 226, 255, 0.42);
  background: rgba(88, 226, 255, 0.06);
  color: var(--cyan);
}

.role-badge[data-role="moderator"] {
  border-color: rgba(155, 108, 255, 0.42);
  background: rgba(155, 108, 255, 0.07);
  color: #c9b8ff;
}
