/* ==========================================================================
   Woremixe — Design system v2 « Arcane Launcher »
   Inspirations : launcher Battle.net · portail Nexus · WoW Remix
   Tout est auto-hébergé (CSP : style-src 'self').
   ========================================================================== */

@font-face { font-family: "Cinzel"; src: url("/assets/fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  /* Surfaces */
  --bg: #05060c;
  --bg-2: #090b15;
  --surface: #0e111d;
  --surface-2: #141828;
  --surface-3: #1b2034;
  --overlay: rgba(9, 11, 21, .78);
  /* Lignes */
  --border: rgba(150, 160, 255, .11);
  --border-2: rgba(150, 160, 255, .22);
  --border-3: rgba(170, 180, 255, .38);
  /* Texte */
  --text: #eef0fb;
  --text-2: #b3b8d0;
  --text-3: #8a90ab;
  /* Marque */
  --blue: #1a8cff;
  --blue-2: #0068d6;
  --blue-hi: #5aaeff;
  --violet: #8d63ff;
  --violet-2: #6a3dea;
  --cyan: #3fd8ff;
  --gold: #eab54d;
  --gold-2: #b98526;
  --green: #3ee29b;
  --red: #ff5f72;
  /* Rayons / ombres */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --glow-blue: 0 0 0 1px rgba(90, 174, 255, .35), 0 10px 30px rgba(26, 140, 255, .28);
  /* Typo */
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  /* Rythme */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Compat anciennes variables */
  --ink: var(--text); --muted: var(--text-2); --line: var(--border); --serif: var(--display);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
h1 em, h2 em, h3 em { font-style: normal; background: linear-gradient(100deg, #cfd9ff 0%, var(--blue-hi) 35%, var(--violet) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: rgba(26, 140, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); }

.skip-link { position: fixed; top: -200px; left: 12px; z-index: 200; padding: 10px 16px; border-radius: var(--r-sm); background: #fff; color: #05060c; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Icônes ---------- */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 24px; height: 24px; }

/* ---------- Boutons ---------- */
.button {
  --btn-bg: var(--surface-3);
  position: relative;
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--text);
  font: 600 14px/1 var(--sans);
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), color .2s;
}
.button:hover { border-color: var(--border-3); background: #232943; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary {
  border-color: rgba(120, 190, 255, .45);
  background: linear-gradient(180deg, #2b98ff 0%, var(--blue) 45%, var(--blue-2) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px rgba(26, 140, 255, .25);
  text-shadow: 0 1px 1px rgba(0, 40, 90, .5);
}
.button-primary:hover { background: linear-gradient(180deg, #47a6ff 0%, #2896ff 45%, #0a75e6 100%); border-color: rgba(160, 210, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 34px rgba(26, 140, 255, .45); }
.button-gold {
  border-color: rgba(255, 214, 140, .5);
  background: linear-gradient(180deg, #f5c867 0%, var(--gold) 45%, var(--gold-2) 100%);
  color: #1d1406; text-shadow: 0 1px 0 rgba(255, 235, 190, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 26px rgba(234, 181, 77, .25);
}
.button-gold:hover { background: linear-gradient(180deg, #ffd57d, #f2c05c 45%, #c79230); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 34px rgba(234, 181, 77, .42); }
.button-ghost { background: rgba(255, 255, 255, .03); }
.button-ghost:hover { background: rgba(255, 255, 255, .07); }
.button-danger { border-color: rgba(255, 95, 114, .45); background: rgba(255, 95, 114, .1); color: #ffc2ca; }
.button-danger:hover { background: rgba(255, 95, 114, .2); border-color: rgba(255, 95, 114, .7); }
.button-lg { min-height: 54px; padding: 0 28px; font-size: 15px; border-radius: 8px; }
.button-compact { min-height: 36px; padding: 0 14px; font-size: 13px; }
.button .i { width: 18px; height: 18px; }
.plain-button { background: none; border: 0; padding: 6px 8px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14px; cursor: pointer; transition: color .2s, background-color .2s; }
.plain-button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--display); letter-spacing: .18em; color: #fff; }
.brand-gem {
  width: 18px; height: 18px; flex: none; display: inline-block; transform: rotate(45deg); border-radius: 3px;
  border: 1px solid rgba(210, 220, 255, .8);
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, var(--cyan) 12% 26%, var(--violet) 55%, #150a3f 80%);
  box-shadow: 0 0 16px rgba(110, 120, 255, .8);
}
.brand-logo { height: 38px; width: auto; }

/* ---------- Barre globale (style launcher) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: 64px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  background: rgba(6, 7, 13, .72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.topbar.is-overlay { position: fixed; inset: 0 0 auto; background: linear-gradient(180deg, rgba(5, 6, 12, .85), rgba(5, 6, 12, .35)); border-bottom-color: transparent; transition: background-color .3s, border-color .3s; }
.topbar.is-overlay.scrolled { background: rgba(6, 7, 13, .9); border-bottom-color: var(--border); }
.desktop-nav { display: flex; align-items: stretch; height: 100%; gap: 4px; }
.desktop-nav a, .desktop-nav button {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  color: var(--text-2); font-size: 14px; font-weight: 500; background: none; border: 0;
  transition: color .2s;
}
.desktop-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s var(--ease); }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #fff; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.realm-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .03);
  color: var(--text-2); font-size: 12.5px; font-weight: 500;
}
.realm-pill #realm-status-marker, .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.realm-pill[data-state="up"] #realm-status-marker { background: var(--green); box-shadow: 0 0 0 3px rgba(62, 226, 155, .15), 0 0 10px var(--green); animation: pulse 2.4s ease-in-out infinite; }
.realm-pill[data-state="down"] #realm-status-marker { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 95, 114, .15); }
.menu-button { display: none; width: 42px; height: 42px; place-content: center; gap: 6px; border: 1px solid var(--border-2); border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); }
.menu-button span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .2s var(--ease); }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Structure commune ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding: clamp(48px, 6vw, 80px) 0; }
.section-kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--blue-hi); font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; box-shadow: 0 0 10px currentColor; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.section-head h2 { margin-top: 14px; font-size: clamp(30px, 4vw, 48px); }
.section-head > p { max-width: 420px; color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .04); color: var(--text-2); font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.chip-blue { color: #9cd0ff; border-color: rgba(90, 174, 255, .35); background: rgba(26, 140, 255, .1); }
.chip-gold { color: #ffd98f; border-color: rgba(234, 181, 77, .38); background: rgba(234, 181, 77, .1); }
.chip-violet { color: #c8b3ff; border-color: rgba(141, 99, 255, .4); background: rgba(141, 99, 255, .12); }
.chip-green { color: #9ff0c8; border-color: rgba(62, 226, 155, .35); background: rgba(62, 226, 155, .1); }

/* ==========================================================================
   ACCUEIL
   ========================================================================== */
.home { background: var(--bg); }

/* Hero façon page de jeu du launcher */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; padding: 120px 0 150px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: url("/assets/nebula.webp") 78% 40% / cover no-repeat; opacity: .75; transform: scale(1.08); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, rgba(5, 6, 12, .92) 28%, rgba(5, 6, 12, .35) 62%, rgba(5, 6, 12, .6) 100%),
  linear-gradient(180deg, rgba(5, 6, 12, .2) 0%, transparent 40%, var(--bg) 100%); }
.hero-grain { position: absolute; inset: 0; z-index: -2; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.4px), radial-gradient(rgba(140, 170, 255, .35) 1px, transparent 1.4px);
  background-size: 180px 180px, 260px 260px; background-position: 0 0, 90px 120px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 60%);
  animation: drift 60s linear infinite; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px; }
.hero-content { max-width: 620px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.hero-copy { margin-top: 22px; max-width: 540px; color: var(--text-2); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 40px 0 0; padding: 0; }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta dt { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-meta dd { margin: 0; color: var(--text); font-weight: 600; }
.hero-emblem { position: relative; display: grid; place-items: center; }
.hero-emblem img { position: relative; z-index: 1; width: 100%; max-width: 760px; mix-blend-mode: lighten; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7)); animation: float 8s ease-in-out infinite; }
.emblem-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(63, 216, 255, .28), rgba(141, 99, 255, .22) 40%, transparent 70%); filter: blur(30px); animation: breathe 6s ease-in-out infinite; }

/* Bandeau de statut sous le hero (carte launcher) */
.realm-strip { position: relative; z-index: 5; margin-top: -92px; margin-bottom: clamp(24px, 4vw, 40px); }
.realm-card {
  display: grid; grid-template-columns: auto 1fr repeat(3, auto) auto; align-items: center; gap: 0;
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22, 26, 44, .92), rgba(12, 14, 25, .95));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.realm-card > * { padding: 20px 26px; }
.realm-id { display: flex; align-items: center; gap: 16px; }
.realm-id img { width: 88px; height: auto; mix-blend-mode: lighten; }
.realm-id small { display: block; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.realm-id strong { display: block; font: 700 22px/1.2 var(--display); }
.realm-state { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.live { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border-2); color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.live[data-state="up"] { color: #9ff0c8; border-color: rgba(62, 226, 155, .35); background: rgba(62, 226, 155, .08); }
.live[data-state="up"]::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.live[data-state="down"] { color: #ffb3bd; border-color: rgba(255, 95, 114, .35); background: rgba(255, 95, 114, .08); }
.live[data-state="down"]::before { background: var(--red); }
.metric { border-left: 1px solid var(--border); }
.metric span { display: block; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.metric strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.realm-card .realm-cta { border-left: 1px solid var(--border); }

/* À propos */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy h2 { margin: 16px 0 20px; font-size: clamp(30px, 4vw, 50px); }
.about-copy p { color: var(--text-2); font-size: 16px; line-height: 1.8; max-width: 540px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--blue-hi); font-weight: 600; font-size: 14px; }
.text-link .i { transition: transform .2s var(--ease); }
.text-link:hover .i { transform: translateX(4px); }
.about-points { display: grid; gap: 12px; }
.point { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r); background: linear-gradient(180deg, var(--surface-2), var(--surface)); transition: border-color .2s, transform .2s var(--ease); }
.point:hover { border-color: var(--border-2); transform: translateX(4px); }
.point-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: rgba(26, 140, 255, .1); color: var(--blue-hi); border: 1px solid rgba(90, 174, 255, .25); }
.point strong { display: block; font-weight: 600; margin-bottom: 2px; }
.point p { color: var(--text-2); font-size: 14px; }

/* Systèmes : cartes façon « mods » */
.systems { background: linear-gradient(180deg, transparent, rgba(20, 24, 45, .45) 30%, transparent); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  --accent: var(--blue);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 20px 60px -20px var(--accent); }
.feature-art {
  position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--surface-2)), var(--surface));
  border-bottom: 1px solid var(--border);
}
.feature-art::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 60%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 60%, #000, transparent 70%); }
.feature-icon { position: relative; width: 72px; height: 72px; display: grid; place-items: center; transform: rotate(45deg); border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 70%, white 10%); background: color-mix(in srgb, var(--accent) 16%, rgba(5, 6, 12, .8)); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 0 20px color-mix(in srgb, var(--accent) 25%, transparent); transition: transform .4s var(--ease); }
.feature:hover .feature-icon { transform: rotate(45deg) scale(1.08); }
.feature-icon svg { width: 34px; height: 34px; transform: rotate(-45deg); fill: none; stroke: color-mix(in srgb, var(--accent) 60%, white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-index { position: absolute; top: 12px; right: 14px; color: rgba(255, 255, 255, .5); font: 700 12px/1 var(--display); letter-spacing: .1em; }
.feature-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.feature-body .chip { align-self: flex-start; color: color-mix(in srgb, var(--accent) 55%, white); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.feature h3 { font-size: 21px; }
.feature p { color: var(--text-2); font-size: 14px; line-height: 1.65; }
.feature-prestige { --accent: var(--gold); }
.feature-draft { --accent: var(--cyan); }
.feature-paragon { --accent: var(--violet); }
.feature-bots { --accent: var(--green); }

/* Actualités */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.news-tile:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.news-thumb { position: relative; aspect-ratio: 16 / 7; background: url("/assets/nebula.webp") center / cover; overflow: hidden; }
.news-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--surface)); }
.news-tile:nth-child(3n+2) .news-thumb { background-position: 20% 80%; filter: hue-rotate(-30deg); }
.news-tile:nth-child(3n) .news-thumb { background-position: 80% 20%; filter: hue-rotate(35deg); }
.news-thumb .chip { position: absolute; z-index: 1; top: 14px; left: 14px; background: rgba(5, 6, 12, .6); backdrop-filter: blur(6px); }
.news-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 4px 22px 22px; }
.news-tile small { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.news-tile h3 { font-size: 20px; line-height: 1.25; }
.news-tile p { color: var(--text-2); font-size: 14px; flex: 1; }
.news-tile a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--blue-hi); font-weight: 600; font-size: 14px; }
.news-tile a::after { content: ""; position: absolute; inset: 0; }
.news-tile a:focus-visible { outline: none; }
.news-tile:has(a:focus-visible) { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.news-grid > p { color: var(--text-2); }
.empty { grid-column: 1 / -1; padding: 32px; border: 1px dashed var(--border-2); border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); color: var(--text-2); text-align: center; }

