/* =============================================================================
   HateriaMC — feuille de style principale
   Palette : orange #E67E22 · cuivre #D35400 · or #F39C12 · noir #1A1A1A
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-soft: #0e0e11;
  --panel: #131317;
  --panel-2: #18181e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f6f5f3;
  --muted: #a6a6b0;
  --muted-2: #777783;
  --orange: #e67e22;
  --orange-deep: #d35400;
  --gold: #f39c12;
  --gold-soft: #ffc46b;
  --green: #2ecc71;
  --red: #e74c3c;
  --gradient: linear-gradient(110deg, #ffd08a 0%, #f39c12 28%, #e67e22 62%, #d35400 100%);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

::selection {
  background: rgba(230, 126, 34, 0.4);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

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

ul {
  list-style: none;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--gradient);
  color: #1a1a1a;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   Utilitaires
   -------------------------------------------------------------------------- */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.16), 0 0 18px rgba(230, 126, 34, 0.7);
}

.eyebrow-dot,
.live-dot,
.status-dot {
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.btn-primary {
  color: #1a1a1a;
  background: var(--gradient);
  box-shadow: 0 12px 30px rgba(230, 126, 34, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(230, 126, 34, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(243, 156, 18, 0.45);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 0.62rem 1rem;
  font-size: 0.86rem;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Fond & neige
   -------------------------------------------------------------------------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 12% 4%, rgba(230, 126, 34, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 38% at 92% 12%, rgba(243, 156, 18, 0.1), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 108%, rgba(211, 84, 0, 0.11), transparent 70%);
}

#snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

main,
.site-footer,
.site-header {
  position: relative;
  z-index: 1;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 12, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

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

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

.brand-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 6px 16px rgba(230, 126, 34, 0.28));
}

.brand-name {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--orange);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: 0.5rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.status-dot,
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55);
  animation: pulse 2.4s infinite;
}

.status-dot.is-offline,
.live-dot.is-offline {
  background: var(--red);
  animation: none;
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.6);
}

.status-dot.is-unknown,
.live-dot.is-unknown {
  background: var(--muted-2);
  animation: none;
  box-shadow: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.mobile-menu nav {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  padding: 0.7rem 0 1.2rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--text);
}

.mobile-menu .mobile-discord {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--gradient);
  color: #1a1a1a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Héro
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 168px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-copy h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.75;
}

.join-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 28.5rem;
  margin-top: 2rem;
  padding: 0.8rem 0.8rem 0.8rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(20, 20, 24, 0.75);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.join-card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.join-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.join-ip {
  margin-top: 0.15rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  overflow-wrap: anywhere;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 10px;
  background: var(--gradient);
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s, color 0.25s;
  flex: none;
}

.copy-btn:hover {
  transform: translateY(-1px);
}

.copy-btn .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.copied {
  background: var(--green);
  color: #07210f;
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: block;
}

.copy-btn.copied .copy-label {
  font-size: 0;
}

.copy-btn.copied .copy-label::after {
  content: "Copié";
  font-size: 0.85rem;
}

.live-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
  padding-left: 0.25rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.live-sep {
  color: var(--muted-2);
}

[data-player-count] {
  color: var(--gold-soft);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
  margin: 1.9rem 0 0;
  padding: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta .icon {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--gold);
  stroke-width: 2.4;
}

/* Illustration */

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  isolation: isolate;
}

.art-glow {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 126, 34, 0.34), rgba(230, 126, 34, 0.05) 55%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

.art-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.art-ring-1 {
  width: 84%;
  aspect-ratio: 1;
  border: 1px solid rgba(243, 156, 18, 0.16);
  animation: spin 46s linear infinite;
}

.art-ring-2 {
  width: 100%;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  animation: spin-reverse 70s linear infinite;
}

.art-ring-1::before,
.art-ring-2::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(243, 156, 18, 0.9);
}

.art-ring-1::before {
  top: 12%;
  left: 14%;
}

.art-ring-2::after {
  bottom: 16%;
  right: 8%;
  background: var(--orange);
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(230, 126, 34, 0.18));
  animation: float 9s ease-in-out infinite;
}

.float-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  animation: float-tag 7s ease-in-out infinite;
}

.float-tag .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--gold);
}

.float-tag-1 { top: 12%; left: 2%; animation-delay: -1s; }
.float-tag-2 { top: 24%; right: 0; animation-delay: -3s; }
.float-tag-3 { bottom: 21%; left: 0; animation-delay: -4.5s; }
.float-tag-4 { bottom: 9%; right: 6%; animation-delay: -2s; }

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

@keyframes float-tag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

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

@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}

/* --------------------------------------------------------------------------
   Statistiques
   -------------------------------------------------------------------------- */

.stats {
  padding-top: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.9rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 1.6rem;
  border-left: 1px solid var(--line);
}

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

