/* Nyveria Network — mise en page de la boutique.
   Dépend des jetons définis dans theme.css. */

/* Palette tirée de l'emblème : nuit d'encre, glace, améthyste.
     Ambiance unique assumée, toutes les couleurs sont explicites. */
  

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--abyss);
    color: var(--crystal);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
  }

  /* Ciel : voile d'aurore fixe + étoiles dessinées sur toute la hauteur. */
  #veil {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(100% 60% at 50% -8%, rgba(109, 92, 240, 0.3), transparent 62%),
      radial-gradient(80% 50% at 85% 8%, rgba(140, 205, 255, 0.14), transparent 60%),
      linear-gradient(180deg, var(--deep), var(--abyss) 55%);
  }

  #stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .page { position: relative; z-index: 2; }

  a { color: inherit; text-decoration: none; }
  a:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--star); outline-offset: 4px; }

  /* --- Barre supérieure --- */
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    gap: 16px;
  }

  .home {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(16, 21, 60, 0.72);
    border: 1px solid var(--edge);
    transition: border-color 0.18s ease, transform 0.18s ease;
  }

  .home:hover { border-color: var(--edge-hi); transform: translateY(-1px); }

  .topbar .right { display: flex; align-items: center; gap: 10px; text-align: right; }
  .topbar .right .who { font-family: var(--title); font-size: 14px; letter-spacing: 0.05em; }
  .topbar .right .hint { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--star); }

  .avatar {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--violet), var(--amethyst));
    border: 1px solid var(--edge-hi);
    display: grid;
    place-items: center;
    font-size: 17px;
  }

  /* --- Bandeau : jouer | emblème | Discord --- */
  .crest {
    /* La bannière du serveur, voilée pour que le texte reste lisible.
       Sans le fichier, le dégradé seul fait très bien l'affaire. */
    background:
      linear-gradient(180deg, rgba(4, 5, 26, 0.62), rgba(4, 5, 26, 0.93)),
      url('/assets/img/banner.webp') center / cover no-repeat;
    border-bottom: 1px solid var(--edge);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 30px 46px;
  }

  .emblem { text-align: center; }

  .emblem img {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 14px 46px rgba(140, 205, 255, 0.34));
  }

  .emblem .fallback {
    font-family: var(--title);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 62px);
    letter-spacing: 0.06em;
    margin: 0;
    background: linear-gradient(180deg, #ffffff, var(--ice) 52%, var(--amethyst));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .emblem .sub {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ice);
    margin: 10px 0 0;
  }

  /* Les deux appels à l'action, de part et d'autre de l'emblème. */
  .side-action { display: flex; align-items: center; gap: 16px; }
  .side-action.left { justify-content: flex-end; text-align: right; }
  .side-action.right { justify-content: flex-start; }

  .orb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex: none;
    background: linear-gradient(140deg, var(--violet), var(--amethyst));
    border: 1px solid rgba(238, 243, 255, 0.28);
    box-shadow: 0 0 30px -6px rgba(109, 92, 240, 0.8);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .side-action:hover .orb { transform: scale(1.06); box-shadow: 0 0 38px -4px var(--ice); }

  .side-action .label {
    font-family: var(--title);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.06em;
    display: block;
  }

  .side-action .hint {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--faint);
  }

  .bubble {
    align-self: flex-start;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--ice), var(--amethyst));
    color: #05081f;
  }

  /* --- Corps --- */
  .shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px 56px;
    display: grid;
    grid-template-columns: 286px 1fr;
    gap: 24px;
    align-items: start;
  }

  .card {
    background: var(--panel);
    border: 1px solid var(--edge);
    border-radius: 18px;
    backdrop-filter: blur(10px);
  }

  /* --- Colonne des catégories --- */
  .side { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 16px; }

  .side .heading {
    font-family: var(--title);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ice);
    text-align: center;
    padding: 24px 20px 6px;
  }

  .menu { display: flex; flex-direction: column; padding: 10px 12px 18px; }

  .menu > a, .menu summary {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15.5px;
    font-weight: 500;
    padding: 15px 16px;
    border-radius: 12px;
    color: var(--dim);
    cursor: pointer;
    list-style: none;
    transition: background 0.16s ease, color 0.16s ease;
  }

  .menu summary::-webkit-details-marker { display: none; }
  .menu > a:hover, .menu summary:hover { background: rgba(109, 92, 240, 0.16); color: var(--crystal); }

  .menu > a.on {
    background: linear-gradient(120deg, rgba(109, 92, 240, 0.9), rgba(155, 140, 248, 0.65));
    color: #fff;
    box-shadow: 0 8px 26px -14px var(--violet);
  }

  .menu .chev { margin-left: auto; font-size: 11px; color: var(--faint); transition: transform 0.18s ease; }
  details[open] .chev { transform: rotate(180deg); }

  .submenu { display: flex; flex-direction: column; padding: 2px 0 8px 18px; }

  .submenu a {
    font-size: 14px;
    color: var(--faint);
    padding: 9px 14px;
    border-left: 1px solid var(--edge);
    transition: color 0.16s ease, border-color 0.16s ease;
  }

  .submenu a:hover { color: var(--ice); border-color: var(--ice); }

  /* --- Panneau d'accueil --- */
  .welcome { padding: 30px 34px 34px; }

  .welcome .over {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
  }

  .welcome h1 {
    font-family: var(--title);
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin: 4px 0 22px;
    background: linear-gradient(120deg, #ffffff, var(--ice) 50%, var(--amethyst));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .welcome h3 {
    font-family: var(--title);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--star);
    margin: 0 0 6px;
  }

  .welcome section + section { margin-top: 22px; }
  .welcome p { margin: 0; color: var(--dim); max-width: 74ch; font-size: 14.5px; }
  .welcome p + p { margin-top: 8px; }
  .welcome a.inline { color: var(--ice); border-bottom: 1px solid rgba(140, 205, 255, 0.4); }
  .welcome a.inline:hover { border-color: var(--ice); }
  .welcome code { font-family: var(--mono); font-size: 13.5px; color: var(--star); }

  /* --- Grille de paquets --- */
  .section-title {
    font-family: var(--title);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ice);
    margin: 30px 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .section-title::after { content: ''; flex: 1; height: 1px; background: var(--edge); }

  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 16px; }

  .pack {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(23, 29, 82, 0.85), rgba(14, 18, 52, 0.85));
    border: 1px solid var(--edge);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  }

  .pack:hover {
    transform: translateY(-4px);
    border-color: var(--tier, var(--ice));
    box-shadow: 0 18px 40px -26px var(--tier, var(--ice));
  }

  .pack::before { content: ''; height: 3px; background: var(--tier, var(--ice)); }
  .pack .inner { padding: 20px; display: flex; flex-direction: column; gap: 13px; flex: 1; }

  .pack .name {
    font-family: var(--title);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tier, var(--ice));
  }

  .pack .price {
    font-family: var(--mono);
    font-size: 27px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
  }

  .pack .price small { display: block; font-size: 10px; letter-spacing: 0.16em; color: var(--faint); font-weight: 400; }

  .pack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
  .pack li { font-size: 13.5px; color: var(--dim); padding-left: 19px; position: relative; }
  .pack li::before { content: '✦'; position: absolute; left: 0; top: 1px; font-size: 10px; color: var(--tier, var(--ice)); }

  .pack .buy {
    text-align: center;
    font-weight: 600;
    font-size: 13.5px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--edge);
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }

  .pack .buy:hover { background: var(--tier, var(--ice)); color: #05081f; border-color: transparent; }

  .tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--star);
    color: #2b1e00;
    border-radius: 999px;
    padding: 3px 10px;
  }

  footer {
    text-align: center;
    padding: 26px 30px 46px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--faint);
    letter-spacing: 0.04em;
  }

  @media (prefers-reduced-motion: reduce) {
    .pack:hover, .home:hover, .side-action:hover .orb { transform: none; }
  }

  @media (max-width: 1000px) {
    .crest { grid-template-columns: 1fr; gap: 26px; padding-bottom: 34px; }
    .side-action.left, .side-action.right { justify-content: center; text-align: center; }
    .emblem img { width: 158px; height: 158px; }
    .shell { grid-template-columns: 1fr; }
    .side { position: static; }
  }