/* Rejoindre */
.join-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--border-2); border-radius: 22px;
  background: linear-gradient(135deg, rgba(26, 140, 255, .1), transparent 40%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.join-panel::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 480px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(141, 99, 255, .25), transparent 65%); }
.join-copy h2 { margin: 16px 0 14px; font-size: clamp(30px, 4vw, 46px); }
.join-copy > p { color: var(--text-2); }
.realmlist { margin-top: 26px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border: 1px solid var(--border-2); border-radius: var(--r); background: rgba(0, 0, 0, .35); }
.realmlist code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #9cd0ff; font-size: 14px; }
.realmlist .plain-button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--border-2); background: var(--surface-3); color: var(--text); }
.join-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.small-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-hi); font-size: 14px; font-weight: 600; }
.small-link:hover { color: #fff; }
.join-links .small-link { height: 38px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--text); }
.join-links .small-link:hover { border-color: var(--border-2); background: rgba(255, 255, 255, .07); }
.status-muted { min-height: 22px; margin-top: 10px; color: var(--text-3); font-size: 13px; }
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.join-steps li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r); background: rgba(5, 6, 12, .45); }
.join-steps li > span { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(90, 174, 255, .4); background: rgba(26, 140, 255, .12); color: #9cd0ff; font: 700 13px/1 var(--display); }
.join-steps strong { display: block; font-weight: 600; font-size: 16px; }
.join-steps p { margin-top: 2px; color: var(--text-2); font-size: 14px; }
.join-action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }

