:root {
  --background: #08090d;
  --background-soft: #101218;
  --card: #14171f;
  --card-hover: #191d27;

  --text: #f7f7f8;
  --text-soft: #a6a8b2;

  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;

  --border: rgba(255, 255, 255, 0.08);

  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(139, 92, 246, 0.12),
      transparent 35%
    ),
    var(--background);

  color: var(--text);

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  line-height: 1.6;
}

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

.container {
  width: min(
    calc(100% - 40px),
    var(--container)
  );

  margin: 0 auto;
}


/* =========================
   HEADER
   ========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;

  background:
    rgba(8, 9, 13, 0.82);

  border-bottom:
    1px solid var(--border);

  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo span {
    color: var(--primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;

  transition:
    color 0.2s ease;
}

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


/* =========================
   BUTTONS
   ========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0 24px;

  border:
    1px solid transparent;

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark)
    );

  color: white;

  font-size: 0.92rem;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 8px 30px
    rgba(109, 40, 217, 0.2);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.button:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 12px 35px
    rgba(109, 40, 217, 0.32);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
}

.button-secondary {
  background:
    rgba(255, 255, 255, 0.04);

  border-color:
    var(--border);

  box-shadow: none;
}

.button-secondary:hover {
  background:
    rgba(255, 255, 255, 0.08);

  box-shadow: none;
}

.disabled {
  cursor: default;
  opacity: 0.65;
}

.disabled:hover {
  transform: none;
}


/* =========================
   HERO
   ========================= */

.hero {
  min-height:
    calc(100vh - 76px);

  display: flex;
  align-items: center;

  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  left: 50%;
  top: 40%;

  transform:
    translate(-50%, -50%);

  background:
    radial-gradient(
      circle,
      rgba(139, 92, 246, 0.18),
      transparent 65%
    );

  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;

  max-width: 850px;

  text-align: center;
}

.eyebrow {
  color: var(--primary-light);

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.18em;

  margin-bottom: 18px;
}

.hero h1 {
  max-width: 850px;

  margin:
    0 auto 24px;

  font-size:
    clamp(
      3rem,
      8vw,
      6rem
    );

  line-height: 0.98;

  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;

  background:
    linear-gradient(
      90deg,
      #ffffff,
      var(--primary-light)
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.hero-description {
  max-width: 650px;

  margin:
    0 auto 34px;

  color: var(--text-soft);

  font-size:
    clamp(
      1rem,
      2vw,
      1.18rem
    );
}

.hero-actions {
  display: flex;
  justify-content: center;

  gap: 12px;

  flex-wrap: wrap;
}


/* =========================
   SECTIONS
   ========================= */

.section {
  padding: 110px 0;

  border-top:
    1px solid var(--border);
}

.section-dark {
  background:
    var(--background-soft);
}

.section-heading {
  max-width: 700px;

  margin:
    0 auto 60px;

  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;

  font-size:
    clamp(
      2rem,
      5vw,
      3.5rem
    );

  line-height: 1.05;

  letter-spacing: -0.045em;
}

.section-heading > p:not(.eyebrow) {
  color: var(--text-soft);
}


/* =========================
   PLANS
   ========================= */

.plans {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 24px;

  max-width: 900px;

  margin: 0 auto;
}

.plan {
  position: relative;

  padding: 38px;

  border:
    1px solid var(--border);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.045),
      rgba(255,255,255,0.015)
    );

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.plan:hover {
  transform:
    translateY(-5px);

  background:
    var(--card-hover);
}

.plan-premium {
  border-color:
    rgba(139, 92, 246, 0.45);

  box-shadow:
    0 20px 60px
    rgba(109, 40, 217, 0.12);
}

.popular {
  position: absolute;

  right: 20px;
  top: 20px;

  padding:
    5px 10px;

  border-radius: 100px;

  background:
    rgba(139, 92, 246, 0.14);

  color:
    var(--primary-light);

  font-size: 0.65rem;
  font-weight: 800;

  letter-spacing: 0.08em;
}

.plan-label {
  margin-bottom: 10px;

  color: var(--text-soft);

  font-size: 0.7rem;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.plan h3 {
  font-size: 1.6rem;

  margin-bottom: 12px;
}

.price {
  min-height: 58px;

  margin-bottom: 24px;

  font-size: 1.7rem;
  font-weight: 800;
}

.plan ul {
  list-style: none;

  margin-bottom: 32px;
}

.plan li {
  position: relative;

  padding:
    11px 0 11px 26px;

  color:
    var(--text-soft);

  border-bottom:
    1px solid var(--border);
}

.plan li::before {
  content: "✓";

  position: absolute;

  left: 0;

  color:
    var(--primary-light);

  font-weight: 800;
}


/* =========================
   CONTACT
   ========================= */

#contact .section-heading {
  margin-bottom: 0;
}

#contact .button {
  margin-top: 30px;
}


