:root {
  --bg: #16171B;
  --surface: #1e1e22;
  --surface-2: #25262c;
  --card: #1e1e22;
  --primary: #7D67CB;
  --primary-deep: #6a56b8;
  --primary-soft: rgba(125, 103, 203, 0.28);
  --purple: #7D67CB;
  --purple-glow: #b5a6e8;
  --text: #F2F3F5;
  --muted: #8B8C8F;
  --line: rgba(255, 255, 255, 0.08);
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --endo: #eba800;
  --endo-deep: #c18a00;
  --endo-soft: rgba(235, 168, 0, 0.28);
  --blitz: #7d67cb;
  --blitz-soft: rgba(125, 103, 203, 0.28);
}

/* Toggle langue */
.nav-toggles {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-color: var(--purple);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1.25rem 0;
  background: transparent;
  border-bottom: none;
  animation: headerIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-brand:hover {
  opacity: 1;
}

.logo-brand:active {
  transform: scale(0.98);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.logo-word,
.logo-accent {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-word {
  color: rgba(255, 255, 255, 0.88);
}

.logo-accent {
  color: var(--purple-glow);
}

.header-links,
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-links > a,
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.header-links > a:hover,
.site-nav a:hover,
.site-nav a.nav-active {
  color: #fff;
}

.site-nav a.nav-active {
  color: var(--purple-glow);
}

.version-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
  border-radius: 999px;
  vertical-align: middle;
}

.version-pill:not(:empty) {
  display: inline-block;
}

.site-nav .version-pill[hidden] {
  display: none;
}

.footer-version {
  margin-top: 0.5rem;
  color: rgba(167, 139, 250, 0.85);
}

/* —— Misty full-bleed hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Clean Misty surface — no collage / wallpaper */
.hero-bg--clean {
  background:
    radial-gradient(ellipse 70% 55% at 15% 40%, rgba(125, 103, 203, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(125, 103, 203, 0.04), transparent 55%),
    var(--bg);
}

.hero-bg--clean::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem 3rem;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6.5rem 0 4.5rem;
}

.hero-panel {
  max-width: 520px;
  flex: 1 1 auto;
}

.hero-showcase {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 auto;
  width: min(300px, 34vw);
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.hero-preview {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  background: rgba(30, 30, 34, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.hero-preview:hover {
  transform: translateY(-3px);
}

.hero-preview--endo {
  border-color: rgba(235, 168, 0, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-preview--endo:hover {
  border-color: rgba(235, 168, 0, 0.5);
  background: #222329;
}

.hero-preview--blitz {
  margin-left: 1.35rem;
  border-color: rgba(125, 103, 203, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-preview--blitz:hover {
  border-color: rgba(125, 103, 203, 0.55);
  background: #222329;
}

.hero-preview-logo {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-preview-body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.hero-preview-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.hero-preview--endo .hero-preview-name {
  color: #f5d06a;
}

.hero-preview--blitz .hero-preview-name {
  color: #c4b5f0;
}

.hero-preview-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.hero-preview--endo .hero-preview-tag {
  background: var(--endo-soft);
  border: 1px solid rgba(235, 168, 0, 0.4);
}

.hero-preview--blitz .hero-preview-tag {
  background: var(--blitz-soft);
  border: 1px solid rgba(125, 103, 203, 0.4);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-soft);
  border: 1px solid rgba(125, 103, 203, 0.35);
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 3.625rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  opacity: 0;
  animation: heroIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 460px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--muted);
  opacity: 0;
  animation: heroIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  opacity: 0;
  animation: heroIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.hero-panel > .meta {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  opacity: 0;
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.hero-corner-meta {
  position: absolute;
  right: 1.5rem;
  bottom: 1.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 0;
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.misty-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  /* Transparent border keeps primary/secondary the same height (secondary paints color). */
  border: 1px solid transparent;
  padding: 6px 22px 6px 6px;
  min-height: 50px;
  box-sizing: border-box;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.misty-btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  color: #fff;
  transition: background 0.18s ease, transform 0.18s ease;
}

.misty-btn:hover .misty-btn-icon {
  transform: scale(1.06);
}

.misty-btn-icon--dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.misty-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.misty-btn-primary:hover {
  background: #8F7AD4;
  transform: translateY(-1px);
  box-shadow: none;
}

.misty-btn-primary:active {
  background: var(--primary-deep);
  transform: scale(0.97) translateY(0);
  box-shadow: none;
  transition-duration: 0.08s;
}

.misty-btn--endo {
  background: var(--endo);
  color: #211d17;
  box-shadow: none;
}

.misty-btn--endo .misty-btn-icon {
  background: rgba(255, 255, 255, 0.35);
  color: #211d17;
}

.misty-btn--endo:hover {
  background: #ffc23d;
  transform: translateY(-1px);
  box-shadow: none;
}

.misty-btn--endo:active {
  background: var(--endo-deep);
}

.misty-btn--blitz {
  background: var(--blitz);
  box-shadow: none;
}

.misty-btn--blitz:hover {
  background: #8F7AD4;
  transform: translateY(-1px);
  box-shadow: none;
}

.misty-btn-secondary {
  background: rgba(22, 23, 27, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  padding: 6px 20px 6px 6px;
  box-shadow: none;
}

.misty-btn-secondary:hover {
  background: rgba(38, 39, 46, 0.95);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  box-shadow: none;
}

.misty-btn-secondary--endo {
  border-color: rgba(235, 168, 0, 0.45);
}

.misty-btn-secondary--endo:hover {
  border-color: rgba(235, 168, 0, 0.7);
  background: rgba(38, 39, 46, 0.95);
  box-shadow: none;
}

.misty-btn-secondary--blitz {
  border-color: rgba(125, 103, 203, 0.45);
}

.misty-btn-secondary--blitz:hover {
  border-color: rgba(125, 103, 203, 0.7);
  background: rgba(38, 39, 46, 0.95);
  box-shadow: none;
}

.misty-btn-secondary:hover .misty-btn-icon--dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.misty-btn-secondary:active {
  background: rgba(30, 31, 36, 0.98);
  transform: scale(0.97) translateY(0);
}

@keyframes headerIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 1.35rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hint-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  max-width: 28rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #9333ea);
  color: #fff;
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(124, 58, 237, 0.55);
}

.btn-discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  gap: 0.65rem;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(88, 101, 242, 0.5);
}

.btn-discord .discord-logo {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  object-position: center;
}

.btn-discord-label {
  flex: 0 1 auto;
  line-height: 1.2;
  text-align: center;
}

.hidden {
  display: none !important;
}

.discord-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 12px;
  max-width: max-content;
}

.discord-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.discord-user-info {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.discord-user-info strong {
  color: #fff;
}

.discord-user-info a {
  color: rgba(167, 139, 250, 0.85);
  font-size: 0.75rem;
  text-decoration: none;
}

.discord-user-info a:hover {
  text-decoration: underline;
}

.discord-message {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  max-width: 32rem;
}

.discord-message.info {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.discord-message.success {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.discord-message.error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-credit {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-credit strong,
.footer-credit a {
  color: var(--purple-glow);
  font-weight: 700;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 2rem 0;
}

.stat-tile {
  position: relative;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.02));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  padding: 1.4rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.stat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% -20%, rgba(124, 58, 237, 0.18), transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.stat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.18);
}

.stat-tile:hover::before { opacity: 1; }

.stat-icon {
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.18);
  color: var(--purple-glow);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.stat-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.stat-icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.stat-icon--playing {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.stat-icon--discord {
  background: rgba(88, 101, 242, 0.22);
  color: var(--purple-glow);
}

.stat-icon--discord svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-feature-settings: 'tnum';
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  margin-top: 0.15rem;
}

.stat-sublabel {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-pulse {
  position: absolute;
  top: -8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  opacity: 0;
}

.stat-pulse.pulse-tick {
  animation: statPulse 1.2s ease-out;
}

@keyframes statPulse {
  0%   { opacity: 0.9; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  100% { opacity: 0;   box-shadow: 0 0 0 14px rgba(52, 211, 153, 0); }
}

@media (max-width: 600px) {
  .stat-tile { padding: 1.1rem 1rem 0.9rem; }
  .stat-number { font-size: 1.55rem; }
}

/* ============ ARTICLES ============ */
.articles {
  padding: 1rem 0 2rem;
}
.articles-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.articles-header h2 { font-size: 1.4rem; margin: 0; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, var(--purple-glow));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}
.article-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(124, 58, 237, 0.04));
  overflow: hidden;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-thumb--empty {
  background:
    radial-gradient(circle at 30% 30%, var(--accent, var(--purple-glow))25, transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
}
.article-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.article-card-cat {
  background: var(--accent, var(--purple-glow))20;
  color: var(--accent, var(--purple-glow));
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
}
.article-pin {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}
.article-card h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}
.article-card-body p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-cta {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--accent, var(--purple-glow));
  font-weight: 600;
}
.article-card-skeleton {
  height: 240px;
  background: linear-gradient(110deg, var(--card) 30%, rgba(255, 255, 255, 0.04) 50%, var(--card) 70%);
  background-size: 200% 100%;
  border-radius: 16px;
  animation: skel 1.5s infinite linear;
}
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.article-empty {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  background: var(--card);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  grid-column: 1 / -1;
}

/* ============ ARTICLE PAGE ============ */
.article-page {
  padding: 2rem 1rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}
.article-loading {
  text-align: center;
  color: var(--muted);
  padding: 3rem;
}
.article-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-back:hover { color: var(--text); }
.article-hero {
  aspect-ratio: 21 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--accent, rgba(124, 58, 237, 0.3));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-head { margin-bottom: 2rem; }
.article-cat {
  display: inline-block;
  background: var(--accent, var(--purple-glow))20;
  color: var(--accent, var(--purple-glow));
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.article-head h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.5rem;
}
.article-head time {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.article-body {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}
.article-body h2, .article-body h3, .article-body h4 {
  margin: 1.8rem 0 0.8rem;
  color: var(--text);
}
.article-body p { margin-bottom: 1.1rem; }
.article-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.1rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--purple-glow); text-decoration: underline; }

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* === Section confidentialité / Microsoft auth === */
.privacy {
  padding: 1.5rem 1.5rem 4rem;
  max-width: 1080px;
  margin: 0 auto;
}

.privacy-header {
  text-align: center;
  margin-bottom: 2rem;
}

.privacy-header h2 {
  font-size: 1.6rem;
  margin: 0.5rem 0 0.4rem;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.privacy-header .hint-text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.55;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.privacy-card {
  background: var(--card);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.privacy-card:hover {
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-2px);
}

.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  margin-bottom: 0.75rem;
}

.privacy-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: #ecfdf5;
}

.privacy-card p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.privacy-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #6ee7b7;
}

.privacy-card strong {
  color: #d1fae5;
}

.privacy-foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.1rem 1.4rem 0.9rem;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px dashed rgba(52, 211, 153, 0.25);
}

.privacy-foot p {
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.privacy-signature {
  margin-top: 0.7rem !important;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(52, 211, 153, 0.15);
  text-align: right !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-style: italic;
  color: rgba(255, 255, 255, 0.45) !important;
}

.privacy-signature strong {
  color: #6ee7b7;
  font-weight: 700;
  font-style: normal;
}

.hero-byline {
  margin: 0.4rem 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.hero-byline strong {
  color: var(--purple-glow);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.changelog {
  padding: 1rem 1.5rem 4rem;
  max-width: 1080px;
  margin: 0 auto;
}

.changelog-header {
  margin-bottom: 1.5rem;
}

.changelog-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.hint-text {
  color: var(--muted);
  font-size: 0.85rem;
}

.changelog-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.changelog-empty {
  background: var(--card);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.changelog-entry {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.changelog-entry:has(details[open]) {
  border-left: 3px solid var(--purple-glow);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.12);
}

.changelog-entry details {
  width: 100%;
}

.changelog-entry summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.4rem;
  user-select: none;
  flex-wrap: wrap;
  transition: background 0.15s;
}

.changelog-entry summary::-webkit-details-marker { display: none; }

.changelog-entry summary:hover {
  background: rgba(124, 58, 237, 0.05);
}

.changelog-summary-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.changelog-summary-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.changelog-version {
  font-weight: 800;
  font-size: 1rem;
  color: var(--purple-glow);
  padding: 0.2rem 0.55rem;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
}

.changelog-title {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.changelog-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(124, 58, 237, 0.15));
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}

.changelog-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.9rem;
  color: var(--purple-glow);
}

.changelog-entry details[open] .changelog-chevron {
  transform: rotate(180deg);
}

.changelog-body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  padding: 0 1.4rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  animation: changelogReveal 0.25s ease;
}

@keyframes changelogReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.changelog-body p {
  margin-bottom: 0.5rem;
}

.changelog-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.25rem 0 0;
}

.changelog-body li {
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.changelog-body strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
}

.changelog-body code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: #e9d5ff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  background: #0A0C10;
}

.footer-credit {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-credit strong,
.footer-credit a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.hub-page {
  background: var(--bg);
}

.hub-page .wrap {
  max-width: 1040px;
}

.hub-clients {
  padding: 4.5rem 0 5rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.hub-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.client-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem 1.6rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.client-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 55%);
}

.client-panel--endo {
  border-color: rgba(235, 168, 0, 0.2);
}

.client-panel--endo:hover {
  border-color: rgba(235, 168, 0, 0.42);
  background: #222329;
}

.client-panel--blitz {
  border-color: rgba(125, 103, 203, 0.24);
}

.client-panel--blitz:hover {
  border-color: rgba(125, 103, 203, 0.45);
  background: #222329;
}

.client-panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.client-panel-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.client-panel-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.client-panel--endo .client-panel-kicker {
  background: var(--endo-soft);
  border: 1px solid rgba(235, 168, 0, 0.4);
}

.client-panel--blitz .client-panel-kicker {
  background: var(--blitz-soft);
  border: 1px solid rgba(125, 103, 203, 0.4);
}

.client-panel-brand {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0.15rem 0 0;
  color: #fff;
}

.client-panel--endo .client-panel-brand {
  color: #f5d06a;
}

.client-panel--blitz .client-panel-brand {
  color: #c4b5f0;
}

.client-panel-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--muted);
  max-width: 28rem;
}