/* --- Couleurs de palier : une classe par teinte, pour éviter tout style en ligne
       et permettre une CSP sans 'unsafe-inline'. --- */
.pack.tier-ice { --tier: #8ccdff; }
.pack.tier-amethyst { --tier: #9b8cf8; }
.pack.tier-star { --tier: #ffd97a; }
.pack.tier-rose { --tier: #ff7a9c; }
.pack.tier-jade { --tier: #34d399; }


/* =========================================================================
   Navigation commune à toutes les pages
   ========================================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--title);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--crystal);
}

.brand img { display: block; }

.mainnav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }

.mainnav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.mainnav a:hover { color: var(--crystal); background: rgba(109, 92, 240, 0.18); }

/* La page courante est signalée par la couleur et le liseré, pas seulement par la teinte. */
.mainnav a.on {
  color: var(--crystal);
  background: rgba(109, 92, 240, 0.28);
  border-color: var(--edge-hi);
}

.topcta {
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--violet), var(--amethyst));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

/* --- Bandeau des pages intérieures --- */
.pagehead {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 30px 34px;
  border-bottom: 1px solid var(--edge);
}

.pagehead h1 {
  font-family: var(--title);
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 8px;
  background: linear-gradient(120deg, #ffffff, var(--ice) 52%, var(--amethyst));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pagehead p { color: var(--dim); max-width: 64ch; margin: 0; }

/* --- Bandes de contenu --- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 30px; }
.wrap.narrow { max-width: 900px; }

.band { padding: 44px 0; border-bottom: 1px solid var(--edge); }
.band:last-child { border-bottom: 0; }

.card.pad { padding: 22px; display: flex; flex-direction: column; gap: 9px; }
.card.pad .ico { font-size: 21px; }
.card.pad h3 { font-family: var(--title); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; margin: 0; }
.card.pad p { margin: 0; font-size: 14px; color: var(--dim); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }

/* Étiquettes d'état des serveurs du réseau. */
.state {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.state.open { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.4); }
.state.soon { background: rgba(140, 205, 255, 0.1); color: var(--faint); border: 1px solid var(--edge); }

/* --- Liens en cartes --- */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.link-card:hover { border-color: var(--ice); transform: translateY(-2px); }
.link-card strong { font-family: var(--title); font-size: 15.5px; letter-spacing: 0.03em; }
.link-card span { font-size: 13.5px; color: var(--dim); }

/* --- Tableau des commandes --- */
.table-wrap { overflow-x: auto; }

table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; }

thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 14px 18px;
  border-bottom: 1px solid var(--edge-hi);
  white-space: nowrap;
}

tbody td { padding: 13px 18px; border-bottom: 1px solid var(--edge); color: var(--dim); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td.cmd { font-family: var(--mono); font-size: 13px; color: var(--star); white-space: nowrap; }

/* --- Questions fréquentes --- */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq summary {
  font-family: var(--title);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  list-style: none;
  color: var(--crystal);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '▸ '; color: var(--ice); }
.faq details[open] summary::before { content: '▾ '; }
.faq p { margin: 10px 0 0; font-size: 14px; color: var(--dim); }

/* --- Pages légales --- */
.legal { margin-bottom: 18px; }
.legal h2 { font-family: var(--title); font-size: 18px; letter-spacing: 0.05em; color: var(--ice); margin: 0 0 12px; }
.legal p { margin: 0 0 10px; font-size: 14.5px; color: var(--dim); max-width: 78ch; }
.legal p:last-child { margin-bottom: 0; }
.legal strong { color: var(--crystal); }
.legal ul { margin: 0 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal li { font-size: 14.5px; color: var(--dim); }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 16px; }

.wrap.narrow .legal:first-child { margin-top: 34px; }

/* --- Pied de page --- */
.sitefoot { border-top: 1px solid var(--edge); margin-top: 40px; padding: 36px 30px 44px; }

.foot-cols {
  max-width: 1240px;
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
}

.foot-cols > div { display: flex; flex-direction: column; gap: 7px; }
.foot-cols strong { font-family: var(--title); font-size: 14px; letter-spacing: 0.06em; color: var(--crystal); }
.foot-cols p { margin: 0; font-size: 13.5px; color: var(--faint); }
.foot-cols a { font-size: 13.5px; color: var(--dim); }
.foot-cols a:hover { color: var(--ice); }

.foot-legal {
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin: 0;
}

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .mainnav { order: 3; width: 100%; }
  .pagehead { padding: 32px 20px 26px; }
  .wrap { padding: 0 20px; }
}

/* --- Étapes numérotées : une vraie séquence, d'où la numérotation --- */
.steps { display: flex; flex-direction: column; gap: 10px; }

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 18px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
}

.step .n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ice); }
.step strong { font-family: var(--title); font-size: 15px; letter-spacing: 0.03em; }
.step span { font-size: 14px; color: var(--dim); }
.step code { font-family: var(--mono); font-size: 13px; color: var(--star); }

/* =========================================================================
   Documents : règlement et manuel du staff
   ========================================================================= */

.pact { border-color: var(--edge-hi); margin-top: 30px; }
.pact strong { font-family: var(--title); font-size: 15px; letter-spacing: 0.03em; }
.pact p { margin: 0; font-size: 14.5px; color: var(--dim); }

/* --- Sommaire en grille --- */
.toc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: 14px;
  overflow: hidden;
  margin: 22px 0 12px;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 13px 16px;
  background: var(--panel-solid);
  font-size: 14.5px;
  color: var(--dim);
  transition: background 0.16s ease, color 0.16s ease;
}