/* =========================
   FOOTER
   ========================= */

.footer {
  padding: 35px 0;

  border-top:
    1px solid var(--border);

  background:
    #06070a;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  color:
    var(--text-soft);

  font-size: 0.82rem;
}

.footer-content > div {
  display: flex;

  gap: 20px;

  flex-wrap: wrap;
}

.footer a {
  transition:
    color 0.2s ease;
}

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


/* =========================
   RESPONSIVE
   ========================= */

@media (
  max-width: 800px
) {

  nav {
    display: none;
  }

  .nav {
    min-height: 68px;
  }

  .hero {
    min-height:
      calc(100vh - 68px);
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}


@media (
  max-width: 520px
) {

  .container {
    width:
      min(
        calc(100% - 28px),
        var(--container)
      );
  }

  .nav > .button {
    display: none;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .plan {
    padding: 28px 22px;
  }
}

/* =========================================================
   COMMANDES
========================================================= */

.commands-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(139, 92, 246, 0.10),
            transparent 30%
        ),
        var(--background);
}

/* HERO */

.commands-hero {
    padding: 120px 0 80px;
    text-align: center;
}

.commands-hero .section-label {
    display: inline-block;
    margin-bottom: 20px;

    color: var(--primary-light);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.commands-hero h1 {
    max-width: 850px;
    margin: 0 auto;

    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -4px;
}

.commands-hero h1 span {
    background: linear-gradient(
        90deg,
        #ffffff,
        var(--primary-light)
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.commands-hero p {
    max-width: 650px;
    margin: 30px auto 0;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.7;
}


/* COMMAND SECTION */

.commands-section {
    padding: 20px 0 120px;
}


/* TOOLBAR */

.commands-toolbar {
    display: flex;
    flex-direction: column;
    gap: 24px;

    margin-bottom: 45px;
}


/* SEARCH */

.command-search {
    max-width: 700px;
    width: 100%;
    margin: auto;
}

.command-search input {
    width: 100%;

    padding: 18px 22px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);

    color: var(--text);

    font: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.command-search input::placeholder {
    color: var(--text-soft);
}

.command-search input:focus {
    border-color: var(--primary);

    background: rgba(139, 92, 246, 0.06);

    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.08);
}


/* FILTERS */

.command-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
}

.command-filter {
    padding: 10px 18px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: transparent;
    color: var(--text-soft);

    font: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.command-filter:hover {
    color: var(--text);

    border-color: rgba(139, 92, 246, 0.5);

    background: rgba(139, 92, 246, 0.06);
}

.command-filter.active {
    color: #ffffff;

    border-color: var(--primary);

    background: var(--primary);

    box-shadow:
        0 8px 30px rgba(139, 92, 246, 0.22);
}


/* GRID */

.commands-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 20px;
}


/* CARD */

.command-card {
    position: relative;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(20, 23, 31, 0.72);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.command-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );

    opacity: 0;

    transition: opacity 0.25s ease;
}

.command-card:hover {
    transform: translateY(-5px);

    border-color: rgba(139, 92, 246, 0.4);

    background: var(--card-hover);
}