.client-panel-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

/* Hub cards: lock primary/secondary to identical box model (border + height). */
.client-panel-actions .misty-btn {
  display: flex;
  flex: 0 0 auto;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  align-self: center;
  box-sizing: border-box;
}

.client-panel-actions .misty-btn-secondary {
  padding: 6px 22px 6px 6px;
}

@media (min-width: 721px) {
  .client-panel-actions {
    flex-wrap: nowrap;
  }
}

@media (max-width: 720px) {
  .hub-panels {
    grid-template-columns: 1fr;
  }

  .hero-content {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 5.5rem 0 3.5rem;
    gap: 2rem;
  }

  .hero-showcase {
    width: 100%;
    max-width: 320px;
  }

  .hero-preview--blitz {
    margin-left: 0.75rem;
  }

  .hero-corner-meta {
    right: 1.1rem;
    bottom: 1.25rem;
  }

  .site-header {
    padding: 0.85rem 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }

  .header-links {
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

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

  .client-panel-actions .misty-btn {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .hero-brand,
  .hero-lead,
  .hero-actions,
  .hero-panel > .meta,
  .hero-showcase,
  .hero-corner-meta {
    opacity: 1;
    animation: none;
  }
}

/* ============================================================
   RESPONSIVE : tablette & mobile
   ============================================================ */

/* Tablettes & petits laptops (≤ 900px) : articles passent plus tôt en colonnes plus petites */
@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .privacy-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.changelog-title,
.changelog-version {
  word-break: break-word;
}

#download-meta {
  white-space: normal;
}

/* Tablettes étroites & gros mobiles (≤ 720px) */
@media (max-width: 720px) {
  .wrap {
    padding: 0 1rem;
  }

  /* ===== Header / nav ===== */
  .site-header {
    padding: 0.65rem 0;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
  }
  .logo-img {
    width: 32px;
    height: 32px;
  }
  .logo-word,
  .logo-accent {
    font-size: 1.15rem;
  }
  .site-nav {
    gap: 0.65rem;
  }
  .site-nav a {
    font-size: 0.8rem;
  }
  .nav-toggles {
    margin-left: 0.25rem;
  }
  .nav-toggle {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }
  .version-pill {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
  }

  /* ===== Hero ===== */
  .hero {
    padding: 2rem 1rem 2.5rem;
    gap: 1.25rem;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .hero-byline {
    font-size: 0.7rem;
  }
  .lead {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
  }
  .hero-visual {
    min-height: 0;
    max-height: 200px;
  }
  .hero-screenshot {
    max-height: 200px;
  }

  /* Boutons hero pleine largeur, ergonomie tactile */
  .hero-actions {
    width: 100%;
  }
  .btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
  }
  .btn-discord {
    justify-content: center;
    align-items: center;
  }
  .btn-discord .discord-logo {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
  }
  .meta {
    width: 100%;
    text-align: center;
  }
  .discord-user {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .discord-message {
    max-width: 100%;
  }

  /* ===== Stats ===== */
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1.5rem max(1.25rem, env(safe-area-inset-right, 0px)) 1.5rem
      max(1.25rem, env(safe-area-inset-left, 0px));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .stat-tile {
    padding: 1.1rem 1rem 0.95rem;
    min-width: 0;
  }
  .stat-number {
    font-size: 1.45rem;
  }
  .stat-label {
    font-size: 0.78rem;
  }
  .stat-sublabel {
    font-size: 0.62rem;
  }

  /* ===== Articles ===== */
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .articles-header h2 {
    font-size: 1.2rem;
  }

  /* ===== Privacy ===== */
  .privacy {
    padding: 1rem 1rem 2.5rem;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .privacy-header h2 {
    font-size: 1.25rem;
  }
  .privacy-header .hint-text {
    font-size: 0.82rem;
  }
  .privacy-foot {
    font-size: 0.8rem;
    padding: 0.85rem 1rem;
  }
  .privacy-card {
    padding: 1rem;
  }

  /* ===== Changelog ===== */
  .changelog {
    padding: 0.75rem 1rem 2.5rem;
  }
  .changelog-header h2 {
    font-size: 1.2rem;
  }
  .changelog-entry summary {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }
  .changelog-summary-main {
    gap: 0.5rem;
  }
  .changelog-version {
    font-size: 0.85rem;
  }
  .changelog-title {
    font-size: 0.85rem;
  }
  .changelog-summary-meta {
    font-size: 0.72rem;
    width: 100%;
    margin-top: 0.2rem;
  }
  .changelog-body {
    padding: 0.85rem 1rem 1rem;
    font-size: 0.85rem;
  }

  /* ===== Article page ===== */
  .article-page {
    padding: 1.25rem 1rem 2.5rem;
  }
  .article-head h1 {
    font-size: 1.5rem;
  }
  .article-sub {
    font-size: 0.95rem;
  }
  .article-body {
    font-size: 0.95rem;
  }
  .article-hero {
    margin-bottom: 1.25rem;
  }

  /* ===== Footer ===== */
  .site-footer {
    padding: 1.5rem 0;
    font-size: 0.75rem;
  }
}

/* Mobile compact (≤ 540px) : header passe en colonne, nav sous le logo */
@media (max-width: 640px) {
  #header-version.version-pill {
    display: none;
  }
}

@media (max-width: 540px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
  }
  .nav-toggles {
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 8vw, 1.9rem);
  }
  .hero-byline {
    margin-top: 0.3rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-left: max(1.35rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.35rem, env(safe-area-inset-right, 0px));
  }

  .article-head h1 {
    font-size: 1.3rem;
  }
}

/* Accessibilité : réduit les animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
  .stat-tile,
  .article-card,
  .privacy-card,
  .btn {
    transition: none !important;
  }
  .stat-tile:hover,
  .article-card:hover,
  .privacy-card:hover,
  .btn:hover {
    transform: none !important;
  }
  .article-card-skeleton {
    animation: none;
  }
}