.toc a:hover { background: rgba(109, 92, 240, 0.22); color: var(--crystal); }
.toc .num { font-family: var(--mono); font-size: 12.5px; color: var(--ice); }

/* --- Articles --- */
.wrap.narrow article { padding: 34px 0 6px; scroll-margin-top: 20px; }

.wrap.narrow article h2 {
  font-family: var(--title);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--edge-hi);
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--crystal);
}

.wrap.narrow article h2 .art {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  white-space: nowrap;
}

.wrap.narrow article h3 {
  font-family: var(--title);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--star);
  margin: 22px 0 8px;
}

.wrap.narrow article p { margin: 0 0 10px; font-size: 14.5px; color: var(--dim); max-width: 78ch; }
.wrap.narrow article ul,
.wrap.narrow article ol.rules { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.wrap.narrow article li { font-size: 14.5px; color: var(--dim); }
.wrap.narrow article strong { color: var(--crystal); }
.wrap.narrow article code { font-family: var(--mono); font-size: 13px; color: var(--star); }

/* --- Encarts : la couleur encode le registre --- */
.callout {
  border-left: 3px solid var(--ice);
  background: rgba(140, 205, 255, 0.07);
  border-radius: 0 12px 12px 0;
  padding: 15px 18px;
  margin: 6px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.callout strong { font-family: var(--title); font-size: 14.5px; letter-spacing: 0.03em; color: var(--crystal); }
.callout p { margin: 0 !important; font-size: 14px; color: var(--dim); }
.callout.warn { border-left-color: #ff7a9c; background: rgba(255, 122, 156, 0.08); }
.callout.note { border-left-color: var(--star); background: rgba(255, 217, 122, 0.07); }

/* --- Manuel du staff --- */
.doc section { padding: 30px 0 4px; border-bottom: 1px solid var(--edge); }
.doc section:last-child { border-bottom: 0; }

.doc h2 {
  font-family: var(--title);
  font-size: 20px;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--crystal);
}

.doc h2 .num { font-family: var(--mono); font-size: 12px; color: var(--ice); }
.doc h3 { font-family: var(--title); font-size: 15px; color: var(--star); margin: 22px 0 10px; letter-spacing: 0.04em; }
.doc p { font-size: 14.5px; color: var(--dim); max-width: 78ch; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc li { font-size: 14.5px; color: var(--dim); }
.doc strong { color: var(--crystal); }
.doc .table-wrap { border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); margin: 14px 0; }
.doc .note { display: block; margin-top: 5px; font-size: 13px; color: var(--faint); }

/* Parcours en trois temps du manuel. */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.flow > div { background: var(--panel-solid); padding: 18px; display: flex; flex-direction: column; gap: 7px; }
.flow .step { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.flow strong { font-family: var(--title); font-size: 15px; }
.flow p { font-size: 13.5px; margin: 0; }

/* Pastilles de permission. */
.who { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.who.all { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.4); }
.who.staff { color: var(--star); background: rgba(255, 217, 122, 0.1); border-color: rgba(255, 217, 122, 0.38); }
.who.admin { color: #ff9db5; background: rgba(255, 122, 156, 0.1); border-color: rgba(255, 122, 156, 0.4); }

.cmd b { font-weight: 600; }
.cmd .opt { color: var(--faint); font-weight: 400; font-size: 12px; }

/* Variables de nommage et exemple de commande. */
.vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.vars > div { background: var(--panel-solid); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.vars code { color: var(--ice); font-weight: 600; }
.vars span { font-size: 13px; color: var(--dim); }

.example {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  background: rgba(4, 5, 26, 0.6);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
  color: var(--dim);
  margin: 12px 0;
}

.example b { color: var(--star); font-weight: 600; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--faint); margin-top: 10px; }
.legend i { width: 14px; height: 3px; display: inline-block; margin-right: 6px; }
