:root {
  --bg: #16171B;
  --surface: #1e1e22;
  --surface-2: #25262c;
  --sidebar: #121214;
  --primary: #eba800;
  --primary-deep: #c18a00;
  --primary-soft: rgba(235, 168, 0, 0.28);
  --text: #F2F3F5;
  --muted: #8B8C8F;
  --line: rgba(255, 255, 255, 0.08);
  --font-display: 'Bungee', 'Bungee Regular', cursive;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url('/endocraft/fonts/Bungee.woff2') format('woff2'),
    url('/endocraft/fonts/Bungee.ttf') format('truetype');
}

@font-face {
  font-family: 'Bungee Regular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url('/endocraft/fonts/Bungee.woff2') format('woff2'),
    url('/endocraft/fonts/Bungee.ttf') format('truetype');
}

* {
  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;
  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;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}

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

.header-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #211d17;
  background: #eba800;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  transition: background 0.15s ease, transform 0.1s ease;
  animation: none;
  box-shadow: none;
}

.header-cta:hover {
  background: #ffc23d;
  transform: none;
  animation: none;
  box-shadow: none;
}

.header-cta:active {
  transform: scale(0.98);
  transition-duration: 0.08s;
}

.header-cta.is-loading {
  pointer-events: none;
  cursor: wait;
  animation: none;
  box-shadow: none;
}

.header-cta.is-loading::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid rgba(33, 29, 23, 0.28);
  border-top-color: #211d17;
  border-radius: 50%;
  flex-shrink: 0;
  animation: downloadSpin 0.65s linear infinite;
}

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

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

.header-links > a:not(.header-cta):hover {
  color: #fff;
}

.site-nav,
.nav-toggles,
.version-tag {
  display: none !important;
}

.nav-toggles {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9999px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.nav-toggle:hover {
  color: var(--text);
  border-color: rgba(235, 168, 0, 0.5);
  background: rgba(235, 168, 0, 0.08);
}

.nav-toggle:active {
  transform: scale(0.96);
}

/* ?? Hero full-bleed (layout proche Misty Home) ?? */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -24px;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  /* No live blur ? JPEG + blur causes banding; mist comes from overlays */
  filter: saturate(0.82) brightness(0.62);
  transform: scale(1.04);
  animation: heroKenBurns 28s ease-in-out infinite alternate;
}

.hero-bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(22, 23, 27, 0.94) 0%,
      rgba(22, 23, 27, 0.82) 38%,
      rgba(22, 23, 27, 0.48) 66%,
      rgba(22, 23, 27, 0.32) 100%
    ),
    linear-gradient(
      to top,
      rgba(22, 23, 27, 0.55) 0%,
      rgba(22, 23, 27, 0.12) 45%,
      rgba(22, 23, 27, 0.28) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 6.5rem 0 4.5rem;
}

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

.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: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  opacity: 0;
  animation:
    heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards,
    kickerFloat 3.2s ease-in-out 1.2s infinite;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 3.625rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  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,
.hero-panel > .discord-message {
  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;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  border: none;
  padding: 6px 22px 6px 6px;
  transition:
    background-color 0.2s ease,
    transform 0.18s ease,
    border-color 0.2s ease,
    box-shadow 0.25s 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.2s ease, transform 0.2s ease;
}

.misty-btn.is-loading,
.misty-btn-primary.is-loading:hover {
  pointer-events: none;
  cursor: wait;
  animation: none;
  transform: none;
  box-shadow: none;
}

.misty-btn.is-loading:hover .misty-btn-icon {
  transform: none;
}

.misty-btn.is-loading .misty-btn-icon > * {
  opacity: 0;
}

.misty-btn.is-loading .misty-btn-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: downloadSpin 0.65s linear infinite;
}

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

.misty-btn-primary.is-loading .misty-btn-icon::after {
  border-color: rgba(33, 29, 23, 0.28);
  border-top-color: #211d17;
}

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

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

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

.misty-btn-primary {
  background: #eba800;
  color: #211d17;
  font-weight: 700;
  box-shadow: none;
  animation: none;
}

.misty-btn-primary:hover {
  background: #ffc23d;
  transform: none;
  box-shadow: none;
  animation: none;
}

.misty-btn-primary:active {
  transform: scale(0.98);
  background: #eba800;
  box-shadow: none;
  transition-duration: 0.08s;
}