.stat strong {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.stat-plus,
.stat-x {
  font-size: 0.55em;
  vertical-align: 0.45em;
}

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

.section {
  position: relative;
  padding: 7.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 70%);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 3.4rem;
}

.section-head h2 {
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
}

.section-lead {
  max-width: 38rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.section-head-split {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: end;
  gap: 2.5rem;
  max-width: none;
}

.section-head-split .section-lead {
  margin: 0 0 0.4rem;
}

/* --------------------------------------------------------------------------
   Modes de jeu
   -------------------------------------------------------------------------- */

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--panel);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.mode-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}

.mode-card::after {
  content: "";
  position: absolute;
  top: -45%;
  right: -35%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(70px);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.mode-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
}

.mode-card:hover::after {
  opacity: 0.12;
}

.mode-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.mode-icon .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.mode-tag {
  padding: 0.25rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode-card h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}

.mode-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.mode-foot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.35rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mode-foot .icon {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.25s var(--ease);
}

.mode-card:hover .mode-foot .icon {
  transform: translateX(4px);
}

.modes-note {
  margin-top: 2.2rem;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Avantages
   -------------------------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent), var(--panel);
  transition: border-color 0.3s, background 0.3s;
}

.feature-card:hover {
  border-color: rgba(230, 126, 34, 0.3);
  background: linear-gradient(180deg, rgba(230, 126, 34, 0.05), transparent), var(--panel);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(243, 156, 18, 0.22);
  border-radius: 14px;
  background: rgba(243, 156, 18, 0.1);
  color: var(--gold);
}

.feature-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.feature-card h3 {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Panneau Discord
   -------------------------------------------------------------------------- */

.discord-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 3.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 120% at 0% 0%, rgba(230, 126, 34, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 100% at 100% 100%, rgba(243, 156, 18, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--panel);
  overflow: hidden;
}

.discord-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.65), transparent);
}

.discord-copy h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.discord-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.discord-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.7rem;
}

.discord-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.discord-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.8rem 0 0;
  padding: 0;
}

.discord-chips li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

/* Aperçu de serveur Discord */

.discord-card {
  padding: 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #0e0e12;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.dc-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.dc-head img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.dc-head strong {
  display: block;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.dc-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.dc-channels {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.dc-channels span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.55rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.dc-channels i {
  color: var(--muted-2);
  font-style: normal;
  font-weight: 700;
}

.dc-channels .dc-active {
  background: rgba(230, 126, 34, 0.12);
  color: #fff;
}

.dc-channels .dc-active i {
  color: var(--orange);
}

.dc-message {
  display: flex;
  gap: 0.65rem;
  padding-top: 1rem;
}

.dc-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--gradient);
  color: #1a1a1a;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 800;
}

.dc-message strong {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--gold-soft);
}

.dc-message em {
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dc-message p {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.dc-message b {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 4rem;
  align-items: start;
}

.faq-layout .section-head {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.faq-layout .btn {
  margin-top: 1.5rem;
}

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  cursor: pointer;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color 0.2s;
}

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

.faq-item summary:hover {
  color: var(--gold-soft);
}

.faq-item summary .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted-2);
  transition: transform 0.25s var(--ease), color 0.2s;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
  color: var(--orange);
}

.faq-body {
  padding: 0 2rem 1.4rem 0;
}

.faq-body p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.faq-body strong {
  color: var(--text);
  font-weight: 600;
}

.faq-body code {
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-soft);
  font-size: 0.86em;
}

/* --------------------------------------------------------------------------
   Appel à l'action final
   -------------------------------------------------------------------------- */

.final-cta {
  padding: 2rem 0 7.5rem;
}

.final-cta-inner {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 140% at 50% 0%, rgba(230, 126, 34, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--panel);
  text-align: center;
  overflow: hidden;
}

.final-cta-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.7), transparent);
}

.final-spark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1.3rem;
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-radius: 14px;
  background: rgba(243, 156, 18, 0.1);
  color: var(--gold);
}

.final-cta h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.final-cta p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #08080a;
  padding: 4rem 0 1.8rem;
}

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

