/* ==========================================================================
   Antasia ~ Network — feuille de style
   Base neutre "zinc" façon shadcn/ui, accent indigo repris de la charte.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-elevated: 240 5% 99%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --primary: 243 75% 59%;
  --primary-foreground: 0 0% 100%;
  --accent: 258 90% 66%;
  --success: 142 71% 45%;
  --warning: 38 92% 50%;
  --danger: 0 84% 60%;
  --ring: 243 75% 59%;

  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;

  --shadow-sm: 0 1px 2px 0 hsl(240 10% 4% / .05);
  --shadow-md: 0 4px 12px -2px hsl(240 10% 4% / .08), 0 2px 4px -2px hsl(240 10% 4% / .04);
  --shadow-lg: 0 24px 48px -12px hsl(240 10% 4% / .18);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.4, 0, .2, 1);

  --header-h: 60px;
  --container: 1200px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 5.1%;
  --card-elevated: 240 8% 7%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --border: 240 4% 15%;
  --input: 240 4% 18%;
  --primary: 239 84% 67%;
  --primary-foreground: 0 0% 100%;
  --accent: 258 90% 76%;
  --ring: 239 84% 67%;

  --shadow-sm: 0 1px 2px 0 hsl(0 0% 0% / .4);
  --shadow-md: 0 4px 14px -2px hsl(0 0% 0% / .5);
  --shadow-lg: 0 32px 64px -16px hsl(0 0% 0% / .7);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
  transition: background-color .4s var(--ease-io), color .4s var(--ease-io);
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.022em; font-weight: 600; }

code, kbd, pre { font-family: var(--font-mono); }
code {
  font-size: .875em;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 5px;
  padding: .1em .38em;
}

::selection { background: hsl(var(--primary) / .28); }

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

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

.ic {
  width: 16px; height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-fill, svg use.ic-fill { stroke: none; }
#i-discord, #i-github { fill: currentColor; stroke: none; }
.ic:has(use[href="#i-discord"]), .ic:has(use[href="#i-github"]) { fill: currentColor; stroke: none; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-size: .875rem; font-weight: 500;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 780px; }

/* --- Barre de progression de scroll ------------------------------------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90;
  pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
}

/* --- Header -------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-io), border-color .3s var(--ease-io), backdrop-filter .3s;
}
.header.is-stuck {
  background: hsl(var(--background) / .72);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom-color: hsl(var(--border));
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: hsl(var(--primary-foreground));
  transition: transform .5s var(--ease), box-shadow .3s;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__text {
  font-size: .975rem; font-weight: 600; letter-spacing: -.02em;
}
.brand__sep { color: hsl(var(--muted-foreground)); margin-inline: .28em; font-weight: 400; }
.brand__sub { color: hsl(var(--muted-foreground)); font-weight: 500; }

.nav {
  position: relative;
  display: none;
  align-items: center;
  margin-right: auto;
}
.nav__pill {
  position: absolute; top: 50%; left: 0;
  height: 32px; width: 0;
  transform: translateY(-50%);
  border-radius: 8px;
  background: hsl(var(--muted));
  opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s, left .45s var(--ease);
}
.nav:hover .nav__pill, .nav.has-active .nav__pill { opacity: 1; }
.nav__link {
  position: relative; z-index: 1;
  padding: 6px 13px;
  font-size: .875rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 8px;
  transition: color .22s var(--ease-io);
}
.nav__link:hover, .nav__link.is-active { color: hsl(var(--foreground)); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.cmdk-trigger {
  display: none;
  align-items: center; gap: 8px;
  height: 34px; padding: 0 8px 0 11px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  background: hsl(var(--muted) / .45);
  color: hsl(var(--muted-foreground));
  font-size: .8125rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.cmdk-trigger:hover { background: hsl(var(--muted)); border-color: hsl(var(--input)); color: hsl(var(--foreground)); }
.cmdk-trigger span { min-width: 92px; text-align: left; }
kbd {
  display: inline-flex; align-items: center; gap: 1px;
  height: 20px; padding: 0 5px;
  border: 1px solid hsl(var(--border));
  border-radius: 5px;
  background: hsl(var(--background) / .6);
  font-family: var(--font-sans);
  font-size: .6875rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
}
kbd .ic { width: 11px; height: 11px; }
.kbd-mod { font-size: .625rem; opacity: .9; }

/* --- Boutons ------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease-io), color .2s, border-color .2s,
              transform .2s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 34px; padding: 0 14px; font-size: .8125rem; }
.btn--lg { height: 46px; padding: 0 24px; font-size: .9375rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 1px 2px hsl(240 10% 4% / .12), 0 6px 18px -6px hsl(var(--primary) / .5);
}
.btn--primary:hover {
  background: hsl(var(--primary) / .9);
  box-shadow: 0 2px 4px hsl(240 10% 4% / .12), 0 12px 28px -8px hsl(var(--primary) / .6);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0) scale(.97); }

.btn--outline {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / .4);
  color: hsl(var(--foreground));
}
.btn--outline:hover { background: hsl(var(--muted)); border-color: hsl(var(--input)); transform: translateY(-1px); }

.btn--ghost { color: hsl(var(--muted-foreground)); }
.btn--ghost:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }

.btn--icon {
  width: 34px; height: 34px; padding: 0;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / .35);
}
.btn--icon:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }

/* Reflet qui traverse le bouton principal au survol */
.btn--shine { overflow: hidden; }
.btn--shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, hsl(0 0% 100% / .28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--shine:hover::after { transform: translateX(120%); }

/* Bascule de thème : soleil / lune en fondu */
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .ic { position: absolute; transition: transform .5s var(--ease), opacity .35s var(--ease-io); }
.theme-toggle .ic-sun { transform: rotate(0) scale(1); opacity: 1; }
.theme-toggle .ic-moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
html.dark .theme-toggle .ic-sun { transform: rotate(90deg) scale(.4); opacity: 0; }
html.dark .theme-toggle .ic-moon { transform: rotate(0) scale(1); opacity: 1; }

.menu-toggle { display: inline-flex; }
/* Sur petit écran, le CTA Discord vit dans le menu latéral :
   le garder ici pousserait le bouton burger hors de l'écran. */
.header__cta { display: none; }

/* --- Menu mobile (sheet) ------------------------------------------------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 95;
  background: hsl(240 10% 2% / .6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s var(--ease-io);
}
.sheet-backdrop.is-open { opacity: 1; }

.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
  width: min(320px, 86vw);
  display: flex; flex-direction: column;
  padding: 20px;
  background: hsl(var(--card));
  border-left: 1px solid hsl(var(--border));
  transform: translateX(100%);
  transition: transform .42s var(--ease);
}
.sheet.is-open { transform: translateX(0); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sheet__title { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.sheet__nav { display: flex; flex-direction: column; gap: 2px; }
.sheet__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  font-size: .9375rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: background-color .2s, color .2s, padding-left .25s var(--ease);
}
.sheet__nav a:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); padding-left: 16px; }
.sheet__nav .ic-chev { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: all .25s var(--ease); }
.sheet__nav a:hover .ic-chev { opacity: .6; transform: translateX(0); }
.sheet__foot { margin-top: auto; padding-top: 20px; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 64px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(to right, hsl(var(--foreground) / .055) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--foreground) / .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 15%, transparent 75%);
}
.hero__glow {
  position: absolute; top: -220px; left: 50%;
  width: 900px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, hsl(var(--primary) / .16), transparent 70%);
  filter: blur(20px);
}
html.dark .hero__glow { background: radial-gradient(50% 50% at 50% 50%, hsl(var(--primary) / .22), transparent 70%); }

.hero__inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  height: 32px; padding: 0 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--muted) / .5);
  backdrop-filter: blur(8px);
  font-size: .78rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: border-color .25s, background-color .25s, color .25s;
}
.badge--link:hover { border-color: hsl(var(--primary) / .45); color: hsl(var(--foreground)); }
.badge .ic { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.badge--link:hover .ic { transform: translateX(3px); }
.badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: hsl(var(--success));
  box-shadow: 0 0 0 3px hsl(var(--success) / .18);
}

.hero__title {
  margin-top: 24px;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.04;
}
.grad {
  background: linear-gradient(100deg, hsl(var(--primary)), hsl(var(--accent)) 60%, hsl(var(--primary)));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: grad-pan 9s linear infinite;
}
@keyframes grad-pan { to { background-position: 200% 0; } }

.hero__lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
}
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__ip { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__ip-note { font-size: .8125rem; color: hsl(var(--muted-foreground)); }

.ip-pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 6px 0 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card));
  transition: border-color .25s, box-shadow .3s, transform .25s var(--ease);
}
.ip-pill:hover { border-color: hsl(var(--primary) / .5); box-shadow: 0 0 0 4px hsl(var(--primary) / .09); transform: translateY(-1px); }
.ip-pill code {
  background: none; border: 0; padding: 0;
  font-size: .875rem; font-weight: 500;
  letter-spacing: -.01em;
}
.ip-pill__sep { width: 1px; height: 18px; background: hsl(var(--border)); }
.ip-pill__action {
  position: relative;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: hsl(var(--muted-foreground));
  transition: background-color .2s, color .2s;
}
.ip-pill:hover .ip-pill__action { background: hsl(var(--muted)); color: hsl(var(--foreground)); }

.ping {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: hsl(var(--success));
  flex: none;
}
.ping::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: hsl(var(--success));
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Icônes copier / validé */
[data-copy] .ic-done, .ip-pill .ic-done { display: none; }
[data-copy].is-copied .ic-copy, .ip-pill.is-copied .ic-copy { display: none; }
[data-copy].is-copied .ic-done, .ip-pill.is-copied .ic-done { display: block; animation: pop .35s var(--ease); }
.ip-pill__action .ic { position: absolute; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- Terminal ------------------------------------------------------------ */
.hero__visual { position: relative; perspective: 1200px; }
.hero__visual-glow {
  position: absolute; inset: 12% 8%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, hsl(var(--primary) / .3), transparent 70%);
  filter: blur(48px);
}
.terminal {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow .4s var(--ease);
}
.terminal__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card-elevated));
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--border)); }
.dots i:nth-child(1) { background: hsl(0 70% 62% / .75); }
.dots i:nth-child(2) { background: hsl(40 85% 60% / .75); }
.dots i:nth-child(3) { background: hsl(140 55% 55% / .75); }
.terminal__title {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
}
.terminal__title .ic { width: 13px; height: 13px; }
.terminal__body {
  margin: 0; padding: 18px;
  min-height: 250px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  color: hsl(var(--muted-foreground));
}
.terminal__body .t-cmd { color: hsl(var(--foreground)); font-weight: 500; }
.terminal__body .t-ok { color: hsl(var(--success)); }
.terminal__body .t-warn { color: hsl(var(--warning)); }
.terminal__body .t-key { color: hsl(var(--accent)); }
.terminal__body .t-dim { opacity: .6; }
.caret {
  display: inline-block;
  width: 8px; height: 1em;
  vertical-align: text-bottom;
  background: hsl(var(--primary));
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Stats --------------------------------------------------------------- */
.stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card) / .5);
  overflow: hidden;
}
.stat {
  padding: 24px;
  border-right: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color .3s var(--ease-io);
}
.stat:hover { background: hsl(var(--muted) / .45); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat__value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block; margin-top: 4px;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* --- Sections ------------------------------------------------------------ */
.section { position: relative; padding: 96px 0; }
.section--alt { background: hsl(var(--muted) / .32); border-block: 1px solid hsl(var(--border)); }

.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: hsl(var(--primary));
}
html.dark .eyebrow { color: hsl(var(--accent)); }
.eyebrow .ic { width: 14px; height: 14px; }
.section__title {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.032em;
}
.section__lede {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
}