.misty-btn-primary:active .misty-btn-icon {
  transform: none;
  background: rgba(255, 255, 255, 0.35);
}

@keyframes ctaGlow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(235, 168, 0, 0.22);
  }
  50% {
    box-shadow: 0 8px 26px rgba(235, 168, 0, 0.42);
  }
}

.misty-btn-secondary {
  background: rgba(22, 23, 27, 0.92);
  color: #fff;
  border: 1px solid rgba(235, 168, 0, 0.45);
  padding: 6px 20px 6px 6px;
}

.misty-btn-secondary:hover {
  border-color: rgba(235, 168, 0, 0.7);
  background: rgba(38, 39, 46, 0.95);
  transform: translateY(-1px);
}

.misty-btn-secondary:active {
  transform: scale(0.97);
}

/* Linux : même structure que Télécharger, ton plus discret */
.misty-btn-linux {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 22px 6px 6px;
  font-weight: 600;
}

.misty-btn-linux .misty-btn-icon {
  background: rgba(235, 168, 0, 0.18);
  color: #eba800;
}

.misty-btn-linux:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(235, 168, 0, 0.35);
  color: #fff;
}

.misty-btn-linux:hover .misty-btn-icon {
  background: rgba(235, 168, 0, 0.28);
}

.misty-btn-linux:active {
  transform: scale(0.98);
}

@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);
  }
}

@keyframes kickerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes heroKenBurns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}

/* Scroll reveal ? only hide when JS enabled (avoids blank page if observer fails) */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }
.reveal-delay-4 { transition-delay: 0.24s; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #ffc23d;
  border-color: #ffc23d;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-discord {
  background: var(--surface);
  color: #fff;
  gap: 0.6rem;
  border-color: var(--line);
}

.btn-discord:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-discord:active {
  transform: scale(0.97);
}

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

.btn-discord-label {
  line-height: 1.2;
}

.hidden {
  display: none !important;
}

.discord-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: rgba(30, 30, 34, 0.85);
  border: 1px solid var(--line);
  border-radius: 9999px;
  max-width: max-content;
}

.discord-user img {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
}

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

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

.discord-user-info a {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.discord-user-info a:hover {
  color: var(--primary);
}

.discord-message {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  max-width: 32rem;
  border: 1px solid var(--line);
  background: rgba(30, 30, 34, 0.8);
}

.discord-message.info {
  color: var(--muted);
}

.discord-message.success {
  color: #b8e6c8;
  border-color: rgba(52, 211, 153, 0.25);
}

.discord-message.error {
  color: #fecaca;
  border-color: rgba(225, 29, 46, 0.35);
}

.meta {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ?? Sections ?? */
.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;
}

/* Features + serveur */
.features {
  padding: 4.5rem 0 2.5rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.feature-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: border-color 0.2s ease;
}

.feature-list li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 99px;
  background: var(--primary);
  transform: translateY(-50%);
  transition: height 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-list li:hover {
  border-bottom-color: rgba(235, 168, 0, 0.28);
}

.feature-list li:hover::after {
  height: 55%;
}

.feature-list strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.feature-list li:hover strong {
  color: #ffc23d;
  padding-left: 0.55rem;
}

.feature-list span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  transition: color 0.2s ease;
}

.feature-list li:hover span {
  color: rgba(242, 243, 245, 0.78);
}

.server {
  padding: 2rem 0 4.5rem;
  background: var(--bg);
}

.server-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.server-inner h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}

.server-ip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem 0.55rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(235, 168, 0, 0.35);
  background: var(--primary-soft);
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.server-ip:hover {
  background: rgba(235, 168, 0, 0.38);
  border-color: rgba(235, 168, 0, 0.55);
  transform: translateY(-1px);
}

.server-ip:active {
  transform: scale(0.98);
}

.server-ip-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.server-ip code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: none;
}