.footer-brand p {
  max-width: 20rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-col h3 {
  margin-bottom: 0.4rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col a,
.footer-col span {
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 0.2s;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-col a:hover {
  color: var(--gold-soft);
}

.footer-col a .icon {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--muted-2);
}

.footer-ip {
  color: var(--gold) !important;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem !important;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.74rem;
}

.footer-disclaimer {
  max-width: 34rem;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 12px;
  background: rgba(18, 24, 20, 0.95);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  color: #d9ffe8;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.toast .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--green);
  stroke-width: 2.5;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Animations d'apparition
   -------------------------------------------------------------------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.modes-grid .mode-card:nth-child(2),
.features-grid .feature-card:nth-child(2),
.stats-grid .stat:nth-child(2) {
  transition-delay: 0.06s;
}

.modes-grid .mode-card:nth-child(3),
.features-grid .feature-card:nth-child(3),
.stats-grid .stat:nth-child(3) {
  transition-delay: 0.12s;
}

.modes-grid .mode-card:nth-child(4),
.features-grid .feature-card:nth-child(4),
.stats-grid .stat:nth-child(4) {
  transition-delay: 0.18s;
}

.modes-grid .mode-card:nth-child(5) { transition-delay: 0.24s; }
.modes-grid .mode-card:nth-child(6) { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Pages secondaires (404, mentions légales)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 10rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(230, 126, 34, 0.06), transparent);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.page-hero p {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted);
}

.page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.page-hero .back-link:hover {
  color: var(--gold-soft);
}

.page-hero .back-link .icon {
  width: 0.9rem;
  height: 0.9rem;
  transform: rotate(180deg);
}

.legal {
  padding: 4rem 0 6rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 3.5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.legal-toc strong {
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-toc a:hover {
  color: var(--gold-soft);
}

.legal-content section {
  padding-bottom: 2.2rem;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.legal-content h2 {
  margin-bottom: 0.9rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.legal-content p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.legal-content p + p {
  margin-top: 0.8rem;
}

.legal-content ul {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
}

.legal-content li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.legal-content li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.legal-content a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin-top: 1.4rem;
  color: var(--muted-2) !important;
  font-size: 0.78rem !important;
}

.error-page {
  padding: 10rem 0 6rem;
  text-align: center;
}

.error-code {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(6rem, 20vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.error-page h1 {
  margin-top: 1.2rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.error-page p {
  max-width: 32rem;
  margin: 0.9rem auto 0;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

@media (max-width: 980px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .legal-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-hero { padding-top: 7.5rem; }
  .legal { padding: 2.5rem 0 4rem; }
  .error-page { padding-top: 7.5rem; }
}

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

@media (max-width: 1120px) {
  .hero-art { min-height: 500px; }
  .float-tag-2 { right: -2%; }
  .float-tag-4 { right: 0; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { height: 72px; }

  .hero { padding: 138px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-copy { max-width: 42rem; }
  .hero-art { min-height: 440px; margin-top: 1rem; }
  .hero-logo { width: min(88%, 430px); }
  .art-ring-1 { width: 70%; }
  .art-ring-2 { width: 84%; }

  .section { padding: 5.5rem 0; }
  .section-head { margin-bottom: 2.6rem; }
  .section-head-split { grid-template-columns: 1fr; gap: 1rem; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .discord-panel { grid-template-columns: 1fr; gap: 2.5rem; }
  .discord-card { max-width: 30rem; }
  .faq-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-layout .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 34rem; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 84px; }
  .container { width: calc(100% - 32px); }
  .header-inner { height: 68px; gap: 1rem; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 1.08rem; }
  .status-pill { display: none; }
  .header-actions .btn-sm { padding: 0.55rem 0.8rem; }
  .header-actions .btn-sm .icon { width: 1rem; height: 1rem; }

  .hero { padding: 118px 0 56px; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.2rem); }
  .hero-lead { font-size: 1rem; }
  .join-card { flex-wrap: wrap; padding: 1rem; }
  .copy-btn { width: 100%; justify-content: center; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
  .hero-art { min-height: 360px; }
  .hero-logo { width: min(92%, 340px); }
  .art-ring-1 { width: 78%; }
  .art-ring-2 { width: 94%; }
  .float-tag { display: none; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 0; padding: 1.6rem 0; }
  .stat { padding: 0 1rem; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }

  .section { padding: 4.5rem 0; }
  .section-head h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .section-lead { font-size: 0.96rem; }
  .modes-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1.5rem; }
  .discord-panel { padding: 1.6rem; border-radius: 22px; }
  .discord-copy h2 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .discord-actions { align-items: flex-start; flex-direction: column; gap: 0.9rem; }
  .discord-actions .btn { width: 100%; }
  .faq-item summary { font-size: 0.98rem; padding: 1.15rem 0; }
  .faq-body { padding-right: 0; }
  .final-cta { padding-bottom: 5rem; }
  .final-cta-inner { border-radius: 22px; }
  .final-actions { flex-direction: column; }
  .final-actions .btn { width: 100%; }
  .site-footer { padding-top: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; }
  .footer-disclaimer { text-align: left; }
}

@media (max-width: 420px) {
  .header-actions .btn-sm span { display: none; }
  .header-actions .btn-sm { width: 42px; padding: 0; }
  .hero-meta { grid-template-columns: 1fr; }
  .stat strong { font-size: 1.8rem; }
}

/* --------------------------------------------------------------------------
   Accessibilité : mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #snow { display: none; }
  html.js .reveal { opacity: 1; transform: none; }
}