/* --- Cartes + effet projecteur ------------------------------------------ */
.card {
  position: relative;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  transition: border-color .3s var(--ease-io), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card--spot { overflow: hidden; }
.card--spot::before,
.card--spot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease-io);
}
/* halo interne */
.card--spot::before {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), hsl(var(--primary) / .11), transparent 62%);
}
/* liseré lumineux */
.card--spot::after {
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), hsl(var(--primary) / .55), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.card--spot:hover::before, .card--spot:hover::after { opacity: 1; }
.card--spot:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--muted) / .6);
  color: hsl(var(--primary));
  margin-bottom: 16px;
  transition: color .3s, border-color .3s, transform .4s var(--ease);
}
html.dark .card__icon { color: hsl(var(--accent)); }
.card:hover .card__icon { border-color: hsl(var(--primary) / .4); transform: translateY(-2px); }
.card__icon .ic { width: 18px; height: 18px; }
.card__title { font-size: 1.0625rem; font-weight: 600; }
.card__sub { margin-top: 8px; font-size: .9375rem; color: hsl(var(--muted-foreground)); }
.card__foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* --- Onglets ------------------------------------------------------------- */
.tabs__list {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--muted) / .55);
  margin-bottom: 28px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__indicator {
  position: absolute; top: 4px; left: 0;
  height: calc(100% - 8px);
  border-radius: 7px;
  background: hsl(var(--card));
  box-shadow: var(--shadow-sm);
  border: 1px solid hsl(var(--border) / .8);
  transition: transform .42s var(--ease), width .42s var(--ease);
}
.tabs__trigger {
  position: relative; z-index: 1;
  padding: 8px 16px;
  border-radius: 7px;
  font-size: .875rem; font-weight: 500;
  white-space: nowrap;
  color: hsl(var(--muted-foreground));
  transition: color .25s var(--ease-io);
}
.tabs__trigger:hover { color: hsl(var(--foreground)); }
.tabs__trigger[aria-selected="true"] { color: hsl(var(--foreground)); }