.server-ip-action {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.server-ip.is-copied .server-ip-action {
  background: #3ecf8e;
  color: #0b1a12;
  transform: scale(1.04);
}

@media (max-width: 720px) {
  .feature-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ?? Articles (simple list, not heavy cards) ?? */
.articles {
  padding: 3.5rem 1.5rem 2rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.article-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
}

.article-card:hover .article-card-cta {
  transform: translateX(3px);
}

.article-thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-thumb--empty {
  background:
    linear-gradient(135deg, rgba(225, 29, 46, 0.18), transparent 60%),
    var(--surface-2);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.article-card-cat {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.article-pin {
  color: #e8c56a;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-card h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
  font-weight: 600;
}

.article-card-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-cta {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  transition: transform 0.2s ease, color 0.2s ease;
}

.article-row-skeleton {
  height: 88px;
  margin: 0.75rem 0;
  background: linear-gradient(110deg, var(--surface) 30%, rgba(255, 255, 255, 0.04) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  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 1rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

/* ?? Article page (light restyle) ?? */
.article-page {
  padding: 5.5rem 1rem 4rem;
  max-width: 760px;
  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);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.article-back:hover {
  color: var(--primary);
  transform: translateX(-2px);
}

.article-hero {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-head {
  margin-bottom: 2rem;
}

.article-cat {
  display: inline-block;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.article-sub {
  font-size: 1.05rem;
  color: var(--muted);
  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(242, 243, 245, 0.82);
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 1.8rem 0 0.8rem;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.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(--primary);
  text-decoration: underline;
}

/* ?? Changelog timeline ?? */
.changelog {
  padding: 2rem 1.5rem 4.5rem;
}

.changelog-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid transparent;
  margin-left: 0.35rem;
  position: relative;
}

.changelog-list::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-anim .changelog-list.is-drawn::before,
html:not(.js-anim) .changelog-list::before {
  transform: scaleY(1);
}

.changelog-empty {
  padding: 1.25rem 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.changelog-entry {
  position: relative;
  padding: 0 0 0 1.25rem;
}

/* Scroll-driven entrance ? waits for IntersectionObserver */
html.js-anim .changelog-entry.reveal-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js-anim .changelog-entry.reveal-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-anim .changelog-entry.reveal-scroll .changelog-entry-dot,
html.js-anim .changelog-entry.reveal-scroll::before {
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) 0.12s,
    background 0.25s ease, box-shadow 0.25s ease;
}

html.js-anim .changelog-entry.reveal-scroll.is-visible::before {
  transform: scale(1);
}

html.js-anim .changelog-entry.reveal-scroll.is-visible:has(details[open])::before {
  transform: scale(1.15);
}

.changelog-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 1.35rem;
  width: 8px;
  height: 8px;
  background: var(--surface-2);
  border: 2px solid var(--primary);
  border-radius: 1px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.changelog-entry:has(details[open])::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(235, 168, 0, 0.22);
  transform: scale(1.15);
}

.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 0.35rem 1rem 0;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  user-select: none;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.2s ease, opacity 0.18s ease;
}

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

.changelog-entry summary:hover {
  background: rgba(235, 168, 0, 0.06);
}

.changelog-entry summary:hover .changelog-version {
  color: var(--primary);
}

.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: 0.95rem;
  color: var(--text);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.changelog-title {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.changelog-entry summary:hover .changelog-title {
  color: rgba(242, 243, 245, 0.85);
}

.changelog-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  background: var(--primary-soft);
  color: #fff;
  border: 1px solid rgba(235, 168, 0, 0.35);
  border-radius: 9999px;
  font-weight: 700;
  animation: badgePulse 2.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(235, 168, 0, 0);
    border-color: rgba(235, 168, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(235, 168, 0, 0.18);
    border-color: rgba(235, 168, 0, 0.55);
  }
}

.changelog-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 9999px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
  font-size: 0.75rem;
  color: var(--muted);
}

.changelog-entry summary:hover .changelog-chevron {
  background: rgba(235, 168, 0, 0.15);
  color: #fff;
}

.changelog-entry details[open] .changelog-chevron {
  transform: rotate(180deg);
  background: rgba(235, 168, 0, 0.2);
  color: #fff;
}

.changelog-body {
  color: rgba(242, 243, 245, 0.75);
  font-size: 0.9rem;
  padding: 0.85rem 0 1.15rem;
  animation: changelogReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes changelogReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  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.35rem;
  line-height: 1.5;
  animation: changelogBulletIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.changelog-body li:nth-child(1) { animation-delay: 0.04s; }
.changelog-body li:nth-child(2) { animation-delay: 0.1s; }
.changelog-body li:nth-child(3) { animation-delay: 0.16s; }
.changelog-body li:nth-child(4) { animation-delay: 0.22s; }
.changelog-body li:nth-child(5) { animation-delay: 0.28s; }
.changelog-body li:nth-child(6) { animation-delay: 0.34s; }
.changelog-body li:nth-child(n+7) { animation-delay: 0.4s; }

@keyframes changelogBulletIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.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.06);
  padding: 0.12em 0.4em;
  border-radius: 9999px;
  color: #f5c2c7;
}

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

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

/* ?? Footer ?? */
.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-privacy {
  margin-top: 0.55rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.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;
}

.footer-version {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ?? Responsive ?? */
@media (max-width: 720px) {
  .wrap {
    padding: 0 1.1rem;
  }

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

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

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }

  .logo-name {
    font-size: 1.15rem;
  }

  .hero {
    min-height: 92vh;
    padding-bottom: 3.5rem;
    align-items: flex-end;
  }

  .hero-brand {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  .hero-tagline {
    letter-spacing: 0.1em;
    margin-bottom: 1.4rem;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
  }

  .meta {
    width: 100%;
  }

  .discord-user {
    width: 100%;
    max-width: 100%;
  }

  .discord-message {
    max-width: 100%;
  }

  .articles {
    padding: 2.5rem 1.1rem 1.5rem;
  }

  .article-card {
    grid-template-columns: 96px 1fr;
    gap: 0.85rem;
  }

  .changelog {
    padding: 1.25rem 1.1rem 3rem;
  }

  .changelog-entry summary {
    padding: 0.85rem 0;
  }

  .article-page {
    padding: 4.5rem 1rem 2.5rem;
  }

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

@media (max-width: 540px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .version-tag {
    display: none;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-thumb {
    max-width: 200px;
  }
}

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

  .hero-bg-img {
    animation: none;
    transform: scale(1.02);
  }

  .site-header,
  .hero-kicker,
  .hero-brand,
  .hero-lead,
  .hero-actions,
  .hero-panel > .meta,
  .hero-panel > .discord-message,
  .hero-corner-meta,
  .hero-tagline,
  .misty-btn-primary,
  .misty-btn-primary .misty-btn-icon,
  .header-cta {
    animation: none !important;
  }

  .reveal,
  html.js-anim .reveal,
  html.js-anim .changelog-entry.reveal-scroll {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  html.js-anim .changelog-list::before,
  html.js-anim .changelog-entry.reveal-scroll::before,
  html.js-anim .changelog-entry.reveal-scroll.is-visible::before {
    transform: none !important;
    transition: none !important;
  }

  .section-header h2::after {
    transform: scaleX(1);
    transition: none;
  }

  .feature-list li,
  .feature-list li:hover,
  .feature-list li::after,
  .feature-list li:hover::after,
  .feature-list strong,
  .feature-list span {
    transition: none !important;
  }

  .feature-list li:hover strong {
    padding-left: 0;
    color: #fff;
  }

  .feature-list li:hover::after {
    height: 0;
  }

  .misty-btn,
  .misty-btn-icon,
  .header-cta,
  .header-links > a,
  .logo-brand,
  .nav-toggle,
  .btn,
  .server-ip,
  .server-ip-action,
  .article-card,
  .article-card-cta,
  .article-back,
  .changelog-version,
  .changelog-entry summary,
  .changelog-chevron,
  .changelog-body {
    transition: none !important;
  }

  .misty-btn:hover,
  .misty-btn:active,
  .header-cta:hover,
  .header-cta:active,
  .btn:hover,
  .btn:active,
  .server-ip:hover,
  .server-ip:active,
  .logo-brand:active,
  .article-card:hover .article-card-cta,
  .server-ip.is-copied .server-ip-action {
    transform: none !important;
  }

  .misty-btn.is-loading .misty-btn-icon::after,
  .header-cta.is-loading::before {
    animation: none;
    border-color: rgba(255, 255, 255, 0.55);
    border-top-color: #fff;
    opacity: 0.85;
  }

  .article-row-skeleton {
    animation: none;
  }

  .changelog-badge,
  html.js-anim .changelog-entry.reveal.is-visible,
  .changelog-body,
  .changelog-body li {
    animation: none !important;
  }

  .section-header h2::after {
    transform: scaleX(1);
    transition: none !important;
  }
}


.section-header h2 {
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 99px;
  background: var(--primary);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

html.js-anim .reveal.is-visible .section-header h2::after,
html.js-anim .section-header.reveal.is-visible h2::after {
  transform: scaleX(1);
}

html:not(.js-anim) .section-header h2::after {
  transform: scaleX(1);
}

/* —— Liens lisibles (ambre clair, jamais le bleu par défaut du navigateur) —— */
:root {
  --link: #ffcb57;
  --link-hover: #ffe3a0;
  --link-underline: rgba(255, 203, 87, 0.55);
}

/* —— Hero-kicker plus lumineux (badge plein, pas juste 10% d'opacité) —— */
.hero-kicker {
  color: #211d17;
  background: linear-gradient(180deg, #ffc23d 0%, #eba800 100%);
  border: 1px solid #ffdb8a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 2px 10px rgba(235, 168, 0, 0.45);
}

/* —— Nav multi-pages (Accueil / Wiki / Changelog) —— */
.header-links > a.is-active {
  color: #fff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.15rem;
  margin-bottom: 0.85rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: #fff;
}

@media (max-width: 520px) {
  .header-link-nav {
    display: none;
  }
}

/* —— Pages statiques (Wiki / Changelog) —— */
.page-main {
  padding: 5.75rem 1.5rem 3.5rem;
}

.page-head {
  margin-bottom: 1.25rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0.6rem 0 0.6rem;
  color: #fff;
}

.page-head > p:not(.hero-kicker) {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

.page-head .hero-actions {
  margin-top: 1.5rem;
  opacity: 1;
  transform: none;
  animation: none;
}

.page-head .meta {
  margin-top: 0.9rem;
}

@media (max-width: 720px) {
  .page-main {
    padding: 5rem 1.1rem 2.5rem;
  }
}

/* —— Comment jouer (accueil) —— */
.howto {
  padding: 3rem 0 1rem;
}

.steps-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.step-card {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.step-card:hover {
  border-color: rgba(235, 168, 0, 0.35);
  background: var(--surface-2);
}

.step-num {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  background: var(--primary-soft);
  border: 1px solid rgba(235, 168, 0, 0.4);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.step-card code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  color: #ffdb8a;
}

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

  .step-num {
    margin-bottom: 0.25rem;
  }
}

/* —— Wiki —— */
.wiki-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.5rem;
}

.wiki-toc a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.wiki-toc a:hover {
  color: #fff;
  border-color: rgba(235, 168, 0, 0.5);
  background: rgba(235, 168, 0, 0.1);
}

.wiki-section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.wiki-section:first-of-type {
  border-top: none;
  padding-top: 0.5rem;
}

.wiki-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
}

.wiki-section .hint-text {
  margin: -0.35rem 0 1rem;
}

.wiki-section p {
  font-size: 0.92rem;
  color: rgba(242, 243, 245, 0.82);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.wiki-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: rgba(242, 243, 245, 0.82);
  font-size: 0.92rem;
  line-height: 1.75;
}

.wiki-list li {
  margin-bottom: 0.5rem;
}

.wiki-list strong {
  color: #fff;
}

.mod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mod-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: rgba(242, 243, 245, 0.82);
}

.mod-tag-group {
  margin-bottom: 1.1rem;
}

.mod-tag-group h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq-list {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0.35rem 1rem 0;
  margin: 0 -0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-weight: 700;
  color: #fff;
  font-size: 0.94rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

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

.faq-item summary:hover {
  background: rgba(235, 168, 0, 0.08);
  color: #ffdb8a;
}

.faq-item summary:hover .changelog-chevron {
  background: rgba(235, 168, 0, 0.15);
  color: #fff;
}

.faq-item[open] .changelog-chevron {
  transform: rotate(180deg);
  background: rgba(235, 168, 0, 0.2);
  color: #fff;
}

.faq-body {
  padding: 0 0.35rem 1.15rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq-body strong {
  color: rgba(242, 243, 245, 0.92);
}

.faq-body code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  color: #ffdb8a;
}

/* Liens dans le contenu (wiki, intros de page, hint-text) - ambre clair, jamais le bleu par défaut */
.wiki-section a,
.page-head > p a,
.hint-text a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 2px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.wiki-section a:visited,
.page-head > p a:visited,
.hint-text a:visited {
  color: var(--link);
}

.wiki-section a:hover,
.wiki-section a:focus-visible,
.page-head > p a:hover,
.page-head > p a:focus-visible,
.hint-text a:hover,
.hint-text a:focus-visible {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

@media (max-width: 720px) {
  .wiki-section {
    padding: 1.85rem 0;
  }
}
