/* ═══════════════════════════════════════════════════════════════════════════
   niveaux.css — le guide de survie. Palette du manoir, mais une page qui se
   PARCOURT : des lignes courtes, une hiérarchie forte, et un repère visuel
   pour ce qui est acquis. « Une échelle qu'on ne voit pas monter ne donne pas
   envie de grimper. »
   ═══════════════════════════════════════════════════════════════════════════ */
.niveaux { max-width: 860px; padding-bottom: 40px; }
.niveaux h1 { font-size: clamp(26px, 4.2vw, 42px); letter-spacing: 3px; margin: 22px 0 8px; text-align: left; }
.niveaux .chapeau { color: #e6d8f2; font-size: 16.5px; line-height: 1.6; margin: 0 0 22px; max-width: 62ch; }

/* ── Là où j'en suis ─────────────────────────────────────────────────────── */
.moi { background: linear-gradient(120deg, rgba(231,201,107,.16), rgba(255,255,255,.05));
  border: 1.5px solid var(--or-2); border-radius: 18px; padding: 18px 22px; margin-bottom: 26px; }
.moi.anonyme { background: rgba(255,255,255,.05); border-style: dashed; }
.moi.anonyme p { margin: 0; color: var(--texte-doux); line-height: 1.6; }
.moi.anonyme a { color: var(--or); }
.moi-rang { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.moi-rang .num { font-family: Georgia, serif; font-size: 44px; line-height: 1; color: var(--or);
  text-shadow: 0 3px 10px rgba(0,0,0,.5); }
.moi-rang .lib { font-size: 21px; color: #fff5df; }
.moi-rang .chap { font-family: system-ui, sans-serif; font-size: 12.5px; color: var(--texte-doux);
  border: 1px solid var(--or-sourd); border-radius: 999px; padding: 2px 10px; }

/*  La jauge : une seule barre, pas un anneau — on lit une progression de
    gauche à droite, on la devine mal en rond. */
.jauge { height: 12px; border-radius: 999px; background: rgba(0,0,0,.35);
  border: 1px solid var(--or-sourd); overflow: hidden; margin: 14px 0 8px; }
.jauge span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #c9a13f, #f4d08a, var(--or)); }
.moi-reste { margin: 0 0 14px; font-size: 14.5px; color: #ecdcc0; }
.moi-reste strong { color: var(--or); font-size: 17px; }
.moi-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; align-items: center; }
.moi-actions .btn-or { display: inline-flex; text-decoration: none; padding: 9px 22px; }

/* ── Le rang mis en avant par l'adresse ──────────────────────────────────── */
.vedette { display: flex; align-items: center; gap: 18px; margin: 0 0 24px;
  background: rgba(255,255,255,.06); border: 1px solid var(--or-sourd);
  border-left: 4px solid var(--or); border-radius: 14px; padding: 14px 20px; }
.vedette .num { font-family: Georgia, serif; font-size: 40px; color: var(--or); line-height: 1; }
.vedette h2 { margin: 0 0 3px; font-size: 20px; color: #fff5df; }
.vedette p { margin: 0; font-size: 13.5px; color: var(--texte-doux);
  font-family: system-ui, sans-serif; }

/* ── Les chapitres ───────────────────────────────────────────────────────── */
.chapitre { border: 1px solid var(--or-sourd); border-radius: 12px; margin: 0 0 8px;
  background: rgba(255,255,255,.04); overflow: hidden; }
.chapitre[open] { background: rgba(255,255,255,.07); border-color: rgba(231,201,107,.45); }
.chapitre summary { cursor: pointer; list-style: none; display: flex; align-items: center;
  gap: 12px; padding: 11px 16px; }
.chapitre summary::-webkit-details-marker { display: none; }
.ch-num { font-family: Georgia, serif; font-size: 15px; color: #2a1f08; background: var(--or);
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; flex: 0 0 auto; }
.ch-nom { font-size: 17px; color: #f4e6c8; flex: 1; }
.ch-plage { font-family: system-ui, sans-serif; font-size: 12px; color: var(--texte-doux); }
.ch-fait { font-family: system-ui, sans-serif; font-size: 11px; text-transform: uppercase;
  letter-spacing: .8px; color: #06301c; background: linear-gradient(#7be0a0, #2f9b62);
  border-radius: 999px; padding: 2px 9px; }

.rangs { list-style: none; margin: 0; padding: 0 10px 10px; }
.rangs li a { display: flex; align-items: baseline; gap: 12px; text-decoration: none;
  padding: 7px 10px; border-radius: 9px; color: var(--texte-doux); }
.rangs li a:hover { background: rgba(231,201,107,.10); color: #fff; }
.r-num { font-family: Georgia, serif; font-size: 13px; width: 34px; flex: 0 0 auto;
  color: var(--or-2); text-align: right; }
.r-nom { flex: 1; font-size: 15px; }
/*  Sans opacité : à 12 px, le retrait de .7 faisait tomber le coût en XP à
    3,4:1, et .88 ne remontait qu'à 4,4 — sous le seuil AA dans les deux cas,
    la couleur de base plafonnant à 4,5. Le chiffre s'efface par sa taille et
    sa police, ce qui suffit : il n'a pas besoin d'être à demi transparent. */
.r-xp { font-family: system-ui, sans-serif; font-size: 12px; white-space: nowrap; }
/*  Acquis : une couleur, pas une coche — on veut voir d'un coup d'œil jusqu'où
    la colonne est dorée. */
.rangs li.atteint .r-nom { color: #ffe9bd; }
.rangs li.atteint .r-num { color: var(--or); }
.rangs li.vedette a { background: rgba(231,201,107,.16); outline: 1px solid var(--or-sourd); }

@media (max-width: 560px) {
  .r-xp { display: none; }          /* le nom d'abord : le chiffre tient dans la fiche */
  .moi-rang .num { font-size: 34px; }
}

/* ── ce que coûte la marche suivante, en parties ─────────────────────────
   Une distance en points ne se décide pas ; une distance en parties, si. */
.moi-parties { display: block; margin-top: 4px; font-family: system-ui, sans-serif;
  font-size: 13px; color: var(--texte-doux); }

/* ── les hauts faits ─────────────────────────────────────────────────────
   Ce qui est ACQUIS en gros, ce qui vient ensuite en petit : un tableau de
   bord qui commence par les manques n'est pas un tableau de bord, c'est une
   réclamation. */
.faits-bloc { margin: 26px 0 30px; }
.faits-titre { font-size: 18px; color: var(--or); margin: 0 0 12px; }
.faits-titre span { float: right; font-family: system-ui, sans-serif; font-size: 12.5px;
  color: var(--texte-doux); font-weight: 600; letter-spacing: .04em; }
.faits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); }
.fait { background: rgba(10,8,22,.5); border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px; padding: 13px 15px; }
.fait.complet { border-color: var(--or-sourd); background: rgba(231,201,107,.07); }
.fait header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.f-ico { font-size: 17px; line-height: 1; }
.f-nom { flex: 1; font-family: system-ui, sans-serif; font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--texte-doux); font-weight: 700; }
.f-etoiles i { font-style: normal; color: rgba(255,255,255,.16); font-size: 12px; }
.f-etoiles i.on { color: var(--or); }
.f-titre { margin: 0 0 9px; font-size: 15px; font-weight: 700; color: #f3e7c4; line-height: 1.3; }
.f-titre.f-vide { color: var(--texte-doux); font-weight: 400; font-size: 13.5px; }
.f-jauge { height: 6px; border-radius: 99px; background: rgba(0,0,0,.42); overflow: hidden; }
.f-jauge span { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #dfae4f, #f3d98a); }
.f-suite { margin: 7px 0 0; font-family: system-ui, sans-serif; font-size: 12.5px;
  color: var(--texte-doux); line-height: 1.45; }
.f-suite b { color: var(--or); }
.faits-note { margin: 12px 0 0; font-family: system-ui, sans-serif; font-size: 13px;
  color: var(--texte-doux); }