.tabs__panel { animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

.panel-grid { display: grid; gap: 40px; align-items: center; }
.panel-grid--single { max-width: 640px; }
.panel-copy h3 { margin-top: 14px; font-size: 1.5rem; }
.panel-copy > p { margin-top: 14px; color: hsl(var(--muted-foreground)); }
.panel-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 24px; padding: 0 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--muted) / .7);
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.chip--live { color: hsl(var(--success)); border-color: hsl(var(--success) / .3); background: hsl(var(--success) / .1); }
.chip--soon { color: hsl(var(--warning)); border-color: hsl(var(--warning) / .3); background: hsl(var(--warning) / .1); }

.ticks { margin-top: 22px; display: grid; gap: 11px; }
.ticks li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9375rem;
  color: hsl(var(--muted-foreground));
}
.ticks .ic {
  width: 15px; height: 15px;
  margin-top: 5px;
  color: hsl(var(--success));
  stroke-width: 2.5;
}
.ticks--lg li { font-size: 1rem; }

/* Carte "liste de serveurs" Minecraft */
.mc-card { padding: 18px; }
.mc-card__row { display: flex; gap: 14px; }
.mc-card__icon {
  width: 60px; height: 60px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  color: hsl(var(--primary-foreground));
  background: linear-gradient(150deg, hsl(var(--primary)), hsl(var(--accent)));
  box-shadow: 0 6px 18px -6px hsl(var(--primary) / .6);
}
.mc-card__icon svg { width: 34px; height: 34px; }
.mc-card__meta { flex: 1; min-width: 0; }
.mc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mc-card__name { font-weight: 600; font-size: .9375rem; }
.mc-card__ping { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.mc-card__ping i { width: 3px; border-radius: 1px; background: hsl(var(--success)); }
.mc-card__ping i:nth-child(5) { background: hsl(var(--success) / .35); }
.mc-card__motd {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}
.motd-gold { color: hsl(45 90% 55%); }
.motd-dim { opacity: .65; }
.mc-card__foot {
  margin-top: 12px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  font-size: .75rem;
  color: hsl(var(--muted-foreground));
}
.mc-card__foot b { color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: hsl(var(--border)); }
.mc-card__bar {
  margin-top: 16px;
  height: 4px; border-radius: 2px;
  background: hsl(var(--muted));
  overflow: hidden;
}
.mc-card__bar i {
  display: block; height: 100%; width: 42%;
  border-radius: 2px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
}

/* Carte "à venir" */
.soon-card__label {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.progress {
  margin: 12px 0 20px;
  height: 6px; border-radius: 3px;
  background: hsl(var(--muted));
  overflow: hidden;
}
.progress i {
  display: block; height: 100%; width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  transition: width 1.3s var(--ease);
}
.soon-list { display: grid; gap: 12px; }
.soon-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
}
.soon-list .is-done, .soon-list li.is-done { color: hsl(var(--foreground)); }
.soon-list .ic { width: 15px; height: 15px; color: hsl(var(--success)); stroke-width: 2.5; }
.pending {
  width: 15px; height: 15px; flex: none;
  border: 1.5px dashed hsl(var(--border));
  border-radius: 50%;
}

/* --- Bento cloud --------------------------------------------------------- */
.bento { display: grid; gap: 16px; }
.bento__main .card__head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.bento__main .card__icon { margin-bottom: 0; }
.price {
  margin-left: auto;
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.price small { font-size: .75rem; font-weight: 500; color: hsl(var(--muted-foreground)); }

.specs {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.spec {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px;
  background: hsl(var(--card));
}
.spec span { font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.spec b { font-size: .875rem; font-weight: 600; }

/* Défilement des jeux supportés */
.tag-marquee {
  margin-top: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.tag-marquee__track {
  display: flex; gap: 8px; width: max-content;
  animation: marquee 26s linear infinite;
}
.tag-marquee:hover .tag-marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tag {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 11px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--muted) / .6);
  font-size: .75rem; font-weight: 500;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

/* Aperçu du dashboard */
.dash { margin: -24px; border-radius: inherit; overflow: hidden; }
.dash__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card-elevated));
}
.dash__url { font-family: var(--font-mono); font-size: .75rem; color: hsl(var(--muted-foreground)); }
.dash__body { padding: 20px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  background: hsl(var(--muted) / .35);
}
.kpi span { font-size: .6875rem; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.kpi b { font-size: 1.375rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi em { font-size: .75rem; font-style: normal; color: hsl(var(--muted-foreground)); }
.kpi em.down { color: hsl(var(--success)); }

.dash__services { margin-top: 12px; display: grid; gap: 1px; }
.dash__services li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  font-size: .875rem;
  transition: background-color .25s var(--ease-io), transform .3s var(--ease);
}
.dash__services li:hover { background: hsl(var(--muted) / .45); transform: translateX(3px); }
.svc-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: hsl(var(--success));
  box-shadow: 0 0 0 3px hsl(var(--success) / .15);
}
.dash__services b { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; }
.svc-meta { color: hsl(var(--muted-foreground)); font-size: .75rem; }
.dash__services .chip { margin-left: auto; }

/* --- Neptune ------------------------------------------------------------- */
.split { display: grid; gap: 48px; align-items: center; }
.waf__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.waf__total { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; }
.waf__total .stat__value { font-size: 2.5rem; }
.waf__delta { font-size: .8125rem; color: hsl(var(--success)); }

.bars { margin-top: 24px; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 118px 1fr 44px; align-items: center; gap: 12px; }
.bars__k { font-family: var(--font-mono); font-size: .6875rem; color: hsl(var(--muted-foreground)); }
.bars__t { height: 7px; border-radius: 4px; background: hsl(var(--muted)); overflow: hidden; }
.bars__t i {
  display: block; height: 100%; width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
  transition: width 1.2s var(--ease);
}
.bars__v { text-align: right; font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.waf__foot {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid hsl(var(--border));
  display: flex; align-items: center; justify-content: space-between;
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
}
.waf__foot span { display: inline-flex; align-items: center; gap: 8px; }
.waf__foot .ic { color: hsl(var(--warning)); }
.waf__foot b { color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
.waf__foot small { font-weight: 400; color: hsl(var(--muted-foreground)); }

/* --- Valeurs + CTA ------------------------------------------------------- */
.values { display: grid; gap: 16px; }

.cta {
  position: relative;
  margin-top: 64px;
  padding: 56px 32px;
  text-align: center;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--card));
  overflow: hidden;
}
.cta__glow {
  position: absolute; bottom: -60%; left: 50%;
  width: 720px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, hsl(var(--primary) / .22), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.cta h2 { font-size: clamp(1.625rem, 3.4vw, 2.25rem); letter-spacing: -.032em; }
.cta p { margin-top: 12px; color: hsl(var(--muted-foreground)); }
.cta__actions { position: relative; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Accordéon ----------------------------------------------------------- */
.accordion { display: grid; gap: 10px; }
.acc__item {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  background: hsl(var(--card));
  transition: border-color .3s var(--ease-io), background-color .3s;
}
.acc__item.is-open { border-color: hsl(var(--primary) / .35); }
.acc__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px;
  text-align: left;
  font-size: .9375rem; font-weight: 500;
  transition: color .2s;
}
.acc__trigger:hover { color: hsl(var(--primary)); }
html.dark .acc__trigger:hover { color: hsl(var(--accent)); }
.acc__chev {
  flex: none;
  color: hsl(var(--muted-foreground));
  transition: transform .38s var(--ease);
}
.acc__item.is-open .acc__chev { transform: rotate(180deg); }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s var(--ease);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__content { overflow: hidden; }
.acc__content p {
  padding: 0 20px 19px;
  font-size: .9375rem;
  color: hsl(var(--muted-foreground));
}

/* --- Footer -------------------------------------------------------------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .25);
}
.footer__grid { display: grid; gap: 40px; }
.footer__tagline { margin-top: 16px; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.status {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 9px;
  height: 30px; padding: 0 13px;
  border: 1px solid hsl(var(--success) / .28);
  border-radius: 999px;
  background: hsl(var(--success) / .08);
  font-size: .75rem; font-weight: 500;
  color: hsl(var(--success));
}
.footer__col h4 {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: hsl(var(--foreground));
  margin-bottom: 16px;
}
.footer__col a {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0;
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
  width: fit-content;
  transition: color .2s, transform .25s var(--ease);
}
.footer__col a:hover { color: hsl(var(--foreground)); transform: translateX(3px); }
.footer__col .ic { width: 12px; height: 12px; opacity: .5; }

.footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid hsl(var(--border));
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: space-between;
  font-size: .8125rem;
  color: hsl(var(--muted-foreground));
}
.footer__note { opacity: .75; }

/* --- Palette de commandes ------------------------------------------------ */
.cmdk { position: fixed; inset: 0; z-index: 120; }
.cmdk__backdrop {
  position: absolute; inset: 0;
  background: hsl(240 10% 2% / .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s var(--ease-io);
}
.cmdk.is-open .cmdk__backdrop { opacity: 1; }
.cmdk__panel {
  position: relative;
  width: min(580px, calc(100vw - 32px));
  margin: min(14vh, 120px) auto 0;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: scale(.97) translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.cmdk.is-open .cmdk__panel { opacity: 1; transform: scale(1) translateY(0); }
.cmdk__input {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid hsl(var(--border));
}
.cmdk__input .ic { color: hsl(var(--muted-foreground)); }
.cmdk__input input {
  flex: 1;
  border: 0; background: none; outline: none;
  font-size: .9375rem;
}
.cmdk__input input::placeholder { color: hsl(var(--muted-foreground)); }
.cmdk__input kbd { cursor: pointer; }

.cmdk__list { max-height: min(52vh, 380px); overflow-y: auto; padding: 8px; }
.cmdk__group {
  padding: 10px 10px 6px;
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.cmdk__item {
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.cmdk__item .ic { flex: none; }
.cmdk__item[aria-selected="true"] { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.cmdk__item em { margin-left: auto; font-style: normal; font-size: .6875rem; opacity: .55; }
.cmdk__empty { padding: 32px 12px; text-align: center; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.cmdk__foot {
  display: flex; gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .35);
  font-size: .6875rem;
  color: hsl(var(--muted-foreground));
}
.cmdk__foot span { display: inline-flex; align-items: center; gap: 5px; }

/* --- Toasts -------------------------------------------------------------- */
.toasts {
  position: fixed; bottom: 20px; right: 20px; z-index: 130;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 17px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  background: hsl(var(--card));
  box-shadow: var(--shadow-lg);
  font-size: .875rem; font-weight: 500;
  animation: toast-in .42s var(--ease) both;
}
.toast.is-out { animation: toast-out .3s var(--ease-io) both; }
.toast .ic { color: hsl(var(--success)); stroke-width: 2.5; }
.toast small { display: block; font-weight: 400; color: hsl(var(--muted-foreground)); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }

/* --- Retour en haut ------------------------------------------------------ */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: 50%;
  background: hsl(var(--card) / .9);
  backdrop-filter: blur(8px);
  color: hsl(var(--muted-foreground));
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { color: hsl(var(--foreground)); border-color: hsl(var(--input)); transform: translateY(-2px); }
.to-top .ic { transform: rotate(-90deg); }

/* --- Révélation au scroll ------------------------------------------------ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --- Points de rupture --------------------------------------------------- */
@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid hsl(var(--border)); }
  .stat:last-child { border-right: 0; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento__main { grid-column: span 2; }
  .bento__wide { grid-column: span 3; }
  .panel-grid { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --header-h: 64px; }
  .nav { display: flex; }
  .cmdk-trigger { display: inline-flex; }
  .menu-toggle { display: none; }
  .hero { padding-top: calc(var(--header-h) + 96px); padding-bottom: 88px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .section { padding: 120px 0; }
}

/* --- Accessibilité : mouvement réduit ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