.command-card:hover::before {
    opacity: 1;
}


/* CARD HEADER */

.command-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 25px;

    margin-bottom: 22px;
}


/* CATEGORY */

.command-category {
    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.command-category.member {
    color: #9ca3af;
}

.command-category.premium {
    color: #c4a7ff;
}

.command-category.moderation {
    color: #fbbf24;
}

.command-category.admin {
    color: #fb7185;
}


/* PREMIUM */

.premium-card {
    border-color: rgba(139, 92, 246, 0.35);
}

.premium-badge {
    padding: 5px 9px;

    border-radius: 999px;

    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* COMMAND TITLE */

.command-card h2 {
    margin-bottom: 12px;

    color: var(--text);

    font-size: 27px;
    letter-spacing: -1px;
}

.command-card > p {
    min-height: 50px;

    margin-bottom: 28px;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.65;
}


/* INFO */

.command-info {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    font-size: 13px;
}

.command-info span {
    color: var(--text-soft);
}

.command-info strong {
    color: var(--text);

    font-size: 12px;
}


/* EXAMPLE */

.command-example {
    margin-top: 20px;
}

.command-example > span {
    display: block;

    margin-bottom: 9px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.command-example code {
    display: block;

    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: rgba(0, 0, 0, 0.25);

    color: var(--primary-light);

    font-size: 13px;
}


/* EMPTY SEARCH */

.commands-empty {
    padding: 80px 20px;

    text-align: center;
}

.commands-empty h2 {
    margin-bottom: 10px;

    font-size: 25px;
}

.commands-empty p {
    color: var(--text-soft);
}


/* RESPONSIVE */

@media (max-width: 768px) {

    .commands-hero {
        padding: 90px 0 60px;
    }

    .commands-hero h1 {
        letter-spacing: -2px;
    }

    .commands-grid {
        grid-template-columns: 1fr;
    }

    .command-card {
        padding: 23px;
    }

}

/* =========================================================
   COMMANDES — CARTES DYNAMIQUES
========================================================= */

.commands-stats {
    max-width: 1180px;
    margin: 0 auto 18px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.commands-list {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.command-item {
    position: relative;
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.command-item:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}


/* HEADER CARTE */

.command-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.command-item-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.command-item h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1.2;
}

.command-description {
    margin: 0 0 24px;
    color: var(--text-soft);
    line-height: 1.7;
}


/* CATÉGORIES */

.command-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-light);
}

.command-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.14);
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.18);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}


/* CONTENU */

.command-details {
    display: grid;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.command-detail h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.command-detail p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}


/* PERMISSION */

.command-permission {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.command-permission span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.command-permission strong {
    color: var(--text);
    font-size: 0.9rem;
}


/* PARAMÈTRES */

.command-parameters {
    display: grid;
    gap: 10px;
}

.command-parameter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.command-parameter code {
    color: var(--primary-light);
    font-weight: 700;
}

.command-parameter span {
    color: var(--text-soft);
    font-size: 0.88rem;
}


/* UTILISATION */

.command-usage {
    margin-top: 4px;
}

.command-usage-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.command-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 14px 16px;

    background: #0d0e13;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.command-code code {
    color: var(--primary-light);
    font-family: monospace;
    font-size: 0.9rem;
}


/* BOUTON COPIER */

.command-copy {
    flex-shrink: 0;
    padding: 7px 12px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.04);
    color: var(--text);

    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.command-copy:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}


/* AUCUN RÉSULTAT */

.commands-empty {
    max-width: 1180px;
    margin: 40px auto;
    padding: 50px 20px;
    text-align: center;

    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
}

.commands-empty h2 {
    margin-bottom: 10px;
}

.commands-empty p {
    color: var(--text-soft);
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .command-item {
        padding: 22px;
    }

    .command-item-header {
        flex-direction: column;
    }

    .command-permission {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .command-parameter {
        align-items: flex-start;
        flex-direction: column;
    }

    .command-code {
        align-items: flex-start;
        flex-direction: column;
    }
}