/* Pied de page */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 40px; padding-block: 48px 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { width: 150px; mix-blend-mode: lighten; }
.footer-brand p, .site-footer li { color: var(--text-3); font-size: 14px; }
.site-footer h4 { margin-bottom: 14px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }

/* Toast / révélations */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 160%); width: min(92vw, 480px); padding: 14px 18px; border: 1px solid var(--border-2); border-radius: var(--r); background: var(--surface-2); box-shadow: var(--shadow); text-align: center; transition: transform .35s var(--ease); }
.toast.visible { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(62, 226, 155, 0), 0 0 10px var(--green); } }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .7; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes drift { to { background-position: -180px 360px, -170px 640px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .realm-card { grid-template-columns: 1fr auto; }
  .realm-card .metric { border-left: 0; border-top: 1px solid var(--border); }
  .realm-card .realm-cta { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); }
  .realm-card .realm-cta .button { width: 100%; }
  .realm-card { grid-template-columns: repeat(3, 1fr); }
  .realm-id { grid-column: 1 / 3; }
  .realm-state { justify-content: flex-end; }
}
@media (max-width: 960px) {
  .desktop-nav, .top-actions .realm-pill { display: none; }
  .menu-button { display: grid; }
  .mobile-nav { position: absolute; top: 64px; left: 0; right: 0; display: grid; gap: 2px; padding: 10px var(--gutter) 16px; background: rgba(6, 7, 13, .98); border-bottom: 1px solid var(--border); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
  .mobile-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-nav a, .mobile-nav button { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--r-sm); color: var(--text-2); background: none; border: 0; text-align: left; font-size: 15px; }
  .mobile-nav a:hover, .mobile-nav button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
  .hero { padding: 100px 0 130px; min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-emblem { order: -1; max-width: 560px; margin: 0 auto -20px; }
  .hero-content { margin: auto; }
  .hero-badges, .hero-actions, .hero-meta { justify-content: center; }
  .hero-copy { margin-inline: auto; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(5, 6, 12, .5), rgba(5, 6, 12, .85) 55%, var(--bg)); }
  .about-grid, .join-panel { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .top-actions > .button { display: none; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-meta { gap: 20px; }
  .realm-strip { margin-top: -70px; }
  .realm-card { grid-template-columns: 1fr 1fr; }
  .realm-card > * { padding: 16px 18px; }
  .realm-id { grid-column: 1 / -1; }
  .realm-state { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--border); }
  .realm-card .metric:last-of-type { grid-column: 1 / -1; }
  .realm-id img { width: 64px; }
  .feature-grid, .news-grid { grid-template-columns: 1fr; }
  .join-action { display: grid; }
  .join-action .button { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Navigation commune : ajustements */
.mobile-sep { height: 1px; margin: 8px 0; border: 0; background: var(--border); }
.mobile-nav [aria-current="page"] { color: #fff; background: rgba(26, 140, 255, .12); }
@media (max-width: 1240px) { .top-actions .realm-pill { display: none; } }
@media (max-width: 1100px) { .desktop-nav a { padding: 0 10px; } .topbar { gap: 16px; } }
@media (max-width: 960px) {
  .mobile-nav { background: #07080f; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
  .topbar:has(.mobile-nav.open) { background: #07080f; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
